@font-face {
    font-family: "Mother";
    src:
        url("../fonts/determinationmonowebregular-z5oq-webfont.woff2") format("woff2"),
        url("../fonts/determinationmonowebregular-z5oq-webfont.woff") format("woff");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "RusUndertale";
    src: url("../fonts/undertalerus.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "VieUndertale";
    src: url("../fonts/undertalevie.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "DTMMono";
    src:
        url("../fonts/DTMMono.otf") format("opentype"),
        url("../fonts/DTMMono.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Gyeolui";
    src: url("../fonts/Gyeolui-OTF.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "SVNDeterminationSans";
    src: url("../fonts/SVN-Determination-Sans.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

body {
    color: white;
    font-family: Mother;
}

/* Custom responsive breakpoint for extra small screens */
@media (min-width: 475px) {
    .xs\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.switch-font-rue,
.switch-font-rue a,
.switch-font-rue h1,
.switch-font-rue h2,
.switch-font-rue h3,
.switch-font-rue h4,
.switch-font-rue h5,
.switch-font-rue h6,
.switch-font-rue p,
.switch-font-rue span {
    font-family: "RusUndertale" !important;
}

.switch-font-vie,
.switch-font-vie a,
.switch-font-vie h1,
.switch-font-vie h2,
.switch-font-vie h3,
.switch-font-vie h4,
.switch-font-vie h5,
.switch-font-vie h6,
.switch-font-vie p,
.switch-font-vie span {
    font-family: "VieUndertale" !important;
}

.switch-font-chi,
.switch-font-chi a,
.switch-font-chi h1,
.switch-font-chi h2,
.switch-font-chi h3,
.switch-font-chi h4,
.switch-font-chi h5,
.switch-font-chi h6,
.switch-font-chi p,
.switch-font-chi span {
    font-family: "DTMMono" !important;
}

.switch-font-kor,
.switch-font-kor a,
.switch-font-kor h1,
.switch-font-kor h2,
.switch-font-kor h3,
.switch-font-kor h4,
.switch-font-kor h5,
.switch-font-kor h6,
.switch-font-kor p,
.switch-font-kor span {
    font-family: "Gyeolui" !important;
}

.switch-font-svn,
.switch-font-svn a,
.switch-font-svn h1,
.switch-font-svn h2,
.switch-font-svn h3,
.switch-font-svn h4,
.switch-font-svn h5,
.switch-font-svn h6,
.switch-font-svn p,
.switch-font-svn span {
    font-family: "SVNDeterminationSans" !important;
}

/*  --------------BANNER-------------- */
.background-container {
    height: 50vh;
    position: relative;
    overflow: hidden;
}

.background-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers the video */
    width: 100%;
    min-height: 100%;
    min-width: 100%;
    object-fit: cover;
}

/* --------------NAVBAR-------------- 

On lower resolutions, the navbar will hide, displaying a hamburger button

*/

@media screen and (max-width: 768px) {
    .navbar ul {
        display: none; /* Hide the navbar links */
    }
    .navbar .hamburger {
        display: block !important; /* Show the hamburger button */
    }
    .navbar .hamburger-button {
        cursor: pointer;
        color: white;
    }
}

@media screen and (max-width: 1279px) {
    #toplinks {
        display: none; /* Hide the top links on smaller screens */
    }
}

.navbar li .active {
    text-decoration: underline;
}

.navbar .hamburger {
    display: none; /* Hide the hamburger button by default */
}
.stickyNav {
    position: sticky;
    top: -2px;
    z-index: 1000;
    background-color: #333; /* Adjust the background color as needed */
}

.zcheat {
    z-index: 9999;
}

/* --------------HAMBURGER MENU-------------- */

/* ------------- YOUTUBE VIDEO ------------- */

.youtube-video {
    aspect-ratio: 16 / 9;
    width: 75%;
}

/* --------------FOOTER-------------- */

.footer-links a:hover {
    filter: drop-shadow(0 0 0.25rem black);
}

a:hover:has(.footer-logo) {
    filter: none !important;
}

/* --------------VIDEO-------------- */

/* Next & previous buttons */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
    opacity: 0.7;
}

.prev:hover,
.next:hover {
    opacity: 1;
}

/* Position the "next button" to the right */
.next {
    right: -60px;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: -60px;
    border-radius: 3px 0 0 3px;
}

.prev:hover {
    left: -70px;
}

.next:hover {
    right: -70px;
}

/* --------------PROJECTS GRID-------------- */

/* --------------BETTER PROJECTS-------------------*/

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1vw;
    margin: 2vw;
    padding: 1vw;
    top: 0;
    left: 0;
}

.grid-item {
    position: relative;
    padding: 1vw;
}

.grid-item .image {
    width: 100%;
    height: auto;
    display: block;
    top: 0;
    left: 0;
}

.grid-image .image {
    display: inline;
    position: relative;
    width: 100%;
    height: auto;
}

.grid-image .hidden {
    display: none;
}

.grid-overlay {
    display: flex;
    justify-content: center;
    align-items: self-end;
    flex-direction: row;
}

.grid-overlay .overlay {
    position: absolute;
    bottom: 15px;
}

.grid-item .title {
    color: white;
    opacity: 0;
    transition:
        opacity 0.3s ease,
        color 0.3s ease;
    text-align: center;
    padding: 1vw 0 1vw 0;
    font-size: 1.7vw;
    opacity: 1;
}

.grid-item:hover .image {
    transform: scale(1.1);
    box-shadow:
        0 0 20px,
        0 0 50px;
    opacity: 1;
}

.grid-item:hover .title {
    color: yellow;
}

.HeaderText {
    font-size: 5vw;
}

.grid-item:hover .imgC {
    transform: scale(1.1);
    box-shadow:
        0 0 20px,
        0 0 50px red;
}

.grid-item:hover .titleC {
    color: red;
}
.grid-item:hover .titleG {
    color: #00ff00;
}

.grid-item:hover .imgC {
    box-shadow:
        0 0 20px,
        0 0 50px red;
}

.grid-item .titleC {
    color: white;
    opacity: 0;
    transition:
        opacity 0.3s ease,
        color 0.3s ease;
    text-align: center;
    padding: 1vw;
    font-size: 1.7vw;
    opacity: 1;
}

.grid-item .titleG {
    color: white;
    opacity: 0;
    transition:
        opacity 0.3s ease,
        color 0.3s ease;
    text-align: center;
    padding: 1vw;
    font-size: 1.7vw;
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .titleG,
    .titleC,
    .title {
        display: none; /* Hide titles on smaller screens */
    }
}

/* Wrapper link for each project card — positioned so the corner tag
   can sit over the image without scaling on hover. */
.grid-link {
    position: relative;
    display: block;
}

.grid-image {
    padding: 3px 3px 1px 3px;
    background: black;
    position: relative;
}

.grid-item:hover .grid-image {
    transform: scale(1.1);
    padding: 4px 4px 2px 4px;
    opacity: 1;
}

.grid-item:hover .grid-image.grid-shadow-white {
    box-shadow:
        0 0 20px rgba(255, 241, 41, 0.5),
        0 0 50px rgba(255, 241, 41, 0.5);
}

.grid-item:hover .grid-image.grid-shadow-red {
    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.5),
        0 0 50px rgba(255, 0, 0, 0.5);
}

.grid-item:hover .grid-image.grid-shadow-green {
    box-shadow:
        0 0 20px rgba(0, 255, 0, 0.5),
        0 0 50px rgba(0, 255, 0, 0.5);
}

.grid-item:hover .grid-image .image-fixed-border {
    border: 4px solid #fff129;

    padding: 4px;
}

.grid-image .image-fixed-border {
    box-sizing: border-box;
    padding: 3px;
    background: black;
    background-position: calc(100% - 20px) center;
    border: 3px solid white;
}

.grid-item:hover .grid-image .image-fixed-border-red {
    border: 4px solid red;

    padding: 4px;
}

.grid-item:hover .grid-image .image-fixed-border-green {
    border: 4px solid #00ff00;

    padding: 4px;
}

/* Wrapper div for canceled projects — border stays colored,
   child <img> gets the grayscale filter. */
.grid-image .image-fixed-border-red {
    display: block;
    box-sizing: border-box;
    padding: 3px;
    background: black;
    background-position: calc(100% - 20px) center;
    border: 3px solid red;
}

.grid-image .image-fixed-border-red img {
    display: block;
    filter: grayscale(100%) brightness(65%);
}

/* Diagonal CANCELLED stamp for canceled projects */
.canceled-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(18deg);
    font-family: Mother;
    font-size: 3vw;
    color: red;
    text-transform: uppercase;
    letter-spacing: 0.135em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
    text-shadow: 2px 2px 0 #000;
}

/* Small status tag in the top-right corner of a project card. */
.project-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    margin-right: 3px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.5);
    font-family: Mother;
    font-size: 1vw;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
    text-shadow: 1px 1px 0 #000;
}

.grid-image .image-fixed-border-green {
    box-sizing: border-box;
    padding: 3px;
    background: black;
    background-position: calc(100% - 20px) center;
    border: 3px solid #00ff00;
}

.project-separator {
    margin-top: -20px;
    border-style: solid;
    border-top: 1px;
    position: absolute;
    left: 0;
    width: 100%;
}

.project-background {
    position: relative;
    background-image: url("/assets/images/projects2.png?v=2");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.project-background::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: brightness(0.25) blur(5px);
    pointer-events: none;
}

/* --------------TEAM PAGE-------------- */
.team-background {
    position: relative;
    background-image: url("/assets/images/teamvoid.png");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}
.team-background::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: brightness(0.4) blur(3px);
    pointer-events: none;
}

.bracket {
    animation: fly 5s infinite;
}

@keyframes fly {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

.team-grid-item {
    position: relative;
    border-style: solid;
    transition: 0.3s;
    padding: 16px;
    background-color: black;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.team-grid-item:hover {
    opacity: 1;
    background-color: rgb(65, 65, 65);
}

.team-grid-item:hover p.PersonName {
    color: yellow;
}

.team-grid-item img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.team-grid-item p.PersonName {
    font-size: 30px;
    margin-top: 12px;
    margin-bottom: 4px;
}

.team-grid-item p.PersonRole {
    font-size: 20px !important;
    line-height: 1.3;
}

/* Responsive design for different screen sizes */
@media screen and (max-width: 1200px) {
    .team-grid-item img {
        width: 150px;
        height: 150px;
    }

    .team-grid-item p.PersonName {
        font-size: 25px;
    }

    .team-grid-item p.PersonRole {
        font-size: 18px !important;
    }
}

@media screen and (max-width: 768px) {
    .team-grid-item {
        padding: 12px;
    }

    .team-grid-item img {
        width: 120px;
        height: 120px;
    }

    .team-grid-item p.PersonName {
        font-size: 20px;
    }

    .team-grid-item p.PersonRole {
        font-size: 18px !important;
    }
}

@media screen and (max-width: 480px) {
    .team-grid-item {
        padding: 10px;
    }

    .team-grid-item img {
        width: 60px;
        height: 60px;
    }

    .team-grid-item p.PersonName {
        font-size: 13px;
        margin-top: 8px;
    }

    .team-grid-item p.PersonRole {
        font-size: 11px !important;
    }
}

/* -------------- OTHER -------------- */
.outdatedBanner {
    position: sticky;
    bottom: 10px;
    left: 10px;
    z-index: 9999;
    padding: 2px;
    background-color: black;
    color: white;
}

.outdatedBorder {
    border: 2px solid yellow;
    padding: 10px;
}

.outdatedBanner a {
    color: yellow;
    margin-top: 5px;
    display: block;
}
.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -99; /* Keep it behind other elements */
}
.application-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    min-height: 100%;
    min-width: 100%;
    object-fit: cover;
    filter: brightness(0.5) blur(5px);
}

/* --------------PLUSHIE-------------- */
.mobilePlush {
    display: none;
}

.hideMobile {
    display: block;
}

@media screen and (max-width: 1350px) {
    .hideMobile {
        display: none;
    }
    .mobilePlush {
        display: block;
    }
}

/* Emoji flags — temporary stand-ins until pixel-art flags exist */
.flag-emoji {
    display: inline-block;
    font-size: 2.5rem;
    line-height: 1;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.4));
}

/* Mobile language overlay — full-screen flag grid */
#mobileLangOverlay {
    z-index: 9999;
}
.mobile-lang-panel {
    background: #1b1b1b;
    border: 3px solid #383838;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.6);
    padding: 28px;
}
.mobile-lang-panel a {
    transition: transform .12s ease;
}
.mobile-lang-panel a:hover {
    transform: translate(-2px, -2px);
}