/* ============================================
   PART 2: MAKE IT YOUR OWN!
   ============================================

   Change the colors and fonts below to
   customize how your Mad Libs looks!

   TRY THESE COLORS: red, blue, green, purple,
   orange, pink, yellow, black, white

   TRY THESE FONTS: Arial, Comic Sans MS,
   Georgia, Courier New, Impact
   ============================================ */

/* Aspire Coding Academy Brand Colors */
:root {
  --primary: #2A53DA;
  --primary-bold: #0e33ad;
  --accent: #59ae20;
}

/* Change the background color of the page - RETRO GAMING THEME! */
body {
    background: #000000;
    position: relative;
}

/* Change the color of the title - PIXEL FONT with ANIMATED GLOW! */
.title {
    color: #7ddb3a;
    font-family: 'Press Start 2P', cursive;
    text-shadow:
        3px 3px 0px #59ae20,
        0 0 20px rgba(125, 219, 58, 0.8);
    font-size: 2rem;
    line-height: 1.8;
    letter-spacing: 2px;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow:
            3px 3px 0px #59ae20;
    }
    50% {
        text-shadow:
            3px 3px 0px #59ae20,
            0 0 20px rgba(125, 219, 58, 0.5);
    }
}

/* Subtitle styling - RETRO! */
.subtitle {
    color: #6db4ff;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(109, 180, 255, 0.8);
}

/* Change how the questions look */
.input-label {
    color: var(--primary-bold);
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
}

/* Change how the story looks - RETRO TEXT! */
.story {
    color: #ffffff;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    line-height: 2;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

/* Change the button color - ARCADE BUTTON! */
.button {
    background: linear-gradient(180deg, #59ae20 0%, #3d7a15 100%);
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    border: 3px solid #59ae20;
    box-shadow:
        0 0 20px rgba(89, 174, 32, 0.6),
        inset 0 -4px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.button:hover {
    background: linear-gradient(180deg, #6cc428 0%, #59ae20 100%);
    box-shadow:
        0 0 30px rgba(89, 174, 32, 0.8),
        inset 0 -4px 0 rgba(0, 0, 0, 0.3);
}

/* Style the input field border */
.word-input:focus {
    border-color: var(--accent);
}

/* Progress bar colors */
.progress-fill {
    background: linear-gradient(90deg, var(--accent), #7bc940);
}

/* Logo styling */
.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

footer {
    color: #6db4ff;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75rem;
    line-height: 1.6;
}

footer a {
    color: #7ddb3a;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    color: #9eff5a;
    text-shadow: 0 0 10px rgba(158, 255, 90, 0.8);
}

/* Highlight user's words in the story */
.story .highlight {
    background: transparent;
    color: #00d4ff;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
}

/* ========================================
   FUN GAME-LIKE EFFECTS!
   ======================================== */

/* Simple Retro Button Animation */
.button {
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    transform: translateY(0);
}

.button:hover {
    transform: translateY(-3px);
}

.button:active {
    transform: translateY(2px);
    box-shadow:
        0 0 15px rgba(255, 0, 128, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

/* Shake Animation for Empty Input */
.word-input.shake {
    animation: shake 0.5s ease;
    border-color: #ff6b6b !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Retro Gaming Background - Grid Pattern with Green Lines */
.retro-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(0deg, transparent 24%, rgba(89, 174, 32, 0.15) 25%, rgba(89, 174, 32, 0.15) 26%, transparent 27%, transparent 74%, rgba(89, 174, 32, 0.15) 75%, rgba(89, 174, 32, 0.15) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(89, 174, 32, 0.15) 25%, rgba(89, 174, 32, 0.15) 26%, transparent 27%, transparent 74%, rgba(89, 174, 32, 0.15) 75%, rgba(89, 174, 32, 0.15) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* CRT Scanline Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9998;
    animation: scanlineScroll 8s linear infinite;
}

@keyframes scanlineScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* Make sure container is above retro background */
.container {
    position: relative;
    z-index: 10;
}

/* Retro Card Styling - 8-bit Style with Solid Shadow */
.card {
    background: #0a0a14 !important;
    border: 4px solid #2A53DA;
    border-radius: 0 !important;
    box-shadow: 8px 8px 0 rgba(42, 83, 218, 0.4);
}

/* Retro Input Styling */
.word-input {
    background: #000000 !important;
    border: 3px solid #2A53DA !important;
    color: #7ddb3a !important;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem !important;
    box-shadow: 0 0 10px rgba(42, 83, 218, 0.5);
}

.word-input:focus {
    border-color: #59ae20 !important;
    box-shadow: 0 0 20px rgba(89, 174, 32, 0.8);
}

/* Retro Progress Bar */
.progress-bar {
    background: #000000 !important;
    border: 2px solid #2A53DA;
}

.progress-fill {
    background: linear-gradient(90deg, #2A53DA, #59ae20) !important;
    box-shadow: 0 0 10px rgba(89, 174, 32, 0.8);
}

#progress-text {
    color: #6db4ff !important;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem !important;
    text-shadow: 0 0 5px rgba(109, 180, 255, 0.8);
}

/* Retro Label Text */
.input-label {
    color: #6db4ff !important;
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem !important;
    line-height: 1.6;
    text-shadow: 2px 2px 0px rgba(42, 83, 218, 0.8);
}

/* Add position relative to card for comic burst */
.card {
    position: relative;
}
