@import url('/static/vars.css');

* {
    box-sizing: border-box;
    font-family: var(--main-font-family), sans-serif, -apple-system, BlinkMacSystemFont;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: medium;
}

html, body {
    height: 100%;
    max-width: 100%;
    background: var(--main-bg-color);
}

html, body, main {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--main-fg-color);
}

main {
    padding: var(--content-gutter);
}

hr {
    width: 100%;
    border-color: var(--main-fg-color);
}

h1, h2, h3 {
    font-weight: 600;
    text-align: center;
}

button {
    color: var(--main-fg-color);
    background: none;
    border: none;
}

img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

figure {
    position: relative;
    margin: 0;
}

figure img {
    width: 100%;
    height: 100%;
}

figure figcaption {
    color: var(--light-text-color);
    background-color: var(--caption-bg-color);
    padding: 10px;
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 2px;
    justify-content: right;
}

figcaption p {
    margin: 0;
    width: 90%;
    font-size: small;
    font-weight: 500;
    text-align: right;
}

header {
    background: var(--main-bg-color);
    z-index: 500;
    position: sticky;
    top: 0;
    left: 0;
    height: 13vmax;

    padding-left: var(--content-gutter);
    padding-right: var(--content-gutter);

    flex-shrink: 0;
    align-items: center;
}

#logo {
    width: 175px;
    height: 100%;
}

#home {
    height: 100%;
    width: 40px;
}

#menu {
    font-size: large;
}

.col {
    display: flex;
    flex-direction: column;
}

.rgap {
    row-gap: var(--content-row-gap);
}

.row {
    display: flex;
    flex-direction: row;
}

.space {
    justify-content: space-between;
}

.middle {
    justify-content: center;
}

.start {
    align-self: start;
}

.end {
    align-self: end;
}

.center {
    align-self: center;
}

.fill {
    align-self: stretch;
}

.bold, .bold * {
    font-weight: 600;
}

.shadow {
    box-shadow: var(--shadow-opts);
}

.text-center {
    text-align: center;
}

@keyframes fly-in {
    from {
        transform: translateX(200vw);
    }
    to {
        transform: none;
    }
}

@keyframes hide {
    from {
        visibility: hidden;
    }
    to {
        visibility: visible;
    }
}

.slide-item {
    --list-index: 0;
    --show-timing: 0.40s;
    --show-delay: calc(min(3s, var(--show-timing) * var(--list-index)));
    animation: hide var(--show-delay) step-end, fly-in var(--show-timing) ease-out var(--show-delay);
}

.box {
    position: relative;
    border: 0;
    border-radius: var(--box-corner-rounding);
}

.noframe {
    border: none;
    box-shadow: none;
}

.ghost {
    color: var(--selected-fg-color);
}

.box .close {
    position: absolute;
    top: 0;
    right: 0;
}

.box > * {
    margin: 10px;
    line-height: var(--box-leading);
}

.box figure {
    margin: 0;
    width: 100%;
}

.box figcaption {
    border-radius: 0 0 var(--box-corner-rounding) var(--box-corner-rounding);
}

.box img {
    border-radius: calc(var(--box-corner-rounding) * 1.5);
}

.highlight,.box-btn:active {
    background: var(--selected-color);
    color: var(--light-text-color);
}

.highlight,.box-btn:active * {
    color: var(--light-text-color);
}

.frame-margin {
    padding: 15px;
}

.overlay {
    background: black;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.fill-screen * {
    width: 100vw;
    height: 100vh;
}

.z1 {
    z-index: 900;
}

.z2 {
    z-index: 999;
}

.overlay-controls > * {
    color: #FFFFFFAA;
    margin: 5px;
}

.object-intro {
    padding-top: 10px;
    padding-bottom: 10px;
}

.loader {
    border: 16px solid var(--selected-fg-color);
    border-top: 16px solid var(--main-fg-color);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}