/* Connor's Firetrucks Styles */
/* Jira: AD-34 | Created: 2026-02-19 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Baloo 2', cursive, sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #ffffff 100%);
    color: #1a1a1a;
    min-height: 100vh;
    padding: 20px;
    font-size: 18px;
    line-height: 1.6;
}

/* Sound Control */
.sound-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.mute-btn {
    background: #FFD700;
    border: 3px solid #1a1a1a;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.mute-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.mute-btn:active {
    transform: scale(0.95);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #DC143C 0%, #FF4500 100%);
    border-radius: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    color: #FFD700;
    text-shadow: 4px 4px 0px #1a1a1a;
    margin-bottom: 15px;
    animation: bounce 1s infinite alternate;
}

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

.hero-subtitle {
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 2px 2px 0px #1a1a1a;
}

/* Dalmatian Mascot Section */
.dalmatian-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dalmatian-container {
    cursor: pointer;
    transition: transform 0.3s;
}

.dalmatian-container:hover {
    transform: scale(1.05);
}

.dalmatian-svg {
    width: 200px;
    height: 200px;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
}

.tail {
    animation: wagTail 0.5s infinite alternate;
    transform-origin: 140px 110px;
}

@keyframes wagTail {
    0% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(10deg);
    }
}

.dalmatian-container.clicked {
    animation: jump 0.6s ease-in-out;
}

@keyframes jump {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(-5deg);
    }
    50% {
        transform: translateY(-50px) rotate(0deg);
    }
    75% {
        transform: translateY(-30px) rotate(5deg);
    }
}

.speech-bubble {
    background: #ffffff;
    border: 4px solid #1a1a1a;
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    position: relative;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 20px solid #1a1a1a;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 16px solid #ffffff;
}

.speech-bubble p {
    font-size: 1.4rem;
    font-weight: 700;
    color: #DC143C;
    text-align: center;
}

/* Captain Phoenix Section */
.captain-phoenix {
    margin-bottom: 50px;
    animation: fadeIn 1.2s ease-in;
}

.badge-container {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 6px solid #1a1a1a;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.badge-container h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.8rem;
    color: #DC143C;
    text-align: center;
    text-shadow: 3px 3px 0px #1a1a1a;
    margin-bottom: 30px;
}

.captain-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.captain-character {
    cursor: pointer;
    transition: transform 0.3s;
}

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

.captain-svg {
    width: 200px;
    height: 250px;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.3));
}

.waving-hand {
    animation: wave 0.8s infinite alternate;
    transform-origin: 145px 125px;
}

@keyframes wave {
    0% {
        transform: rotate(-20deg);
    }
    100% {
        transform: rotate(20deg);
    }
}

.captain-character.active {
    animation: captainWave 1s ease-in-out;
}

@keyframes captainWave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.captain-info {
    text-align: center;
    max-width: 600px;
}

.captain-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.8;
}

.captain-btn {
    font-family: 'Baloo 2', cursive;
    font-size: 1.5rem;
    font-weight: 800;
    background: #DC143C;
    color: #FFD700;
    border: 4px solid #1a1a1a;
    border-radius: 20px;
    padding: 15px 40px;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    min-width: 200px;
    min-height: 60px;
}

.captain-btn:hover {
    background: #FF1744;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.captain-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.captain-message {
    font-size: 1.8rem;
    font-weight: 800;
    color: #DC143C;
    margin-top: 20px;
    min-height: 60px;
    text-shadow: 2px 2px 0px #ffffff;
}

/* Firetrucks Section */
.firetrucks {
    margin-bottom: 50px;
}

.firetrucks h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: #DC143C;
    text-align: center;
    text-shadow: 3px 3px 0px #FFD700;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 30px;
}

.truck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.truck-card {
    background: #ffffff;
    border: 5px solid #1a1a1a;
    border-radius: 25px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.truck-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.truck-card h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #DC143C;
    margin-bottom: 20px;
}

.truck-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 20px 0;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.2));
}

.truck-card.driving {
    animation: drive 2s ease-in-out;
}

@keyframes drive {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(100px);
    }
    100% {
        transform: translateX(0);
    }
}

.truck-fact {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4169E1;
    margin-top: 15px;
}

/* Fun Facts Section */
.fun-facts {
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 30px;
    border: 5px solid #1a1a1a;
}

.fun-facts h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.8rem;
    color: #DC143C;
    text-align: center;
    text-shadow: 3px 3px 0px #1a1a1a;
    margin-bottom: 30px;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.fact-card {
    background: #ffffff;
    border: 4px solid #1a1a1a;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.fact-card:hover {
    transform: scale(1.05);
}

.fact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.fact-card p {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Counting Game Section */
.counting-game {
    margin-bottom: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
    border-radius: 30px;
    border: 5px solid #1a1a1a;
    text-align: center;
}

.counting-game h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.8rem;
    color: #FFD700;
    text-shadow: 3px 3px 0px #1a1a1a;
    margin-bottom: 20px;
}

.game-instruction {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
}

.counting-display {
    font-size: 4rem;
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.mini-truck {
    animation: truckWiggle 1s infinite alternate;
}

.mini-truck:nth-child(2) {
    animation-delay: 0.2s;
}

.mini-truck:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes truckWiggle {
    0% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(5deg);
    }
}

.number-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.number-btn {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    background: #FFD700;
    color: #1a1a1a;
    border: 5px solid #1a1a1a;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    min-width: 80px;
    min-height: 80px;
}

.number-btn:hover {
    background: #FFA500;
    transform: scale(1.1);
}

.number-btn:active {
    transform: scale(0.95);
}

.number-btn.correct {
    animation: celebrate 0.6s ease-in-out;
}

@keyframes celebrate {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.game-result {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: #FFD700;
    margin-top: 30px;
    min-height: 60px;
    text-shadow: 3px 3px 0px #1a1a1a;
}

/* Colors Section */
.colors-section {
    margin-bottom: 50px;
}

.colors-section h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.8rem;
    color: #DC143C;
    text-align: center;
    text-shadow: 3px 3px 0px #FFD700;
    margin-bottom: 30px;
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.color-card {
    border: 5px solid #1a1a1a;
    border-radius: 25px;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.color-card:hover {
    transform: scale(1.05);
}

.color-card p {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000;
}

/* Footer Dalmatian */
.footer-dalmatian {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #DC143C 0%, #FF4500 100%);
    border-radius: 30px;
    border: 5px solid #1a1a1a;
    margin-bottom: 20px;
}

.small-dalmatian {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.3));
}

.footer-dalmatian p {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #FFD700;
    text-shadow: 3px 3px 0px #1a1a1a;
}

/* Confetti Animation */
@keyframes confetti {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    z-index: 999;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .dalmatian-svg {
        width: 150px;
        height: 150px;
    }

    .captain-svg {
        width: 150px;
        height: 187.5px;
    }

    .badge-container h2 {
        font-size: 2rem;
    }

    .captain-text {
        font-size: 1.3rem;
    }

    .captain-btn {
        font-size: 1.2rem;
        padding: 12px 30px;
    }

    .firetrucks h2 {
        font-size: 2.2rem;
    }

    .truck-grid {
        grid-template-columns: 1fr;
    }

    .number-btn {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .number-buttons {
        gap: 15px;
    }

    .counting-display {
        font-size: 3rem;
        gap: 10px;
        flex-wrap: wrap;
    }
}

@media (min-width: 769px) {
    .captain-content {
        flex-direction: row;
        justify-content: center;
    }

    .captain-info {
        text-align: left;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
