.contentStart {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: auto;
  min-height: 100vh;
  margin-bottom: 50px; /* 결과와 footer 사이에 여유 공간 추가 */
}

#main-content {
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: opacity 0.5s ease;
}

.question {
  font-size: 23px;
  margin-bottom: 50px;
  margin-top: 40px;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  max-width: 400px;
}

.level-box {
  font-size: 25px;
  font-weight: bold;
}

button {
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px !important;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  padding: 30px 10px;
  touch-action: manipulation;
}

#start-button {
  width: 200px !important;
  display: block;
  margin: 0 auto;
  padding: 20px !important;
  font-size: 22px !important;
}

button:hover {
  background-color: #357ab7;
}

.result-box {
  text-align: left;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  width: 100%;
  max-width: 600px;
}

.result-image {
  width: 100%;
  max-width: 300px;
}

.subscale-box {
  background-color: rgba(99, 122, 255, 0.1);
  border: 1px solid #6366ff;
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
  margin-bottom: 15px;
  width: 100%;
}

.subscale-graph {
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
}

.retry-button {
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
}

.retry-button:hover {
  background-color: #357ab7;
}

.loading-screen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading-screen.show {
  display: flex;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-radius: 50%;
  border-top: 5px solid #4a90e2;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 20px;
  font-size: 18px;
  color: #4a90e2;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.naviga {
  width: 100px;
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 10px 0;
  font-size: 18px;
  margin-bottom: 10px; /* progress-container 아래 간격 추가 */
}

.progress-container {
  width: 100%; /* 화면 전체 너비에 맞게 고정 */
  max-width: 600px; /* 최대 너비 설정 */
  background-color: #e0e0e0;
  margin: 0 auto 10px; /* 수평 중앙 정렬 및 간격 */
}

.progress-bar {
  height: 8px;
  background-color: #4a90e2;
  width: 0%; /* 초기 너비는 0% */
  transition: width 0.5s ease;
}

@media (max-width: 600px) {
  .question {
    font-size: 22px;
  }
}
