@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;700&display=swap');

:root {
  --primary-color: #4a90e2;
  --secondary-color: #f2f2f2;
  --text-color: #333;
  --background-color: #fff;
  --container-bg: rgba(255, 255, 255, 0.9);
  --border-radius: 8px;
  --shadow-color: rgba(0,0,0,0.1);
}

body.dark-mode {
  --primary-color: #58a6ff;
  --secondary-color: #2d333b;
  --text-color: #adbac7;
  --background-color: #22272e;
  --container-bg: rgba(45, 51, 59, 0.9);
  --shadow-color: rgba(0,0,0,0.4);
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background-image: url('https://storage.googleapis.com/production-assets/background.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

.container {
  width: 90%;
  max-width: 600px;
  text-align: center;
  padding: 20px;
  background-color: var(--container-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px var(--shadow-color);
  position: relative;
}

.header {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

#dark-mode-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

#start-screen h1 {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

#start-screen p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

#start-btn, #inquiry-btn, #restart-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 1.2em;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

#start-btn:hover, #inquiry-btn:hover, #restart-btn:hover {
  background-color: #357abd;
}

#restart-btn {
    background-color: #6c757d;
    margin-top: 10px;
}

#restart-btn:hover {
    background-color: #5a6268;
}

.hidden {
  display: none;
}

#progress-bar-container {
  width: 100%;
  height: 20px;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  overflow: hidden;
}

#progress-bar {
  width: 0%;
  height: 100%;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

#question {
  font-size: 1.8em;
  margin-bottom: 30px;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.option-btn {
  background-color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 15px;
  font-size: 1em;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
  color: var(--text-color);
}

.option-btn:hover {
  background-color: #e0e0e0;
}

body.dark-mode .option-btn:hover {
    background-color: #3f4650;
}

.option-btn.selected {
  background-color: #d1e7ff;
  border-color: var(--primary-color);
}

body.dark-mode .option-btn.selected {
    background-color: #357abd;
    border-color: var(--primary-color);
}

#result-screen h2 {
  font-size: 2em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

#result {
  background-color: var(--secondary-color);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

#result h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: var(--primary-color);
}

.result-image {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  margin-bottom: 20px;
}
