body {
    margin: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('img/3. Background/page_background.jpg');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    font-family: 'Shantell Sans';
}

main:fullscreen {
    display: flex;
    justify-content: center;
    align-items: center;
}

main:fullscreen canvas {
    width: 100%;
    height: 100%;
}

h1 {
    font-size: 60px;
    color: #531A82;
    box-shadow: 0px 0px 50px 50px rgba(255,255,255,0.7);
    background-color: rgba(255,255,255,0.7);
    border-radius: 64px;
    position: fixed;
    top: 5%;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    color: #7FFFE0;
    margin: 0;
}

h3 {
    font-size: 20px;
    font-weight: 900;
    color: #531A82;
    margin: 0;
}

canvas {
    display: block;
} 

.instructions-container {
    margin: 16px;
    background-color: rgba(0,0,0,0.4);
    border-radius: 16px;
    position: fixed;
    bottom: 3%;
}

.arrow-keys-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 6px;
}

.arrow-keys {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.other-arrows {
    display: flex;
}

.outer-line {
    background-color: white;
    margin: 2px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.inner-line {
    background-color: #7FFFE0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.triangle-left {
    transform: rotate(270deg);
}

.triangle-down {
    transform: rotate(180deg);
}

.triangle-right {
    transform: rotate(90deg);
}

.attack-keys-container {
    display: flex;
    flex-direction: column;
    margin: 6px;
    gap: 6px;
}

.space-key-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.space-outer-line {
    background-color: white;
    margin: 2px;
    width: 128px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.space-inner-line {
    background-color: #7FFFE0;
    width: 120px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.d-key-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

.key {
    margin: 0 44px;
}

.s-key-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

main {
    display: flex;
    height: fit-content;
    width: fit-content;
    position: relative;
}

.top-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 22.99%;
    height: 17.71%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-container img {
    height: 90%;
    width: 45%;
}

.bottom-container {
    display: none;
    justify-content: space-between;
    align-items: end;
}

.arrow-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34.86%;
    height: 35.42%;
}

.arrow-container div {
    height: 50%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow-container img {
    height: 90%;
    width: 29.7%;
}

.attack-container {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 34.86%;
    height: 17.71%;
}

.attack-container img {
    height: 90%;
    width: 29.7%;
}

img {
    cursor: pointer;
}

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

.start-button {
    cursor: pointer;
    width: 20.8%;
    height: 12.5%;
    position: absolute;
    left: 58%;
    top: 82%;
}

.retry-button {
    cursor: pointer;
    width: 55.56%;
    height: 16.67%;
    position: absolute;
    top: 62.5%;
    left: 22.22%;
}

.alert-container {
    position: absolute;
    top: 40%;
    left: 15%;
    height: 20%;
    width: 70%;
    background-color: #531A82;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #7FFFE0;
    font-size: 24px;
    font-weight: 600;
}

@media only screen and (max-height: 1079px) {
    .instructions-container {
        bottom: 0%;
    }
}

@media only screen and (max-height: 1079px) {
    .instructions-container {
        display: flex;
    }
}

@media only screen and (max-height: 900px) {
    h1 {
        top: 0%;
    }
}

@media only screen and (max-height: 900px) {
    h1 {
        display: none;
    }
}

@media only screen and (max-height: 840px) {
    body {
        justify-content: flex-start;
    }
}

@media only screen and (max-height: 650px) {
    .instructions-container {
        display: none;
    }
    
    body {
        justify-content: center;
    }
}

@media only screen and (max-width: 720px) {
    canvas {
        width: 100%;
    }
    h1 {
        display: none;
    }
    .instructions-container {
        display: none;
    }
}

@media only screen and (max-height: 480px) {
    canvas {
        height: 100vh;
    }
    h1 {
        display: none;
    }
    .instructions-container {
        display: none;
    }
}

@media only screen and (max-width: 500px) {
    img {
        width: 60px;
        height: 60px;
    }

    .alert-container {
        font-size: 16px;
    }
}

@media only screen and (max-width: 390px) {
    img {
        width: 48px;
        height: 48px;
    }

    .alert-container {
        font-size: 12px;
    }
}