body {
  font-family: 'Arial', sans-serif;
  background-color: #fff9f9;
  color: #111212;
  text-align: center;
  margin: 0;
  padding: 0;
}

#app {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

button {
  background-color: #ff9aa2;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  margin-top: 10px;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #ff9aa2;
}

.options {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
}

.option {
  background-color: #ff9aa2;
  padding: 10px 18px;
  margin: 8px 0;
  width: 80%;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #ffffff;
  font-weight: bold;
}

.option:hover {
  background-color: #ff9aa2;
}

#loading-screen {
  text-align: center;
  font-weight: 600;
  margin-top: 100px;
  font-size: 20px;
  color: #333;
}

.spinner {
  margin: 20px auto;
  width: 40px;
  height: 40px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #ff9aa2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 결과 설명 스타일 */
.result-desc {
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 20px;
}

/* 잘 맞는 MBTI 문장 스타일 */
.result-match {
  margin-top: 10px;
  font-size: 1rem;
}

/* "우리 같이 여행갈까?" 텍스트 */
.result-match .good {
  font-weight: bold;
  color: #0a0a0a;
}

/* ✅ 실제 잘맞는 MBTI 텍스트에 적용될 스타일 */
.result-match .good + span {
  font-weight: 800;
  color: #0949dc;
  font-size: 20px;
}

/* 기존 스타일 유지 + 공유 및 다시하기 버튼 공통 스타일 정리 */
.share-buttons {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.share-buttons button {
  background-color: #ffd2dc;
  color: #000000;
  font-weight: 600;
  padding: 10px 16px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 200px;
  max-width: 80%;
}

.share-buttons button:hover {
  background-color: #ffa5b2;
}

/* 다시하기 버튼도 share-buttons 안에 포함되도록 */
.share-buttons #restart-btn {
  background-color: #ffd1dc;
}

.share-buttons #restart-btn:hover {
  background-color: #ffb3c6;
}

/* 비행기 애니메이션 */
.plane-animation {
  position: relative;
  font-size: 15px;
  animation: fly-center 5s linear infinite;
  margin-top: 20px;
  width: 100%;
  max-width: 120px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

@keyframes fly-center {
  0% {
    left: -30%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    left: 60%;
    opacity: 1;
  }
  100% {
    left: 60%;
    opacity: 0;
  }
}

.share-buttons button:nth-child(3) {
  background-color: #e0fff1;
  color: #006644;
}
.share-buttons button:nth-child(3):hover {
  background-color: #c2ffdf;
}

#lang-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

#lang-selector button {
  background-color: #ffd2dc;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  min-width: 90px;
  max-width: 120px;
  margin: 0;
  outline: none;
  line-height: 1.6;
  height: 44px;
  box-sizing: border-box;
  font-family: 'Arial', 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans JP', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, color 0.2s;
}

#lang-selector button:hover,
#lang-selector button.selected {
  background-color: #ff9aa2;
  color: #333;
}
