.bg-fade-in {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
    transition: opacity 2s ease-in-out;
}

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

.gamebanner {
    max-width: 800px;
    width: 50%;
    padding: 1rem;
}

.gamebanner .version,
.gamebanner .map,
.gamebanner .status {
    font-size: 1rem !important;
    line-height: 1;
}

.title-text-shadow {
    text-shadow: -1px -1px 2px rgba(0,0,0,0.2),
                        1px -1px 2px rgba(0,0,0,0.2),
                        -1px 1px 2px rgba(0,0,0,0.2),
                        1px 1px 2px rgba(0,0,0,0.2),
                        4px 4px 5px rgba(0, 0, 0, 0.5),
                        10px 2px 5px rgba(0, 0, 0, 0.8);
    animation: pulseOutline 5s infinite ease-in-out;
    position: relative;
}

body {
    overflow-x: hidden;
}

#main-title-container {
    text-align: center;
    margin-bottom: 2rem;
    overflow: hidden;
}

#main-title {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 3.75rem;
    margin-bottom: 1rem;
    color: #8B0000;
    white-space: nowrap;
    letter-spacing: 0;
}

#intro-text {
    font-style: italic;
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

#dust-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.letter-span {
    opacity: 0;
    animation: fadeInLetter 3.0s forwards;
    letter-spacing: 0.25em;
}
/* now we're cooking with GASOLINE */
.letter-span.space-span {
    letter-spacing: 0;
    display: inline-block;
    width: 1em;
}

/* POUR MORE GASOLINE */
.letter-span:has(+ .space-span) {
    letter-spacing: 0;
}

@keyframes fadeInLetter {
    to {
    opacity: 1;
    }
}

.glitching {
    animation: glitchEffect 0.4s linear;
}

@keyframes pulseOutline {
    0%, 100% {
        text-shadow: -1px -1px 2px rgba(0,0,0,0.2),
                            1px -1px 2px rgba(0,0,0,0.2),
                            -1px 1px 2px rgba(0,0,0,0.2),
                            1px 1px 2px rgba(0,0,0,0.2),
                            4px 4px 5px rgba(0, 0, 0, 0.5),
                            10px 2px 5px rgba(0, 0, 0, 0.8);
    }
    50% {
        text-shadow: -1px -1px 2px rgba(0,0,0,0.2),
                            1px -1px 2px rgba(0,0,0,0.2),
                            -1px 1px 2px rgba(0,0,0,0.2),
                            1px 1px 2px rgba(0,0,0,0.2),
                            4px 4px 5px rgba(0, 0, 0, 0.5),
                            12px 4px 8px rgba(0, 0, 0, 0.8);
    }
}

@keyframes glitchEffect {
    0%, 100% { transform: translate(0, 0); opacity: 1; }
    20% { transform: translate(30px, -20px); opacity: 0; }
    40% { transform: translate(-25px, 25px); opacity: 1; }
    60% { transform: translate(20px, 15px); opacity: 0; }
    80% { transform: translate(-15px, -10px); opacity: 1; }
}

section#alerts .mt-4 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

#alertMainButton {
    display: inline-block;
    margin: 0 auto;
}

#alertMainButton a {
    text-decoration: none !important;
}

#alertMainButton a:hover {
    text-decoration: none !important;
}

#subtitle {
    text-align: center;
    color: #ff0;
    text-shadow: 1px 1px 0px #000;
    position: absolute;
    transform: translateX(-50%) rotate(-20deg);
    left: 100%;
    top: -100px;
    animation: subtitle 0.25s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    white-space: nowrap;
    font-family: "Press Start 2P", monospace;
    text-shadow: 
        2px 2px 0 #2a2a2a,
        3px 3px 0 #1a1a1a,
        4px 4px 0 #0a0a0a,
        5px 5px 0 #000000;
    text-transform: uppercase;
    transform: perspective(75px) rotateX(5deg);
    overflow: hidden;
}

@keyframes subtitle {
    0% {
        transform: translateX(-50%) scale(0.875) rotate(-20deg);
    }
    100% {
        transform: translateX(-50%) scale(1) rotate(-20deg);
    }
}
.nounderline { text-decoration: none; }
.nounderline:hover { color: #fff !important; }
.underline { text-decoration: underline; }
.underline:hover { color: #ff0000 !important; }
#credit {padding-bottom: 0 !important;}
#credit a:hover { color: #ff0000 !important; }

#servers, #about {
    width: 1024px;
    margin: 2rem auto;
    padding-left: 2% !important;
    padding-right: 2% !important;
}

#gameplay {
    width: 1024px;
    height: 768px;
    margin: 2rem auto;
    padding: 2% !important;
    display: grid;
    place-items: center;
    
}
#art {
    width: 1024px;
    height: 768px;
    padding-top: 1%;
    padding-left: 2%;
    padding-right: 2%;
    display: grid;
    place-items: center;
    
}
#art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    overflow: hidden;
    background: #000;
}

#gameplay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    overflow: hidden;
    background: #000;
}
#connectText{
    place-items: center;
}
.face {
    position: absolute;
    left: 0;
}

.face-front,
.face-top,
.face-bottom {
    position: absolute;
    left: 0;
    top: 10px;
    line-height: 1em;
    backface-visibility: hidden;
}

.face-front { transform: translateZ(0); }

.char-3d {
    display: inline-block;
    width: 1ch;
    height: 1em;
    transform-style: preserve-3d;
    perspective: 400px;
    animation: flip3d 5.5s ease-in-out infinite alternate;
}

@keyframes flip3d {
    0%   { transform: rotateX(-90deg); }
    25%  { transform: rotateX(-35deg); }
    50%  { transform: rotateX(0deg); }
    75%  { transform: rotateX(35deg); }
    100% { transform: rotateX(90deg); }
}