* {
    font-family: 'Luckiest Guy', Arial, Helvetica, sans-serif !important
}

#loadingscreen {
    background-color: #000;
    height: 100%;
    position: fixed;
    width: 100%;
    z-index: 900
}

#loadingScreenSubDiv {
    background-image: url(../img/1.Sharkie/3.Swim/PreviewOP2.gif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 100vh;
    width: 100vw
}

#touch-area-left,
#touch-area-left-img,
#touch-area-right,
#bubbleAttackTouch,
#slapAttackTouch {
    display: none;
    opacity: .8
}

body,
html {
    background-color: #000;
    display: block;
    margin: 0;
    padding: 0
}

#fullscreen {
    align-items: center;
    background-image: url(../img/3.Background/background.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    overflow: hidden;
    position: fixed;
    width: 100%
}

#canvasOver,
.canvasOver {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 10px
}

#gameOverScreen,
#winnerScreen {
    height: auto;
    left: 0;
    margin: auto;
    position: fixed;
    right: 0;
    top: 60px;
    width: 75%;
    z-index: 9999
}

canvas {
    background-color: #000;
    border: border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: none;
    margin-left: auto;
    margin-right: auto
}

h1 {
    color: #8400ff;
    font-size: 48px;
    margin: 8px 0;
    overflow: hidden;
    text-align: center;
    text-shadow: 2px 2px 4px #000
}

#HowToPlay {
    align-items: center;
    background-image: url(../img/3.Background/Dark/1.png);
    background-repeat: no-repeat;
    background-size: cover;
    bottom: 0;
    color: #ffe600;
    display: none;
    flex-direction: column;
    height: 480px;
    height: 100%;
    justify-content: center;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    text-align: center;
    text-shadow: #000 1px 0 10px;
    top: 0;
    width: 720px;
    width: 100%
}

.btn-container {
    backdrop-filter: blur(30px);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: inline-block;
    height: 50px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    z-index: 9
}

.btn-text {
    align-items: center;
    color: #fff;
    display: flex;
    font-size: 16px;
    height: 100px%;
    justify-content: center;
    letter-spacing: 2px;
    margin: 10px;
    text-transform: uppercase;
    transition: transform .2s ease;
    width: 225px
}

.btn-container:hover .btn-text {
    transform: translateY(-3px)
}

.btn-container:active .btn-text {
    transform: translateY(0);
    transition: none
}

.d-none,
#restartBtn,
#rotaDisplay,
.displayNone {
    display: none
}

#restartBtn,
#toggleGame {
    z-index: 999
}

#toggleThings,
.displayFlex {
    display: flex
}

@media only screen and (max-width: 720px) {
    canvas {
        width: 100%
    }

    #winnerScreen {
        bottom: 50px;
        width: 75%
    }

    .btn-text {
        margin: 6px;
        padding: 0;
        width: 170px
    }

    .btn-container {
        height: 40px
    }

    h1 {
        font-size: 42px
    }
}

@media only screen and (max-height: 480px) {
    canvas {
        height: 100vh
    }
}

@media only screen and (max-width: 720px) {
    canvas {
        width: 100%
    }
}

@media only screen and (max-height: 480px),
(max-width: 720px) {

    #fullscreen-button,
    #rotaDisplay {
        display: none
    }

    #winnerScreen {
        bottom: 50%;
        top: 49%;
        width: 74%
    }

    .btn-text {
        margin: 6px;
        padding: 0;
        width: 170px
    }

    .btn-container {
        height: 40px
    }

    h1 {
        font-size: 42px
    }

    h2 {
        margin: 0
    }

    #gameOverScreen,
    #winnerScreen {
        top: 40px;
        width: 55%
    }

    #HowToPlay,
    #HowToPlay>span {
        font-size: 14px;
        font-weight: 200
    }

    #touch-area-right {
        align-items: center;
        bottom: 0;
        display: block;
        display: flex;
        flex-direction: column;
        height: 250px;
        justify-content: center;
        position: fixed;
        right: 0;
        transform: rotate(45deg);
        width: 250px
    }

    .touchBtn {
        height: 70px;
        width: 75px
    }

    #bubbleAttackTouch,
    #slapAttackTouch {
        display: flex;
        transform: rotate(129deg)
    }

    .attack-btn {
        align-items: center;
        display: flex;
        height: 115px;
        justify-content: center;
        width: 115px
    }

    #touch-area-left-img {
        display: block;
        height: 140px;
        width: 220px
    }

    .span-wrap {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        width: 95%
    }

    .touchbtn-rows {
        display: flex;
        flex-direction: row;
        height: 70px;
        justify-content: space-around;
        width: 225px
    }

    #touch-area-left,
    .touchbtn-left {
        bottom: 5%;
        display: flex;
        flex-direction: column;
        height: 140px;
        left: 2%;
        position: fixed;
        width: 220px
    }
}

@media (max-width: 820px) and (orientation: portrait) {
    #rotaDisplay {
        align-items: center;
        display: flex !important;
        height: 100vh;
        justify-content: center;
        z-index: 999
    }

    #touch-area-left,
    #toggleGame,
    #touch-area-right,
    #bubbleAttackTouch,
    #slapAttackTouch,
    #loadingscreen {
        display: none !important
    }
}