:root {
    --primary-color: #16A34A; /* tailwindcss green-600 */
    --secondary-color: #0084ff;
    --glitch-color-1: #DC2626; /* tailwindcss red-600 */
    --glitch-color-2: hsl(142, 76%, 36%); /* tailwindcss green-600 */
    --background-color: #111827;
    --text-color: #ffffff;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--primary-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.08;
    background-image: 
        linear-gradient(
            rgba(0, 255, 65, 0.1) 50%,
            transparent 50%
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.05),
            rgba(0, 0, 0, 0.2)
        );
    background-size: 100% 2px, 2px 100%;
    z-index: 2;
}

/* Uniform Container Styles */
#home, #login, #select, #game-screen {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    text-align: center;
    background: #111827;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
    position: relative;
    overflow: hidden;
}

/* Glitch Text Style */
.glitch {
    position: relative;
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 var(--glitch-color-1), -2px -2px 0 var(--glitch-color-2);
    animation: glitch 0.8s infinite;
    margin-bottom: 30px;
    font-family: 'Press Start 2P', cursive;
}

@keyframes glitch {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

/* Uniform Button Styles */
.arcade-blink, .login-tab-btn, .select-tab-btn, .game-tab-btn, .game-tab-btn2 {
    font-size: 1rem;
    padding: 12px 24px;
    margin: 0 10px;
    background-color: rgba(0, 255, 65, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--primary-color);
    font-weight: 800;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.arcade-blink:hover, 
.login-tab-btn:hover, 
.select-tab-btn:hover, 
.game-tab-btn:hover,
.game-tab-btn2:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    box-shadow: 0 0 15px var(--primary-color);
}

.arcade-blink.active, 
.login-tab-btn.active, 
.select-tab-btn.active, 
.game-tab-btn.active,
.game-tab-btn2.active {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* Uniform Input Styles */
.form-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background-color: rgba(0, 255, 65, 0.1);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
}

.form-input::placeholder {
    color: rgba(0, 255, 65, 0.5);
}

/* Tab and List Styles */
.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content.active {
    display: block;
}

/* Uniform List Styles */
#select-list ul, #game-screen ul {
    list-style-type: none;
    padding: 0;
}

#select-list li, #game-screen li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    padding: 8px 0;
}

#select-list li span, #game-screen li span {
    font-weight: bold;
}

#select-list li .text-left, #game-screen li .text-left {
    text-align: left;
}

#select-list li .text-right, #game-screen li .text-right {
    text-align: right;
}

/* Scrollbar Styles */
#select-list {
    height: calc(100vh - 150px);
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding-top: 0;
}

#select-list::-webkit-scrollbar {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .glitch {
        font-size: 2.5rem;
    }

    .arcade-blink, .login-tab-btn, .select-tab-btn, .game-tab-btn, .game-tab-btn2 {
        font-size: 0.9rem;
        padding: 10px 20px;
        margin: 5px;
    }
}

/* Error Message Styles */
#login-error, #permission-message {
    font-size: 0.9rem;
    color: var(--glitch-color-1);
    margin-top: 15px;
}
.game-tab-btn2 {
display: none;
}

.correctColor{

background-color: #00FF41;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .animate-fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
  }

  .typed-text::after {
    content: '|';
    animation: blink 1s infinite;
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  @keyframes crawl {
    0% {
      top: 100%;
    }
    100% {
      top: -100%;
    }
  }

  .animate-crawl {
    animation: crawl 30s linear infinite;
  }
  .floating-text {
    position: absolute;
    font-size: 24px;
    color: lime;
    pointer-events: auto; /* allow interaction unless disabled during draw mode */
  }
  
  @keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
  }

  .active-tab {
    background-color: #4caf50; /* Highlight color */
    color: white; /* Text color for active tab */
    font-weight: bold;
    transform: scale(1.05); /* Slightly enlarge the active tab */
    transition: all 0.3s ease;
}

/* Add this CSS to your stylesheets */
@keyframes dotAnimation {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: ''; }
}

.loading-text .dots {
    display: inline-block;
    width: 24px;
}

.loading-text .dots::after {
    content: '';
    animation: dotAnimation 1.5s infinite;
}
.leaderboard-entry[style*="opacity: 1"] {
    opacity: 1 !important;
    transform: translateY(0) translateX(0) !important;
}

/* Resource counter animations */
.resource-counter {
    transition: all 0.3s ease;
}

.resource-counter.animate-pulse {
    animation: resourcePulse 0.5s ease-in-out;
}

.resource-counter.scale-110 {
    transform: scale(1.1);
}

@keyframes resourcePulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.15);
        opacity: 0.8;
    }
}

/* Resource status colors */
.resource-low {
    animation: lowResourceBlink 2s infinite;
}

@keyframes lowResourceBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}










/* I jsut added this */
/* Additional styles to enhance the cyber aesthetic */
.arcade-blink:hover {
    box-shadow: 
        0 0 20px rgba(34, 197, 94, 0.5),
        0 0 40px rgba(34, 197, 94, 0.3),
        0 0 80px rgba(34, 197, 94, 0.1);
}

.glitch {
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 90%, 100% { 
        transform: translate(0, 0);
        text-shadow: 2px 2px 0 #DC2626, -2px -2px 0 #16A34A;
    }
    10% { 
        transform: translate(-2px, 2px);
        text-shadow: 4px 4px 0 #DC2626, -4px -4px 0 #16A34A;
    }
    20% { 
        transform: translate(2px, -2px);
        text-shadow: -2px -2px 0 #DC2626, 2px 2px 0 #16A34A;
    }
    30% { 
        transform: translate(-2px, -2px);
        text-shadow: 3px 3px 0 #DC2626, -3px -3px 0 #16A34A;
    }
    40% { 
        transform: translate(2px, 2px);
        text-shadow: -4px -4px 0 #DC2626, 4px 4px 0 #16A34A;
    }
}

/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar for modals */
.overflow-y-auto::-webkit-scrollbar {
    width: 8px;
}

.overflow-y-auto::-webkit-scrollbar-track {
    background: rgba(55, 65, 81, 0.5);
    border-radius: 4px;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.5);
    border-radius: 4px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.7);
}



@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.animate-scroll {
    animation: scroll 20s linear infinite;
}