@font-face {
    font-family: "TexGyre";
    src: url("/resources/fonts/tg-adventor.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "TexGyreBold";
    src: url("/resources/fonts/tg-adventor-bold.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Eurostile";
    src: url("/resources/fonts/eurostile.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "ITCAvantGarde";
    src: url("/resources/fonts/itcbold.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

body {
    background: black;
    color: #D6C000;
    font-family: "TexGyre", sans-serif;
    padding: 0;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
    position: relative;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #D6C000;
    padding: 5px 20px 20px 20px;
    background: rgba(3, 13, 2, 0.85);
}

.moon {
    position: fixed;
    bottom: 15%;
    right: 15%;
    width: 500px;
    height: 500px;
    background-image: url('/resources/img/assets/samplemonsoon/moon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    pointer-events: none;
}

.mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background-image: url('/resources/img/assets/samplemonsoon/scape.png');
    background-size: 100% auto;
    background-position: bottom center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.header {
    margin-bottom: 0;
    padding-bottom: 0;
}

.logo {
    font-family: "ITCAvantGarde";
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 2px;
    color: #D6C000;
    text-align: center;
}

.logo img {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 20px auto -10px auto;
}

.nav {
    display: none;
}

.scroll-indicator {
    display: none;
}

.wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    max-width: calc(900px + 80px);
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.vertical-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "TexGyre", sans-serif;
    letter-spacing: 2px;
    border-left: 1px solid #137500;
    border-right: 1px solid #137500;
    padding: 20px 5px;
    background: #030D02;
    margin-top: 119px;
    position: sticky;
    top: 20px;
    height: fit-content;
    align-self: flex-start;
}

.vertical-nav a {
    color: #D6C000;
    text-decoration: none;
    margin: 20px 0;
    font-size: 0.85rem;
    transform: rotate(180deg);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.vertical-nav a:hover {
    color: #137500;
    background: none;
}

.vertical-nav a:active {
    background: #D6C000;
    color: #030D02;
}

.main {
    display: flex;
    gap: 40px;
    margin: 5px 0;
    align-items: flex-start;
}

.content {
    flex: 2;
}

.sidebar {
    flex: 0 0 350px;
    background: rgba(10, 26, 8, 0.7);
    padding: 20px 20px 10px 20px;
    border: 1px solid #137500;
    box-sizing: border-box;
    height: fit-content;
}

.sidebar iframe {
    display: block;
    margin-bottom: 10px;
}

.sidebar p.small {
    margin-bottom: 0;
}

h1 {
    font-family: "ITCAvantGarde";
    letter-spacing: -0.5px;
    font-size: 2rem;
    margin: 5px 0 10px 0;
    font-weight: normal;
    color: #D6C000;
}

h2 {
    font-family: "Eurostile", sans-serif;
    font-size: 1.5rem;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    display: inline-block;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: white;
}

p {
    margin: 0 0 15px 0;
    color: #c4b888;
}

.footer {
    border-top: 1px solid #137500;
    margin-top: 30px;
    padding-top: 20px;
    font-size: 0.65rem;
    text-align: center;
    color: #8a7f6e;
}

hr {
    border: none;
    border-top: 1px dotted #137500;
    margin: 20px 0;
}

.small {
    font-size: 0.65rem;
    color: #8a7f6e;
}

.footer .small {
    margin-bottom: 0;
}

.bullet {
    margin-right: 8px;
}

a {
    color: #D6C000;
    text-decoration: underline;
    text-decoration-color: #137500;
}

a:hover {
    color: #137500;
    background: none;
}

.stupidbuttonwrapper {
    position: absolute;
    bottom: 25px;
    right: 25px;
    left: auto;
    white-space: nowrap;
    z-index: 1000;
}

.interactive-btn {
    padding: 10px 20px;
    background-color: #030D02;
    color: #D6C000;
    border: 1px solid #D6C000;
    font-family: "TexGyre", sans-serif;
    cursor: pointer;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
}

.tooltip {
    cursor: pointer;
    border-bottom: 1px dotted #137500;
    position: relative;
    text-underline-offset: 2px;
}

.tooltip-popup {
    position: absolute;
    background: #030D02;
    color: #D6C000;
    border: 1px solid #137500;
    padding: 15px 25px 15px 15px;
    z-index: 1000;
    font-size: 0.85rem;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
    font-family: monospace;
    letter-spacing: normal;
}

.tooltip-popup img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.tooltip-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 5px;
    color: #137500;
}

.tooltip-close:hover {
    color: #D6C000;
}

.tooltip.active {
    background: white;
    color: black;
    border-bottom-style: solid;
}

.logo-text {
    display: none;
}

.nounderline {
    text-decoration: none;
    color: inherit;
}

body.samplemonsoon .main {
    display: block;
    overflow: visible; 
}

body.samplemonsoon .main::after {
    content: "";
    display: table;
    clear: both;
}

body.samplemonsoon .content p:first-of-type {
    margin-top: -8px;
}

body.samplemonsoon .sidebar {
    float: right;
    width: 350px;
    margin-left: 20px;
    margin-bottom: 20px;
    flex: none;
}

body.samplemonsoon .content {
    flex: none;
}

@media (pointer: coarse) {
    .interactive-btn {
        padding: 8px 16px;
        font-size: 0.72rem;
        letter-spacing: 1px;
    }
    
    .stupidbuttonwrapper {
        bottom: 20px;
        right: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .interactive-btn {
        background: transparent;
        border: none;
        padding: 5px;
        text-decoration: underline;
    }
    
    .stupidbuttonwrapper {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 768px) {
    html, body {
        margin: 0;
        padding: 0;
    }

    body {
        min-height: 100vh;
        overscroll-behavior: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }

    .container {
        border: none;
        padding: 15px;
        max-width: 100%;
        margin: 0;
        transform: translateZ(0);
    }

    .moon, .mountains {
        display: none;
    }

    .wrapper {
        display: block;
        min-height: 0;
        padding: 10px;
    }

    .main {
        flex-direction: column;
        margin-top: 5px;
        gap: 20px;
        min-height: 0;
    }

    .logo img {
        display: none;
    }

    .logo-text {
        display: block;
        font-family: "ITCAvantGarde";
        font-size: 2rem;
        font-weight: normal;
        letter-spacing: 2px;
        color: #D6C000;
        text-align: center;
        border-top: 1px solid #137500;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .nav {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        z-index: 100;
        padding: 5px 0;
        border-top: 1px solid #137500;
        border-bottom: 1px solid #137500;
        margin-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .nav a {
        display: inline-block;
        font-size: 0.8rem;
    }

    .nav a:active {
        background: #D6C000;
        color: #030D02;
    }

    .sticky {
        position: static;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        background: #030D02;
    }

    .vertical-nav {
        display: none;
    }

    .sidebar {
        width: 100%;
        max-width: 100%;
        margin: 20px auto;
        float: none;
        display: block;
    }

    .sidebar iframe {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 350px;
    }

    .footer {
        font-size: 0.55rem;
    }

    .dot {
        display: inline-block;
        margin: 0 20px;
    }

    .scroll-indicator {
        display: block;
        text-align: right;
        font-size: 0.7rem;
        color: #666;
        margin-top: 5px;
        line-height: 1;
        white-space: nowrap;
    }

    .content {
        overflow-y: visible;
    }

    body.samplemonsoon .main {
        overflow: visible;
    }

    .stupidbuttonwrapper {
        position: relative;
        bottom: auto;
        right: auto;
        text-align: center;
        margin: 0 auto 10px auto;
        display: block;
    }

    .interactive-btn {
        background: #030D02;
        border: 1px solid #D6C000;
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

@keyframes scroll-rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 1000% 50%; }
}

.rainbow-scroll {
    background: linear-gradient(90deg,
        red, orange, yellow, lime, cyan, magenta, hotpink,
        red, orange, yellow, lime, cyan, magenta, hotpink,
        red, orange, yellow, lime, cyan, magenta, hotpink,
        red);
    background-size: 1000% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: scroll-rainbow 120s linear infinite;
}