/* =====================================================
   JK-Druckshop Rabattspiel
===================================================== */

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

html,body{
    width:100%;
    height:100%;
    overflow:hidden;
    font-family:Arial,Helvetica,sans-serif;
    background:#10345c;
}

/* Hintergrund */

body{
    background:
        radial-gradient(circle at top,#1b5c95 0%,#10345c 40%,#081d37 100%);
}

/* =======================
   Startbildschirm
======================= */

#startScreen{

    position:absolute;
    inset:0;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    color:white;

    text-align:center;

    z-index:100;

}

#logo{

    width:260px;
    margin-bottom:30px;

}

#startScreen h1{

    font-size:46px;
    margin-bottom:20px;

}

#startScreen p{

    font-size:22px;
    max-width:700px;
    line-height:1.5;
    margin-bottom:15px;

}

/* =======================
   Buttons
======================= */

button{

    cursor:pointer;

    border:none;

    border-radius:10px;

    transition:.25s;

    font-weight:bold;

}

#startButton{

    margin-top:30px;

    background:#59b33a;

    color:white;

    padding:18px 40px;

    font-size:24px;

}

#startButton:hover{

    transform:scale(1.05);

}

/* =======================
   Countdown
======================= */

#countdown{

    position:absolute;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    font-size:150px;

    font-weight:bold;

    color:white;

    background:rgba(0,0,0,.35);

    z-index:200;

}

/* =======================
   Spielfeld
======================= */

#game{

    display:none;

    position:absolute;

    inset:0;

    overflow:hidden;

}

/* =======================
   HUD
======================= */

#hud{

    position:absolute;

    top:20px;

    left:20px;

    display:flex;

    gap:15px;

    z-index:50;

}

.box{

    background:white;

    color:#10345c;

    border-radius:10px;

    padding:12px 18px;

    min-width:120px;

    text-align:center;

    font-weight:bold;

    box-shadow:0 5px 15px rgba(0,0,0,.3);

}

.box span{

    display:block;

    margin-top:8px;

    font-size:30px;

    color:#59b33a;

}

/* =======================
   Spieler
======================= */

#player{

    position:absolute;

    bottom:25px;

    width:110px;

    height:28px;

    border-radius:20px;

    background:#59b33a;

    left:50%;

    transform:translateX(-50%);

    box-shadow:0 0 20px rgba(0,0,0,.4);

}

/* =======================
   Spielobjekte
======================= */

.item{

    position:absolute;

    width:48px;

    height:48px;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:42px;

    user-select:none;

}

/* =======================
   Ergebnis
======================= */

#result{

    position:absolute;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.55);

    z-index:300;

}

.card{

    width:520px;

    max-width:92%;

    background:white;

    border-radius:20px;

    padding:35px;

    text-align:center;

    box-shadow:0 20px 50px rgba(0,0,0,.4);

}

.card h2{

    color:#10345c;

    margin-bottom:25px;

    font-size:34px;

}

#output{

    color:#10345c;

    font-size:22px;

    line-height:1.7;

    margin-bottom:25px;

}

#couponCode{

    display:inline-block;

    background:#eef4fb;

    color:#10345c;

    border:2px dashed #59b33a;

    border-radius:10px;

    padding:14px 25px;

    margin:20px 0;

    font-size:34px;

    letter-spacing:3px;

    font-weight:bold;

}

/* =======================
   Buttons Ergebnis
======================= */

#copyButton,
#shopButton,
#restartButton{

    width:100%;

    padding:16px;

    margin-top:12px;

    font-size:19px;

}

#copyButton{

    background:#59b33a;

    color:white;

}

#shopButton{

    background:#ff9800;

    color:white;

}

#restartButton{

    background:#10345c;

    color:white;

}

#copyButton:hover,
#shopButton:hover,
#restartButton:hover{

    transform:scale(1.02);

}

/* =======================
   Responsive
======================= */

@media(max-width:768px){

#logo{

    width:180px;

}

#startScreen h1{

    font-size:34px;

}

#startScreen p{

    font-size:18px;
    padding:0 20px;

}

#countdown{

    font-size:100px;

}

.card{

    padding:25px;

}

#couponCode{

    font-size:26px;

}

.box{

    min-width:90px;

}

.box span{

    font-size:24px;

}

}