@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;600;800&family=Fredoka:wght@400;600;700&display=swap');

:root {
    --primary: #FF6B6B;
    /* Watermelon */
    --secondary: #4ECDC4;
    /* Mint */
    --accent: #FFE66D;
    /* Lemon */
    --bg-color: #87CEEB;
    /* Sky Blue */
    --text-main: #2D3436;
    /* Dark Grey - FIXED COLOR */
    --white: #FFFFFF;

    --shadow-pop: 0px 8px 0px rgba(0, 0, 0, 0.1), 0px 10px 20px rgba(0, 0, 0, 0.05);
    --radius: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fredoka', 'Kanit', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(180deg, #87CEEB 0%, #E0F7FA 100%);
    min-height: 100vh;
    color: var(--text-main);
    /* Force Dark Text */
    overflow-x: hidden;
    position: relative;
    font-weight: 600;
}

/* Clouds Animation Background */
body::before {
    content: "☁️";
    position: fixed;
    top: 10%;
    left: -10%;
    font-size: 5rem;
    opacity: 0.8;
    animation: floatCloud 20s linear infinite;
    z-index: -1;
}

body::after {
    content: "⛅";
    position: fixed;
    top: 30%;
    left: -10%;
    font-size: 8rem;
    opacity: 0.6;
    animation: floatCloud 35s linear infinite;
    animation-delay: 5s;
    z-index: -1;
}

@keyframes floatCloud {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(120vw);
    }
}

/* Card Style - "Marshmallow Look" */
.glass-panel,
.project-card,
.login-card,
.question-card,
.waiting-room,
.top-bar {
    background: var(--white);
    border-radius: var(--radius);
    border: 4px solid var(--white);
    padding: 2rem;
    box-shadow: var(--shadow-pop);
    transform: translateY(0);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-main) !important;
    /* Ensure text inside cards is dark */
}

/* Typography - High Contrast */
h1,
h2,
h3,
.logo-text,
p,
div {
    color: var(--text-main);
}

h1,
h2,
h3,
.logo-text {
    font-weight: 800;
    letter-spacing: -1px;
    color: #2D3436 !important;
    /* Force Dark Color */
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8) !important;
    /* White outline for pop */
    -webkit-text-fill-color: #2D3436 !important;
    /* Override gradient fills */
    background: none !important;
    /* Remove gradient backgrounds */
}

/* Buttons - "Candy Buttons" */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.1s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:active {
    transform: translateY(6px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.15);
}

/* Button Colors & Text Contrast */
.btn-primary {
    background: var(--primary);
    color: white !important;
    /* White text on dark/red button is fine */
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: white;
    color: var(--text-main) !important;
    /* Dark text on white button */
    border: 3px solid #eee;
}

.btn-danger {
    background: #FF4757;
    color: white !important;
}

/* Game Answers - Specific Contrast */
.answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    margin-top: 2rem;
}

.answer-card,
.game-btn {
    border-radius: 20px;
    padding: 2rem;
    font-size: 2rem;
    font-weight: 800;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-red {
    background: #FF6B6B;
    color: white !important;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.bg-blue {
    background: #4ECDC4;
    color: #004d40 !important;
    text-shadow: none;
}

/* Dark Teal on Mint */
.bg-yellow {
    background: #FFE66D;
    color: #5d4037 !important;
    text-shadow: none;
}

/* Dark Brown on Yellow */
.bg-green {
    background: #95E1D3;
    color: #1b5e20 !important;
    text-shadow: none;
}

/* Dark Green on Light Green */

/* Form Inputs */
.form-control {
    width: 100%;
    padding: 1rem;
    border: 3px solid #eee;
    border-radius: 20px;
    font-size: 1.2rem;
    background: #f9f9f9;
    font-weight: 600;
    color: #2D3436 !important;
}

/* Utility */
.podium-name,
.podium-score {
    color: #2D3436 !important;
    text-shadow: none !important;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Animation Utils */
.hidden {
    display: none !important;
}

.animate-fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}