* {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -user-select: none;
    -webkit-user-select: none; /* Chrome/Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+ */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-callout: none;
    -webkit-user-drag: none;
    -webkit-user-modify: none;
    -webkit-highlight: none;
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

html, body {
    position: relative;
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    background: #000;
    /*font-family: "Pacifico", serif;*/
}

.score:before {
    content: "Score: "
}

.middle-center-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.text-light {
    color: #fff;
}

.pacifico-regular {
    font-family: "Pacifico", serif;
    font-weight: 400;
    font-style: normal;
}

#messageEndGame {
    color: #fff;
    width: 100%;
    font-size: 65px;
    display: none;
}

#mesageGameOver:before {
    content: "Game Over! Score is: ";
}

#mesageGameOver {
    --text-shadow-color: #ffffff70;
    /*-webkit-text-stroke: 2px black;*/
    /*text-stroke: 4px navy;*/
    text-shadow: 1px 1px 1px var(--text-shadow-color),-1px 1px 1px var(--text-shadow-color),1px -1px 1px var(--text-shadow-color),-1px -1px 1px var(--text-shadow-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: "Pacifico", serif;
    color: #03A9F4;
    padding-bottom: 10px;
}

.score {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 40px;
    display: none;
}

#gameCanvas {
    background-image: url("/uploads/events/catchgift/background-1.webp");
    display: block;
    margin: 0 auto;
    /*width: 100%;*/
    /*height: 100%;*/
    padding: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    /*border-left: 4px solid #0095dd;*/
    /*border-right: 4px solid #0095dd;*/
}

#startButton {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, -50%);
}

#countdown {
    font-size: 100px;
    text-align: center;
    display: none;
    position: absolute;
    color: #000;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, -50%);
}

.controls {
    display: none;
}

#fullscreenButton {
    position: absolute;
    top: 50px;
    right: 10px;
    background: blue;
    color: #fff;
    border: 1px solid blue;
    border-radius: 4px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
}

.fast-speed {
    display: none;
}

#login {
    background: url("/uploads/events/catchgift/background-login.webp") no-repeat center center / cover;
    height: 100%;
}

#login-form {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    font-size: 20px;
}

#login-form .form-control {
    height: auto;
    padding: 5px 10px;
}

#login-form button {
    display: block;
    margin: 0 auto;
    font-size: 20px;
}

#menu {
    max-width: 80%;
    height: 100%;
    max-height: 50px;
    /*background: #0000004A;*/
    position: absolute;
    width: 100%;
    transform: translatex(-50%);
    left: 50%;
    display: flex;
    align-items: center;
    /*justify-content: end;*/
    justify-content: center;
    gap: 10px;
    padding: 0 12px;
}

#rulesAndHistory {
    
}

#iframeHistoryPlay {
    width: 100%;
    height: 100%;
    border: 1px solid #0000001E;
    padding: 12px;
    margin: 12px 0;
    min-height: 430px;
}


#buttonSoundPause {
    position: absolute;
    top: 100px;
    right: 10px;
    padding: 0 10px;
}

/*@media (max-width: 1023px) {*/
/*    .controls {*/
/*        display: flex;*/
/*    }*/
/*}*/

#leftButton,
#rightButton {
    touch-action: manipulation;
}

@media (max-width:991px) {
    .fast-speed {
        position: absolute;
        display: flex;
        align-items: center;
        column-gap: 4px;
        top: 40px;
        left: 10px;
        
        background: #fff;
        padding: 3px 4px;
        border: 2px solid #000;
        border-radius: 4px;
    }
    
    .fast-speed label {
        margin: 0;
    }
    
    #gameCanvas {
        background-size: cover;
    }

    .controls {
        position: absolute;
        bottom: 20px;
        width: 100%;
        text-align: center;
        justify-content: space-between;
    }

    .button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 75px;
        height: 75px;
        margin: 0 10px;
        font-size: 24px;
        color: #fff;
        background-color: #0095DD;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    #messageEndGame {
        font-size: xxx-large;
    }

}

@media screen and (orientation:portrait) {
    /*// CSS applied when the device is in portrait mode*/
    /*body {*/
    /*    transform: rotate(90deg);*/
    /*    transform-origin: bottom left;*/
    /*    position: absolute;*/
    /*    top: -100vw;*/
    /*    height: 100vw;*/
    /*    width: 100vh;*/
    /*}*/
}

@media screen and (orientation:landscape) {
    /*// CSS applied when the device is in landscape mode*/
}
