:root {
    --brick-color: #BF5540;
    --background-color: #FFFFFF;
    --header-text-color: #BF5540;
    --text-color: #000000;
    --header-img-filter: none;
    --header-img-hover: brightness(0%);
    --header-color: rgba(109, 109, 109, 0.25);
    --header-hover: #000000;
    --box-color: #f5f5f5;
    --box-gradient-color: rgba(199, 199, 199, 0.35);
    --team-box-color: #f5f5f5;
    --roblox-image: url("images/roblox_white.png");
    --steam-image: url("images/steam_white.png");
    --web-image: url("images/web_white.png");
    --soundcloud-image: url("images/soundcloud_white.png");
    --youtube-image: url("images/youtube_white.png");
}

@media (prefers-color-scheme: dark) {
    :root {
        --brick-color: #BF5540;
        --background-color: #1d1d1d;
        --header-text-color: #FFFFFF;
        --text-color: #FFFFFF;
        --header-img-filter: brightness(0%) invert(1);
        --header-img-hover: none;
        --header-color: rgba(146, 146, 146, 0.25);
        --header-hover: #BF5540;
        --box-color: #383838;
        --box-gradient-color: rgba(49, 49, 49, 0.35);
        --team-box-color: #292929;
        --roblox-image: url("images/roblox_dark.png");
        --steam-image: url("images/steam_dark.png");
        --web-image: url("images/web_dark.png");
        --soundcloud-image: url("images/soundcloud_dark.png");
        --youtube-image: url("images/youtube_dark.png");
    }
}

body {
    font-family: helvetica;
    background-color: var(--background-color);
    color: var(--text-color);
}

main {
    margin: 75px 25px 25px 25px;
}

header {
    position: fixed;
    display: flex;

    background-color: var(--header-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    top: 5px;
    left: 5px;
    right: 5px;
    height: 50px;

    image-rendering: pixelated;

    border-radius: 8px;
    user-select: none;

    z-index: 99999;
}

header > * {
    position: relative;
    z-index: 1;
}

footer {
    margin: 0px;
}

#footer > * {
    position: relative;
    z-index: 1;
}

.header-item {
    text-decoration: none;
    color: var(--header-text-color);
    transition: color 0.2s ease;
}

.header-item:hover {
    color: var(--header-hover);
}

.header-items {
    display: flex;
    font-family: "Lexend Exa";
    font-size: 25px;
    padding-top: 10px;

    margin-left: auto;
    margin-right: 10px;

    gap: 15px;
}

#header-img {
    padding: 5px 10px;
}

#header-img img {
    filter: var(--header-img-filter);
    transition: filter 0.2s ease;
}

#header-img img:hover {
    filter: var(--header-img-hover)
}

#footer-img {
    filter: var(--header-img-filter);
    padding-bottom: 40px;
}

footer {
    position: relative;
    margin-top: 50px;
    margin-left: -9px;
    margin-right: -8px;
    padding: 25px;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 200px;

    background: linear-gradient(
        to top,
        var(--brick-color),
        transparent
    );

    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

#footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    user-select: none;
    position: relative;
    z-index: 1;
}

#footer > * {
    position: relative;
    z-index: 1;
}

#footer-buttons {
    display: flex;
    text-align: center;
    flex-direction: column;
    gap: 20px;
    font-family: "Lexend Exa";
    color: var(--header-text-color)
}

.footer-button {
    transition: color 0.2s ease;
    color: var(--header-text-color);
    text-decoration: none;
}

.footer-button:hover {
    color: var(--header-hover);
    cursor: pointer;
}






.box {
    position: relative;
    background-color: var(--box-color);
    margin: 25px;
    padding: 25px;
    border-radius: 15px;
    overflow: hidden;
}

.box > * {
    position: relative;
    z-index: 1;
}

.box::before {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: 15px;
    padding: 2px;

    background: linear-gradient(
        to right,
        #BF5540,
        rgba(255, 255, 255, 0.3),
        transparent
    );

    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
    z-index: 2;
}

.box::after {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border-radius: 15px 15px 0 0;

    background: linear-gradient(
        140deg,
        transparent,
        var(--box-gradient-color),
        transparent
    );

    pointer-events: none;
    z-index: 0;
}


#about {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-left: 20px;

    font-family: "Ubuntu";
    font-size: 20px;
}

#about img {
    border-radius: 10px;
    user-select: none;
}

#title {
    text-align: center;
    font-family: "Lexend Exa";
}

.team {
    display: flex;
    flex-direction: row;
    justify-content: center;

    gap: 100px;
}

.team-item {
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    background-color: var(--team-box-color);
    padding: 10px;
    align-items: center;
    width: fit-content;
    justify-content: center;
}

.team-item img {
    border-radius: 10px;
    user-select: none;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 0;

    background-color: var(--background-color);
    border-radius: 10px;

    padding: 5px;

    text-decoration: none;
    color: var(--header-text-color);

    transition: gap 0.3s ease;
}

.link:hover {
    gap: 5px;
}

.link::before {
    content: "";
    width: 20px;
    height: 20px;

    background-repeat: no-repeat;
    background-size: contain;
}

.link span {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;

    font-family: "Ubuntu";

    transition: max-width 0.8s ease, opacity 0.9s ease;
}

.link:hover span {
    max-width: 200px;
    opacity: 1;
}

.roblox-link::before {
    background-image: var(--roblox-image);
}

.steam-link::before {
    background-image: var(--steam-image);
}

.web-link::before {
    background-image: var(--web-image);
}

.soundcloud-link::before {
    background-image: var(--soundcloud-image);
}

.youtube-link::before {
    background-image: var(--youtube-image);
}

.team-member {
    font-family: "Lexend Exa";
    font-size: 20px;
    margin: 10px 0px 0px;
}

.team-member-role {
    font-family: "Lexend Exa";
    font-size: 15px;
    margin-bottom: 10px;
}

.links {
    gap: 10px;
}

#warning {
    color: red;
    text-align: center;
}