:root {
    --primary: #39ff14;     /* Classic Matrix Green */
    --secondary: #db2121;   /* Retro Orange */
    --accent: #ff00ff;      /* Hot Pink */
    --accent2: #00ffff;     /* Cyan */
    --dark: #000000;
    --glow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary);
}

/* CRT and Scanline Effects */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 51%
    );
    pointer-events: none;
    animation: scanline 10s linear infinite;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('noise.png');
    opacity: 0.05;
    pointer-events: none;
    animation: noise 0.5s steps(2) infinite;
}

body {
    background-color: var(--dark);
    color: var(--primary);
    font-family: 'VT323', monospace;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}

/* Marquee Animation */
.marquee-container {
    background: var(--dark);
    border-top: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    overflow: hidden;
    padding: 10px 0;
}

.marquee {
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    color: var(--secondary);
    font-size: 18px;
}

/* Glitch Effect */
.glitch {
    font-family: 'Press Start 2P', cursive;
    font-size: 48px;
    text-align: center;
    margin: 30px 0;
    position: relative;
    text-shadow: var(--glow);
    animation: glitch 1s linear infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    color: var(--accent);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    color: var(--secondary);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    padding: 10px;
    background: var(--dark);
    z-index: 1000;
}

.main-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid var(--primary);
}

.nav-button {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    font-family: 'VT323', monospace;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
    text-shadow: var(--glow);
}

.nav-button:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--glow);
}

.nav-button.active {
    background: var(--primary);
    color: var(--dark);
    box-shadow: var(--glow);
}

/* Game Cards */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px;
    justify-items: center;
}

.game-card {
    border: 2px solid var(--primary);
    padding: 15px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
    background: rgba(0, 0, 0, 0.7);
    width: 250px;
    margin: auto;
}

.game-image-container {
    width: 100%;
    height: 150px;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px solid var(--primary);
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    transition: transform 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.game-card h3 {
    margin: 10px 0;
    color: var(--primary);
    font-size: 1.2em;
}

.game-info {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    margin: 10px 0;
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
}

.game-banner {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary);
    color: var(--dark);
    padding: 5px 10px;
    font-size: 14px;
    animation: blink 1s infinite;
    z-index: 1;
}

/* Cheats Section */
.cheats-section {
    border: 2px solid var(--primary);
    padding: 20px;
    margin: 20px 0;
}

.search-input {
    width: 100%;
    padding: 15px;
    background: var(--dark);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: 'VT323', monospace;
    font-size: 18px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px var(--primary);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--primary);
}

.search-box {
    position: relative;
    margin: 20px;
    padding: 3px;
    width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
}

/* Optional: Add a glowing effect on hover */
.search-input:hover {
    border-color: var(--accent2);
}

.cheat-item {
    border-bottom: 1px solid var(--primary);
    padding: 10px 0;
}

/* Animations */
@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}


@keyframes noise {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(10%, 5%); }
    30% { transform: translate(-5%, 10%); }
    40% { transform: translate(15%, -5%); }
    50% { transform: translate(-10%, 15%); }
}

@keyframes glitch {
    0% { text-shadow: 1px 1px 0 rgba(255, 0, 0, 0.8); }
    20% { text-shadow: -1px -1px 0 rgba(0, 255, 0, 0.8); }
    40% { text-shadow: 1px 1px 0 rgba(0, 0, 255, 0.8); }
    60% { text-shadow: -1px -1px 0 rgba(255, 255, 0, 0.8); }
    80% { text-shadow: 1px 1px 0 rgba(255, 0, 255, 0.8); }
    100% { text-shadow: -1px -1px 0 rgba(0, 255, 255, 0.8); }
}
.glitch-effect {
    animation: glitch 1s infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Neon Text Effect */
.neon-text {
    color: var(--primary);
    text-shadow: var(--glow);
    animation: neon 1.5s ease-in-out infinite alternate;
}

@keyframes neon {
    from { text-shadow: var(--glow); }
    to { text-shadow: 0 0 5px var(--primary), 0 0 10px var(--primary); }
}

/* Rates Section */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.rate-card {
    border: 2px solid var(--accent);
    padding: 20px;
    text-align: center;
    animation: pulse 2s infinite;
}

.bonus {
    color: var(--secondary);
    animation: blink 1s infinite;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    border-top: 2px solid var(--primary);
}



@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Blink Animation */
.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-button {
        font-size: 16px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .main-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-button {
        width: 80%;
        text-align: center;
    }
}

.cheats-archive {
    background-color: #000000;
    padding: 20px;
    font-family: 'VT323', monospace;
}

.archive-title {
    color: #39ff14;
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px #39ff14;
}

.cheat-of-week-box {
    border: 1px solid #39ff14;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 10px #39ff14,
                inset 0 0 10px #39ff14;
    background-color: rgba(0, 0, 0, 0.9);
}

.hot-text {
    color: #ff4444;
    font-size: 0.8em;
    animation: blink 1s infinite;
}

.search-box {
    margin: 20px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--primary);
    border-radius: 5px;
    text-align: center;
}

.search-input {
    width: 80%;
    padding: 10px;
    background: var(--dark);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: 'VT323', monospace;
    font-size: 16px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.cheat-entry {
    border: 1px solid #39ff14;
    margin: 15px 0;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 0 5px #39ff14;
    transition: box-shadow 0.3s ease;
}

.cheat-entry:hover {
    box-shadow: 0 0 15px #39ff14;
}

.game-title {
    color: #39ff14;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.platform {
    color: #00ff95;
    font-size: 14px;
}

.cheat-code {
    color: #ffff00;
    font-family: monospace;
    margin: 10px 0;
}

.cheat-effect {
    color: #39ff14;
    font-size: 14px;
    opacity: 0.8;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Add glow effect on hover */
.cheat-entry:hover .game-title {
    text-shadow: 0 0 5px #39ff14;
}

/* Matrix background effect behind entries */
.cheats-list {
    position: relative;
    z-index: 1;
}

.featured-cheat {
    color: #39ff14;
    font-size: 18px;
    padding-left: 20px;
    text-shadow: 0 0 5px #39ff14;
}

/* Additional hover effects */
.search-input:hover, .search-input:focus {
    box-shadow: inset 0 0 10px #39ff14;
}

.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.download-btn {
    width: 100%;
    padding: 10px;
    background: var(--dark);
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: 'VT323', monospace;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.download-btn:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 10px var(--primary),
                0 0 20px var(--primary),
                0 0 30px var(--primary);
}

.download-btn.downloading {
    background: var(--primary);
    color: var(--dark);
    animation: downloadPulse 1s infinite;
}

@keyframes downloadPulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.download-btn::before {
    content: '>';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s;
}

.download-btn:hover::before {
    left: 10px;
    opacity: 1;
}

.download-btn:hover {
    padding-left: 30px;
}

.download-btn:active {
    transform: scale(0.95);
}

.membership {
    padding: 40px 20px;
    background: var(--dark);
    border: 2px solid var(--primary);
    margin: 20px 0;
    text-align: center;
}

.membership h2 {
    color: var(--accent);
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--accent);
}

.membership-message {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 30px;
}

.signup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signup-form input {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid var(--primary);
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary);
    font-family: 'VT323', monospace;
    font-size: 16px;
}

.signup-form button {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 18px;
    transition: all 0.3s;
}

.signup-form button:hover {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.copy-btn {
    padding: 5px 10px;
    background: var(--primary);
    color: var(--dark);
    border: none;
    cursor: pointer;
    font-family: 'VT323', monospace;
    font-size: 14px;
    transition: all 0.3s;
    margin-top: 5px;
}

.copy-btn:hover {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.home-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-box {
    text-align: center;
    margin-bottom: 40px;
}

.intro-box p {
    font-size: 18px;
    line-height: 1.6;
    margin: 20px 0;
    color: var(--primary);
}