:root {
  --primary-color: #2c3e50;
  --accent-color: #3498db;
  --background-light: #ecf0f1;
  --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --border-radius: 8px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 1. 자식 요소들이 배경을 덮지 않도록 제거 */
/* 1. 전체를 투명하게 하지 말고, 덮는 핵심 요소만 투명 처리 */
.site,
.content-area,
.entry-content {
  background: transparent !important;
  background-color: transparent !important;
}

/* 2. body 배경만 지정 */
body.postid-10485 {
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--background-light) 100%
  ) !important;
  min-height: 100vh !important;
}

h1.gb-headline.gb-headline-a233d522.gb-headline-text {
  display: none !important;
}

/* 시작 화면 스타일 */
.start-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 10px);
  max-width: 1000px;
  margin: 40px auto !important;
  padding: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.start-left {
  flex: 1;
}
.start-left img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}
.start-right {
  flex: 1;
  padding: 20px;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.start-right h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.start-right p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}
.start-right button {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 1.2em;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin-top: 90px;
}
.start-right button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}
.start-right button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5);
}

@media (max-width: 768px) {
  .start-screen {
    flex-direction: column;
    text-align: center;
  }
  .start-right {
    margin: 0 auto;
  }
  .start-right button {
    width: 100%;
    max-width: 300px;
    margin: auto;
  }

  @media (max-width: 768px) {
    .separate-containers .inside-article {
      padding: 0;
    }
  }
}
@media (max-width: 480px) {
  .start-right h1 {
    font-size: 2em;
  }
  .start-right p {
    font-size: 1em;
  }
}

/* 퀴즈 화면 스타일 */
.quiz-container {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px 40px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  display: none;
}
.quiz-container #iq-timer {
  font-size: 1.5em;
  display: block;
  text-align: right;
  font-weight: bold;
  color: #e74c3c;
}
.quiz-container .question-header {
  margin-bottom: 10px;
  font-size: 1.5em;
  font-weight: bold;
}
.quiz-container #questionImg {
  max-width: 100%;
  height: auto;
  margin-bottom: 60px;
  border-radius: var(--border-radius);
}
.quiz-container .answers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.quiz-container .answer {
  display: inline-block;
}
.quiz-container .answer input {
  display: none;
}
.quiz-container .answer label {
  cursor: pointer;
  border: 2px solid transparent;
  display: inline-block;
  transition: border 0.3s;
}
.quiz-container .answer label img {
  max-width: 150px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius);
}
.quiz-container .answer input:checked + label {
  border: 3px solid var(--accent-color);
}
.quiz-container button {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: var(--border-radius);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.quiz-container button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}
.quiz-container button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5);
}

@media (max-width: 480px) {
  .quiz-container {
    padding: 15px 20px;
  }
  .quiz-container .answers {
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 8px;
  }
  .quiz-container .answer label img {
    max-width: 80px;
  }
}

/* 로딩 오버레이 스타일 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 150px;
  font-size: 20px;
  font-weight: bold;
}
.spinner {
  border: 12px solid #f3f3f3;
  border-top: 12px solid var(--accent-color);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
  text-align: center;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
