/* Theme Variables */
:root {
    --theme-bg: #f0f0f0;
    --theme-text: #333333;
    --theme-card-bg: #ffffff;
    --theme-border: #dee2e6;
    --theme-primary: #007bff;
    --theme-secondary: #6c757d;
    --theme-success: #28a745;
    --theme-info: #17a2b8;
    --theme-warning: #ffc107;
    --theme-danger: #dc3545;
}

/* Logo styles */
.logo-img {
    max-width: 250px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Base styles */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: var(--theme-bg);
    color: var(--theme-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* Button styles */
.button-56 {
  align-items: center;
  background-color: #fee6e3;
  border: none;
  border-radius: 8px;
  box-sizing: border-box;
  color: #111;
  cursor: pointer;
  display: flex;
  font-family: Inter,sans-serif;
  font-size: 16px;
  height: 48px;
  justify-content: center;
  line-height: 24px;
  max-width: 100%;
  padding: 0 25px;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

/* Special styling for answer button */
#answer-btn.button-56 {
  background-color: #98FB98;
}

#answer-btn.button-56:active {
  background-color: #90EE90;
}

.button-56:after {
  background-color: #111;
  border-radius: 8px;
  content: "";
  display: block;
  height: 48px;
  left: 0;
  width: 100%;
  position: absolute;
  top: -2px;
  transform: translate(8px, 8px);
  transition: transform .2s ease-out;
  z-index: -1;
}

.button-56:hover:after {
  transform: translate(0, 0);
}

.button-56:active {
  background-color: #ffdeda;
  outline: 0;
}

.button-56:hover {
  outline: 0;
}

@media (min-width: 768px) {
  .button-56 {
    padding: 0 40px;
  }
}

/* Theme-specific styles - REMOVED as replaced by theme variants above */
/* [data-bs-theme="light"] {
    background-color: #f0f0f0;
    color: #333333;
}

[data-bs-theme="dark"] {
    background-color: var(--bs-dark);
    color: var(--bs-light);
} */

/* Typography */
h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.25rem;
}

/* Buttons */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-secondary {
    background-color: #007bff;
    color: #ffffff;
    border: none;
}

.btn-secondary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Cards */
.card {
    background-color: var(--theme-card-bg); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--theme-border); 
}

/* Links */
a {
    color: var(--theme-primary); 
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
    color: darken(var(--theme-primary), 10%); 
}

/* Riddle specific styles */
.riddle-text {
    min-height: 60px;
    transition: opacity 0.3s ease;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333333;
    line-height: 1.6;
    text-align: left;
}

.riddle-text p {
    margin-bottom: 1rem;
}

.answer-text {
    min-height: 40px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--theme-info);
    line-height: 1.5;
    text-align: left;
    padding: 1rem;
    background-color: rgba(var(--theme-info-rgb), 0.1);
    border-radius: 8px;
}

.answer-text.visible {
    opacity: 1;
    transform: translateY(0);
}

#riddle-container {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0.75rem;
}

/* Alert styles */
.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    line-height: 1.6;
}

.alert-info {
    background-color: rgba(var(--theme-info), 0.1); 
    border: 1px solid rgba(var(--theme-info), 0.2); 
}

/* Responsive Design */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 0.625rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .riddle-text {
        font-size: 1rem;
    }
}

/* Firework Animation */
@keyframes firework-explosion {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

@keyframes particle-animation {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: var(--particle-end); opacity: 0; }
}

.firework {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    opacity: 0;
    pointer-events: none;
}

.firework::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255,223,0,0.8) 0%, 
        rgba(255,223,0,0.3) 50%, 
        rgba(255,223,0,0) 100%);
    transform: translate(-50%, -50%) scale(0);
    animation: firework-explosion 0.8s ease-out forwards;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
}

/* Generate particles with different colors and trajectories */
.firework.active .particle {
    animation: particle-animation 1s ease-out forwards;
}

.answer-revealed .firework {
    opacity: 1;
}

/* Define particles with different colors and trajectories */
.particle:nth-child(1) { background: #FFD700; --particle-end: translate(50px, -50px); animation-delay: 0.1s; }
.particle:nth-child(2) { background: #FF69B4; --particle-end: translate(-30px, 60px); animation-delay: 0.2s; }
.particle:nth-child(3) { background: #87CEEB; --particle-end: translate(70px, 40px); animation-delay: 0.15s; }
.particle:nth-child(4) { background: #98FB98; --particle-end: translate(-50px, -40px); animation-delay: 0.25s; }
.particle:nth-child(5) { background: #DDA0DD; --particle-end: translate(40px, 60px); animation-delay: 0.3s; }
.particle:nth-child(6) { background: #FFD700; --particle-end: translate(-60px, -30px); animation-delay: 0.2s; }
.particle:nth-child(7) { background: #FF69B4; --particle-end: translate(30px, -60px); animation-delay: 0.25s; }
.particle:nth-child(8) { background: #87CEEB; --particle-end: translate(-40px, 50px); animation-delay: 0.3s; }