body {
    font-family: 'Tahoma', 'Segoe UI', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    text-align: center;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Compliance Notice */
.compliance-notice {
    background: linear-gradient(270deg, #ff0000, #ff5e00, #ffcc00, #ff0000);
    background-size: 600% 600%;
    color: #fff;
    border-bottom: 3px solid #b30000;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    animation: gradient-shift 8s ease infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 100;
}

.compliance-notice::before {
    content: "⚖️";
    /* Scale icon for law */
    font-size: 1.5em;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
    animation: pulse-icon 1.5s infinite;
}

.compliance-notice::after {
    content: "🛡️";
    /* Shield icon for security/monitoring */
    font-size: 1.5em;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
    animation: pulse-icon 1.5s infinite reverse;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Header */
.main-header {
    background: linear-gradient(135deg, #1e5799 0%, #2989d8 50%, #207cca 51%, #7db9e8 100%);
    color: white;
    padding: 20px 0;
    border-bottom: 4px solid #1c4e88;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: relative;
    /* For absolute positioning of side images */
    overflow: hidden;
    /* Keeps images inside header bounds */
}

.header-side-img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    width: auto;
    max-width: 220px;
    /* Increased size */
    max-height: 90%;
    opacity: 0.9;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    z-index: 10;
}

.header-side-img:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.header-side-img.left {
    left: 20px;
}

/* Mouse Trail 3D Text */
.mouse-trail-text {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow:
        1px 1px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 5px rgba(0, 0, 0, 0.5);
    font-size: 14px;
    white-space: nowrap;
    transform-style: preserve-3d;
    transition: transform 1s ease-out, opacity 1s ease-out;
    opacity: 1;
    will-change: transform, opacity;
}

/* closes .mouse-trail-text */
.header-side-img.left {
    animation: float-left 4s ease-in-out infinite;
}

@keyframes float-left {

    0%,
    100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-55%);
    }
}

@keyframes float-right {

    0%,
    100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-45%);
    }
}

.header-side-img.right {
    right: 20px;
    animation: float-right 4s ease-in-out infinite;
    transform: translateY(-50%) scaleX(-1);
    /* Mirror effect for symmetry if same image */
}

.header-side-img.right:hover {
    transform: translateY(-50%) scaleX(-1) scale(1.05);
    /* Maintain flip on hover */
}

@keyframes float-left {

    0%,
    100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-55%);
    }
}

@keyframes float-right {

    0%,
    100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-45%);
    }
}

/* Ensure container content is above side images */
.main-header .container {
    position: relative;
    z-index: 2;
}

/* Responsive adjustments for side images */
@media (max-width: 1200px) {
    .header-side-img {
        max-width: 140px;
        opacity: 0.6;
        /* Fade them out a bit so they don't distract too much */
    }
}

@media (max-width: 768px) {
    .header-side-img {
        max-width: 90px;
        top: 15px;
        /* Move to top corners */
        transform: none;
        /* Disable vertical centering */
        opacity: 0.9;
        /* More visible */
        z-index: 1;
    }

    .header-side-img.left {
        left: 10px;
        animation: none;
    }

    .header-side-img.right {
        right: 10px;
        animation: none;
        transform: scaleX(-1);
    }

    .header-side-img:hover {
        transform: scale(1.05);
    }

    .header-side-img.right:hover {
        transform: scaleX(-1) scale(1.05);
    }

    /* Ensure header has enough padding at top so images don't cover text/banner */
    /* Images are ~120px tall, so we push content down */
    .main-header {
        padding-top: 140px;
    }

    .main-header .container {
        position: relative;
        z-index: 2;
    }

    /* Enhance text readability and graphics on mobile */
    .main-header h1 {
        background: rgba(0, 0, 0, 0.3);
        padding: 10px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        font-size: 1.4em;
        margin: 15px 0;
    }

    .main-nav {
        background: rgba(0, 0, 0, 0.3);
        padding: 15px 5px;
    }

    .main-nav a {
        display: inline-block;
        margin: 5px;
        font-size: 1em;
    }
}

.header-banner {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
}

.banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.main-header h1 {
    margin: 10px 0;
    font-size: 2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.main-header p {
    font-size: 1.1em;
    margin-top: 5px;
}

/* Navigation Menu */
.main-nav {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.3);
}

/* Entry Links */
.entry-links {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-enter {
    display: inline-block;
    background: linear-gradient(to bottom, #ff3019 0%, #cf0404 100%);
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    padding: 15px 40px;
    border-radius: 50px;
    border: 2px solid #a80303;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: bold;
    margin-bottom: 20px;
    cursor: pointer;
}

.btn-enter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    background: linear-gradient(to bottom, #cf0404 0%, #ff3019 100%);
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.backup-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.btn-backup {
    display: inline-block;
    background: #28a745;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 5px;
    font-size: 0.9em;
}

.btn-backup:hover {
    background: #218838;
}

/* Content Sections */
section {
    background: white;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

h2,
h3 {
    color: #1e5799;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
}

.link-rules {
    color: #d9534f;
    font-weight: bold;
    text-decoration: none;
}

.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
    min-height: 200px;
}

.gallery-img {
    max-width: 100%;
    max-height: 600px;
    height: auto;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    border: 1px solid #ddd;
    object-fit: contain;
}

.btn-small {
    display: inline-block;
    background: #17a2b8;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
}

/* Forms */
.form-section {
    text-align: right;
}

.contact-form,
.login-box form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box;
}

.login-box {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.login-links {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9em;
}

.login-links a {
    color: #1e5799;
    text-decoration: none;
    margin: 0 5px;
}

/* Brand on login */
.brand-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.brand-logo {
    font-size: 2rem;
    font-weight: 900;
    color: #1e5799;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Admin banner manager */
.admin-panel {
    margin-top: 15px;
}

.banner-manager {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 6px;
}

.upload-group {
    margin: 8px 0;
}

/* Footer */
.main-footer {
    background: #333;
    color: #ccc;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9em;
}