/*** font ***/
@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Noto+Sans+KR&family=Orbitron:wght@700&display=swap');

* {
  box-sizing: border-box;
}

html { 
  scroll-behavior: smooth; 
}

body {
  margin: 0;
  font-family:'Noto Sans CJK KR', sans-serif;
  font-size: 1em;  
}

#myVideo {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover; /* 화면 채우되 비율 유지 */
  z-index: -1; /* 필요 시 다른 요소 뒤로 */
}



#myBtn {
  width: 200px;
  font-size: 18px;
  padding: 10px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
}

#myBtn:hover {
  background: #ddd;
  color: black;
}

#header {
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(0, 0, 0, 0); /* 글자 색상을 변경합니다. */
  padding: 10px;
  font-size: 16px;
  display: flex; /* 로고와 텍스트를 가로로 나란히 배치하기 위해 flex를 사용합니다. */
  font-size: 16px;
  position: fixed; /* 고정 위치 요소로 설정합니다. */
  top: 0; /* 화면 상단에 배치합니다. */
  left: 0; /* 화면 좌측에 배치합니다. */
  right: 0;
  z-index: 3; /* 다른 요소 위에 표시합니다. */
  backdrop-filter: blur(6px); /* 블러 효과 */
  -webkit-backdrop-filter: blur(6px); /* 사파리 지원 */
}

#header img {
  margin-left: 20px;
  width: clamp(150px, 20vw, 250px); /* 최소 120px, 최대 250px */
  margin-right: 15px; /* 로고와 텍스트 사이의 간격을 설정합니다. */
  z-index: 3; /* 다른 요소 위에 표시합니다. */
}


.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu img {
  width: 10px; /* 로고 이미지의 너비 조정 */
  margin-right: 0px; /* 로고와 텍스트 사이의 간격을 설정합니다. */
}

.navbar {
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0);
}

.navbar a {
  float: left;
  font-size: 16px;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  z-index: 4; /* 다른 요소 위에 표시합니다. */
 }

.sidebar a {
  padding: 30px 8px 8px 30px;
  text-decoration: none;
  font-size: 1.2em;
  color: #818181;
  display: block;
  transition: 0.3s;
  line-height: 130%;
}

.sidebar a:hover {
  color: #f1f1f1;
}

.sidebar .closebtn {
  position: absolute;
  top: 45px;
  right: 20px;
  font-size: 40px;
  margin-left: 40px;
}

.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0);
  color: white;
  padding: 10px 15px;
  border: none;
}

.openbtn:hover {
  background-color: #000000;
  color: rgb(255, 251, 0);
}

#main {
  transition: margin-left .5s;
  padding: 16px;
  z-index: 3; /* 다른 요소 위에 표시합니다. */
}


/* Center website */
.main {
  max-width: 1000px;
  margin: 0 auto; /* 수평 가운데 정렬을 위해 좌우 마진을 auto로 설정 */
  z-index: 1; /* 다른 요소 위에 표시합니다. */
}

.container {
  display: flex; /* 요소들을 가로로 정렬 */
  flex-wrap: wrap; /* 요소들이 줄바꿈되도록 설정 */
  justify-content: center; /* 가로 중앙 정렬 */
  align-items: center; /* 세로 중앙 정렬 */
  gap: 20px; /* 요소들 사이 여백 유지 */
  padding: 20px; /* 전체적인 패딩 유지 */
}


/* Content */
.content {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  z-index: 1; /* 다른 요소 위에 표시합니다. */
  max-width: 500px; /* 원하는 최대 가로 너비 설정 */
  margin: 0 auto; /* 수평 가운데 정렬을 위해 좌우 마진을 auto로 설정 */
  position: relative;
  top: 400px;
  align-items: flex-start;
  align-content: flex-start;
  transform: translateY(-50%);
  text-align: center; /* 내용을 가운데 정렬 */
  border-radius: 14px; /* 이미지의 모서리를 10px로 라운드 처리 */
  color: white; /* 모든 글씨 색상을 흰색으로 설정 */
  overflow: hidden; /* 이미지가 커져도 박스 크기 유지 */  
}

.content-link {
   text-decoration: none; /* 밑줄 제거 */
  color: inherit; /* 부모 요소의 글자색 유지 */
  background-color: rgba(255, 255, 255, 1.0);
}

.content img {
  width: 100%; /* 패딩 내부에 맞게 이미지 배치 */
  max-width: 100%; /* 컨테이너 너비 초과 금지 */
  height: auto;
  display: block; /* 이미지 하단 여백 제거 */
  transition: transform 0.3s ease-in-out;
}

.content h2 {
  transition: color 0.3s ease-in;
  z-index: 500;
}

.content p {
  transition: color 0.3s ease-in;
}

/* 마우스 오버 효과 */
.content-link:hover .content {
  background-color: rgb(0, 0, 0);
}

/* 이미지 컨테이너 추가 */
.image-container {
  width: 100%;
  overflow: hidden; /* 이미지가 커져도 박스 밖으로 나가지 않도록 설정 */
  border-radius: 10px; /* 둥근 모서리 유지 */
}

.content-link:hover .content img {
  transform: scale(1.45); /* 20% 확대 */ 
}

.content-link:hover .content h2 {
  animation: colorTransition 0.9s ease-in-out forwards;
  font-weight: 900;
  font-size: 120%;
}

/* 색상 변화 애니메이션 */
@keyframes colorTransition {
  0% { color: white; }   /* 시작 - 화이트 */
  30% { color: yellow; } /* 중간 - 노랑 */
  100% { color: orange; } /* 최종 - 오렌지 */
}

.content-link:hover .content p {
  color: rgb(0, 242, 255); /* h2 색상 변경 */
}





.content2 {
    background-color: rgba(0, 0, 0, 0.5);
    color:#818181;
    padding: 20px;
    z-index: 1; /* 다른 요소 위에 표시합니다. */
    max-width: auto; /* 원하는 최대 가로 너비 설정 */
    margin: 0 auto; /* 수평 가운데 정렬을 위해 좌우 마진을 auto로 설정 */
    position: relative;
    top: 300px;
    align-items: flex-start;
    align-content: flex-start;
    transform: translateY(-50%);
    text-align: left; /* 내용을 가운데 정렬 */
    border-radius: none; /* 이미지의 모서리를 10px로 라운드 처리 */
  }
  
.content2 img {
      width: 100%;
      border-radius: none; /* 이미지의 모서리를 10px로 라운드 처리 */
    }


/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 720px) {
  .column {
    width: 280px;
  }
  .content {
    flex: 1 1 100%; /* 작은 화면에서는 요소 전체 너비 사용 */
}
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 1280px) {
  .column {
    width: 350px;
  }
  .content {
    flex: 1 1 100%; /* 작은 화면에서는 요소 전체 너비 사용 */
}
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (min-width: 1440px) {
  .column {
    width: 300px;
  }
}



/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (min-width: 1920px) {
  .column {
    width: 400px;
  }
  .content2 {
    background-color: rgba(0, 0, 0, 0.5);
    color:#818181;
    padding: 20px;
    z-index: 1; /* 다른 요소 위에 표시합니다. */
    max-width: auto; /* 원하는 최대 가로 너비 설정 */
    margin: 0 auto; /* 수평 가운데 정렬을 위해 좌우 마진을 auto로 설정 */
    background-image: url('./com_sign2.svg'); /* 이미지 경로를 설정하세요 */
    background-repeat: no-repeat; /* 배경 이미지 반복 제거 */
    background-size: height="40%"; /* 이미지를 요소에 맞게 확대/축소하여 채웁니다 */
    background-position: right; /* 이미지를 가운데 정렬합니다 */
    position: relative;
    top: 300px;
    align-items: flex-start;
    align-content: flex-start;
    transform: translateY(-50%);
    text-align: left; /* 내용을 가운데 정렬 */
    border-radius: none; /* 이미지의 모서리를 10px로 라운드 처리 */
  }
  
.content2 img {
      width: 100%;
      border-radius: none; /* 이미지의 모서리를 10px로 라운드 처리 */
    }
  
}



/* 미디어 쿼리 - 화면 너비가 768px 이하일 때 */
@media screen and (max-width: 768px) {

  .openbtn {
    font-size: 16px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    padding: 10px 15px;
    border: none;
  }
  .content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 4px;
    z-index: 1; /* 다른 요소 위에 표시합니다. */    
    margin: 0 auto; /* 수평 가운데 정렬을 위해 좌우 마진을 auto로 설정 */
    position:relative;
    top: 50%;
    width: 300px; /* 작은 화면에서 width를 100%로 설정 */
    transform: translateY(-50%);
    font-size: 60%;
    font-weight: 200;
    text-align: center; /* 내용을 가운데 정렬 */
    border-radius: 8px; /* 이미지의 모서리를 10px로 라운드 처리 */    
    align-items: flex-start;
    align-content: flex-start;
    overflow: hidden; /* 이미지가 커져도 박스 크기 유지 */  
  }  

  
  .content img {
      border-radius: 4px; /* 이미지의 모서리를 10px로 라운드 처리 */
    }

  /* Center website */
  .main {
    max-width: 768px;
    margin: 0 auto; /* 수평 가운데 정렬을 위해 좌우 마진을 auto로 설정 */
    z-index: 1; /* 다른 요소 위에 표시합니다. */
  }
  
  .row {
    display:flex;  
    position:relative;
    justify-content: center;
    flex-direction: column;
    max-width: fit-content;
    
  }

   /* Create four equal columns that floats next to each other */
  .column {
    box-sizing: border-box; /* 여백 포함 설정 */
    margin-bottom: 20px; /* 각 column 사이의 간격 조절 */
  }  
}



.row {
  margin: 8px 10px;
  display: flex;
  flex-wrap: wrap;
}

/* Add padding BETWEEN each column */
.row,
.row > .column {
  padding: 4px;  
}

/* Create four equal columns that floats next to each other */
.column {
  float: left;

}

/* Clear floats after rows */ 
.row:after {
  content: "";
  display: table;
  clear: both;
}

 /* 이 코드는 go_top 버튼을 숨깁니다. 페이지 맨 위로 스크롤할 때만 표시됩니다. */
 .go_top_area {
  position: fixed;
  bottom: 200px; /* 버튼의 위치를 조절할 수 있습니다. */
  right: 10px; /* 버튼의 위치를 조절할 수 있습니다. */
  display: none;
  z-index: 20;
}

.go_top {
  display: block;
  width: 60px;
  height: 60px;
  line-height: 0px;
  text-align: center;
  background-color: #000000;
  color: #c9c9c9; 
  border-color: #c9c9c9;
  border-style: groove;
  text-decoration: none;
}

.go_top:hover { 
  border-radius: 30px 30px 0 0;
  color: #ffe600;
  border-color: #ff0000;
  opacity: 1; /* 마우스 오버 시 이미지를 표시 */
}

h1 {
  font-size: 50px;
  word-break: break-all;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 1280px) {
  
  .sidebar a {
    padding: 30px 8px 8px 30px;
    text-decoration: none;
    font-size: 0.9em;
    color: #818181;
    display: block;
    transition: 0.3s;
    line-height: 1px;
  }

  .content2 {    
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    color: #f1f1f1;
    width: 100%;  
    background-image: url('./202309/com_sign.png'); /* 이미지 경로를 설정하세요 */
    background-repeat: no-repeat; /* 배경 이미지 반복 제거 */
    background-size: 8%; /* 이미지를 요소에 맞게 확대/축소하여 채웁니다 */
    background-position: left; /* 이미지를 가운데 정렬합니다 */
    padding: 20px; /* 내용 주위에 여백을 추가합니다 */
    color: #ffffff; /* 글씨 색상 설정 */
    text-decoration: none; /* 밑줄 제거 */
    font-size: 50%;
    font-weight: 100;
  }

  .row {
    margin: 4px 4px;
  }
  
  /* Add padding BETWEEN each column */
  .row,
  .row > .column {
    padding: 8px;  
  }
  
  /* Create four equal columns that floats next to each other */
  .column {
    float: left;
    width: 20%;
  }
  
  /* Clear floats after rows */ 
  .row:after {
    content: "";
    display: table;
    clear: both;
  }

  .content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 4px;
    z-index: 1; /* 다른 요소 위에 표시합니다. */
    max-width: 500px; /* 원하는 최대 가로 너비 설정 */
    margin: 0 auto; /* 수평 가운데 정렬을 위해 좌우 마진을 auto로 설정 */
    position: relative;
    top: 300px;
    align-items: flex-start;
    align-content: flex-start;
    transform: translateY(-50%);
    font-size: 60%;
    font-weight: 200;
    text-align: center; /* 내용을 가운데 정렬 */
    border-radius: 8px; /* 이미지의 모서리를 10px로 라운드 처리 */
  }
  
  .content img {
      
      border-radius: 4px; /* 이미지의 모서리를 10px로 라운드 처리 */
    }
  
  .content2 {
      background-color: rgba(0, 0, 0, 0.5);
      color:#818181;
      padding: 20px;
      z-index: 1; /* 다른 요소 위에 표시합니다. */
      max-width: auto; /* 원하는 최대 가로 너비 설정 */
      margin: 0 auto; /* 수평 가운데 정렬을 위해 좌우 마진을 auto로 설정 */
      position: relative;
      top: 300px;
      align-items: flex-start;
      align-content: flex-start;
      transform: translateY(-50%);
      text-align: left; /* 내용을 가운데 정렬 */
      border-radius: none; /* 이미지의 모서리를 10px로 라운드 처리 */
    }
    
  .content2 img {
        width: 100%;
        border-radius: none; /* 이미지의 모서리를 10px로 라운드 처리 */
      }

      .go_top_area {
        position: fixed;
        bottom: 100px; /* 버튼의 위치를 조절할 수 있습니다. */
        right: 10px; /* 버튼의 위치를 조절할 수 있습니다. */
        display: none;
        z-index: 20;
      }
      
      .go_top {
        display: block;
        width: 30px;
        height: 30px;
        line-height: -8px; /* 텍스트의 수직 위치 조절 */
        text-align: center;    
        background-color: #000000;
        color: #c9c9c9; 
        border-color: #c9c9c9;
        border-style: groove;
        text-decoration: none;
      }
      
      .go_top:hover { 
        border-radius: 15px 15px 0 0;
        color: #ffe600;
        border-color: #ff0000;
        opacity: 1; /* 마우스 오버 시 이미지를 표시 */
      }
  
}

/********************************************************************************/

.label-image2 {
  position: fixed;
  top: 0;  /* 화면 세로 중앙 */
  right: 0px;   /* 화면 우측에서 0px 왼쪽 */
 
  width: 180px;  /* 이미지 크기 */
  height: auto;  /* 가로 비율 유지 */
  z-index: 1000; /* 다른 요소 위에 표시 */
  opacity: 0.4;  /* 기본 투명도 */  
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 1.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-origin: right top; /* 오른쪽 기준으로 확대 */
}

/* 마우스를 올리면 밝아지고 확대 */
.label-image2:hover {
  opacity: 1;
  transform: scale(1.8); /* 2.1배 확대 */
  background-color: #000000e6;
  }

/* 화면 가로폭이 1024px 미만일 때 */
@media (max-width: 1024px) {
.label-image2 {
  display: none;}
  }

@media screen and (min-width: 1920px) {
.label-image2 {   
  position: fixed;
top: 0px;  /* 화면 하단에서 20px 위 */
right: 0px;   /* 화면 우측에서 20px 왼쪽 */
width: 250px;  /* 이미지 크기 */
height: auto;  /* 가로 비율 유지 */
z-index: 1000; /* 다른 요소 위에 표시 */
opacity: 0.8;  /* 투명도 조절 */
transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), 
            transform 1.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.label-image:hover {
  opacity: 1;
  transform: scale(1.8); /* 10% 확대 */
}

}

@media (max-width: 600px) {
.label-image2 {   
  display: none;
}
}

#myVideo {
  filter: brightness(70%); /* 밝기를 50%로 낮춤 */
}


