@import url("https://cdn.jsdelivr.net/gh/sunn-us/SUIT/fonts/static/woff2/SUIT.css");

body {
  margin: 0;
  padding: 0;
  height: var(--app-height);
  overflow: hidden;
  background-image: url("../images/resom.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: "SUIT", sans-serif;
  color: #f5f5f5;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 어두운 반투명 오버레이 */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(87, 85, 83, 0.55); /* #575553 기반 투명도 */
  z-index: 0;
}

/* 메인 카드 컨테이너 - 글래스모피즘 */
.main-container {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  border-radius: 32px;
  padding: 20px 50px;
  margin-bottom: 60px;
  max-width: 720px;
  width: 90%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  text-align: center;
  z-index: 1;
}

/* 메뉴 버튼 */
.menu-buttons button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 750px;
  margin: 16px auto;
  padding: 35px 0;
  font-family: "SUIT", sans-serif;
  font-size: 3rem;
  border-radius: 24px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 14px rgba(136, 136, 138, 0.3); /* #89898A 그림자 */
  transition: all 0.25s ease;
  color: #fff;
  letter-spacing: 0.06em;
}

/* 버튼 컬러 팔레트 - 주황끼리, 회색끼리 */
.menu-buttons button:nth-child(1) {
  /* 주황 그라데이션 */
  background: linear-gradient(135deg, #ee7500 75%, #ff9c3b 100%);
}

.menu-buttons button:nth-child(2) {
  /* 밝은 회색 → 어두운 회색 */
  background: linear-gradient(135deg, #89898a 0%, #575553 25%);
}

.menu-buttons button:nth-child(3) {
  /* 주황 그라데이션 재사용 */
  background: linear-gradient(135deg, #ee7500 75%, #ff9c3b 100%);
}

.menu-buttons button:nth-child(4) {
  /* 밝은 회색 → 어두운 회색 */
  background: linear-gradient(135deg, #89898a 0%, #575553 25%);
}

/* 호버 효과 */
.menu-buttons button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(87, 85, 83, 0.5);
  filter: brightness(1.12);
}
.menu-buttons button:active {
  transform: scale(0.95);
}

/* 푸터 버튼 */
.footer-buttons {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 100;
}

.footer-buttons button {
  background: #575553; /* #89898A 기반 */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-buttons button:hover {
  background: rgba(87, 85, 83, 0.25);
  transform: scale(1.08);
}

.footer-buttons button:active {
  transform: scale(0.95);
  background: linear-gradient(135deg, #ee7500, #575553);
}

/* 모달 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  position: relative;
}

.modal-content img {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-button {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 48px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

.close-button:hover {
  color: #000;
}

.event-h1 {
  text-align: center;
  font-family: "SUIT", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  margin: 24px auto 12px auto;
  padding: 8px 16px;
  max-width: 90%;
  letter-spacing: 0.05em;
  border-radius: 12px;
}

.event-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  overflow-y: auto; /* 리스트만 스크롤 */
  padding: 10px;
  max-height: 80vh; /* h2 영역을 제외한 스크롤 높이 */
  justify-content: center;
}

/* 이벤트 카드 3개씩 정렬 */
.event-list > div {
  width: calc(32.333% - 11px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  box-sizing: border-box;
}

/* ---------------------- */
/* 반응형 미디어 쿼리 */
/* ---------------------- */

/* 태블릿: 768px 이하 */
@media screen and (max-width: 768px) {
  .main-container {
    padding: 20px 30px;
    width: 95%;
  }

  .menu-buttons button {
    font-size: 2.2rem;
    padding: 40px 0;
    max-width: 90%;
  }

  .footer-buttons button {
    font-size: 1rem;
    padding: 10px 18px;
  }

  .event-h1 {
    font-size: 1.6rem;
    padding: 6px 12px;
  }

  .event-list > div {
    width: calc(48% - 8px); /* 카드 2개씩 정렬 */
    padding: 8px;
  }
}

/* 모바일: 480px 이하 */
@media screen and (max-width: 480px) {
  .main-container {
    padding: 15px 20px;
    width: 100%;
    margin-bottom: 40px;
  }

  .menu-buttons button {
    font-size: 1.8rem;
    padding: 30px 0;
  }

  .footer-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .footer-buttons button {
    width: 80%;
    font-size: 1rem;
    padding: 10px 0;
  }

  .event-h1 {
    font-size: 1.4rem;
    padding: 4px 8px;
  }

  .event-list {
    padding: 5px;
  }

  .event-list > div {
    width: 100%; /* 카드 1개씩 정렬 */
    margin: 0 auto;
    padding: 6px;
  }
}
