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

body {
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  padding: 0; /* Removed all padding from body */
  background-color: #362F2B; /* Deep brown for luxurious feel */
  background-image: linear-gradient(45deg, rgba(255,255,255,.03) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.03) 50%, rgba(255,255,255,.03) 75%, transparent 75%, transparent);
  background-size: 20px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* min-height: 100vh; Removed to prevent excessive vertical space */
  box-sizing: border-box;
}

#test-container {
  max-width: 500px;
  width: 100%;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: center;
}

.hidden {
  display: none;
}

#start-page h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

#start-page p {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}

button {
  padding: 12px 25px;
  border: none;
  background: #B8860B; /* Gold button */
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: background-color 0.3s, transform 0.2s;
}

button:hover {
  background: #DAA520; /* Brighter gold on hover */
  transform: translateY(-2px);
}

.progress-bar-container {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 5px;
  margin-bottom: 20px;
}

.progress-bar {
  width: 0%;
  height: 10px;
  background-color: #B8860B; /* Gold progress bar */
  border-radius: 5px;
  transition: width 0.3s;
}

.question {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.answers button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 15px;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ddd;
  text-align: left;
  font-size: 15px;
  border-radius: 8px;
  transition: background-color 0.3s, border-color 0.3s;
}

.answers button:hover {
  background-color: #e0e0e0;
  border-color: #ccc;
}

/* Result Card Specific Styles */
.result-card {
  background: #FFFDD0; /* Cream for card background */
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  text-align: center;
  max-width: 400px; /* Optimal width for mobile screenshots */
  margin: 20px auto; /* Center the card */
  box-sizing: border-box;
  display: flex; /* Use flexbox for layout */
  flex-direction: column; /* Stack items vertically */
  justify-content: space-between; /* Distribute space */
  min-height: 500px; /* Ensure a consistent card height */
  border: 2px solid #B8860B; /* Gold border for the card */
}

.result-card img {
  max-width: 100%; /* Allow image to take full width of its container */
  height: auto; /* Maintain aspect ratio */
  border-radius: 8px; /* Rounded corners */
  border: 4px solid #DAA520; /* Brighter gold accent border for image */
  margin-bottom: 15px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.result-card h1 {
  font-size: 28px;
  color: #B8860B; /* Gold for main heading */
  margin-bottom: 5px; 
  line-height: 1.3;
}

.character-name {
  color: #DAA520; /* Brighter gold for emphasis */
  font-weight: 700;
}

.result-card p {
  font-size: 18px;
  color: #4A4A4A; /* Dark gray for readability */
  margin-bottom: 15px; 
  line-height: 1.5;
}

.result-card blockquote {
  font-style: italic;
  color: #696969; /* Dim gray for quote text */
  border-left: 4px solid #B8860B; /* Gold border for quote */
  padding-left: 20px;
  margin: 15px 0; 
  font-size: 16px;
  line-height: 1.6;
  background-color: #FFF8DC; /* Cornsilk for quote background */
  border-radius: 5px; 
  padding: 15px 20px; 
}

/* Removed .seal-image styles */

.inline-seal {
  height: 1.2em; /* Match font size */
  vertical-align: middle; /* Align with text baseline */
  margin-right: 5px; /* Small space to the right of the image */
  opacity: 0.8; /* Slightly transparent */
}

.sns-share {
    margin-top: 20px; 
    display: flex;
    justify-content: center;
    gap: 10px; 
    flex-wrap: wrap; 
}

.sns-share button {
    background-color: #A0522D; /* Sienna brown for buttons */
    color: #fff;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 5px;
    flex-grow: 1; 
    max-width: 180px; 
}

.sns-share button:hover {
    background-color: #8B4513; /* SaddleBrown on hover */
}

/* Responsive adjustments */
@media (max-width: 600px) {
  body {
    padding: 10px 10px; /* Adjusted padding for mobile */
  }
  #test-container, .result-card {
    padding: 20px;
    border-radius: 8px;
  }
  .result-card img {
    /* max-width: 100% and height: auto already handle responsiveness */
  }
  .result-card h1 {
    font-size: 24px;
  }
  .result-card p {
    font-size: 16px;
  }
  .result-card blockquote {
    font-size: 14px;
    padding-left: 15px;
  }
  .sns-share button {
    width: calc(50% - 10px); 
    max-width: none; 
  }
}
