* {
    box-sizing: border-box;
    margin: 0;
    font-family: Lilita One;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url('./img/5_background/first_half_background.png');
    color: #ff8400;
    font-size: 32px;
}

h1 {
    font-size: 60px;
}

h2 {
    text-decoration: underline;
    text-decoration-color: lightyellow;
    font-size: 32px;
    font-style: italic;
    font-weight: 500;
}

a {
    color: #ff8400;
    text-decoration: none;
    font-size: 24px;
}

b {
    color: #ff8400;
}

p {
    font-size: 40px;
    font-weight: 900;
    color: orange;
}

a:hover {
    color: #894701;
}

.dFlex {
    display: flex !important;
}

.dNone {
    display: none !important;
}

.noScroll {
    overflow: hidden;
}

.landscapeScreen {
    display: none;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.8);
}

.startScreen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    margin: auto;
}

.instructions {
    max-width: 60%;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.menuOpenButton {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.menuOpenButton:hover {
    color: #894701;
}

.menuOpenButton img {
    width: 40px;
    transform: rotate(180deg);
    transition: transform 0.2s linear;
}


.rotate90 {
    transform: rotate(90deg) !important;
}

.gameControl {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

.gameControl img {
    width: 50px;
}

.gameControlBlock {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gameControlLine {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
}

.heavinessPosition {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.heavinessPosition div {
    font-size: large;
}

.heavinessSlider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: orange;
    border-radius: 4px;
    outline: none;
}

.heavinessSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: darkorange;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.sound {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.muteBox {
    display: block;
    width: 50px;
    cursor: pointer;
}

span {
    font-size: large;
    color: black;
}

.startBtn:hover {
    cursor: pointer;
}

.startGameBtn {
    width: 60px;
    height: 60px;
}

.startGameTxt {
    font-size: 40px;
}

.startGameTxt:hover {
    color: #894701;
}

footer {
    padding-bottom: 8px;
}

.infoScreen {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.biggerScreen {
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 720px;
    max-height: 480px;
}

canvas {
    width: 100%;
    max-width: 100vw;
    max-height: 100vh;
    background-color: black;
    display: block;
    border: 5px solid white;
}

.controlsBox {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#controls {
    width: 100%;
    height: 100%;
    position: relative;
}

.btnContainerTop {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    justify-content: space-between;
    align-items: center;
}

.colorChanger {
    filter: invert(52%) sepia(93%) saturate(1000%) hue-rotate(1deg) brightness(100%);
}

.blocks {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 24px;
}

#showLevelNbr {
    font-size: 30px !important;
    font-weight: bold;
    color: orange;
    opacity: 1;
    animation: levelAnimation 2s ease-out forwards;
}

.btnContainerBottom {
    display: none;
    position: absolute;
    bottom: 0;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.gamePlayButtons {
    width: 50px;
    height: 50px;
}

.gamePlayButtonsBottomBackground {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.gameOverInterface {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
}

@keyframes levelAnimation {
    0% {
        font-size: 100%;
    }

    15% {
        font-size: 120%;
    }

    30% {
        font-size: 100%;
    }

    45% {
        font-size: 120%;
    }

    60% {
        font-size: 100%;
    }

    75% {
        font-size: 120%;
    }

    100% {
        font-size: 100%;
    }
}

@media only screen and (max-width: 500px) {
    .gamePlayButtons {
        width: 40px;
        height: 40px;
    }
}

@media only screen and (max-width: 400px) {
    #showLevelNbr {
        font-size: 20px !important;
    }

    .gamePlayButtons {
        width: 30px;
        height: 30px;
    }
}

@media only screen and (max-height: 400px) {
    .gamePlayButtons {
        width: 40px;
        height: 40px;
    }
}

@media only screen and (max-height: 300px) {
    .gamePlayButtons {
        width: 30px;
        height: 30px;
    }
}