:root {
    --gold1: #ebce4d;
    --gold2: #facb00;
    --gold3: #b29f31;
    --gold4: #a69626;
    --gold5: #8c810e;
    --gradient1: #6a5acd;
    --gradient2: #778491;
    --gradient3: #9b91a1;
    --gradient4: #aa9982;
    --gradient5: #999972;
    --blue1: #5874ed;
    --blue2: #0534ff;
    --blue3: #4d60ce;
    --blue4: #3d55c1;
    --blue5: #2145ad;
    --silver1: #e8e8e8;
    --silver2: #d2d2d2;
    --silver3: #a6a6a6;
    --silver4: #7d7d7d;
    --silver5: #666666;
    --black1: #121212;
    --bg1: #2a3f8a;
    --bg2: #9e8a15;
    --bg3: #6b6b10;
    --bg4: #44443a;
    --goldw: #ffff00;
    --bluew: #0000ff;
    --redw: #ff0000;
    --greenw: #00ff00;
    --goldt: #fff;
    --bluet: #fff;

    --transition-speed: 0.3s;
}

* {
    margin: 0;
    font-family: 'courier new', courier, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-image: none;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: repeat;
    background-color: var(--bg1);
}

body:not(.no-animations) *,
body:not(.no-animations) *::before,
body:not(.no-animations) *::after {
    transition: background-color var(--transition-speed) ease-in-out, 
                color var(--transition-speed) ease-in-out, 
                transform var(--transition-speed) ease-out, 
                opacity var(--transition-speed) ease-in-out;
}

.no-animations * {
    transition: none !important;
    animation: none !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

a,
a:focus,
a:hover {
    text-decoration: none;
}

#page-content {
    transition: opacity var(--transition-speed) ease-in-out;
}

#page-content.fade-out {
    opacity: 0;
}
#menu-toggle {
    display: flex;
    flex-direction: column;
    width: 40px;
    height: 38px;
    padding: 0;
    position: fixed;
    top: 35px;
    left: 0;
    z-index: 1001;
    cursor: pointer;
    background-color: var(--gold4);
    border: 10px solid var(--blue5);
    border-left: 0;
    color: var(--goldt);
    font-weight: 700;
    font-size: 0.8rem;
}

#menu-toggle:hover {
    border-color: var(--gold2);
    border-left: 0;
}

#menu-toggle span {
    width: auto;
    height: auto;
    background-color: transparent;
    display: block;
    margin: 0;
    border-radius: 0;
}

.topleft-container {
    display: flex;
    padding-bottom: 15px;
    padding-top: 15px;
    overflow-y: hidden;
    flex-direction: column;
    align-items: center;
    border-bottom: 6px solid var(--gold3);
}

.topleft-gif {
    max-width: 100%;
    height: auto;
}

.nav-container {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
    margin-bottom: 15px;
    margin-top: 15px;
}

.nav-button {
    background-color: var(--gold5);
    width: 90%;
    margin-bottom: 5px;
    padding: 5px;
    cursor: pointer;
    border-top: 10px solid var(--gold2);
    border-left: 10px solid var(--gold2);
    border-bottom: 10px solid var(--blue5);
    border-right: 10px solid var(--blue5);
    user-select: none;
}

.nav-button:hover {
    border-color: var(--blue5) var(--gold2) var(--gold2) var(--blue5);
}

.nav-button:active {
    border-color: var(--blue5) var(--gold2) var(--gold2) var(--blue5);
}

.nav-button a {
    color: var(--goldt);
    text-decoration: none;
}

.nav-link {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    color: var(--goldt);
    padding: 5px;
}

.nav-link .nav-text {
    flex-grow: 1;
    text-align: center;
}

.nav-link .nav-text a {
    color: var(--goldt);
    display: block;
}

.nav-link .nav-text a:hover {
    color: var(--goldw);
    text-decoration: underline dashed 3px;
}

.nav-link .nav-text a:active {
    color: var(--redw);
    text-decoration: underline dashed 3px;
}

.nav-arrow {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 6px solid var(--blue5);
    border-left: 0;
    border-top: 0;
    transform: rotate(225deg);
    margin: 0;
    flex-shrink: 0;
}

.nav-button.expanded .nav-arrow {
    transform: rotate(405deg);
}

.nav-button.expanded {
    border-top: 10px solid var(--blue5);
    border-left: 10px solid var(--blue5);
    border-bottom: 10px solid var(--gold2);
    border-right: 10px solid var(--gold2);
}

.sub-nav {
    list-style: none;
    padding: 0;
    overflow: hidden;
    max-height: 0;
}

.nav-button.expanded .sub-nav {
    max-height: 150px;
    padding: 5px;
}

.sub-nav li {
    margin-bottom: 8px;
}

.sub-nav a {
    font-size: 0.9rem;
    padding-bottom: 3px;
    font-weight: 400;
    color: var(--goldt);
}

.sub-nav a:hover {
    color: var(--goldw);
    text-decoration: underline solid 2px;
    font-weight: 700;
}

.sub-nav a:active {
    color: var(--redw);
    text-decoration: underline solid 2px;
    font-weight: 700;
}

#sidebar {
    color: var(--goldt);
    position: fixed;
    height: 100%;
    width: 194px;
    border: 10px solid var(--blue5);
    margin: 0px;
    background-color: var(--gold4);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: auto;
    transform: translateX(-100%);
}

body:not(.no-animations) #sidebar {
    transition: transform var(--transition-speed) ease-in-out, background-color var(--transition-speed) ease-in-out, border-color var(--transition-speed) ease-in-out;
}

#sidebar.sidebar-visible {
    transform: translateX(0);
}

.settings-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 700;
}

.settings-toggle button {
    background-color: var(--silver4);
    color: var(--black1);
    border: 5px solid var(--blue2);
    padding: 2px 10px;
    cursor: pointer;
    font-weight: 700;
    width: 50px;
    text-align: center;
    font-size: 0.8rem;
}

.settings-toggle button[aria-checked="true"] {
    background-color: var(--greenw);
    border-color: var(--gold2);
}

.copy-box {
    width: 85%;
    height: 50px;
    font-size: 12px;
    margin-top: 15px;
    margin-bottom: 25px;
    border: 5px solid var(--blue2);
    overflow: auto;
    display: flex;
    resize: vertical;
    background-color: #fff;
    color: var(--black1);
    padding: 5px;
}

.link-me {
    margin-top: 25px;
}

#right-side {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 75px;
    background-color: transparent;
}

header,
footer {
    background-color: var(--gold4);
    color: var(--goldt);
}

header {
    border-bottom: 10px solid var(--gold2);
    padding: 15px;
    text-align: center;
    margin-bottom: 10px;
}

body:not(.no-animations) header {
    transition: background-color var(--transition-speed) ease-in-out,
                border-bottom-color var(--transition-speed) ease-in-out;
}

main {
    padding: 0;
    flex-grow: 1;
    color: var(--goldt);
}

.scroll-content {
    margin: 25px;
    padding: 15px;
    border: 5px dashed var(--gold3);
}

main a {
    color: var(--gold1);
    font-weight: 500;
}

main a:visited {
    color: var(--greenw);
}

main a:hover {
    color: var(--goldw);
    font-weight: 600;
}

main a:active {
    color: var(--redw);
    font-weight: 600;
}

footer {
    position: fixed;
    border-top: 10px solid var(--gold2);
    text-align: center;
    padding: 6px;
    padding-left: 20px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

body:not(.no-animations) footer {
    transition: background-color var(--transition-speed) ease-in-out,
                border-top-color var(--transition-speed) ease-in-out;
}

footer a {
    color: var(--silver1);
}

.container {
    overflow: hidden;
    white-space: nowrap;
}

.scrolling {
    animation: marquee 20s linear infinite;
    font-size: 18px;
    font-weight: 800;
    color: var(--gold1);
    display: inline-block;
    margin-bottom: 15px;
}

.highlight {
    background-color: var(--black1);
    padding-top: 5px;
    padding-left: 15px;
    padding-right: 15px;
    color: var(--silver1);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(2, 88px);
    gap: 0;
    justify-content: center;
    margin-bottom: 10px;
    width: 100%;
}

.sites-grid a {
    display: block;
    width: 88px;
    height: 31px;
    image-rendering: pixelated;
}

body:not(.no-animations) .sites-grid a {
    transition: transform var(--transition-speed) ease-in-out, border-color var(--transition-speed) ease-in-out, z-index 0s linear 0.2s;
}

.sites-grid a:hover {
    transform: scale(2);
    width: 88px;
    height: 31px;
    background-color: var(--blue5);
    z-index: 1001;
}

.sites-grid img {
    display: block;
    width: 100%;
    height: 100%;
}

.sites-grid a:nth-child(even) {
    transform-origin: right;
}

.sites-grid a:nth-child(odd) {
    transform-origin: left;
}

@media (min-width: 941px) {
    #menu-toggle {
        display: none;
    }

    #sidebar {
        transform: translateX(0);
    }

    #right-side {
        margin-left: 194px;
        width: calc(100% - 194px);
    }

    footer {
        left: 194px;
        right: 0;
    }
}