:root {
    --icon-color: #8b82e4;
}

* {
    -webkit-user-select: none;
    user-select: none;
}

a, a:visited, a:hover, a:active {
	color: inherit;
}

.header-main {
    position: fixed;

    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    z-index: 1;
}

.header-main::before, .header-main::after {
    content: "";
}

.header-main, .header-padding {
    width: 100%;
    height: 15vh;
}

.header-logo {
    position: relative;
    height: 100%;
    margin: 0 3%;
    aspect-ratio: 1 / 1;

    pointer-events: all;
}

.header-logo-img {
    width: 100%;
    height: 100%;

    background-image: url("/static/resources/gold.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    -webkit-mask: url("/static/resources/sig.png") no-repeat center;
    mask: url("/static/resources/sig.png") no-repeat center;
    mask-size: cover;

    transition: all 250ms ease-in-out;
}

.header-logo:hover .header-logo-img {
    filter: brightness(110%);
}

.header-logo::before {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 200%;
    height: 100%;

    background: radial-gradient(ellipse at center,
                                rgba(235 214 94 / 0.3) 0%,
                                rgba(235 214 94 / 0.1) 20%,
                                rgba(235 214 94 / 0) 40%);

    pointer-events: none;

    transition: all 250ms ease-in-out;
}

.header-logo:hover::before {
    width: 250%;
    height: 125%;
}

.nav-item {
    position: relative;
    height: 50%;
    margin: 0 3%;
    aspect-ratio: 1 / 1;

    pointer-events: all;
    cursor: pointer;
}

@media (aspect-ratio <= 1 / 1) {
    .nav-item {
        width: 7.5%;
        height: auto;
    }
}

.nav-icon {
    width: 100%;
    height: 100%;

    opacity: 100%;
    background: radial-gradient(ellipse at center, rgba(253 253 253 / 0.7) 0%, rgba(253 253 253 / 0) 67%), rgb(192, 192, 192);
    z-index: 1;

    mask-size: cover;

    transition: all 200ms ease-in-out;
}

.nav-item.nav-active .nav-icon {
    background: radial-gradient(ellipse at center, rgba(201 196 255 / 0.5) 0%, rgba(201 196 255 / 0) 67%), var(--icon-color);
}

.nav-item:hover .nav-icon {
    filter: brightness(110%);
}

.nav-item::before {
    content: "";

    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;

    background-image: radial-gradient(ellipse at center,
                                      rgba(243 243 243 / 0.4) 0%,
                                      rgba(243 243 243 / 0.2) 33%,
                                      rgba(243 243 243 / 0.05) 50%,
                                      rgba(243 243 243 / 0) 67%);

    z-index: 0;
    pointer-events: none;

    transition: all 250ms ease-in-out;
}

.nav-item.nav-active::before {
    background-image: radial-gradient(ellipse at center,
                                      rgba(157 148 234 / 0.4) 0%,
                                      rgba(157 148 234 / 0.2) 33%,
                                      rgba(157 148 234 / 0.05) 50%,
                                      rgba(157 148 234 / 0) 67%);
}

.nav-item:hover::before {
    scale: 115%;
    transform-origin: 50% 50%;
}

.nav-label {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}

.nav-label-text {
    font-family: 'Marck Script', cursive;
    font-size: 2em;
    color: white;
    text-shadow:
        -1px -1px 0px darkslategray, /* Top-left shadow */
        0px -1px 0px darkslategray,  /* Top shadow */
        1px -1px 0px darkslategray,  /* Top-right shadow */
        -1px 0px 0px darkslategray,  /* Left shadow */
        1px 0px 0px darkslategray,   /* Right shadow */
        -1px 1px 0px darkslategray,  /* Bottom-left shadow */
        0px 1px 0px darkslategray,   /* Bottom shadow */
        1px 1px 0px darkslategray;   /* Bottom-right shadow */
}

@media (400px <= width < 650px) {
    .nav-label-text {
        font-size: 1em;
    }
}

@media (width < 400px) {
    .nav-label-text {
        font-size: 1em;
    }
}

.body-content {
    width: 100%;
    contain: layout;
}

.galaxy-bg {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    z-index: -1;
    pointer-events: none;
}

.galaxy-bg-img {
    position: relative;
    top: 50%;
    left: 50%;
    width: 110%;

    transform: translate(-50%, -50%);
    object-fit: cover;

    filter: brightness(89%);
}

@media (aspect-ratio < 31 / 26) {
    .galaxy-bg-img {
        width: auto;
        height: 110%;
    }
}

.version-container {
    position: fixed;
    top: 0;
    left: 0;

    z-index: 2;
}

.version-text {
    color: white;
}

.fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;

    background-color: rgba(0, 0, 0, 0.7);

    display: none;
    z-index: 100; /* on top */
}

.fullscreen-container.shown {
    display: inline;
}

.fullscreen-contents {
    width: 100%;
    height: 100%;

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
}

.fullscreen-item {
    width: 100%;
    height: 100%;

    object-fit: scale-down;
}

.fullscreen-close {
    position: absolute;
    top: 0;
    left: 100%;
    width: 3em;
    margin: 0.5em;
    aspect-ratio: 1 / 1;
    translate: calc(-100% - 1em) 0;

    background-color: white;
    mask-image: url("/static/resources/icons/x.svg");

    cursor: pointer;
}
