/*** 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 (max-width: 768px) {
  .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;
  background: rgba(0, 0, 0, 0);
  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: 3;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
 }

.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, 242, 0);
}

#main {
  transition: margin-left .5s;
  padding: 16px;
  z-index: 3; /* 다른 요소 위에 표시합니다. */
}

.container {
  position: relative;
  min-width: 300px;
  max-width: 480px;
  margin: 0 auto;
  text-align: center; /* 내부 컨텐츠를 가운데 정렬 */
  border-radius: 14px; /* 이미지의 모서리를 10px로 라운드 처리 */
  padding:0px;
  gap: 4px;
  cursor: pointer; /* 마우스 커서가 포인터로 변경 */
  overflow: hidden; /* 이미지가 컨테이너를 벗어나지 않도록 설정 */
}

.container video {
  
  max-width: 400px; /* 최대 가로 사이즈를 400px로 설정 */
  width: 100%; /* 부모 요소의 너비에 맞게 조정 */
  height: auto; /* 비율을 유지한 채 높이 자동 조절 */
  border-radius: 10px; /* 모서리 둥글게 처리 (선택사항) */
}

.container img {
  max-width: 100%; /* 이미지를 부모 요소의 최대 너비에 맞게 조절 */
  height: auto; /* 비율을 유지한 채로 높이 자동 조절 */
  vertical-align: middle; /* 이미지를 수직 가운데 정렬 */
  border-radius: 10px; /* 이미지의 모서리를 10px로 라운드 처리 */
  transition: transform 0.7s ease-out; /* 부드러운 확대 효과 추가 */
}

/* 화면 너비가 1280px 이상일 때만 마우스 오버 효과 적용 */
@media (min-width: 1280px) {
  .container img:hover {
    transform: scale(1.3); /* 마우스 오버 시 1.3배 확대 */
  }
}

.container .content {
  position: absolute;
  bottom: 0; /* 하단에 위치하도록 설정 */
  left: 50%;
  transform: translateX(-50%); /* 가로 방향으로 가운데 정렬 */
  background: rgb(0, 0, 0); /* Fallback color */
  background: rgba(0, 0, 0, 0.8); /* Black background with 0.5 opacity */
  color: #f1f1f1ea;
  width: 100%;
  padding: 20px;
  z-index: 1; /* 다른 요소 위에 표시합니다. */
  border-radius: 0px 0px 10px 10px; /* 이미지의 모서리를 10px로 라운드 처리 */
}

.container .content p {
  display: none; /* 기본적으로 숨김 처리 */
}

.container:hover .content p {
  display: block; /* 마우스를 올렸을 때 보이게 설정 */
  color: #00ffee;

}



.container-wrapper {
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 400px));
  gap: 20px; /* 박스 간격 20px */
  justify-content: center; /* 중앙 정렬 */
  padding: 20px;
  margin-bottom: 400px;
}

.container {
  flex: 1; /* 가로 공간을 동등하게 분할 */
  text-align: center; /* 내부 컨텐츠를 가운데 정렬 */
  z-index: 1; /* 다른 요소 위에 표시합니다. */
  gap: 4px;
  margin: 10px;
}



/* 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: 390px; /* 화면이 좁아질 때 이미지의 너비를 100%로 설정하여 화면 비율에 맞게 표시 */
  }
  .container-wrapper {
    flex-direction: column; /* 화면이 좁아질 때 요소들을 위아래로 나열하도록 설정 */
  }
  .container {    
    margin: 4px;
  }
}

/* 미디어 쿼리 - 화면 너비가 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;
  }
  .container {    
    margin: 8px;
  }

 
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 1280px) {
  .slider-container {
    max-width: 500px; /* 원하는 최대 가로 너비 */
    max-height: auto; /* 원하는 최대 세로 높이 */
    top: -100px;
    position: relative;
    text-align: center; /* 내용을 가운데 정렬 */
    z-index: 1; /* 다른 요소 위에 표시합니다. */
    display: flex; /* Flexbox 사용 */
    flex-direction: column; /* 수직 중앙 정렬을 위해 컨테이너를 세로로 설정 */
    justify-content: center; /* 세로 중앙 정렬 */
    align-items: center; /* 가로 중앙 정렬 */
    height: 100vh; /* 화면 높이의 100%를 차지하여 세로 중앙 정렬 */
  
  }    
  .sidebar a {
    padding: 30px 8px 8px 30px;
    text-decoration: none;
    font-size: 0.9em;
    color: #818181;
    display: block;
    transition: 0.3s;
    line-height: 1px;
  }

  .content {    
    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:rgba(255, 255, 255, 0.5); /* 글씨 색상 설정 */
    text-decoration: none; /* 밑줄 제거 */
    font-size: 50%;
    font-weight: 100;
    z-index: 100;
  }

  .container {
    position: relative;
    min-width: 200px;
    max-width: 300px;
    margin: 0 auto;
    text-align: center; /* 내부 컨텐츠를 가운데 정렬 */
    border-radius: 14px; /* 이미지의 모서리를 10px로 라운드 처리 */
    padding:0px;
    gap: 4px;
  }
  
  .container img {
    max-width: 80% ; /* 이미지를 부모 요소의 최대 너비에 맞게 조절 */
    height: 40%; /* 비율을 유지한 채로 높이 자동 조절 */
    vertical-align: middle; /* 이미지를 수직 가운데 정렬 */
    border-radius: 8px; /* 이미지의 모서리를 10px로 라운드 처리 */
  } 

  .container video {
    
    max-width: 80%; /* 최대 가로 사이즈를 400px로 설정 */
    height: 40%; /* 비율을 유지한 채로 높이 자동 조절 */
    border-radius:8px; /* 모서리 둥글게 처리 (선택사항) */
  }
  
   
  .container .content {
    position: absolute;    
    bottom: 0; /* 하단에 위치하도록 설정 */
    left: 50%;
    height: auto;
    transform: translateX(-50%); /* 가로 방향으로 가운데 정렬 */
    background: rgb(0, 0, 0); /* Fallback color */
    background: rgba(0, 0, 0, 0.7); /* Black background with 0.5 opacity */
    color: #f1f1f1ea;
    width: 80%;
    padding: 10px;
    z-index: 1; /* 다른 요소 위에 표시합니다. */
    border-radius: 0px 0px 8px 8px; /* 이미지의 모서리를 10px로 라운드 처리 */
  }
 

  
  
  
  .container-wrapper {
    display: flex; /* Flexbox를 사용하여 내부 요소들을 가로로 나란히 배열 */  
    align-items: center; /* 가운데 정렬 */
    margin-top: -50px;
    justify-content: center;
    justify-items: center;
    gap: 20px; /* 박스 간격 20px */
    padding: auto;
    z-index: 1; /* 다른 요소 위에 표시합니다. */
  }

    
  .container-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 400px));
    gap: 20px; /* 박스 간격 20px */
    justify-content: center; /* 중앙 정렬 */
    padding: 20px;
    margin-bottom: 400px;
  }
  

  .container {
    flex: 1; /* 가로 공간을 동등하게 분할 */
    text-align: center; /* 내부 컨텐츠를 가운데 정렬 */
    z-index: 1; /* 다른 요소 위에 표시합니다. */
    gap: 4px;
    margin: 10px;
  }

  .container p {
    font-size: 8px;
    font-weight: 200;
  }
  
}

/* 전체팝업 스타일은 필요에 따라 수정 가능 */

.popup-trigger:hover {
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed; /* 변경된 부분 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff; /* 모달 텍스트 색상 */
  z-index: 100;
}

.close {
  position: absolute;
  top: 50px; /* 원하는 위치로 조절하세요 */
  right: 50%;/* 원하는 위치로 조절하세요 */
  font-size: 40px; /* 원하는 크기로 조절하세요 */
  font-weight: 100;
  color: #fff; /* 닫기 버튼 색상 */
  cursor: pointer;
  transition: transform 0.3s ease; /* 트랜지션 속성 추가 */
  z-index: 100;
}

.close:hover {
  transform: rotate(180deg);
  color: rgb(255, 157, 0);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}


/* 다른 스타일링은 여기에 추가 가능 */




