body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #FFD700;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    overflow: hidden;
    background-color: #001122;
}
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('img/protruding-squares.svg') repeat,
        linear-gradient(135deg, #004c99, #003366);
    background-size: auto, cover;
    z-index: -1; 
    opacity: 0;
    animation: fade-in 1s ease-in-out forwards;
}
.container {
    will-change: transform, opacity, box-shadow, border-image-source;
    text-align: center;
    border: 5px solid transparent;
    border-image-source: linear-gradient(90deg, transparent, transparent, transparent);
    border-image-slice: 1;
    background:transparent;
    box-shadow: 
        inset 0 4px 8px rgba(0, 0, 0, 0),
        0 15px 30px rgba(0, 0, 0, 0),
        0 8px 15px rgba(0, 0, 0, 0),
        0 4px 6px rgba(255, 215, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    animation: 
        drop-in 1s ease-out 1.5s forwards, 
        container-bg 1s ease-in-out 1.75s forwards,
        container-border 1s ease-in-out 1.75s forwards,
        container-shadow 1s ease-in-out 1.75s forwards, 
        gradient-shift-border 6s infinite 5.5s;
}
@keyframes drop-in {
    from {
        transform: translateY(-25vh);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes footer-bg {
    from {
        background-color: transparent;
        box-shadow: 0 -4px 8px rgba(0, 0, 0, 0);
    }
    to {
        background-color: #001122;
        box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.5);
    }
}
@keyframes footer-border {
    from {
        border-top: 3px solid transparent;
    }
    to {
        border-top: 3px solid #FFD700;
    }
}
@keyframes footer-text {
    from {
        color: transparent;
    }
    to {
        color: #FFD700;
    }
}
@keyframes container-bg {
    from {
        background: transparent;
        opacity:0
    }
    to {
        background: linear-gradient(135deg, #5E5344, #B8A890, #5E5344, #B8A890, #5E5344, #B8A890, #5E5344, #B8A890, #5E5344, #B8A890, #5E5344);
        opacity: 1;
    }
}
@keyframes container-border {
    from {
        border-image-source: linear-gradient(90deg, transparent, transparent, transparent); 
   
    }
    to {
        border-image-source: linear-gradient(90deg, #FFD700, #FFFACD, #FFD700); 
     
    }
}
@keyframes container-shadow {
    from {
        box-shadow: 
            inset 0 4px 8px rgba(0, 0, 0, 0),
            0 15px 30px rgba(0, 0, 0, 0),
            0 8px 15px rgba(0, 0, 0, 0),
            0 4px 6px rgba(255, 215, 0, 0);
    }
    to {
        box-shadow: 
            inset 0 4px 8px rgba(0, 0, 0, 0.2),
            0 15px 30px rgba(0, 0, 0, 0.7),
            0 8px 15px rgba(0, 0, 0, 0.5),
            0 4px 6px rgba(255, 215, 0, 0.7); 
    }
}
@keyframes crest-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
header .crest {
    will-change: opacity;
    max-width: 100%;
    height: auto;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    opacity: 0;
    overflow: hidden;
    animation: crest-fade-in 1s ease-in-out 2.25s forwards;
    position: relative;
    z-index: 1;
}
h1 {
    font-size: .5rem;
    font-weight: bold;
    margin: 0;
    background:#FFD700;
    background-size: 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 6s infinite;
}
footer {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: transparent;
    background-color: transparent;
    padding: 10px 0;
    margin-top: auto;
    border-top: 3px solid transparent;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0);
    animation:
        footer-bg 0.75s ease-in-out 1s forwards,
        footer-border 0.75s ease-in-out 1s forwards, 
        footer-text 0.5s ease-in-out 1.25s forwards;
    animation-fill-mode: forwards;
}
footer a,
.footer-separator {
    color: transparent;
    visibility: hidden;
    pointer-events: none; 
    animation: footer-links 0.5s ease-in-out 1.25s forwards;
}
footer a {
    color: #004c99;
    text-decoration: none;
    font-size: 0.7rem;
    transition: color 0.3s ease;
    pointer-events: auto;
}
footer a:hover {
    color: #3399ff !important;
}
.footer-separator {
    color: #004c99;
    margin: 0 5px;
}
@keyframes footer-links {
    from {
        color: transparent;
        visibility: visible;
    }
    to {
        color: #004c99;
        visibility: visible;
    }
}
.animated-text {
    will-change: opacity, background-position;
    font-weight: bold;
    background: linear-gradient(235deg, #FFD700, #FF4500, #FFD700, #FF4500, #FFD700, #FF4500, #FFD700, #FF4500, #FFD700 );
    background-size: 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: animated-text-opacity 0.5s ease-in-out 1.25s forwards,
               color-shift 30s infinite linear;
}
@keyframes animated-text-opacity {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes color-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
@media (max-width: 480px), (max-height: 700px) {
    body {
        font-size: 14px;
    }
    header .crest {
        max-width: 200px;
    }
    h1 {
        font-size: 1.2rem;
    }
    .container {
        padding: 5px;
    }
    footer {
        font-size: 0.8rem;
        position: relative;
        margin-top: 10px;
    }
}
@media (min-width: 481px) and (max-width: 1024px), (min-height: 701px) and (max-height: 900px) {
    body {
        font-size: 16px;
    }
    header .crest {
        max-width: 300px;
    }
    h1 {
        font-size: 1.8rem;
    }
    .container {
        padding: 15px;
    }
    footer {
        font-size: 0.9rem;
        position: relative;
        margin-top: 15px;
    }
}
@media (min-width: 1025px) and (max-width: 1366px), (min-height: 901px) and (max-height: 1200px) {
    body {
        font-size: 18px;
    }
    header .crest {
        max-width: 450px;
    }
    h1 {
        font-size: 2rem;
    }
    .container {
        padding: 15px;
    }
}
@media (min-width: 1367px), (min-height: 1201px) {
    body {
        font-size: 20px;
    }
    header .crest {
        max-width: 550px;
    }
    h1 {
        font-size: 2.5rem;
    }
}
@media (max-width: 1024px) and (orientation: landscape) {
    body {
        font-size: 15px;
    }
    header .crest {
        max-width: 350px;
    }
    h1 {
        font-size: 1.5rem;
    }
    .container {
        padding: 10px;
    }
    footer {
        font-size: 0.85rem;
        margin-top: 10px;
    }
}

.devtools-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
    padding: 2rem;
}

.devtools-modal-heading {
    color: #FFD700;
}

.devtools-lockout {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: black;
    color: red;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    z-index: 10000;
}
