/* fredericka-the-great-regular - latin */
@font-face {
    font-family: 'Fredericka the Great';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/fredericka-the-great-v13-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('../fonts/fredericka-the-great-v13-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/fredericka-the-great-v13-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('../fonts/fredericka-the-great-v13-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('../fonts/fredericka-the-great-v13-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('../fonts/fredericka-the-great-v13-latin-regular.svg#FrederickatheGreat') format('svg'); /* Legacy iOS */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.canvas-container {
    position: relative;
}

#canvas {
    background-color: black;
    background-image: url("img/9.Intro _ Outro Image/Start Screen/Opciขn 1.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: 12px;
    display: block;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("img/desert-5385998_1920.png");
}

h1 {
    font-family: 'Fredericka the Great';
    color: #ee8530;
    font-size: 2.5rem;
    padding: .5rem;
}

.control-help {
    margin-top: 2rem;
    display: flex;
}

.hover-btn {
    cursor: pointer;
}

.hover-btn:hover {
    cursor: pointer;
    background-color: #ef710b;
}

.cntrl-btn {
    display: flex;
    font-family: 'Fredericka the Great';
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 3px 6px 11px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    border-radius: 12px;
    background-color: rgb(238, 133, 48);
    width: 48px;
    height: 48px;
    margin-left: 1rem;
    margin-right: 1rem;
}

.cntrl-btn-touch {
    background-color: rgba(238, 133, 48, 0.5)!important;
    border-radius: 100% !important;
}

.cntrl-btn-touch-header {
    text-transform: uppercase;
    font-family: 'Fredericka the Great';
    font-size: 2rem;
}

.blinking {
    animation: blinkingText 1.2s infinite;
}

@keyframes blinkingText {
    0%{     color: #000;    }
    49%{    color: #000; }
    60%{    color: transparent; }
    99%{    color:transparent;  }
    100%{   color: #000;    }
}

.touch-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 15px;
    left: 0px;
    right: 0px;
    width: 100%;
    z-index: 99;
    padding-left: 2rem;
    padding-right: 2rem;
}

.touch-panel-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 45px;
    right: 0px;
    width: 100%;
    z-index: 99;
    padding-left: 2rem;
    padding-right: 2rem;
}

.touchpanel-left {
    display: flex;
}

.touchpanel-right {
    display: flex;
}

.endscreen {
    background-image: url("img/9.Intro _ Outro Image/_Game over_ screen/4.Game over!.png"), url("img/5.Fondo/1.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 12px;
    top: 0px;
    z-index: 99;
}

.d-none {
    display: none;
}

a {
    text-decoration: none;
    color: black;
}

/* Smartphones */

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

    h1 {
        display: none;
    }
}


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

    h1 {
        display: none;
    }

    .control-help {
        display: none;
    }
}

@media (min-width: 900px) {
    .touch-panel {
        display: none;
    }
}

@media (max-width: 415px) {
    canvas {
        display: none !important;
    }

    .control-help {
        display: none;
    }

    .blinking {
        display: none;
    }

    .turn-device-text {
        display: block;
        font-size: 1.5rem;
    }

    .canvas-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }
}