@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    font-family: 'Lexend', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #000;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    background-color: #000;
    background-image: linear-gradient(45deg, #000 25%, #111 25%, #111 50%, #000 50%, #000 75%, #111 75%, #111 100%);
    background-size: 20px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    text-shadow: 0 0 5px #0f0;
}

* {
    box-sizing: border-box;
}

h2 {
    text-align: center;
    text-transform: uppercase;
    font-size: 28px;
    font-family: "Press Start 2P", cursive;
    color: #f0f;
    text-shadow: 2px 2px 0 #0ff, -2px -2px 0 #f00;
    margin: 20px 0;
    letter-spacing: 2px;
}

.banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border: 4px solid #f0f;
    box-shadow: 0 0 20px #f0f;
}

.image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    gap: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #0ff;
}
  
.image {
    flex: 0 0 auto;
    width: 250px;
    height: auto;
    margin: 0;
    transition: transform 0.3s ease;
    border: 3px solid #0f0;
    box-shadow: 0 0 10px #0f0;
}

.image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #0f0;
}

/* Style for text overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    color: #fff;
    text-align: center;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
/* Style for text overlay on hover */
.image-container:hover .image-overlay {
    opacity: 1; /* Visible on hover */
}
  
/* Style for text inside overlay */
    .image-overlay p {
    margin: 0;
}

/* LATEST NEWS BOX */
.latestnews-container {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: 20px auto;
    padding: 0 15px;
}

.news-container {
    position: relative;
    width: 100%;
    height: 350px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 20px #f0f;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-image: url('https://via.placeholder.com/800x300/808080/FFFFFF?text=Default+Image');
    border: 4px solid #f0f;
}

.news-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        width: 100%;
    }

    h2 {
        font-size: 24px;
    }

    .image {
        width: 200px;
    }

    .news-container {
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    h2 {
        font-size: 20px;
    }

    .image {
        width: 150px;
    }

    .news-container {
        height: 200px;
    }
}

/* Retro CRT Effect */
@keyframes flicker {
    0% { opacity: 0.97; }
    5% { opacity: 0.95; }
    10% { opacity: 0.9; }
    15% { opacity: 0.95; }
    20% { opacity: 0.98; }
    25% { opacity: 0.95; }
    30% { opacity: 0.9; }
    35% { opacity: 0.95; }
    40% { opacity: 0.98; }
    45% { opacity: 0.95; }
    50% { opacity: 0.9; }
    55% { opacity: 0.95; }
    60% { opacity: 0.98; }
    65% { opacity: 0.95; }
    70% { opacity: 0.9; }
    75% { opacity: 0.95; }
    80% { opacity: 0.98; }
    85% { opacity: 0.95; }
    90% { opacity: 0.9; }
    95% { opacity: 0.95; }
    100% { opacity: 0.98; }
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1000;
    animation: flicker 0.15s infinite;
}

.container {
    padding-top: 60px; /* Height of the navbar */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.legal-content {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(0,0,0,0.8);
    padding: 32px 40px;
    border: 2px solid #0ff;
    border-radius: 10px;
    box-shadow: 0 0 20px #0ff;
    color: #fff;
    font-size: 18px;
    line-height: 1.7;
}
.legal-content h3 {
    color: #f0f;
    font-family: "Press Start 2P", cursive;
    margin-top: 24px;
    margin-bottom: 10px;
    font-size: 20px;
    text-shadow: 2px 2px 0 #0ff;
}
.legal-content p {
    margin-bottom: 16px;
}
@media screen and (max-width: 768px) {
    .legal-content {
        padding: 20px 10px;
        font-size: 16px;
    }
    .legal-content h3 {
        font-size: 16px;
    }
}
@media screen and (max-width: 480px) {
    .legal-content {
        padding: 10px 4px;
        font-size: 14px;
    }
    .legal-content h3 {
        font-size: 14px;
    }
}