/* =========================================
   언어 선택 화면
========================================= */

.language-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background:
    linear-gradient(
      rgba(31, 32, 45, 0.88),
      rgba(31, 32, 45, 0.94)
    );

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.language-modal.open {
  opacity: 1;
  visibility: visible;
}

.language-modal-box {
  width: min(470px, 100%);

  padding: 55px 40px 45px;

  border: 1px solid rgba(255, 255, 255, 0.28);

  background: #343544;
  color: #ffffff;

  text-align: center;

  box-shadow:
    0 24px 70px
    rgba(0, 0, 0, 0.5);

  transform: translateY(20px);

  transition: transform 0.3s ease;
}

.language-modal.open .language-modal-box {
  transform: translateY(0);
}

.language-logo {
  width: 72px;
  height: 72px;

  margin: 0 auto 22px;

  object-fit: contain;
}

.language-modal-box h2 {
  margin: 0;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 31px;
  letter-spacing: 4px;
}

.language-modal-box p {
  margin: 16px 0 34px;

  color: rgba(255, 255, 255, 0.78);

  font-size: 14px;
  line-height: 1.7;
}

.language-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 14px;
}

.language-button {
  min-height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #fbbd24;

  background: transparent;
  color: #ffffff;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.language-button:hover {
  background: #fbbd24;
  color: #292a33;

  transform: translateY(-2px);
}

.language-button.primary {
  background: #fbbd24;
  color: #292a33;
}

.language-button.primary:hover {
  background: #ffffff;
  border-color: #ffffff;
}

body.language-modal-open {
  overflow: hidden;
}


/* =========================================
   영문 페이지 언어 전환 메뉴
========================================= */

.language-switcher {
  display: flex;
  align-items: center;

  margin-left: 14px;

  border-left: 1px solid rgba(255, 255, 255, 0.38);
}

.language-switcher a {
  padding: 9px 8px;

  color: rgba(255, 255, 255, 0.7);

  font-size: 12px;
  font-weight: 700;

  transition: color 0.2s ease;
}

.language-switcher a:hover,
.language-switcher a.active {
  color: #fbbd24;
}

.language-switcher span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}


/* =========================================
   모바일
========================================= */

@media (max-width: 700px) {

  .language-modal-box {
    padding: 42px 22px 34px;
  }

  .language-logo {
    width: 60px;
    height: 60px;
  }

  .language-modal-box h2 {
    font-size: 25px;
    letter-spacing: 3px;
  }

  .language-buttons {
    grid-template-columns: 1fr;
  }

  .language-switcher {
    width: 100%;

    justify-content: flex-start;

    margin: 8px 0 0;
    padding: 6px 8px;

    border-left: 0;
    border-top: 1px solid #555661;
  }

}