/* =========================================
   BLUBBEN & DET GLADA LILLA TRÄDET
   FÄRGGLAD VERSION
========================================= */

*{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

body{

    font-family:
        "Trebuchet MS",
        Arial,
        sans-serif;

    background:
        linear-gradient(
            180deg,
            #7ed6ff 0%,
            #9ee9ff 45%,
            #7bdf66 100%
        );

    min-height:100vh;

    overflow-x:hidden;

    text-align:center;

    transition:background 1s;
}

/* =========================================
   LAYOUT
========================================= */

#game{

    max-width:1100px;

    margin:auto;

    padding:20px;

    position:relative;

    z-index:10;
}

.hidden{
    display:none;
}

/* =========================================
   SOL OCH MOLN
========================================= */

.sunDecor{

    position:fixed;

    top:20px;
    right:20px;

    font-size:120px;

    z-index:0;

    animation:
        sunSpin 30s linear infinite;
}

@keyframes sunSpin{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }
}

.cloud{

    position:fixed;

    font-size:80px;

    opacity:.9;

    z-index:0;
}

.cloud1{

    top:70px;

    animation:
        cloudMove1 35s linear infinite;
}

.cloud2{

    top:180px;

    animation:
        cloudMove2 40s linear infinite;
}

@keyframes cloudMove1{

    from{
        left:-150px;
    }

    to{
        left:110%;
    }
}

@keyframes cloudMove2{

    from{
        left:110%;
    }

    to{
        left:-150px;
    }
}

/* =========================================
   GRÄS
========================================= */

.grass{

    position:fixed;

    left:0;
    right:0;
    bottom:0;

    height:120px;

    background:
        linear-gradient(
            #5ecb5e,
            #2e7d32
        );

    z-index:0;
}

/* =========================================
   STARTBILD
========================================= */

.cover{

    width:100%;

    max-width:800px;

    border-radius:30px;

    border:8px solid white;

    box-shadow:
        0 10px 35px rgba(0,0,0,.25);
}

.intro{

    color:white;

    margin-top:20px;

    text-shadow:
        2px 2px 6px rgba(0,0,0,.4);
}

/* =========================================
   RUBRIKER
========================================= */

h1{

    font-size:3rem;

    color:white;

    text-shadow:
        0 3px 0 #2e7d32,
        0 8px 15px rgba(0,0,0,.3);

    animation:
        titleBounce 3s infinite;
}

@keyframes titleBounce{

    0%,100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-8px);
    }
}

.season{

    font-size:2.1rem;

    color:white;

    text-shadow:
        2px 2px 5px rgba(0,0,0,.5);

    margin-bottom:20px;
}

/* =========================================
   STJÄRNOR
========================================= */

.score{

    display:inline-block;

    margin-bottom:20px;

    padding:10px 25px;

    font-size:2rem;

    font-weight:bold;

    border-radius:30px;

    background:white;

    border:4px solid gold;

    box-shadow:
        0 0 25px gold;
}

/* =========================================
   KARAKTÄRER
========================================= */

.character-area{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:50px;

    margin-bottom:25px;
}

.character{

    width:240px;

    max-width:40vw;

    animation:
        floatCharacter 3s ease-in-out infinite;
}

@keyframes floatCharacter{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-12px);
    }

    100%{
        transform:translateY(0);
    }
}

/* =========================================
   FRÅGEKORT
========================================= */

.card{

    background:
        linear-gradient(
            #ffffff,
            #fffbe6
        );

    border:6px solid #ffd54f;

    border-radius:30px;

    padding:30px;

    max-width:850px;

    margin:auto;

    box-shadow:
        0 15px 30px rgba(0,0,0,.2);
}

#question{

    color:#333;

    font-size:1.7rem;

    line-height:1.5;

    margin-bottom:20px;
}

/* =========================================
   SVARSKNAPPAR
========================================= */

button{

    width:100%;

    margin-top:12px;

    padding:18px;

    border:none;

    border-radius:18px;

    cursor:pointer;

    color:white;

    font-size:1.15rem;

    font-weight:bold;

    background:
        linear-gradient(
            90deg,
            #ff9800,
            #ff5722
        );

    transition:.25s;
}

button:hover{

    transform:scale(1.05);

    filter:brightness(1.1);
}

button:active{

    transform:scale(.98);
}

/* =========================================
   FEEDBACK
========================================= */

#feedback{

    margin-top:15px;

    font-size:1.4rem;

    font-weight:bold;
}

/* =========================================
   DIPLOM
========================================= */

.diploma{

    background:
        linear-gradient(
            #fffbe0,
            #ffe580
        );

    padding:35px;

    border-radius:30px;

    border:8px solid gold;

    box-shadow:
        0 0 25px rgba(255,215,0,.7);
}

.diploma h1{

    color:#cc9900;

    text-shadow:none;
}

input{

    width:300px;

    max-width:100%;

    padding:12px;

    border:2px solid #ddd;

    border-radius:15px;

    text-align:center;

    font-size:1.1rem;
}

/* =========================================
   VÅR BIN
========================================= */

.bee{

    position:fixed;

    left:-80px;

    top:30%;

    font-size:40px;

    z-index:1;

    pointer-events:none;

    animation:
        beeFly 12s linear forwards;
}

@keyframes beeFly{

    0%{
        left:-80px;
        top:35%;
    }

    25%{
        top:15%;
    }

    50%{
        top:40%;
    }

    75%{
        top:20%;
    }

    100%{
        left:110%;
        top:25%;
    }
}

/* =========================================
   SOMMARSOL
========================================= */

.sun{

    position:fixed;

    top:20px;

    right:20px;

    font-size:90px;

    z-index:1;

    animation:
        sunPulse 3s infinite;
}

@keyframes sunPulse{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.15);
    }

    100%{
        transform:scale(1);
    }
}

/* =========================================
   HÖSTLÖV
========================================= */

.leaf{

    position:fixed;

    top:-50px;

    font-size:32px;

    z-index:1;

    pointer-events:none;
}

@keyframes leafFall{

    from{

        transform:
            translateY(-10vh)
            rotate(0deg);
    }

    to{

        transform:
            translateY(110vh)
            rotate(720deg);
    }
}

/* =========================================
   SNÖ
========================================= */

.snowflake{

    position:fixed;

    top:-40px;

    color:white;

    font-size:25px;

    z-index:1;

    pointer-events:none;

    text-shadow:
        0 0 10px white;
}

@keyframes snowFall{

    from{
        transform:translateY(-10vh);
    }

    to{
        transform:translateY(110vh);
    }
}

/* =========================================
   KONFETTI
========================================= */

.confetti{

    position:fixed;

    width:12px;

    height:12px;

    top:-10px;

    z-index:999;
}

/* =========================================
   MOBIL
========================================= */

@media(max-width:768px){

    h1{
        font-size:2.1rem;
    }

    .character{
        width:160px;
    }

    #question{
        font-size:1.3rem;
    }

    .season{
        font-size:1.5rem;
    }

    .sun{
        font-size:70px;
    }
}

@media(max-width:480px){

    .character-area{
        gap:15px;
    }

    .character{
        width:130px;
    }

    .card{
        padding:18px;
    }

}