@font-face {
    font-family: "EB Garamond";
    src: url("fonts/EBGaramond08-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "EB Garamond";
    src: url("fonts/EBGaramond08-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
}

body {
    margin: 0;
    font-family: "EB Garamond", 'Times New Roman', Times, serif;
    min-height: 100svh;
    max-height: 100svh;
}

h1, h2, p {
    margin: 0;
}

a {
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: "EB Garamond", 'Times New Roman', Times, serif;
}

.page {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
}

.page-info {
    position: fixed;
    top: 0.5rem;
    right: 0.5rem;
    border-radius: 2rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 300ms ease;
    z-index: 10;
    background-color: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    max-height: calc(100vh - 1rem);
    overflow-x: auto;
}

.page-info.open {
    display: block;
    width: 25vw;
    height: unset;
    max-width: 300px;
    border-radius: 4px;
}

.page-info.open .page-info-toggle {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    rotate: 45deg;
}

.page-info-language-switcher {
    display: none;
}

.page-info.open .page-info-language-switcher {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0.5rem;
    opacity: 0.5;
}

.page-info.open .page-info-language-switcher:hover {
    opacity: 1;
}


.page-info-content {
    display: none;
    padding: 2rem 0.5rem 0.5rem;
}

.page-info.open .page-info-content.active {
    display: block;
}

.page-info-content-title {
    padding: 0 2rem;
}

.page-info p:not(:last-child) {
    margin-bottom: 1rem;
}

.page-info-content-credits {
    margin: 1rem;
}

.mar-bot-s {
    margin-bottom: 1rem;
}

/* Typography */
.text-center {
    text-align: center;
}

.text-small-caps {
    font-variant: small-caps;
    font-size: 0.9em;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-micro {
    font-size: 13px;
    line-height: 1.2em;
}

.text-small {
    font-size: 16px;
}

.text-medium {
    font-size: 20px;
}

.text-huge {
    text-transform: uppercase;
    font-size: 220px;
    letter-spacing: -0.08em;
    line-height: 0.8em;
}

.canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fade-in {
    animation: fade-in 0.3s var(--delay, 0s) ease-in-out both;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}