@font-face {
    font-family: 'boogalooregular';
    src: url('./font/boogaloo-regular-webfont.woff2') format('woff2'), url('./font/boogaloo-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
}

canvas {
    font-family: 'boogalooregular', Arial, Helvetica, sans-serif;
    background-color: black;
    display: block;
}

.d-none {
    display: none !important;
}

.d-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/*----------------Background-------------*/

.background-container {
    background-image: url('./img/bg-window.png');
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: 100vh;
}

.border-canvas {
    background: linear-gradient(180deg, rgb(0, 95, 133) 0%, rgb(104, 17, 0) 100%);
    width: 667px;
    height: 375px;
    position: relative;
}

/*----------------Buttons-------------------*/

.fullscreen-btn, .sound-btn-container {
    color: white;
    font-size: 30px;
    position: absolute;
    cursor: pointer;
}

.fullscreen-btn {
    bottom: -53px;
    right: 135px;
}

.fullscreen-btn:hover {
    transform: scale(1.3);
}

.sound-btn-container {
    bottom: -46px;
    right: 195px;
}

.sound-btn-container:hover {
    transform: scale(1.3);
}

.sound-btn::before {
    font-family: 'fontawesome';
    content: '\f6a9'
}

.sound-btn.off::before {
    font-family: 'fontawesome';
    content: '\f028';
}

/*----------------Controls Button and Screen-------------------------*/

.control-btn {
    background: linear-gradient(180deg, rgba(70, 145, 39, 1) 0%, rgba(191, 236, 172, 1) 50%, rgba(70, 145, 39, 1) 100%);
    font-family: 'boogalooregular', Arial, Helvetica, sans-serif;
    font-size: 25px;
    position: absolute;
    right: 10px;
    bottom: -50px;
    border: 0px;
    box-shadow: 0px 0px 10px #4e0c00;
    padding: 5px 20px;
    cursor: pointer;
}

.control-btn:hover {
    background: linear-gradient(180deg, rgba(189, 45, 18, 1) 0%, rgba(228, 135, 121, 1) 50%, rgba(189, 45, 18, 1) 100%);
}

.controls-container {
    background-color: rgba(46, 46, 46, 0.5);
    color: white;
    font-family: 'boogalooregular', Arial, Helvetica, sans-serif;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    position: absolute;
    z-index: 10;
    margin: 10px 10px;
}

.controls-container h3 {
    font-weight: 100;
    font-size: 35px;
    margin: 0;
}

.control-row {
    font-size: 25px;
    display: flex;
    align-items: center;
}

.control-row img {
    height: 40px;
    margin: 10px;
}

.control-key {
    position: relative;
}

.control-key .key {
    position: absolute;
    left: 10px;
    top: 7px;
}

.control-key .space {
    position: absolute;
    left: 33px;
    top: 15px;
}

.fas {
    margin: 10px;
}

/*-----------------Start and Endscreen-----------------*/

.start-screen, .end-screen {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
}

.start-screen img, .game-over-img {
    width: 650px;
    height: 366px;
}

.start-btn {
    background: linear-gradient(180deg, rgba(255, 169, 0, 1) 0%, rgba(255, 222, 1, 1) 50%, rgba(255, 169, 0, 1) 100%);
    font-family: 'boogalooregular', Arial, Helvetica, sans-serif;
    font-size: 30px;
    position: absolute;
    left: 288px;
    bottom: -60px;
    border: 0px;
    box-shadow: 0px 0px 10px #4e0c00;
    padding: 5px 20px;
    cursor: pointer;
}

.start-btn:hover {
    background: linear-gradient(180deg, rgba(8, 158, 200, 1) 0%, rgba(163, 208, 225, 1) 50%, rgba(8, 158, 200, 1) 100%);
}

.game-over-img {
    z-index: 10;
    animation: zoomIn 2000ms ease-in-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.1);
    }
    to {
        transform: scale(1);
    }
}

.dark-screen-img {
    width: 100vw;
    height: 100vh;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: darkenSlow 800ms ease-in-out;
}

@keyframes darkenSlow {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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