/* =========================================
   RESET
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    height:100%;
}

body{
    overflow:hidden;
    font-family:Arial, Helvetica, sans-serif;
}

/* =========================================
   BACKGROUND
========================================= */

.background{

    width:100vw;
    height:100vh;

    background:
    linear-gradient(
        180deg,
        #5c2d68 0%,
        #34355d 40%,
        #08384d 100%
    );

    display:flex;
    justify-content:center;
    align-items:flex-start;
}

/* =========================================
   MAIN CONTAINER
========================================= */

.poll-container{

    width:100%;
    text-align:center;

    margin-top:20px;
}

/* =========================================
   HEADER
========================================= */

.header{

    position:relative;

    width:330px;

    margin:auto;

    margin-bottom:40px;
}

.logo{

    width:100%;

    display:block;

    user-select:none;
}

/* =========================================
   FACKEL SPRITE
========================================= */

#torch{

    position:absolute;

    top:-42px;
    left:41%;

    margin-left:66px;

    width:51px;
    height:105px;

    background-image:url("xrPhsl.png");
    background-repeat:no-repeat;
}

/* =========================================
   TEAMS
========================================= */

.team{

    transition:.2s;
}

.team:hover{

    transform:scale(1.05);
}

/* =========================================
   BANNER
========================================= */

.banner{

    position:relative;

    display:flex;

    justify-content:center;
    align-items:center;

    width:330px;

    margin:auto;

    margin-top:-50px;
}

.banner img{

    width:100%;

    display:block;
}

.banner-text{

    position:absolute;

    top:68%;
    left:50%;

    transform:translate(-50%,-50%);

    width:90%;

    text-align:center;

    color:#111;

    font-size:13px;
    font-weight:900;

    text-transform:uppercase;

    pointer-events:none;

    text-shadow:
        1px 1px 0 rgba(255,255,255,.3);
}

/* =========================================
   SPIELERZAHLEN
========================================= */

#bluePlayers,
#orangePlayers{

    margin-top:10px;

    color:white;

    font-size:18px;

    font-weight:bold;
}

/* =========================================
   SVG TORCHES
========================================= */

.torches0,
.torches1,
.torches2,
.torches3{

    display:flex;

    justify-content:center;

    gap:6px;

    margin-bottom:8px;
}

.torch-small{

    width:12px;
    height:29px;

    animation:
        flicker .7s infinite alternate;
}

.torch-small:nth-child(2){

    animation-delay:.15s;
}

.torch-small:nth-child(3){

    animation-delay:.3s;
}

/* =========================================
   VS
========================================= */

.versus{

    display:flex;

    justify-content:center;
    align-items:center;

    gap:20px;

    margin:20px 0;

    color:white;

    font-size:28px;
    font-weight:bold;
}

.line{

    width:55px;
    height:2px;

    background:white;

    opacity:.7;
}

/* =========================================
   LOBBY
========================================= */

#lobby{

    display:flex;

    justify-content:center;

    gap:120px;

    margin-top:40px;

    color:white;
}

.lobby-column{

    min-width:250px;
}

.lobby-column h2{

    margin-bottom:15px;

    font-size:28px;
}

.lobby-column ul{

    list-style:none;
}

.lobby-column li{

    margin-bottom:8px;

    font-size:22px;
}

/* =========================================
   START BUTTON
========================================= */

#startGame{

    margin-top:30px;

    padding:16px 40px;

    border:none;

    border-radius:12px;

    background:#f5bf3b;

    color:#111;

    font-size:22px;

    font-weight:900;

    cursor:pointer;

    transition:.2s;
}

#startGame:hover{

    transform:scale(1.05);
}

/* =========================================
   GAME AREA
========================================= */

#gameArea{

    margin-top:40px;

    color:white;
}

/* =========================================
   QUESTION
========================================= */

#question{

    font-size:38px;

    font-weight:bold;

    margin-bottom:35px;
}

/* =========================================
   BOARD
========================================= */

#board{

    display:grid;

    grid-template-columns:
        repeat(3, 150px);

    gap:15px;

    justify-content:center;
}

.card{

    width:150px;
    height:150px;

    background:white;

    border-radius:12px;

    color:black;

    font-size:42px;

    font-weight:bold;

    display:flex;

    justify-content:center;
    align-items:center;

    cursor:pointer;

    transition:.2s;
}

.card:hover{

    transform:scale(1.05);
}

/* =========================================
   CONNECTED PAGE
========================================= */

.connected{

    width:100vw;
    height:100vh;

    display:flex;
    flex-direction:column;

    justify-content:center;
    align-items:center;

    background:#2f0540;

    color:white;
}





#roomCode{    
    padding: 10px 40px;
    border: 2px solid #000;
    border-radius: 12px;
    background: #f5bf3b;
    color: #111;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s;
}

#playerName{    
    padding: 10px 40px;
    border: 2px solid #000;
    border-radius: 12px;
    background: #f5bf3b;
    color: #111;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s;
}

#teamSelect{    
    padding: 10px 40px;
    border: 2px solid #000;
    border-radius: 12px;
    background: #f5bf3b;
    color: #111;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s;
}

#joinBtn{
    margin-top: 80px;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    background: #f5bf3b;
    color: #111;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s;
}

#joinBtn:hover{
    transform: scale(1.05);
}

#indexBtn{
    margin-top: 20px;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    background: #f5bf3b;
    color: #111;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
}

#indexBtn:hover{
    transform: scale(1.05);
}

#nextRound{
    margin-top: 20px;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    background: #f5bf3b;
    color: #111;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s;
    text-decoration: none;
}

#nextRound:hover{
    transform: scale(1.05);
}

.img_ending{
    width:15%;
    display:block;
    margin: 0 auto;
    user-select:none;
}

/* =========================================
   HOST GETRENNT FENSTER
========================================= */

#hostDisconnectOverlay{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,0.55);

    display:flex;

    justify-content:center;
    align-items:center;

    z-index:999999;
}

#hostDisconnectBox{

    width:560px;

    background:#efefef;

    border-radius:30px;

    padding:40px;

    text-align:center;

    box-shadow:
        0 10px 0 rgba(0,0,0,.25);
}

#hostDisconnectImage{

    width:140px;

    display:block;

    margin:0 auto 20px auto;

    user-select:none;
}

#hostDisconnectBox h1{

    color:#333;

    font-size:35px;

    margin-bottom:15px;
}

#hostDisconnectBox p{

    color:#555;

    font-size:20px;

    margin-bottom:35px;
}

#hostDisconnectButton{

    width:100%;

    padding:20px;

    border:none;

    border-radius:18px;

    background:#4a57ff;

    color:white;

    font-size:22px;

    font-weight:bold;

    cursor:pointer;

    box-shadow:
        0 5px 0 rgba(0,0,0,.25);
}

#hostDisconnectButton:hover{

    transform:translateY(1px);
}

/* =========================================
   ANIMATION
========================================= */

@keyframes flicker{

    from{

        transform:
            translateY(0)
            scale(1);
    }

    to{

        transform:
            translateY(-3px)
            scale(1.12);
    }

}