* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  background: url("./background.png") center center / cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-family: Arial, sans-serif;
}

.page-content {
  width: min(900px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  margin-top: 40px;
}

.logo-space {
  width: min(520px, 90vw);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-image {
  width: 100%;
  height: auto;
  display: block;
}

.button-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 24px;
}

.glass-button {
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  color: #111;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.glass-button:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.26);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.glass-button:active {
  transform: translateY(0);
}

.popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.popup-overlay.is-open {
  visibility: visible;
  pointer-events: auto;
  animation: fadeInOverlay 0.3s ease forwards;
}

.popup-overlay.is-closing {
  visibility: visible;
  pointer-events: auto;
  animation: fadeOutOverlay 0.3s ease forwards;
}

.popup-modal {
  width: 75vw;
  height: 75vh;
  max-width: 1000px;
  max-height: 760px;
  padding: 76px 28px 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  background: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  color: #000000;
  position: relative;
  transform: scale(0.92);
  opacity: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.popup-body {
  overflow-y: auto;
  padding-right: 8px;
}

.popup-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.popup-link-list a {
  color: #000000;
  text-decoration: none;
  font-size: 1.05rem;
}

.popup-link-list a:hover {
  text-decoration: underline;
}

.popup-overlay.is-open .popup-modal {
  animation: openModal 0.3s ease forwards;
}

.popup-overlay.is-closing .popup-modal {
  animation: closeModal 0.3s ease forwards;
}

.popup-controls {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  gap: 10px;
}

.download-all-button {
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  cursor: pointer;
}

.download-all-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.close-popup-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOutOverlay {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes openModal {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes closeModal {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.92);
    opacity: 0;
  }
}

@media (max-width: 680px) {
  .button-grid {
    grid-template-columns: 1fr;
  }

  .popup-modal {
    width: 90vw;
    height: 75vh;
  }
}
