:root {
    --bg-body-light: unset;
    --bg-body-dark: unset;
    --bg-ulr-medium: url('/img/galaxy-light.png');
    --bg-url-dark: url('/img/space_dark.png');
    --bw: unset;
    --bh: unset;
    --frame-width: unset;
    --frame-height: unset;
    --left-frame: unset;
    --top-frame: unset;
    --popupw: unset;
    --popuph: fit-content;
    --popupt: unset;
    --popupl: unset;
}

body {
    background-image: var(--bg-ulr-medium);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-attachment: fixed;
    background-color: #001a2b69;
}

fieldset {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 85%;
    transform: translate(-50%, -50%);
    background: linear-gradient(35deg, rgb(52, 61, 52), rgba(67, 80, 51, 0.979));
    overflow-y: auto;
    padding-bottom: 20px;
}

legend {
    margin-top: 50px;
    background-color: rgba(59, 59, 59, 0.76);
    color: wheat;
    padding: 5px;
    border-radius: 12px;
    text-align: center;
}

fieldset fieldset {
    position: relative;
    margin-top: 100px;
    margin-bottom: 45px;
    background: linear-gradient(17deg, rgb(68, 64, 64), rgba(0, 77, 17, 0.911));
    border-radius: 12px;
    padding: 7px;
    border: none;
    box-shadow: 3px 2px 5px 3px rgba(245, 222, 179, 0.315);
    padding-bottom: 200px;

}


fieldset fieldset span {
    text-indent: 1em;
    color: rgb(166, 203, 240);
    font-style: italic;
    margin: 15px;
    padding: 10px;
    padding-bottom: 250px;
}

.language-switch {
    position: fixed;
    top: 10px;
    right: 15px;
    width: fit-content;

}

.invisible {
    display: none;
}

.nav-quad-grid {
    left: calc((100%/2) - 160px);
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    align-items: center;
    gap: 10px;
    justify-self: center;
    align-self: center;
    width: 300px;
    margin-bottom: 200px;
    padding-bottom: 100px;
    margin-top: 50px;
}

footer {
    position: absolute;
    top: calc(100% - 45px);
    width: 100%;
    height: 45px;
    background-color: rgb(0, 0, 54);
    color: bisque;
    text-align: center;
    font-size: 1em;
    text-anchor: middle;
}

.nav-quad-grid button {
    padding: 5px;
    width: 150px;
    height: 100px;
    background-color: rgba(0, 49, 0, 0.911);
    border-radius: 7px;
    border: none;
    box-shadow: 3px 2px 5px 2px rgba(128, 128, 128, 0.747);
    color: burlywood;
    cursor: pointer;
}

h2 {
    color: rgb(175, 175, 174);
    text-align: center;
    text-shadow: rgba(255, 204, 0, 0.651) 1px 0 10px;
}

h4 {
    color: rgb(189, 189, 189);
    text-shadow: rgba(4, 46, 0, 0.829) 1px 0 10px;
}

q {
    color: rgb(194, 186, 166);
}

sub {
    color: rgb(231, 231, 196);
    margin-bottom: 15px;
    margin-top: 10px;
}

.f-a-q {
    display: contents;
    margin-top: 10px;
}

.alert-restr {
    background-color: rgba(65, 0, 0, 0.753);
    border-radius: 12px;
    padding: 10px;
}

.alert-restr h4 {
    text-align: end;
    color: rgb(146, 144, 144);
    padding: 10px;
    text-indent: 1em;
}

.bg-question {
    box-shadow: 2px 3px 5px 3px rgba(80, 0, 0, 0.897);
}

.set-buttons-navigation {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;

    align-items: center;
    justify-items: center;
}

.set-buttons-navigation button {
    background-color: rgb(68, 68, 68);
    border: none;
    box-shadow: 2px 2px 2px 3px rgba(211, 211, 211, 0.534);
    border-radius: 7px;
    padding: 4px;
    cursor: pointer;
    transition: ease-in-out 0.4s;
    color: rgb(196, 193, 193);
    max-width: 300px;
}

ol li {
    color: rgb(135, 196, 148);
}

ul li {
    color: rgb(135, 196, 148);
}

h3 {
    text-indent: 1em;
    color: rgba(220, 220, 220, 0.788);
    font-size: 0.9em;
}

.language-switch select {
    background: rgb(53, 52, 52);
    cursor: pointer;
    border-radius: 6px;
    border: 1px rgb(0, 36, 0) solid;
}

.language-switch select option {
    background: rgb(53, 52, 52);
    cursor: pointer;
}

a {
    color: lightgreen;
    font-size: 12px;
}

p {
    margin: 10px;
    width: 90%;
    color: rgb(163, 163, 163);
    border-radius: 12px;
    padding: 7px;
    box-shadow: 2px 3px 4px 3px rgba(220, 220, 220, 0.336);
    text-indent: 2em;
    margin-bottom: 20px;
}

.wraped-grid-nav {

    margin: 10px;
    color: rgb(163, 163, 163);
    border-radius: 12px;
    padding: 7px;
    box-shadow: 2px 3px 4px 3px rgba(75, 70, 70, 0.336);
    text-indent: 2em;
}

fieldset div {
    margin-bottom: 15px;
}

.home-parent {

    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-home {
    background-color: rgb(68, 68, 68);
    border: none;
    box-shadow: 2px 2px 2px 3px rgba(211, 211, 211, 0.308);
    border-radius: 7px;
    padding: 4px;
    cursor: pointer;
    transition: ease-in-out 0.4s;
    color: red;
    font-size: 3em;

}

.btn-home:hover {
    box-shadow: 2px 2px 2px 3px rgb(109, 116, 93);
    background-color: rgb(184, 154, 118);
    color: goldenrod;
}

.cube {
    position: relative;
    width: 35px;
    height: 35px;
    transform-style: preserve-3d;
    animation: spin 4s infinite linear;
    margin: 35px auto;
}

#popup-info {
    position: fixed;
    width: 90%;
    height: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(35deg, rgba(80, 94, 48, 0.932), rgba(0, 0, 0, 0.788));
    color: rgb(136, 212, 129);
    padding: 25px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 3px 3px 5px 3px rgba(0, 56, 0, 0.685);
    z-index: 1000;
    overflow: hidden;
    overflow-y: auto;
}

.face {
    position: absolute;
    width: 35px;
    height: 35px;
    background: rgba(0, 33, 61, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: rgb(170, 165, 165);
    backface-visibility: hidden;
}

.front {
    transform: rotateY(0deg) translateZ(17.5px);
    border: solid 2px grey;
}

.back {
    transform: rotateY(180deg) translateZ(17.5px);
    border: solid 2px grey;
}

.right {
    transform: rotateY(90deg) translateZ(17.5px);
    border: solid 2px grey;
}

.left {
    transform: rotateY(-90deg) translateZ(17.5px);
    border: solid 2px grey;
}

.top {
    transform: rotateX(90deg) translateZ(17.5px);
    border: solid 2px grey;
}

.bottom {
    transform: rotateX(-90deg) translateZ(17.5px);
    border: solid 2px grey;
}

@keyframes spin {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@media (min-width: 300px) and (max-width: 750px) {
    fieldset {
        width: 300px;
        height: 600px;
        overflow-y: auto;
    }
}