/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: 'Unkempt', cursive;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main Container */
.intro-container {
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  padding-bottom: 2rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  transition: background-image 0.5s ease-in-out;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: 'Unkempt', cursive;
}

/* Theme: Neutral */
.theme-neutral {
  background-image: url('../assets/neutral-bg.jpg');
  background-color: #f5f5f5;
}

/* Header */
.intro-header {
  width: 100%;
  padding: 20px;
  text-align: center;
  z-index: 1000;
  flex: 0 0 55px;
}

.brand-title {
  font-family: 'Unkempt', cursive;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

/* Step Content */
.intro-step {
  width: 100%;
  max-width: 900px;
  animation: fadeIn 0.5s ease-in-out;
  flex: 1;
  position: relative;
  z-index: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.step-mode-selection {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

/* Character Images */
.character-image {
  width: 350px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.character-image img {
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.character-image:hover img {
  transform: scale(1.05);
}

.cloud-background {
  background-image: url('../assets/cloud.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.thunder-background {
  background-image: url('../assets/thunder.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Mode Rows */
.mode-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

/* Question Title */
.question-title {
  color: #9bdaf2;
  margin: 2rem 0;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.is-size-3 {
  font-size: 2rem !important;
}

.has-text-weight-bold {
  font-weight: 700 !important;
}

.m-0 {
  margin: 0 !important;
}

/* Answer Options */
.answer-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.answer-options.is-half {
  width: 50%;
  min-width: 300px;
  max-width: 600px;
}

.answer-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 32px;
  border: none !important;
  outline: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: -8px -8px 16px rgba(255, 255, 255, 0.8);
  color: #ffffff;
  text-decoration: none;
}

.answer-label {
  font-size: 1.8rem;
  font-family: 'Unkempt', cursive;
  color: #ffffff;
  font-weight: 700;
}

.answer-button:hover {
  transform: translateY(-2px);
  box-shadow: -10px -10px 20px rgba(255, 255, 255, 0.9);
  border: none !important;
}

.answer-button:active {
  transform: translateY(0);
  box-shadow: -6px -6px 12px rgba(255, 255, 255, 0.7);
  border: none !important;
}

.answer-button:focus {
  border: none !important;
  outline: none;
}

/* Button Color: Purple */
.btn-purple {
  background: #8704bf !important;
}

.btn-purple:hover {
  background: #a005e0 !important;
}

.btn-purple:active {
  background-color: #a005e0 !important;
}

.btn-purple.selected {
  background: #6a0396 !important;
  box-shadow: inset -4px -4px 8px rgba(0, 0, 0, 0.3),
    inset 4px 4px 8px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(0) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .intro-container {
    padding: 1rem;
  }

  .brand-title {
    font-size: 1.5rem;
  }

  .intro-header {
    padding: 15px;
  }

  .question-title {
    font-size: 1.6rem !important;
    line-height: 1.6rem;
  }

  .character-image {
    width: 300px;
    height: 300px;
  }

  .answer-options {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .answer-options.is-half {
    width: 70%;
  }

  .answer-label {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 1.3rem;
  }

  .intro-header {
    padding: 12px;
  }

  .question-title {
    font-size: 1.4rem !important;
  }

  .character-image {
    width: 250px;
    height: 250px;
  }

  .answer-label {
    font-size: 1.3rem;
  }
}
