*{
    overflow-y: hidden;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: hydrophilia-liquid, sans-serif;
}
html,body{
    touch-action: pinch-zoom;
    background-color: white;
    transition: background-color 300ms ease-in;
    height:100%;
}

.darkmode{
    background-color: black;
    transition: background-color 300ms ease-in;
}

.darkmode #countDownText{
    color: white;
}

span{
    display: inline-block;
    position: relative;
    width: 300px;
    color: black;
}

#countDownTimer{
    text-align: center;
    margin: 10% -15%;
    font-size: 60px;
}

.flexBox{
    height: 100%;
    width: 100%;
    display: flex;
}

#game1{
    display: none;
    height: 100%;
    width: 100%;
    background-color: white;
    transition: background-color 300ms ease-in;
}
.darkmode #game1
{
    background-color: black;
    transition: background-color 300ms ease-in;
}

.darkmode #beginScreen
{
    background-color: black;
    transition: background-color 300ms ease-in;
}

.modeSwitch{
    margin-left: 44%;
    border-radius: 3px;
    background-color: black;
    width: 10%;
    height: 5%;
    transition: background-color 300ms ease-in;
}

.darkmode .modeSwitch
{
    background-color: white;
    transition: background-color 300ms ease-in;
}

.darkmode #winner{
    color: white;
}

#user1{
    transition: all;
    text-align: center;
    font-size: 50px;
    color: white;
    position: absolute;
    margin: 30% 8%;
    border-radius: 5px;
    height: 100px;
    width: 100px;
    background-color: rgb(0, 191, 255);
    touch-action: none;
}

#user2{
    text-align: center;
    font-size: 50px;
    color: white;
    position: absolute;
    margin: 30% 85%;
    border-radius: 5px;
    height: 100px;
    width: 100px;
    background-color: red;
    touch-action: none;
}

h1{
    font-size: 60px;
}

#winner{
    display: none;
    width: 100%;
    position: absolute;
    margin: 28% 33%;
}



#outputA{
    text-align: center;
    font-size: 50px;
    color: white;
    position: absolute;
    margin: 40% 10%;
    color: black;
    touch-action: none;
}
#outputL{
    text-align: center;
    font-size: 50px;
    color: white;
    position: absolute;
    margin: 40% 87%;
    color: black;
    touch-action: none;
}
.darkmode #outputL{
    color: white;
}
.darkmode #outputA{
    color: white;
}

#restart:active{
    transform: scale(1);
    transition: 100ms ease-in;
}

#restart:hover{
    transform: scale(1.2);
    transition:100ms ease-in;
}

#restart{
    display: none;
    text-align: center;
    font-size: 30px;
    color: white;
    margin: 40% -6%;
    height: 50px;
    width: 20%;
    background: rgb(50,189,253);
    background: linear-gradient(90deg, rgba(50,189,253,1) 25%, rgba(250,0,27,1) 75%);
}

#beginScreen{
    width: 100%;
    height: 100%;
    background-color: white;
    transition: background-color 300ms ease-in;
}

#gameMode1{
    border-radius: 10px;
    font-size: 47px;
    line-height: 6;
    text-align: center;
    color: white;
    margin: 10% 20%;
    background-color: grey;
    width: 300px;
    height: 300px;
}

#gameMode1:hover{
    transform: scale(1.2);
    transition:100ms ease-in-out;
}

#gameMode2:hover{
    transform: scale(1.2);
    transition:100ms ease-in-out;
}

#gameMode2{
    border-radius: 10px;
    font-size: 47px;
    line-height: 6;
    text-align: center;
    color: white;
    position: absolute;
    margin: -30.8% 60%;
    background-color: grey;
    width: 300px;
    height: 300px;
}

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 844px) 
  and (-webkit-min-device-pixel-ratio: 3) 
  and (orientation: portrait)
{ 
    #restart{
        z-index: 100;
        display: none;
        text-align: center;
        font-size: 50px;
        font-weight: 900;
        color: white;
        margin: 100% -15%;
        height: 53px;
        width: 60%;
        background-color: yellow;
        background: transparent;
    }

    #winner{
        color: white;
        margin: 60% 18%;
        width: 300px;
        font-size: 20px;
        z-index: 10;
    }

    #countDownTimer{
        margin: 70% -57%;
        touch-action: none;
        pointer-events: none;
    }

    span{
        color: white;
        z-index: 11;
        touch-action: none;
        pointer-events: none;
    }

    #outputA{
        translate: 5% 5%;
        color: white;
        z-index: 10;
        margin-top: 71%;
        margin-left: 5%;
    }

    #outputL{
        translate: 5% 5%;
        color: white;
        z-index: 10;
        margin: 71% 80%;
    }

    #user1{
        text-align: center;
        line-height: 7;
        margin: -5%;
        height: 55%;
        width: 110%;
    }

    #user2{
        text-align: center;
        line-height: 7;
        margin: 80% -1%;
        height: 60%;
        width: 110%;
    }

    #gameMode1{
        line-height: 7;
        font-size: 22px;
        margin: 70% 5%;
        width: 150px;
        height: 150px;
    }

    #gameMode2{
        line-height: 7;
        font-size: 22px;
        margin: -109% 57%;
        width: 150px;
        height: 150px;
    }

    .modeSwitch{
        margin-left: 30%;
        width: 40%;
    }
}

@media only screen 
and (min-device-width: 375px) 
and (max-device-width: 812px) 
and (-webkit-min-device-pixel-ratio: 3)
and (orientation: landscape) { 

    #restart{
        z-index: 100;
        display: none;
        text-align: center;
        font-size: 30px;
        color: white;
        margin: 110% 0%;
        height: 50px;
        width: 30%;
        background-color: transparent;
    }

    .modeSwitch{
        height: 8%;
        margin-left: 35%;
        width: 30%;
    } 
    #gameMode1{
        font-size: 23px;
        width: 150px;
        height: 150px;
    }

    #gameMode2{
        font-size: 23px;
        width: 150px;
        height: 150px;
    }
}

#game2{
    display: none;
}

.darkmode .ball{
    border: 2px solid white;
}

#game2 .modeSwitch{
    position: absolute;
}

.ball{
    position: absolute;
    left: 50vw;
    top: 50vh;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid black;
    transition: all 0.5s ease-in-out;
}

#redBall{
    background-color: red;
}

#yellowBall{
    background-color: yellow;
}

#greenBall{
    background-color: green;
}

#blueBall{
    background-color: blue;
}

#purpleBall{
    background-color: purple;
}

#pinkBall{
    background-color: pink;
}

#greyBall{
    background-color: grey;
}

#orangeBall{
    background-color: orange;
}

#blackBall{
    background-color: black;
}