canvas {
    background-color: black;
    display: block;
}

@font-face {
    font-family: 'LuckiestGuy-Regular';
    src: url('Alternative Grafiken - Sharkie/5.Font/LuckiestGuy-Regular.ttf') format('truetype');
}

body {
    margin: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 99vh;
    font-family: 'LuckiestGuy-Regular';
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: url('Alternative Grafiken - Sharkie/3. Background/Legacy/Layers/5. Water/L1.png') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.bg-image {
    background: url('Alternative Grafiken - Sharkie/3. Background/Legacy/Layers/5. Water/L1.png') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.headline {
    text-align: center;
}

.d-none {
    display: none;
}

.d-flex {
    display: flex;
}

.startscreen {
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.keyexplain {
    height: 400px;
}

.startkey {
    cursor: pointer;
    margin-top: 40px;
    height: 95px;
    width: 275px;
    content: url('Alternative Grafiken - Sharkie/6.Botones/Start/2.png');
}

.startkey:hover {
    content: url('Alternative Grafiken - Sharkie/6.Botones/Start/1.png');
}

.restartBtn {
    cursor: pointer;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    color: #531a82;
    font-size: 40px;
    height: 75px;
    width: 275px;
    background-color: #7fffe0;
    border: 4px solid white;
    border-radius: 20px;
}

.restartBtn:hover {
    color: #ffffff;
    background-color: #531a82;
}

.gameBtn {
    cursor: pointer;
    margin-top: 40px;
    justify-content: center;
    align-items: center;
}

.fullscreenbtn {
    cursor: pointer;
    margin-right: 10px;
    height: 75px;
    width: 275px;
    content: url('Alternative Grafiken - Sharkie/6.Botones/Full Screen/Mesa de trabajo 7.png');
}

.fullscreenbtn:hover {
    content: url('Alternative Grafiken - Sharkie/6.Botones/Full Screen/Mesa de trabajo 9.png');
}

.fullscreenbtnAfter {
    cursor: pointer;
    margin-top: 40px;
    height: 75px;
    width: 275px;
    content: url('Alternative Grafiken - Sharkie/6.Botones/Full Screen/Mesa de trabajo 7.png');
}

.fullscreenbtnAfter:hover {
    content: url('Alternative Grafiken - Sharkie/6.Botones/Full Screen/Mesa de trabajo 9.png');
}

.canvasContainer {
    position: relative;
}

.buttons {
    justify-content: space-between;
    display: none;
    position: absolute;
    bottom: 0%;
    align-items: center;
    right: 15%;
    left: 15%;
}

.buttons img {
    cursor: pointer;
    height: 35px;
    width: 35px;
    margin-left: 20px;
    margin-bottom: 20px;
}

.headButtons{
    right: 10px;
    position: absolute;
    display: flex;
    width: 200px;
    height: 50px;
}

.restartInCanvas {
    font-size: 16px;
    margin: 10px;
    cursor: pointer;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    color: #531a82;
    height: 30px;
    width: 90px;
    background-color: #7fffe0;
    border: 4px solid white;
    border-radius: 20px;
    text-align: center;
    display: flex;
}
.soundInCanvas {
    margin: 10px;
    cursor: pointer;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    color: #531a82;
    font-size: 16px;
    height: 30px;
    width: 105px;
    background-color: #7fffe0;
    border: 4px solid white;
    border-radius: 20px;
    text-align: center;
}

.rotate-device{
    display: none;
    z-index: 999;
    width: 100%;
    height: 100%;
}

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

    .fullscreenbtn {
        display: none;
    }

    .fullscreenbtnAfter {
        display: none;
    }

    .keyexplain {
        height: 200px;
    }

    .startkey {
        margin-top: 5px;
        height: 75px;
        width: 250px;
    }

    .restartBtn {
        display: none;
    }
    .gameBtn{
        display: none !important;
    }
    .buttons {
        display: flex;
    }
}


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

    .fullscreenbtn {
        display: none;
    }

    .fullscreenbtnAfter {
        display: none;
    }

    .keyexplain {
        height: 200px;
    }

    .startkey {
        margin-top: 5px;
        height: 75px;
        width: 250px;
    }

    .restartBtn {
        display: none;
    }

    .gameBtn{
        display: none; !important
    }
    .buttons {
        display: flex;
    }
}

/* Portrait orientation */
@media screen and (orientation: portrait) and (max-width: 720px) {

    .rotate-device{
        display: flex;
        flex-direction: column;
        position: absolute;
        text-align: center;
        align-items: center;
        justify-content: center;
        font-size: 32px;
        top: 0;
        bottom: 0;
        margin: 0;
        background: url('Alternative Grafiken - Sharkie/3. Background/Legacy/Layers/5. Water/L1.png') no-repeat center center fixed;
        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
    }
    .rotate-device img{
        height: 5%;
        margin-bottom: 20%;
    }
    .keyexplain{
        width: 100%;
    }
    .startkey{
        width: 100%;
    }
    .headline{
        width: 100%;
    }
    .startscreen {
        width: 100%;
    }
}