body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
}

#app {
  max-width: 600px;
  margin: 0 auto;
  padding: 0px;
}

#main-title {
  text-align: center;
  color: #3498db;
  font-size: 24px;
  font-weight: bold;
}

#start-screen,
#question-container,
#result-container {
  background-color: #f1f1f1;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

#start-screen p {
  margin-bottom: 15px;
}

#options-container {
  display: flex;
  flex-direction: column;
}

.option {
  margin: 5px 0;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
}

.option:hover {
  background-color: #e6e6e6;
}

.option.selected {
  background-color: #3498db;
  color: #fff;
}

#start-btn,
#next-btn,
#restart-btn,
#copy-link-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
}

#start-btn:hover,
#next-btn:hover,
#restart-btn:hover,
#copy-link-btn:hover {
  background-color: #2980b9;
}

#score {
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
  color: #3498db;
}

#progress-bar {
  width: 100%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  margin-bottom: 20px;
}

#progress {
  height: 100%;
  background-color: #3498db;
  border-radius: 10px;
  transition: width 0.5s ease-in-out;
}

#diagnosis {
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
}

#answers {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
}

#action-buttons {
  display: flex;
  justify-content: space-between;
}

#action-buttons button {
  width: 48%;
}

.answer-item {
  margin-bottom: 10px;
  padding: 10px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
}

.answer-question {
  font-weight: bold;
  margin-bottom: 5px;
}

.answer-selected {
  color: #3498db;
}

.warning {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
  font-style: italic;
}

@media (max-width: 600px) {
  #app {
    padding: 10px;
  }
  .option {
    padding: 15px 10px;
  }
  #action-buttons {
    flex-direction: column;
  }
  #action-buttons button {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* 기존 CSS 코드 유지 */

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loader {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loading-screen p {
  margin-top: 20px;
  font-size: 18px;
  color: #333;
}
