@font-face {
    font-display: swap;
    font-family: Gotham SSm;
    font-style: normal;
    font-weight: 500;
    src: url(fonts/GothamSSm-Medium_Web.woff2) format("woff2")
}

@font-face {
    font-display: swap;
    font-family: Gotham SSm;
    font-style: normal;
    font-weight: 400;
    src: url(fonts/GothamSSm-Book_Web.woff2) format("woff2")
}

@font-face {
    font-display: swap;
    font-family: Gotham SSm;
    font-style: normal;
    font-weight: 300;
    src: url(fonts/GothamSSm-Light_Web.woff2) format("woff2")
}

.dark-theme {
    --background-color: #141315;
    --text-color: #fcfcfc;
    --inverted-text-color: #191919;
    --note-color: #a4a4a4;
    --content-background: #1a1b20;
    --content-border-color: #4f4f4f;
    --hover-content-background: #242325;
    --darker-background-color: #0a0a0b;
    --header-background: linear-gradient(0deg, #14131533, var(--darker-background-color));
    --link-default-color: #e8e8e9;
    --link-underlined-color: #e8e8e9;
    --lighter-shadow: #2f2f2f;
    --header-color: #efefef;
    --footer-background: #000000;
    --footer-content-background: rgba(26, 27, 33, 0.502);
    --box-shadow: 5px 5px 10px rgba(0, 0, 0, .5);
    --hover-box-shadow: 5px 5px 20px rgba(0, 0, 0, .4);
    --arrow-color: #666; /* Dark gray for light theme */
    --high-res-viewer-bg: rgba(0, 0, 0, 0.9);
}

.light-theme {
    --background-color: #e8e7e8;
    --text-color: #191919;
    --inverted-text-color: #fcfcfc;
    --note-color: #4f4f4f;
    --content-background: #e8e8e9;
    --content-border-color: #a4a4a4;
    --hover-content-background: #f5f5f5;
    --darker-background-color: #d1d0d1;
    --header-background: linear-gradient(0deg, #e8e7e833, var(--darker-background-color));
    --link-default-color: #1a1b20;
    --link-underlined-color: #1a1b20;
    --lighter-shadow: #d5d5d5;
    --header-color: #181818;
    --footer-background: #d8d8d8;
    --footer-content-background: #f5f5f5;
    --box-shadow: 5px 5px 10px rgba(0, 0, 0, .2);
    --hover-box-shadow: 5px 5px 20px rgba(0, 0, 0, .15);
    --arrow-color: #ccc; /* Same as dark mode for better look */
    --high-res-viewer-bg: rgba(255, 255, 255, 0.9);
}

*::-webkit-scrollbar {
    width: 10px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: #888;
}

*::-webkit-scrollbar-thumb:hover {
    background: #555;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.5s cubic-bezier(.19, 1, .22, 1);
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}

@keyframes slideInY {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    transform: translateY(5px);
    animation: slideInY 0.3s cubic-bezier(.19, 1, .22, 1) forwards;
}

a, button {
    text-decoration: none;
    user-select: none;
    color: var(--link-default-color);
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-focus-ring-color: transparent;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* user-select: none; */
    min-height: 100vh;
    overflow-x: hidden; /* Prevents horizontal scrolling */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    font-family: Gotham SSm, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
}