@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;800&display=swap');

* {
    font-family:'Montserrat', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 0;
    padding: 0;
    color: white;
    box-sizing: border-box;
    z-index: 1;
}
button {
    background: none;
    border: none;
    padding: 0;
    display: block;
    text-align: left;
    cursor: pointer;
}
body {
    background-color: #181419;
    transition: .3s ease-in background-color;
}
header {
    height: 72px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    z-index: 3;
    
    padding: 0 64px;

    position: fixed;
    left: 0;
}
.page_logo {
    font-weight: 800;
    font-size: 16px;

    justify-self: center;
}
.page_logo div {
    background-color: white;
    width: 6px;
    aspect-ratio: 1/1;
    display: inline-block;
    margin-bottom: 8px;
    margin-left: 0;
}
.header-button {
    color: white;
    transition: .3s ease-in background-color;

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

    width: 48px;
    height: 48px;
    border-radius: 100px;

    cursor: pointer;
}
.header-button svg {
    width: 20px;
    aspect-ratio: 1/1;
    fill: currentColor;
}
.header-button:hover, .header-button:focus {
    transition-duration: .05s;
    background-color: rgba(255,255,255,0.3);
}
.header-button:disabled {
    display: none;
}
.header-side {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-side:first-child {
    justify-self: start;
}
.header-side:last-child {
    justify-self: end;
}
.page-backgrounds {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    overflow: clip;
    z-index: 0;
    transition: .6s ease-in filter, .5s ease-in-out opacity;
}
.page-backgrounds.darken {
    filter: brightness(0.4);
}
.page-backgrounds.hidden {
    opacity: 0;
}
.page-backgrounds img {
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 100%;
    animation-name: bgAppearance;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
    /* filter: brightness(0.75); */
}
.page-backgrounds .hidden {
    display: none;
}
.page-backgrounds .hiding {
    animation-name: bgHiding;
    animation-direction: reverse;
}

@keyframes bgAppearance {
    from {
        transform: translate(0, 50px);
        scale: 1.5;
        filter: brightness(0)
    }
    70% {
        transform: translate(0 0);
    }
    to {
        transform: translate(0 0);
        scale: 1;
    } 
}
@keyframes bgHiding {
    from {
        transform: translate(0, 50px);
        scale: 1.5;
        filter: brightness(0)
    }
    70% {
        transform: translate(0 0);
    }
    to {
        transform: translate(0 0);
        scale: 1;
        filter: brightness(0.6);
    } 
}
.screen {
    width: 100vw;
    height: 100vh;
    position: absolute;
    transition: .5s ease-in-out opacity;
    z-index: 1;
    opacity: 1;
}
.screen.no-transition {
    transition: none;
}
.archive-screen {
    padding: 96px 16px 16px 16px;
    max-width: 1000px;
    margin: 0 auto;
}
.archive-maps img {
    max-width: 100%;
}
.archive-maps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    margin-top: 32px;
}
.selection-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: fit-content;
    background-color: rgba(255,255,255,0.1);
    height: 48px;
    padding: 4px;
    border-radius: 100px;
    overflow: clip;
    margin-top: 16px;
}
.selection-buttons button {
    height: 100%;
    border-radius: 100px;
    font-size: 14px;
    padding: 0 16px;
    width: 100%;
    text-align: center;
}
.selection-buttons button.active {
    background-color: rgba(255,255,255,0.1);
}
.screen.hidden {
    pointer-events: none;
    opacity: 0;
}

.popup {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 16px;
    border-radius: 16px;
    max-width: 420px;

    display: flex;
    align-items: flex-start;
    transition: .3s opacity;
}
.popup.hidden {
    opacity: 0;
    pointer-events: none;
}
.popup svg {
    width: 24px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
}
.popup span {
    font-size: 14px;
    margin-left: 8px;
}

.footer-logo {
    border-radius: 100px;
    color: white;
    font-weight: 700;
    font-size: 16px;
}
.footer-logo div {
    background-color: white;
    width: 6px;
    aspect-ratio: 1/1;
    display: inline-block;
    margin-bottom: 8px;
    margin-left: -4px;
}
footer {
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
footer .links {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 48px;
}
footer a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    text-align: center;
    text-wrap: nowrap;
}
.ip-address {
    text-align: right;
}
.ip-address span {
    font-family: monospace;
    font-size: 18px;
}