@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: calc(100vh - 60px);
    color: #333;
    overflow-x: hidden;
    /*padding-bottom: 80px;*/ /* Space for fixed footer */
}

 body.leaderboard {
    padding-bottom: 80px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    padding: 5px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-family: 'Chewy', cursive;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

/* Main Content */
.main-content {
    margin-top: 60px;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.5rem 5rem 1.5rem;
}

/* Article pages override */
body:not(.index) .main-content {
    display: block;
    align-items: unset;
    justify-content: unset;
}

/* Banner spacing */
.article-banner-spacing {
    margin-top: 30px;
    margin-bottom: 80px;
}

.welcome-message {
    text-align: center;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.different-user-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #ddd;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    width: 100%;
}

.different-user-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Landing Page */
.landing-section {
    text-align: center;
    color: white;
}

.landing-title {
    font-family: 'Chewy', cursive;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    font-weight: normal;
}


.landing-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    /*text-shadow: 1px 1px 4px rgba(0,0,0,0.6);*/
}

.landing-subtitle-mobile {
    display: none;
}

.image-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.preview-image {
    width: auto;
    height: 480px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid rgba(255,255,255,0.3);
    margin: 0;
}

.preview-or-image {
    height: 60px;
    width: auto;
    max-width: 50px;
    object-fit: contain;
    margin: 0 10px;
    display: block;
}

.preview-image:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.play-button {
    background: linear-gradient(45deg, #2e7d32, #4caf50);
    color: white;
    border: 4px solid white;
    padding: 1rem 3rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    font-family: 'Chewy', cursive;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    animation: breathe 2s ease-in-out infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(46, 125, 50, 0.6);
    background: linear-gradient(45deg, #1b5e20, #2e7d32);
    text-decoration: none;
}

.play-button {
    text-decoration: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-title {
    font-family: 'Chewy', cursive;
    font-size: 2rem;
    color: #333;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #6f44f0;
}

.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #ff6b6b;
}

.age-message {
    font-size: 1.6rem;
    color: #ff6b6b;
    text-align: center;
    margin: 1rem 0;
    font-weight: 500;
}

.privacy-text {
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    margin: 1rem 0 0 0;
    line-height: 1.4;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}


.start-game-btn {
    background: linear-gradient(45deg, #6bcf7f, #4d9de0);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.start-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 207, 127, 0.3);
}

/* Game Page */
.game-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.game-title {
    font-family: 'Chewy', cursive;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.game-images {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    position: relative;
}


.game-image {
    width: auto;
    max-width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: top center;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background: #f8f9fa;
    margin: 0 auto;
    display: block;
}

.or-image {
    height: 80px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.or-text {
    display: none;
}

.game-image:hover {
    transform: scale(1.02);
    border-color: #ff6b6b;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.game-image.selected {
    border-color: #4d9de0;
    box-shadow: 0 0 20px rgba(77, 157, 224, 0.5);
}

.game-image.correct {
    border-color: #6bcf7f;
    box-shadow: 0 0 20px rgba(107, 207, 127, 0.5);
}

.game-image.incorrect {
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.game-image.grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
}

/* Removed forced early fade-outs; stamp will be removed with image change */

/* Game stamp animation */
.game-image {
    position: relative;
}

.game-stamp-overlay {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
}

.game-stamp-overlay .game-stamp-img {
    width: 120px;
    height: auto;
    display: block;
    will-change: transform;
}

.game-stamp-img.game-stamp-animation {
    animation: gameStampPress 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes gameStampPress {
    0% {
        transform: scale(2.2) rotate(-8deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.12) rotate(3deg);
    }
    40% {
        transform: scale(0.98) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.game-container {
    position: relative;
}

.game-progress {
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.progress-text {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-family: 'Chewy', cursive;
    font-size: 1.1rem;
    font-weight: 400;
    z-index: 10;
}

.progress-circles {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.incorrect-text {
    position: absolute;
    top: 26px;
    right: 150px;
    color: #f44336;
    font-family: 'Chewy', cursive;
    font-size: 1.1rem;
    font-weight: 400;
    z-index: 10;
    display: none;
}

.incorrect-text.show {
    display: block;
}

.correct-text {
    position: absolute;
    top: 26px;
    right: 100px;
    color: #4CAF50;
    font-family: 'Chewy', cursive;
    font-size: 1.1rem;
    font-weight: 400;
    z-index: 10;
    display: none;
}

.incorrect-text.show {
    display: block;
}

.correct-text.show {
    display: block;
}

.progress-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: all 0.3s ease;
}

.progress-circle.correct {
    background: #6bcf7f;
    transform: scale(1.2);
}

.progress-circle.incorrect {
    background: #ff6b6b;
    transform: scale(1.2);
    position: relative;
}

.progress-circle.incorrect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 16px;
    background: #ff0000;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 1px;
}

.progress-circle.incorrect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 16px;
    background: #ff0000;
    transform: translate(-50%, -50%) rotate(-45deg);
    border-radius: 1px;
}


/* Results */
.results-container {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.results-title {
    font-family: 'Chewy', cursive;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.results-title.win {
    color: #6bcf7f;
}

.results-title.lose {
    color: #ff6b6b;
}

.results-score {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.results-message {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #555;
}


.win_img {
    display: block;
    text-align: center;
    margin: 10px auto;
    max-height: 45px;
    border-bottom: 2px solid #ed6b83;
}

.lose_img {
    display: block;
    text-align: center;
    margin: 10px auto;
    max-height: 45px;
    border-bottom: 2px solid #ed6b83;
}

.highlight-new-score {
    background: linear-gradient(45deg, #4CAF50, #6bcf7f) !important;
    color: white !important;
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
    animation: highlight-pulse 2s infinite;
}

.highlight-lose-score {
    background: linear-gradient(45deg, #e74c3c, #ff6b6b) !important;
    color: white !important;
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.5);
    animation: highlight-pulse-red 2s infinite;
}

.celebrate {
    animation: celebrate 1s ease-in-out;
}





.leaderboard-btn {
    background: linear-gradient(45deg, #4d9de0, #6bcf7f);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.leaderboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(77, 157, 224, 0.3);
}

/* Leaderboard */
.leaderboard-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.leaderboard-title {
    font-family: 'Chewy', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.tab {
    padding: 1rem 2rem;
    background: rgba(0,0,0,0.1);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab.active {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
}

.leaderboard-list {
    list-style: none;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    max-width: 100%;
}

.item-moving { transform: scale(1) !important;}

.leaderboard-item:hover {
    background: rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.leaderboard-item.current-user {
    background: linear-gradient(45deg, #4d9de0, #6bcf7f);
    color: white;
    font-weight: 600;
}

/* Losing highlight variant */
.leaderboard-item.current-user.lose {
    background: linear-gradient(45deg, #e74c3c, #ff6b6b);
}

.rank {
    font-size: 1.5rem;
    font-weight: 700;
    width: 50px;
}

.player-info {
    flex: 1;
    text-align: left;
    margin-left: 1rem;
}

.player-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.player-date {
    font-size: 0.9rem;
    opacity: 0.7;
}

.player-score {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: right;
}

.score-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4d9de0;
}

.current-user .score-percentage {
    color: #fff;
}

.score-images {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    margin-top: 0.25rem;
}

.score-games {
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    margin-top: 2px;
}




/* Page-specific styles */
.leaderboard .header {
    position: relative;
}

.leaderboard .main-content {
    margin-top: 0;
}

/* Animation states */
.leaderboard-item.item-moving {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(77, 157, 224, 0.3);
    transition: all 0.3s ease;
}



.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-bounce {
    animation: bounce 0.6s ease-in-out;
}




/* Game Start Animation */
.game-start-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.game-start-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.game-start-content {
    text-align: center;
    color: white;
    max-width: 400px;
    padding: 2rem;
}

.game-start-title {
    font-family: 'Chewy', cursive;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.game-start-progress {
    margin-top: 2rem;
}

.progress-bar {
    width: 100%;
    height: 1em;
    border: solid 0.15em #242b35;
    border-radius: 0.5em;
    background: linear-gradient(#191c23, #2d3341);
    box-sizing: border-box;
    position: relative;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 0.35em;
    box-shadow: inset 0 0.05em 0.05em rgba(255, 255, 255, 0.35);
    background:
        linear-gradient(rgba(76, 175, 80, 0.5), transparent),
        conic-gradient(from -30deg at 25%,
            transparent 240deg, #4caf50 0%) 0/ 0.7em,
        conic-gradient(from -30deg at 75%,
            #4caf50 240deg, #66bb6a 0%) 0/ 0.7em;
    transition: width var(--game-start-duration, 3000ms) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShine 400ms ease-in-out infinite;
}



.game-start-progress .progress-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.leaderboard .player-name {
    text-transform: capitalize;
}

.leader-buttons {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
}

.leader-buttons a {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    margin-right: 1rem;
}

/* Animations */

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(46, 125, 50, 0.6);
    }
}

@keyframes highlight-pulse {
    0% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.5); }
    50% { box-shadow: 0 0 30px rgba(76, 175, 80, 0.8); }
    100% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.5); }
}

@keyframes highlight-pulse-red {
    0% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.5); }
    50% { box-shadow: 0 0 30px rgba(231, 76, 60, 0.8); }
    100% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.5); }
}

@keyframes celebrate {
    0% { transform: scale(1.05); }
    25% { transform: scale(1.1) rotate(1deg); }
    50% { transform: scale(1.15) rotate(-1deg); }
    75% { transform: scale(1.1) rotate(1deg); }
    100% { transform: scale(1.05); }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}








/* Responsive Design */
@media (max-width: 768px) {


    .main-content{
        padding: 1rem;
        margin-bottom: 60px;
        margin-top: 40px;
    }

    .landing-title {
        font-size: 2.5rem;
    }

    .landing-subtitle-desktop {
        display: none;
    }
    
    .landing-subtitle-mobile {
        display: block;
    }

    .image-preview {
        flex-direction: column;
        align-items: center;
        gap: 0rem;
        margin: 1rem 0 2rem 0;
    }

    .preview-image {
        width: 190px;
        height: 250px;
    }

    .preview-or-image {
        margin: 0;
        order: 2;
        height: 50px;
        margin-bottom: 4px;
    }

    .image-preview > .preview-image-wrap:first-of-type {
        order: 1;
    }

    .image-preview > .preview-image-wrap:last-of-type {
        order: 3;
    }

    .game .logo-image {
        height: 25px;
    }

    .game  .logo {
        line-height: 1;
    }
    .progress-text {
        position: absolute;
        top: -10px;
        right: -10px;
    }

    #progressTextStart{
        top: auto;
        left: auto;
        right: auto;
        position: relative;
    }

    .game-progress {
        margin-bottom: 1rem;
    }

    .progress-circles {
        gap: 0.2rem;
    }

    .progress-circle {
        width: 10px;
        height: 10px;
    }

    .game-container {
        padding: 1rem;
    }

    .game-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        margin-top: 0.9rem;
    }

    #incorrectText,
    #correctText {
        display: none;
    }

    .game-images {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        position: relative;
        margin-bottom: 0.5rem;
    }

    .game-image {
        height: auto;
        width: 90%;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 15px;
    }

    .game-images > img.game-image:nth-of-type(1) {
        order: 1;
    }

    .or-image {
        display: none;
    }

    .or-text {
        order: 2;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 10;
        background: #ee2758;
        border-radius: 50%;
        padding: 8px 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        font-family: 'Chewy', cursive;
        font-size: 16px;
        font-weight: bold;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        min-height: 40px;
    }

    .game-images > img.game-image:nth-of-type(2) {
        order: 3;
    }

    .game-images > .or-container {
        order: 2;
    }

    .results-title {
        font-size: 2rem;
    }

    .modal-content {
        padding: 2rem;
    }

    .leaderboard-title {
        font-size: 2rem;
    }

    .leaderboard-container {
        padding: 1rem;
    }

    .leader-buttons { padding: 0; }
    .leaderboard .score-games,
    .leaderboard .player-date {
        display: none;
    }


}

/* Result Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.modal-hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    font-family: 'Chewy', cursive;
    font-size: 2rem;
    color: #333;
    margin: 0 auto;
    text-align: center;
}

.close {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.modal .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal .btn-primary {
    background: linear-gradient(45deg, #4d9de0, #6bcf7f);
    color: white;
}

.modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(77, 157, 224, 0.3);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    margin-top: auto;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

/* Leaderboard Link */
.leaderboard-link {
    margin-top: 2rem;
    text-align: center;
}

.leaderboard-link-text {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.leaderboard-link-text:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Image Click Animation */
.image-preview {
    position: relative;
}

.image-preview {
    position: relative;
}

.preview-image-wrap {
    position: relative;
    display: inline-block;
}

.preview-image {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.preview-image:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.preview-image.clicked {
    pointer-events: none;
}

.index-stamp-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 1000;
    pointer-events: none;
    animation: indexStampAnimation 0.8s ease-out forwards;
    opacity: 0;
}

.index-stamp-overlay .index-stamp-img {
    width: 240px;
    height: auto;
    display: block;
}

@keyframes indexStampAnimation {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(-15deg);
        opacity: 0;
    }
    30% {
        transform: translate(-50%, -50%) scale(1.3) rotate(8deg);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, -50%) scale(0.9) rotate(-3deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Debug: Make stamp always visible for testing */
.stamp-overlay.debug {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    background: rgba(255, 0, 0, 0.3) !important;
    border: 3px solid red !important;
}

.image-preview.hidden {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.image-preview.removed {
    display: none;
}

.landing-subtitle.hidden {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
}

.landing-subtitle.removed {
    display: none;
}

.play-button.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;
}

.play-button.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
    pointer-events: auto;
}

/* Banner Styles */
.b-class {
    position: relative;
    display: block;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 5px;
    padding: 4px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin: 20px auto;
    text-align: center;
    width: fit-content;
}

.b-class.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.b-class a {
    display: block;
    text-decoration: none;
    position: relative;
}

.b-class img {
    max-width: 300px;
    max-height: 250px;
    width: auto;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s ease;
}

.articles .b-class img,
.index .b-class img {
    max-width: 728px;
    max-height: auto;
    width: auto;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.2s ease;
}


.close-b {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: rgba(255, 0, 0, 0.9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    z-index: 2001;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.close-b:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

.close-b:active {
    transform: scale(0.95);
}

/* Eonads/Revive: force visible box on mobile */
.e300x50{width:300px;height:50px;display:block;margin:0 auto;overflow:hidden}
@media (max-width:320px){.e300x50{transform:scale(0.93);transform-origin:top center}}


.social-share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.social-btn {
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.facebook-btn {
    background: #1877F2;
}

.twitter-btn {
    background: #000000;
}

.whatsapp-btn {
    background: #25D366;
}

.telegram-btn {
    background: #0088cc;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Article Pages */
.article-container {
    max-width: 1200px;
    width: 96%;
    margin: 0 auto;
    background: white;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(2,0,0,0.2);
    overflow: hidden;
    margin-bottom: 5rem;
}

.article-header-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    background: black;
}

.article-header-image {
    width: 100%;
    height: 480px;
    max-height: 480px;
    border-radius: 0;
    display: block;
    object-fit: cover;
    object-position: top center;
    opacity: 0.7;
}

.article-title {
    font-family: 'Inter', sans-serif;
    font-size: 3.5rem;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    line-height: 1.3;
    margin: 0;
    font-weight: 700;
}

.article-title::after {
    content: '';
    display: block;
    width: 25%;
    height: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 1;
    margin: 1.5rem auto 0;
    border-radius: 2px;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    padding: 0rem 5rem 10rem 5rem;
}

.article-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    color: #e73253;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.article-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: #222;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content strong {
    font-weight: 600;
    color: #e73253;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-content table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.article-content table td {
    border: 1px solid #e0e0e0;
    padding: 1rem;
}

.article-content table tr:nth-child(even) {
    background: #f8f9fa;
}

@media (max-width: 768px) {
    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 20px);
    }
    
    .article-content table th,
    .article-content table td {
        padding: 0.65rem 0.4rem;
        font-size: 0.85rem;
    }
}


.e300x250 {
    display: inline-block;
    margin: 0 5px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .article-container {
        width: 96%;
    }
    
    .article-header-image {
        height: 300px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-content {
        font-size: 1rem;
        padding: 1.5rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .article-header-image {
        height: 250px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
}

/* Articles Listing Page */
.articles-page-container {
    max-width: 1200px;
    width: 96%;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Articles Section on Index */
.articles-section {
    margin-top: 10rem;
    margin-bottom: 3rem;
}

.articles-grid-index {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.article-card-index {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.article-card-index:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.article-card-image-index {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.article-card-image-index img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card-index:hover .article-card-image-index img {
    transform: scale(1.05);
}

.article-card-content-index {
    padding: 1rem;
}

.article-card-title-index {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #667eea;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.more-articles-container {
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 10rem;
}

.more-articles-link {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: white;
    background: linear-gradient(45deg, #667eea, #764ba2);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.more-articles-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(45deg, #5568d3, #6a3f91);
}

@media (max-width: 1200px) {
    .articles-grid-index {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid-index {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .article-card-image-index {
        height: 120px;
    }
    
    .article-card-title-index {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .articles-grid-index {
        grid-template-columns: 1fr;
    }
    
    .article-card-image-index {
        height: 150px;
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 60px;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.article-card-carousel {
    flex: 0 0 calc(20% - 16px);
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.article-card-carousel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.article-card-image-carousel {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.article-card-image-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card-carousel:hover .article-card-image-carousel img {
    transform: scale(1.05);
}

.article-card-content-carousel {
    padding: 1rem;
}

.article-card-title-carousel {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #667eea;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #667eea;
    color: #667eea;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

@media (max-width: 1200px) {
    .article-card-carousel {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 1024px) {
    .article-card-carousel {
        flex: 0 0 calc(50% - 10px);
    }
    
    .carousel-container {
        padding: 0 50px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .article-card-carousel {
        flex: 0 0 100%;
    }
    
    .carousel-container {
        padding: 0 45px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .article-card-image-carousel {
        height: 180px;
    }
    
    .article-card-title-carousel {
        font-size: 1.1rem;
    }
}

.articles-page-title {
    font-family: 'Chewy', cursive;
    font-size: 3rem;
    color: white;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: normal;
}

.articles-page-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    width: 80%;
    color: white;
    text-align: center;
    margin: 0rem auto 3rem auto;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-content {
    padding: 1.5rem;
}

.article-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    color: #667eea;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-card-readmore {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #764ba2;
    font-weight: 600;
    display: inline-block;
}

.article-card:hover .article-card-readmore {
    color: #667eea;
}


@media (max-width: 768px) {
    .articles-page-title {
        font-size: 2rem;
    }
    
    .articles-page-subtitle {
        font-size: 1rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .articles-page-title {
        font-size: 1.8rem;
    }
    
    .article-card-title {
        font-size: 1.1rem;
    }
}

/* Legal Pages */
.legal-page-title {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    color: #fff;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.legal-update-date {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .legal-page-title {
        font-size: 2rem;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin: 1rem 0 2rem 0;
    padding: 0 1rem;
}

.breadcrumbs a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.breadcrumbs span {
    color: #333;
    font-weight: 500;
}

/* Pagination */
.pagination {
    margin: 2rem 0;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.pagination-info {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.pagination-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

.pagination-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

.pagination-link.active {
    background: #764ba2;
    color: white;
    border-color: #764ba2;
    font-weight: 600;
}

.pagination-link.active:hover {
    background: #764ba2;
    color: white;
    transform: none;
}

/* Mobile responsive pagination */
@media (max-width: 768px) {
    .pagination {
        margin: 1.5rem 0;
    }
    
    .pagination-links {
        gap: 0.25rem;
    }
    
    .pagination-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        min-width: 35px;
    }
    
    .breadcrumbs {
        font-size: 0.85rem;
        margin: 0.75rem 0 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .pagination-link {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
        min-width: 30px;
    }
    
    .breadcrumbs {
        font-size: 0.8rem;
        margin: 0.5rem 0 1rem 0;
    }
}