
html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #141414 0%, #1a1a1a 100%);
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

.bg-flat {
    background: linear-gradient(135deg, #141414 0%, #1a1a1a 100%);
}
.bg-gradient {
    background: linear-gradient(135deg, #030712 0%, #0a1a24 100%);
}

.bg-lyoko {
    background-image: 
        linear-gradient(135deg, rgba(3, 7, 18, 0.96) 0%, rgba(10, 26, 36, 0.96) 100%),
        url('/static/assets/lyoko_og.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100%;
    width: 100%;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #161616;
}
::-webkit-scrollbar-thumb {
    background-color: #124256;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #0e3242;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background-color: rgba(18, 66, 86, 0.2);
    border: 1px solid #124256;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

section h2, section h3 {
    color: #124256;
    margin-bottom: 1rem;
}

.section-box {
    background-color: #1242564d;
    border: 1px solid #124256;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.gradient-border {
    position: relative;
    border-radius: 0.5rem;
    background: transparent;
}

.gradient-border::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(to top, #55cdfc, #f7a8b8);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
}

.gradient-border::after {
    content: "";
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    left: 1px;
    border-radius: inherit;
    background-color: #1242564d;
    z-index: -1;
}

.gradient-border::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-color: #1242564d; /* same as .section-box background */
    z-index: -1; /* behind content and border */
}

.section-box img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-top: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #124256;
}

.login-box {
    background-color: rgba(18, 66, 86, 0.2);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
    max-width: 400px;
    border: 1px solid #124256;
}

.login-box img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.login-box input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #124256;
    background-color: #1a1a1a;
    color: #fff;
}

.login-box button {
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: none;
    background-color: #124256;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-box button:hover {
    background-color: #0e3242;
}

.login-bg-failed {
    background: linear-gradient(135deg, #1e0d0d 0%, #1a1a1a 100%);
}

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}
[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

.cvx-panel {
    background-color: rgba(18, 66, 86, 0.20);
    border-color: #124256;
    transition: transform .25s ease, box-shadow .25s ease;
}

.cvx-panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}