html {
    padding: 0;
    margin: 0;
    background-color: black;
}

body {
    padding: 0;
    margin: 0;
}

div#background-container {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    z-index: -1;
}

img#background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

div#field {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    aspect-ratio: 1357 / 867;
}

img#gamefield-image {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#close-btn {
    position: fixed;
    top: 2%;
    right: 2%;
    width: 3%;
    height: auto;
    cursor: pointer;
    z-index: 1001;
}

#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.815) 31.73%, rgba(0, 0, 0, 0.64) 70.25%, rgba(0, 0, 0, 0.226) 100%);
}

#popup.active {
    display: flex;
}

div#popup div#popup-content {
    position: absolute;
    width: fit-content;
    height: fit-content;
    max-width: 95vw;
    max-height: 95vh;
}

div#popup div#popup-content img#daPanel {

    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.panels {
    position: relative;
    cursor: pointer;
    width: 6.05%;
    height: auto;
    aspect-ratio: 82/75;
}

.panels img {
    width: 100%;
    height: 100%;
}

div#field .panels:nth-of-type(1) {
    top: 74%;
    left: 14%;
}

div#field .panels:nth-of-type(2) {
    top: 2%;
    left: 44%;
}

div#field .panels:nth-of-type(3) {
    top: 61%;
    left: 70.5%;
}

div#field .panels:nth-of-type(4) {
    top: -24%;
    left: 83%;
    transform: scaleX(-1) rotate(180deg);
}

div#field .panels:nth-of-type(5) {
    top: -13%;
    left: 88%;
}

#lang_button {
    position: absolute;
    top: 2%;
    left: 2%;
    width: 100px;
    height: auto;
    cursor: pointer;
    z-index: 1001;
}

@media (orientation: portrait) {
    div#field {
        transform: translate(-50%, -50%) rotate(-90deg);
        width: 100%;
    }
    #close-btn {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        padding: 8px;
    }

    div#popup div#popup-content {
        max-width: 100vw;
        max-height: 95vh;
    }

    div#popup div#popup-content img#daPanel {
        max-width: 100vw;
        max-height: 95vh;
    }
    #lang_button {
        width: 170px;
    }
}