@font-face {
    font-family: "mexican";
    src: url("fonts/Mexicana.ttf");
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(img/background/dessert3.jpeg);
    height: 100vh;
    max-width: 100vw;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    font-family: 'mexican', Arial, Helvetica, sans-serif;

}

.startContainer {
    position: relative;

}

.start-screen {
    /* display: flex;
    justify-content: center;
    align-items: flex-start; */
    background-color: black;
    background-image: url(img/9_intro_outro_screens/start/startscreen_1.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    border: 5px solid #cf6b00b4;
    position: absolute;
    width: 100%;
    height: 100%;

}

.end-screen {
    background-color: rgba(0, 0, 0, 0.747);
    background-image: url(img/9_intro_outro_screens/game_over/ohnoyoulost!.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    border: 5px solid #cf6b00b4;
    position: absolute;
    width: 720px;
    height: 480px;
}

.end-screen-win {
    background-color: rgba(0, 0, 0, 0.747);
    background-image: url(img/9_intro_outro_screens/win/win.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 20px;
    border: 5px solid #cf6b00b4;
    position: absolute;
    width: 720px;
    height: 480px;
}

.end-screen-container-btn {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.start-screen-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.c-white {
    color: white;
}

.material-symbols-outlined {
    cursor: pointer;
    font-size: 36px !important;
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 20
}

.material-symbols-outlined:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.3);
}


#controls-icon {
    position: absolute;
    z-index: 2;
    right: 120px;
    height: 45px;
    width: 45px;
    top: 4px;
    cursor: pointer;

}

.tooltip {
    position: relative;
    display: inline-block;

}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    font-family: 'Courier New', Courier, monospace;
    background-color: rgba(0, 0, 0, 0.452);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: 105%;
    left: 50%;
    margin-left: -60px;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.452) transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}


.start-btn {
    background-color: #04AA6D;
    background: url('img/icons/controls.png');
    background-repeat: no-repeat;

    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    width: 122px;
    height: 54px;
    border-radius: 20px;
    border: 2px solid black
}

.start-btn:hover {
    background-color: #04aa6d69;
}


.controls-btn {
    background-color: #04AA6D;
    background: url('img/icons/spacebar.png');
    background-repeat: no-repeat;

    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    width: 122px;
    height: 54px;
    border-radius: 20px;
    border: 2px solid black
}

.controls-btn:hover {
    background-color: #04aa6d69;
}

.controls-btn-Spacebar {
    background-color: #04AA6D;
    background: url('img/icons/spacebar.png');
    background-repeat: no-repeat;

    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    width: 122px;
    height: 54px;
    border-radius: 20px;
    border: 2px solid black
}

.controls-btn-Spacebar:hover {
    background-color: #04aa6d69;
}

.controls-btn-D {
    background-color: #04AA6D;
    background: url('img/icons/D.png');
    background-repeat: no-repeat;

    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    width: 122px;
    height: 54px;
    border-radius: 20px;
    border: 2px solid black
}

.controls-btn-D:hover {
    background-color: #04aa6d69;
}

.controls-bg {
    border-radius: 20px;
    border: 5px solid #cf6b00b4;
    position: absolute;
    background-color: rgba(41, 46, 44, 0.479);
    width: 720px;
    height: 480px;
    z-index: 999;

}

.overlay-bg {
    filter: blur(8px);
    -webkit-filter: blur(8px);
}

.controls-container {
    display: flex;
    flex-direction: column;
    height: 480px;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: xxx-large;
}

.controls-container-separate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 55%;
}

canvas {
    background-color: black;
    border-radius: 20px;
    border: 5px solid #cf6b00b4;
    display: block;
    box-shadow: 3px -1px 14px 6px #8f5f5c;
}

.d-none {
    display: none;
}

h1 {
    font-size: 100px;
    color: #204722;
    text-decoration: underline 5px;

}

.audioGame {
    display: flex;
    justify-content: unset;
    align-items: center;
    margin-top: -50px;
    position: fixed;
    bottom: 10px;
    z-index: 99;
}