*{
    font-size: 10px;
    font-family: 'Hachi Maru Pop', cursive;
}

/*Animation CSS */

.animation1{
    position: absolute;
    left:0;
    top:0;
    width: 50%;
    height: 100%;
    background: linear-gradient( #fafaff, #fdc555);
    z-index: 1;
    overflow: hidden;
}

.animation2{
    position:fixed;
    top: 50%;
    left:50%;
    font-size: 5rem;
    font-weight: 900;
    opacity: 1;
    z-index: 2;
    transform: translate(-50%,-50%);
}

.animation3{
    position: absolute;
    top:0;
    right:0;
    width: 50%;
    height: 100%;
    background: linear-gradient( #fafaff, #fdc555);
    z-index: 1;
    overflow: hidden;
}


/* General CSS */

h1{
    font-size: 3rem;
    margin-top: 1rem;
    margin-bottom:0.25rem;
    color: #12355B;
    text-align: center;   
}

h2{
    font-size: 2rem;
    font-weight: 900;
    color: #12355B; 
    margin-top: 2rem;
}

.background{
    position: absolute;
    top:0;
    right:0px;
    left:0px;
    height: 100vh;
    background: linear-gradient( #fdc555, #fafaff );
    z-index: -2;
}

.background-image{
    position: absolute;
    width: 100%;
    height: 80%;
    background: url('../images/snake.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size:contain;
    left:50%;
    top:50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter:drop-shadow(12px 12px 20px #12355B); 
}

#game-over-section,
#info-section{
    text-align: center;
    position: absolute;
    width: 75%;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
}

.invisible{
    display: none;
}

.grayscale{
    filter: grayscale(100%);
    opacity: 0.3;
}

/* Info section CSS */

#info-section div{
    margin-top: 7rem;
}

.info-header{
    display: none;
}

.btn-gamemode span{
    padding:1rem;
    font-size: 1.5rem;
    font-weight: 400;
    max-width: 75%;
    background: rgba(255, 255, 255, 0.5);
    border: red solid 1px;
    border-radius: 5px;
    cursor: pointer;
}

.active-gamemode span{
    background: #fdc555 ;
    box-shadow: 0.5rem 0.75rem 0.75rem rgb(0, 0, 0);
}

.btn-start-game{
    border: red solid 1px;
    border-radius: 5px;
    font-size: 3rem;
    background: rgba(255, 41, 41, 0.7);
    box-shadow: 0.5rem 0.75rem 0.75rem rgb(0, 0, 0);
    cursor: pointer;
}

.btn-start-game:hover{
    background: rgba(255, 41, 41, 1);
}

/* Game over section css */

#game-over-section{
    color: #12355B;
}

#game-over-section div{
   display: inline-block;
}

#game-over-section h2{
    color: red;
}

#game-over-section p,
#game-over-section span{
    margin-top: 2.5rem;
    font-weight: 600;
    font-size: 1.5rem;
}

table{
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    text-align: center;
}

table th{
    font-size: 1rem;
    font-weight: 800;
    padding: 1rem;
    color: red;
    text-align: left;
}

table td{
    font-size: 1rem;
    font-weight: 800;
}

/* game-section */

.game-info{
    display: none;
}

.game-info-header{
    display: none;
}

#game-section{
    position: relative;
    margin-top: 2rem;
    text-align: center;
}

/* Canvas css */

canvas{
    background: rgba(111, 138, 183, 0.5);
}

/* Controls css */


#arrows-control{
    margin-top: 1.5rem;
}

#controls i{
    border: black solid 2px;
    border-radius: 15%;
    padding: 1rem;
    margin-right: 3em;
    margin-left: 3em;
    font-size: 2rem;
}

#touch-control{
    margin:1rem auto;
    display: table;
    width: 50%;
    height: 20vh;
    background: black;
}

.btn{
    margin-top: 0.5rem;
    margin-left: 2rem;
    margin-right: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border: red solid 1px;
    border-radius: 5px;
}

.active{
    background: #fdc555 ;
    border: red solid 1px !important;
    box-shadow: 0.2rem 0.3rem 0.3rem rgb(0, 0, 0) ; 
}

/* Media Queries */

@media only screen and (min-width: 768px) and (orientation: portrait){
    #game-section{
        margin-top: 12rem;
    }

    #controls i{
        margin-top: 1.5rem;
        font-size: 3rem;
    }

    .game-info{
        font-size: 1.5rem;
        display: block;
    }
    
    table th{
        font-size: 2rem;
    }
    
    table td{
        font-size: 1.5rem;
    }

}

@media only screen and (min-width: 1025px){
    #controls,
    #touch-control{
        display: none;
    }

    #game-section{
        margin-top: 12rem;
    }

    .info-header{
        display: none;
    }

    table{
        margin-bottom: 2.5rem;
    }
    table th{
        font-size: 2rem;
    }
    
    table td{
        font-size: 1.5rem;
    }

    .game-info{
        font-size: 1.5rem;
        display: block;
    }
    
    .game-info-header{
        display: block;
    }
}


