:root {
    --background-color-light: #3696cd;
    --background-color-dark: #25997e;
    --background-box: #b1646e;

    --text-color-light: #e89631;
    --text-color-dark: #c77116;

    --box-spacer: 60px;
    --box-border-width: 4px;
    --box-border-color: #8b2727;
    --box-color-shadow: #000000aa;

    --redsun-border: #191715;

    --tf2-light: #9d5322;
    --tf2-dark: #262425;

    --gallery-transparent: rgba(0, 0, 0, 0.5);
    --gallery-image-outline: 1px;
}

/* FONTS */

@font-face {
    font-family: "Eesti";
    src: url("/static/fonts/GT-Eesti-Text-Light-subset.woff2") format("woff2");
    font-weight: 400;
}

@font-face {
    font-family: "Eesti";
    src: url("/static/fonts/GT-Eesti-Text-Medium-subset.woff2") format("woff2");
    font-weight: 600;
}

@font-face {
    font-family: 'Kimberley';
    src: url("/static/fonts/kimberley bl.otf") format("opentype");
}

@font-face {
    font-family: 'Puffy';
    src: url("/static/fonts/Puffy.otf") format("opentype");
}

@font-face {
    font-family: 'Deutsch';
    src: url("/static/fonts/Deutsch.ttf") format("truetype");
}

@font-face {
    font-family: 'Rounded Line 7';
    src: url("/static/fonts/rounded_line_7.ttf") format("truetype");
}

/* GLOBAL */

body {
    min-height: 100vh;
    margin: 0;

    color: #ddd;
    font: 16px Helvetica, sans-serif;
    font-size: 1.2rem;
    text-align: center;
}

h1 {
    font-size: 50px;
    font-family: system-ui;
    font-weight: bold;
    text-transform: uppercase;

    margin: 5px auto;
}

h2 {
    font-weight: bold;
}

p {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

a {
    color: royalblue;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: mediumpurple;
}

h1, h2, p {
    text-shadow: 0px 0px 3px black, 1px 1px 0px black;
}

/* MAIN */

.header {
    width: 100%;

    margin-top: 50px;
    margin-bottom: 50px;
    padding-top: 50px;
    padding-bottom: 70px;

    text-align: center;
    position: relative;
}

.title-1, .title-2 {
    font-size: 100px;
    font-family: 'Kimberley';

    text-shadow: 1px 1px 0px black,
        -1px 1px 0px black,
        1px -1px 0px black,
        -1px -1px 0px black,
        10px 5px 0px black;

    animation-name: title;
    animation-duration: 10s;
    animation-iteration-count: infinite;
}

@keyframes title {
    0%   {color: var(--text-color-dark);}
    30%   {color: var(--text-color-dark);}
    50%  {color: var(--text-color-light);}
    80%  {color: var(--text-color-light);}
    100%   {color: var(--text-color-dark);}
}

.title-1 {
}

.title-2 {
    animation-delay: -5s;
}

.section {
    margin: var(--box-spacer) 100px;
}

.box {
    padding: 0px 20px;
    border: var(--box-border-width) solid var(--box-border-color);
    border-radius: 20px;
    box-shadow: 1px 6px 15px black;
    overflow: hidden;
}

.box-spacer {
    width: var(--box-spacer);
    height: var(--box-spacer);
}

/* FOUNDERS AND CODERS */

.founders {
    border-radius: 0;
    border-color: black;
    background: repeating-linear-gradient(135deg, white 0px, white 8px, #e1e1e1 8px, #e1e1e1 10px);

    padding: 0;
}

.founders > div > h1,
.founders > div > p {
    display: inline-block;
    padding: 6px 16px;

    font-family: "Eesti";
    color: black;
    text-shadow: none;
}

.founders > div > h1 {
    text-transform: none;
    background-color: #ffe500;
}

.founders > div > p {
    background-color: white;
}

.founders > div > div {
    min-width: var(--box-border-width);
    background-color: black;

    border-top: var(--box-border-width) solid black;
}

.stonewaters {
    background-image: url("/static/public/imgs/stonewaters.png");
    background-size: cover;
    background-position: center;
    padding: 0 var(--box-spacer);

    font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
    color: #fcf5e5;
}

.stonewaters > h2,
.stonewaters > p {
    display: inline-block;
    padding: 5px;

    background-color: #61462f;
    text-shadow: -1px -1px 1px rgba(31, 16, 3, 0.5);
}

.stonewaters > h2 {
    border: 10px ridge #3b2c20;
}

.stonewaters > p {
    border: 10px outset #3b2c20;
}

.localevent {
    background-color: #2d272f !important;
    color: #e1d2e5;
    padding: 0 var(--box-spacer);
}

.localevent > div {
    margin: 20px;
    background-color: #e1d2e5;
    height: 4px;
}

/* REDSUN */

.redsun {
    border-color: var(--redsun-border);
    background-color: #2B2724;
}

.redsun-logo {
    background-image: url("/static/public/imgs/redsun.png");
    background-size: 150px 150px;
    background-repeat: no-repeat;
    background-position: 95% 100%;
}

.redsun h1 {
    font-family: "tf2build";
    color: #F25137;
}

.redsun-events {
    background: var(--redsun-border);
}

.redsun-event {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    padding: 0;

    background-size: cover;
    background-position: center;
}

.redsun-event:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;

    transition: background 0.1s linear;
}

.redsun-event:hover:before {
    background: #0003;
}


/* GAMES */

.games h1 {
    font-family: 'Kimberley';
    color: var(--background-color-light);
}

.games h2 {
    font-family: system-ui;
    font-size: 50px;
    margin: 10px;
}

/* TF2 */

.tf2 {
    border-color: #7A6E65;
}

.tf2::before {
    background: linear-gradient(to bottom, transparent 47%, var(--tf2-dark) 48%, var(--tf2-dark) 52%, transparent 53%),
        linear-gradient(to right, transparent 47%, var(--tf2-dark) 48%, var(--tf2-dark) 52%, transparent 53%),
        radial-gradient(transparent 11%, var(--tf2-light) 12%, var(--tf2-light) 30%, transparent 31%),
        var(--tf2-dark);

    background-size: 550px 550px;
    background-repeat: repeat;
    background-position: center;

    transform: rotate(8deg);
}

.tf2 h1 {
    color: var(--tf2-light);
}

/* TRAINYARD */

.trainyard {
    padding-left: 0px;
    padding-right: 0px;
    padding-bottom: 0px;

    background: rgb(35, 48, 46);
    border: dashed 12px rgb(188, 162, 80);
    border-radius: 0;
}

.trainyard > div {
    background: #544;
    box-shadow: 0 0 8px inset black;
}

.border-black {
    width: 100%;
    height: var(--box-border-width);
    background: rgb(35, 48, 46);
}
[class*="text-"] {
    height: 4vw;
}

[class*="text-"] > span {
    font-size: 4vw;
    text-align: center;
}

.gallery {
    position: relative;
}

.scrollbar {
    white-space: nowrap;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;  /* For Firefox */

    position: relative;
    margin-bottom: -4px;
}

.scrollbar::-webkit-scrollbar {
    display: none;
}

.gallery-image {
    width: 800px;
    max-width: 75%;

    scroll-snap-align: center;
}

.scrollbar .overflow {
    width: 50%;
    display: inline-block;
    scroll-snap-align: none;
}

.gallery-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-gradient > div:first-child,
.gallery-gradient > div:last-child {
    display: flex;
    justify-content: center;
    align-items: center;

    transition: 0.3s;
    cursor: pointer;

    opacity: 0.75;
    background: var(--gallery-transparent);
}

.gallery-gradient > div:first-child:hover,
.gallery-gradient > div:last-child:hover {
    opacity: 1;
}

.gallery-gradient img {
    user-select: none;

    filter: drop-shadow(var(--gallery-image-outline) var(--gallery-image-outline) 0px white)
        drop-shadow(var(--gallery-image-outline) calc(var(--gallery-image-outline) * -1) 0px white)
        drop-shadow(calc(var(--gallery-image-outline) * -1) var(--gallery-image-outline) 0px white)
        drop-shadow(calc(var(--gallery-image-outline) * -1) calc(var(--gallery-image-outline) * -1) 0px white);
}

/* EXTRAS */

.background-box {
    background: var(--background-box);
}

.before {
    position: relative;
}

.before::before {
    content: "";
    position: absolute;
    width: 1000%;
    height: 1000%;
    top: -450%;
    left: -450%;
    z-index: -1;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

.flex > div {
    flex: 1 0 0%;
}

.flex-auto {
    flex: 0 0 auto !important;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-vertical {
    display: flex;
    flex-direction: column;
}


@media (max-width: 1024px) {
    .flex-small > div {
        width: 100%;
    }
}