:root {
    --primary-color: #70ee10;
    --dark-bg: #050505;
    --dark-section: #0a0a0a;
    --text-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.logo {
    max-width: 300px;
    display: block;
    margin: 0 auto;
}

/* Glitch effect for logo */
.logo-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.glitch-logo {
    position: relative;
}

.glitch-logo::before,
.glitch-logo::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://alienmarines.com/game/assets/images/menu/title_logo.png') no-repeat center;
    background-size: contain;
    opacity: 0.8;
}

.glitch-logo::before {
    left: -2px;
    background-color: transparent;
    mix-blend-mode: difference;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-logo::after {
    left: 2px;
    background-color: transparent;
    mix-blend-mode: difference;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0%, 100% { clip-path: inset(20% 0 39% 0); }
    20% { clip-path: inset(33% 0 33% 0); }
    40% { clip-path: inset(5% 0 69% 0); }
    60% { clip-path: inset(61% 0 33% 0); }
    80% { clip-path: inset(17% 0 2% 0); }
}

@keyframes glitch-anim-2 {
    0%, 100% { clip-path: inset(81% 0 9% 0); }
    20% { clip-path: inset(24% 0 71% 0); }
    40% { clip-path: inset(46% 0 3% 0); }
    60% { clip-path: inset(72% 0 0% 0); }
    80% { clip-path: inset(15% 0 72% 0); }
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-family: 'Tektur', sans-serif;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

h1 {
    font-size: 48px;
    text-align: center;
}

h2 {
    font-size: 36px;
    text-align: center;
}

p {
    margin-bottom: 20px;
    font-size: 18px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #000;
    font-family: 'Tektur', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(112, 238, 16, 0.8);
}

.btn-large {
    font-size: 24px;
    padding: 20px 40px;
}

footer {
    background-color: #000;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    text-shadow: 0 0 10px rgba(112, 238, 16, 0.8);
}

/* Home page specific styles */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://alienmarines.com/game/assets/images/title/title_screen6.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    width: 100%;
}

.hero h1 {
    font-size: 72px;
    margin-bottom: 30px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
}

.features {
    background-color: var(--dark-section);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.feature-item h3 {
    font-size: 24px;
}

.gameplay {
    text-align: center;
}

.gameplay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.gameplay-image {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gameplay-image:hover {
    transform: scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(112, 238, 16, 0.5);
}

.gameplay-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Modal for gameplay images */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.cta {
    text-align: center;
    background-color: var(--dark-section);
    padding: 100px 0;
}

.cta h2 {
    font-size: 48px;
    margin-bottom: 40px;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(112, 238, 16, 0.7);
    }
    
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(112, 238, 16, 0);
    }
    
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(112, 238, 16, 0);
    }
}

/* Changelog page specific styles */
.page-title {
    margin-top: 150px;
    text-align: center;
    padding: 40px 0;
}

.changelog {
    background-color: var(--dark-section);
    padding: 60px 0;
}

.version-container {
    margin-bottom: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.version-title {
    font-size: 28px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(112, 238, 16, 0.3);
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.version-date {
    font-size: 18px;
    opacity: 0.8;
}

.changelog-list {
    list-style-type: none;
}

.changelog-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 16px;
}

.changelog-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.back-to-top {
    text-align: center;
    margin-top: 40px;
}

.back-to-top a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-to-top a:hover {
    text-shadow: 0 0 10px rgba(112, 238, 16, 0.8);
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 48px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .gameplay-grid {
        grid-template-columns: 1fr;
    }
    
    .version-title {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .version-date {
        margin-top: 5px;
    }
}

/* Highscores Page Styles */
.highscores {
    padding: 80px 0;
    min-height: 50vh;
    background-color: var(--dark-section);
}

/* Loading Indicator */
.loading-container {
    text-align: center;
    padding: 60px 0;
}

.loading-text {
    font-family: 'Tektur', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(112, 238, 16, 0.7);
    animation: pulse 2s infinite;
}

.loading-bar {
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color), #a0ff40);
    box-shadow: 0 0 10px rgba(112, 238, 16, 0.7);
    width: 0%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 5px;
    transition: width 0.2s ease;
}

/* Error Message */
.error-container {
    text-align: center;
    padding: 60px 0;
}

.error-message {
    font-family: 'Tektur', sans-serif;
    font-size: 20px;
    color: #ff3333;
    text-shadow: 0 0 5px rgba(255, 51, 51, 0.7);
    padding: 20px;
    border: 1px solid #ff3333;
    border-radius: 5px;
    background-color: rgba(255, 51, 51, 0.1);
    display: inline-block;
}

/* Highscores Table */
.highscores-table-container {
    margin: 40px 0;
    overflow-x: auto;
}

.highscores-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto Mono', monospace;
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(112, 238, 16, 0.5);
}

.highscores-table th, 
.highscores-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(112, 238, 16, 0.3);
}

.highscores-table th {
    background-color: rgba(112, 238, 16, 0.2);
    color: var(--primary-color);
    font-weight: bold;
    font-family: 'Tektur', sans-serif;
    text-shadow: 0 0 5px rgba(112, 238, 16, 0.7);
    text-transform: uppercase;
}

.highscores-table tr:hover {
    background-color: rgba(112, 238, 16, 0.1);
}

/* Column styling */
.rank-column {
    width: 10%;
}

.name-column {
    width: 25%;
    text-align: left;
}

.score-column {
    width: 20%;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(112, 238, 16, 0.7);
}

.level-column, .kills-column {
    width: 15%;
}

.date-column {
    width: 15%;
    font-size: 16px;
    color: #aaaaaa;
}

/* Top 3 scores */
.top-score {
    font-weight: bold;
}

.rank-1 {
    background-color: rgba(112, 238, 16, 0.15) !important;
}

.rank-1 .rank-column {
    color: var(--primary-color);
    text-shadow: 0 0 5px rgba(112, 238, 16, 0.7);
    font-size: 20px;
}

.rank-2 {
    background-color: rgba(192, 192, 192, 0.15) !important;
}

.rank-3 {
    background-color: rgba(205, 127, 50, 0.15) !important;
}

/* Utility */
.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .highscores-table th, 
    .highscores-table td {
        padding: 10px;
        font-size: 16px;
    }
    
    .date-column {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .highscores-table {
        font-size: 14px;
    }
    
    .date-column {
        display: none;
    }
    
    .rank-column {
        width: 15%;
    }
    
    .name-column {
        width: 30%;
    }
    
    .score-column {
        width: 25%;
    }
    
    .level-column, .kills-column {
        width: 15%;
    }
}