* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --primery:#71e42f;
}

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #ffffff;
    line-height: 1.8;
    direction: rtl;
    overflow-x: hidden;
    background: linear-gradient(rgba(52, 65, 52, 0.6), rgba(5, 25, 28, 0.88)),
   url('../images/bg.jpg') center/cover no-repeat fixed;
   background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin:0 auto;
    padding: 0 15px;
}

p { margin-bottom: 15px; }
h1, h2, h3 { margin-bottom: 20px; }

/* HEADER / NAVBAR */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(120, 134, 125, 0.85);
    padding: 15px 0px;
    border-bottom: 2px solid var(--primery);
    
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #71e42f;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

nav {
    margin-top: 10px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    padding: 8px 18px;
    border-radius: 25px;
    transition: 0.3s ease;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.15);
}

nav ul li a.active {
    border: 1px solid #ffffff;
}

/* MAIN SECTION */
.main {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.main-title {
    font-size: 80px;
    font-weight: 300;
    letter-spacing: 10px;
    animation: fadeSlideDown 1.2s ease forwards;
}

.main-subtitle {
    margin: 20px 0 35px;
    color: #000000;
    animation: fadeSlideUp 1.5s ease forwards;
}

.main-btn {
    background: linear-gradient(45deg, #53a921, #71e42f);
    padding: 14px 45px;
    border-radius: 30px;
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    margin-top: 20px;
}

.main-btn:hover {
    transform: translateY(-4px) scale(1.05);
}

/* SECTIONS  */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: #71e42f;
    letter-spacing: 3px;
}

/* PICTURE GRID */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(6px);
    transition: 0.4s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 18px; }

/* BUTTONS */
.btn {
    background: linear-gradient(45deg, #54aa22, #71e42f);
    padding: 10px 25px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    margin-top: 10px;
    display: inline-block;
}

.btn:hover {
    transform: scale(1.05);
}

/* HORIZONTAL GAME SLIDER */
.picture-slider {
    overflow: hidden;
    position: relative;
    margin-top: 40px;
}

.slider-track {
    display: flex;
    gap: 20px;
    animation: scrollSlider 25s linear infinite;
}

.pictures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: center;
    margin: 30px 0;
}

.picture-card {
    min-width: 220px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 15px;
    align-items: center;
    transition: 0.3s;
}

.picture-card img {
    display: flex;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 30px;
    align-items: center;
    justify-content: center;
}

.picture-card:hover {
    transform: translateY(-6px) scale(1.05);
}

@keyframes scrollSlider {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* TABLE */
.leaderboard {
    margin-top: 50px;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #333;
}

.leaderboard-table th {
    background: rgba(255, 255, 255, 0.05)
    
}

.row {
    width: 60px;
    text-align: center;
    font-weight: bold;
}

/* FOOTER */
footer {
    background: rgba(120, 134, 125, 0.85);
    padding: 40px 0px 20px;
    color: #000000;
    margin-top: 50px;
    border-top: 2px solid var(--primery);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.footer-box h3 {
    color: #71e42f;
    margin-bottom: 15px;
}

.footer-box p,
.footer-box a {
    font-size: 14px;
    color: #000000;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-box a:hover {
    color: #000000;
    transform: translateX(-5px);
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #000000;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 15px;
}

/* SCROLL REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .main-title {
        font-size: 42px;
        letter-spacing: 4px;
    }

    header {
        padding: 15px 20px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}