@import "common.css";

html {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
}

body {
    height: 100rex;
    width: 100%;
    box-sizing: border-box;
    max-width: 100rex;
    margin: auto;
    padding: 0 var(--gap-big);
    gap: var(--gap-big);
    border: 1rex;
    display: flex;
    flex-direction: column;
}

#header {
    display: flex;
    align-items: end;
    justify-content: space-between;
}

#header > pre {
    color: white;
    font-size: 1.2rex;
    text-shadow: 0 0 20px black;
    font-weight: bold;
}

#container {
    display: flex;
    flex-direction: column;
    border-radius: var(--gap-big);
    padding: var(--gap-big);
    gap: var(--gap-big);
    background: #ffffff33;
    overflow: scroll;
}

#nav {
    line-height: 0;
    background: #ffffffcc;
    border-radius: var(--gap-big);
    font-size: 5rex;
    position: sticky;
    top: 0;
    margin: auto;
    padding: 0;
    width: fit-content;
}

#nav menu {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    justify-content: center;
    padding: 0 4rex;
    margin: 0;
}

#nav li {
    padding: 1rex;
}

#nav img {
    padding: 1rex;
    width: 5rex;
    height: 5rex;
    border-radius: 1rex;
}

#nav img[src$='_s.svg'] {
    filter: invert() brightness(0.5) hue-rotate(170deg) saturate(1000%);
    background: #ffffff10;
}

#main > footer {
    border-radius: var(--gap-small);
    padding: 2rex;
    background: #142b322e;
    clear: both;
}

#mii {
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 750px) {
    #mii {
        display: none;
    }

    #nav {
        position: unset;
    }

    #nav menu {
        padding: 0 2rex;
        grid-template-columns: repeat(4, 1fr);
    }
}
