/* 전체 페이지 기본 스타일 */
body {
  font-family: 'Nanum Gothic', sans-serif;

 
  background-image:
    linear-gradient(135deg, rgba(102, 104, 112, 0.7), rgba(196, 152, 235, 0.75)),
    url('bg.jpg');          

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #f5f7ff;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* 상단 헤더 */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  background-color: rgba(10, 16, 40, 0.85); /* 딥 네이비 */
  color: #f5f7ff;
  width: 100%;
  box-sizing: border-box;
}

/* 중앙 카드 박스 */
.container {
  background: linear-gradient(145deg, #e4e5eb, #6e707c); /* 네이비 카드 */
  padding: 2rem 3rem;
  border-radius: 22px;
  text-align: center;
  width: 90%;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 20px 45px rgba(243, 181, 181, 0.5);
  box-sizing: border-box;
}

/* 기본 텍스트 */
h1 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 2.1rem;
  color: #ffffff;
}

h2 {
  margin: 0.5rem 0 1rem;
  font-size: 1.4rem;
  color: #d1dcff;
}

p {
  margin: 0.3rem 0 1rem;
  color: #fafafc;
}

/* 공통 버튼 스타일 (메인 선택 버튼) */
button {
  background: linear-gradient(135deg, #4c6fff, #00bcd4); /* 블루 + 시안 */
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  transition: background 0.25s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

button:hover {
  background: linear-gradient(135deg, #5a7dff, #00d2ff);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
}

/* 메인 화면 버튼 조금 띄우기 */
#mainScreen button {
  margin-top: 0.5rem;
}

#mainScreen p {
  font-size: 0.95rem;
}

/* 퀴즈/MBTI 화면 공통 여백 */
#quizScreen,
#mbtiScreen {
  margin-top: 0.5rem;
}

/* 질문 영역 */
#questionText,
#mbtiQuestion {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  color: #e3e6ff;
}

/* 선택지 버튼 공통 */
.choiceBtn,
.mbtiChoiceBtn {
  display: block;
  width: 100%;
  margin: 0.35rem 0;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.06); /* 옅은 흰색 */
  color: #f5f7ff;
  text-align: left;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.choiceBtn:hover,
.mbtiChoiceBtn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

/* 선택된 보기 강조 (보라색 포인트) */
.choiceBtn.selected,
.mbtiChoiceBtn.selected {
  background: linear-gradient(135deg, #ff8a65, #ff6fb1); /* 코랄 + 핑크 */
  color: #ffffff;
}

/* 메인으로 돌아가기 버튼 톤 다운 */
#quizBackBtn,
#mbtiBackBtn,
#resultBackBtn {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  padding: 0.45rem 1.1rem;
  box-shadow: none;
}

#quizBackBtn:hover,
#mbtiBackBtn:hover,
#resultBackBtn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* 결과 박스 */
#resultBox {
  margin-top: 0.8rem;
}

#resultTitle {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  color: #ffdeff;
}

#resultText {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: #e3e6ff;
}
/* 상단 메뉴(nav) */
nav {
    background-color: #214405;
    background: linear-gradient(90deg, #3b4cca, #8e2de2); /* 블루-퍼플 그라디언트 */
    padding: 15px 0;
    text-align: center;
    width: 100vw;           /* 화면 가로 전체 */
    box-sizing: border-box; /* 패딩 포함 너비 계산 */
    display: flex;          /* 플렉스 박스 사용 */
    justify-content: center;/* 중앙 정렬 */
    gap: 40px;              /* 메뉴 간 간격 */
}

/* 메뉴 링크 */
nav a {
    text-decoration: none;
    font-size: 1.1rem;
    color: #f5f7ff;          /* 밝은 흰색 계열 */
    font-weight: 600;
    padding: 5px 10px;      /* 여백 추가로 가독성 향상 */
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* 마우스 오버 시 */
nav a:hover {
    text-decoration: underline;
    color: #ffe082;          /* 부드러운 골드 포인트 */
}
