/*** font ***/
@import url('https://fonts.googleapis.com/css2?family=Montserrat&family=Noto+Sans+KR&family=Orbitron:wght@700&display=swap');



* {
  box-sizing: border-box;
}

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; /* 필요 시 다른 요소 뒤로 */
}

.content {
  position: relative;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #f1f1f1;
  width: 100%;
  padding: 20px;
  z-index: 10;
}

@media (min-width: 1280px) {
  .content {
    position: fixed;
    
  }
}

@media (max-width: 1024px) {
  .content {
    font-size: 12px; /* 작아질 텍스트 크기를 지정합니다. */
  }
}

#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;
  color: #fff; /* 글자 보이게 */
  padding: 10px;
  display: flex;
  font-size: 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;

  /* ✨ 글라스 효과 스타일 */
  background: rgba(255, 255, 255, 0.05); /* 밝은 반투명 배경 */
  backdrop-filter: blur(10px);          /* 흐림 효과 */
  -webkit-backdrop-filter: blur(10px);  /* 사파리 대응 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* 경계선 */
}

#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;
  z-index: 10; /* 다른 요소 위에 표시합니다. */
}

.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 3;
  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%;
  z-index: 3;
}

.sidebar a:hover {
  color: #f1f1f1;
  z-index: 3;
}

.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, 217, 0);
}

#main {
  transition: margin-left .5s;
  padding: 16px;
  z-index: 3; /* 다른 요소 위에 표시합니다. */
}

.container {
  position: relative;
  min-width: 240px;
  max-width: 420px;
  margin: 10px 6px auto;
  text-align: center; /* 내부 컨텐츠를 가운데 정렬 */
  border-radius: 14px; /* 이미지의 모서리를 10px로 라운드 처리 */
  display: inline-block; /* 필요 시 block 또는 flex로 변경 */
}

.container img {
  max-width: 100%; /* 이미지를 부모 요소의 최대 너비에 맞게 조절 */
  height: auto; /* 비율을 유지한 채로 높이 자동 조절 */
  vertical-align: middle; /* 이미지를 수직 가운데 정렬 */
  border-radius: 10px 10px 0 0; /* 이미지의 모서리를 10px로 라운드 처리 */

}

.container .content {
  position: relative;
  bottom: 0; /* 하단에 위치하도록 설정 */
  left: 50%;
  transform: translateX(-50%); /* 가로 방향으로 가운데 정렬 */
  background: rgb(0, 0, 0); /* Fallback color */
  background: rgba(3, 99, 110, 0.7); /* Black background with 0.5 opacity */
  color: #f1f1f1ea;
  width: 100%;
  z-index: 1; /* 다른 요소 위에 표시합니다. */
  border-radius: 0px 0px 10px 10px; /* 이미지의 모서리를 10px로 라운드 처리 */
  padding-top: 1px; /* 위쪽 여백 추가 */
  padding-bottom: 1px; /* 아래쪽 여백 추가 */
  line-height: 130%;
}


.container-wrapper {
  display: flex; /* Flexbox를 사용하여 내부 요소들을 가로로 나란히 배열 */
  flex-wrap: wrap; /* 화면 크기에 따라 줄바꿈 */
  margin-left: 40px;
  margin-right: 40px;
  justify-content: center;
  justify-items: center;
  align-items: center; /* 가운데 정렬 */
  max-width: 1600px;
  z-index: 1; /* 다른 요소 위에 표시합니다. */
  margin-bottom: 200px;
}

.container {
  flex: 1 1 calc(20% - 20px); /* 가로로 5개씩 정렬 */
  min-width: 150px; /* 최소 크기 설정 */
  max-width: 350px; /* 너무 커지지 않도록 제한 */
  text-align: center; /* 내부 컨텐츠를 가운데 정렬 */
  z-index: 1; /* 다른 요소 위에 표시합니다. */ 
}

@media screen and (min-width: 1600px) {   
  .content {
    position: relative;    
  }
}



/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .container img {
    width: 100%; /* 화면이 좁아질 때 이미지의 너비를 100%로 설정하여 화면 비율에 맞게 표시 */    
  }
  .container-wrapper {
    flex-direction: column; /* 화면이 좁아질 때 요소들을 위아래로 나열하도록 설정 */
  }
}


/* 미디어 쿼리 - 화면 너비가 768px 이하일 때 */
@media (max-width: 768px) {
  .slider-container {
    max-width: 400px; /* 원하는 최대 가로 너비를 줄임 */
    max-height: auto; /* 세로 높이는 자동 조정됨 */
  }
  .openbtn {
    font-size: 16px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0);
    color: white;
    padding: 10px 15px;
    border: none;
  }
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 1280px) {   
  .content {
    position: relative;    
  }
  
  .sidebar a {
    padding: 30px 8px 8px 30px;
    text-decoration: none;
    font-size: 0.9em;
    color: #818181;
    display: block;
    transition: 0.3s;
    line-height: 1px;
  }
}

/********************************************************************************/

.label-image {
  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-image:hover {
opacity: 1;
transform: scale(1.3); /* 2.1배 확대 */
background-color: #ff016f7f;
backdrop-filter: blur(10px); /* Glass effect */
z-index: 1000;
}

/* 화면 가로폭이 1024px 미만일 때 */
@media (max-width: 1024px) {
.label-image {
  display: none;
}
.label-image:hover {
  opacity: 1;
  transform: scale(2.1); /* 10% 확대 */
  backdrop-filter: blur(10px); /* Glass effect */
}
}

@media screen and (min-width: 1920px) {
.label-image {   
  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.5); /* 10% 확대 */
  backdrop-filter: blur(10px); /* Glass effect */
}
}

@media (max-width: 600px) {
.label-image {   
  display: none;
}
}

/********************************************************************************/

.label-image2 {
  position: fixed;
  bottom: 0;  /* 화면 세로 중앙 */
  right: 0px;   /* 화면 우측에서 0px 왼쪽 */
 
  width: 200px;  /* 이미지 크기 */
  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 bottom; /* 오른쪽 기준으로 확대 */
}

/* 마우스를 올리면 밝아지고 확대 */
.label-image2:hover {
  opacity: 1;
  transform: scale(2.0); /* 2.1배 확대 */
  background-color: #052a706b;
  backdrop-filter: blur(10px); /* Glass effect */
  }

/* 화면 가로폭이 1024px 미만일 때 */
@media (max-width: 1024px) {
.label-image2 {
  display: none;}
  }

@media screen and (min-width: 1920px) {
.label-image2 {   
  position: fixed;
bottom: 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.5); /* 10% 확대 */
  backdrop-filter: blur(10px); /* Glass effect */
}

}

@media (max-width: 600px) {
.label-image2 {   
  display: none;
}
}

#myVideo {
  filter: brightness(100%); /* 밝기를 50%로 낮춤 */
}

/*************************************************************************************/

.circle-link {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 50px;
  height: 50px;
  display: inline-block;
  overflow: hidden;
  z-index: 500;

  /* 중앙 정렬용 transform은 제거합니다 */
  transform: none;
}


.circle-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;  
  display: block;
  transition: transform 0.3s ease;
}
.circle-link:hover img {
  animation: rotateInfinite 1s linear infinite;
}

@keyframes rotateInfinite {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 커스텀 툴팁 스타일 */
.tooltip {
  position: absolute;
  bottom: 15px;              /* 기존보다 5픽셀 위로 */
  left: 50%;
  transform: translateX(-50%);
  
  background-color: rgba(255, 191, 0, 0.9);
  color: #000;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.circle-link:hover .tooltip {
  opacity: 1;
  visibility: visible;
}



