@import url('https://fonts.googleapis.com/css2?family=Short+Stack&display=swap');

* {
    box-sizing: border-box;
    font-family: "Short Stack", cursive;
    font-style: normal;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #fff1da;
    color: #272727;
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-wrap: break-word;
    padding: 1rem;
}

.hidden {
    display: none;
}

a {
    color: royalblue;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: rgb(65 105 225 / 0.7);
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background-color: #f3d7af;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;

    transition: opacity 0.5s ease, visibility 0.5s ease;
    opacity: 1;
    visibility: visible;
}

#preloader_icon {
    font-size: clamp(3.5rem, 18vw, 6rem);
    color: #354973;
}

#preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 480px) {
    body {
        padding: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
