/* General Styles */
:root {
    --primary-color: #00ff00;
    --secondary-color: #1a1a1a;
    --text-color: #ffffff;
    --background-color: #000000;
    --accent-color: #32CD32;
    --header-height: 60px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
}

/* Matrix Background Effect */
.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

/* Navigation */
header {
    padding: 0.5rem 1rem;
    position: fixed;
    width: 100%;
    height: var(--header-height);
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-cta-primary, .nav-cta-secondary {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-cta-primary {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.nav-cta-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.nav-cta-primary:hover, .nav-cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Main Content */
main {
    padding-top: calc(var(--header-height) + 20px);
    overflow-x: hidden;
}

section {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.banner-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
}

.banner-image {
    width: 100%;
    height: 435px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.banner-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
}

.tagline {
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-description p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.what-to-expect {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.what-to-expect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 255, 0, 0.02);
    pointer-events: none;
}

.what-to-expect:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
}

.what-to-expect h2 {
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.what-to-expect ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.what-to-expect li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.what-to-expect li:before {
    content: ">";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-family: 'JetBrains Mono', monospace;
}

.what-to-expect p {
    margin: 1rem 0;
}

.highlight-text {
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 2rem !important;
}

.cta-buttons {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-primary, .cta-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: var(--background-color);
    min-width: 120px;
    text-align: center;
}

.cta-primary {
    background-color: var(--primary-color);
    color: var(--background-color);
}

.cta-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: var(--background-color);
}

.cta-primary:hover, .cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.2);
}

/* Game Section */
.game-section {
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
}

.game-container {
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 255, 0, 0.02);
    pointer-events: none;
}

.game-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.1);
}

.game-info {
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
}

.game-info h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 auto 2rem;
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.game-info h2::before {
    content: "# challenge_";
    position: absolute;
    top: -1.5rem;
    left: 0;
    font-size: 1rem;
    color: var(--primary-color);
    opacity: 0.7;
    text-transform: none;
    letter-spacing: normal;
}

.game-info h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    animation: scanline 2s linear infinite;
}

.game-info h3 {
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.game-info ul {
    list-style-type: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.game-info li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1rem;
    font-size: 0.9rem;
}

.game-info li:before {
    content: ">";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    margin-right: 0.5rem;
}

#gameCanvas {
    margin: 0 auto;
    display: block;
    max-width: 100%;
    height: auto;
    background-color: #000000;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

#gameMessage {
    text-align: center;
    margin-top: 1rem;
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
    min-height: 30px;
    padding: 0 1rem;
}

#gameMessage a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid #44ff44;
    transition: all 0.3s ease;
}

#gameMessage a:hover {
    text-shadow: 0 0 10px #44ff44;
    border-bottom-color: transparent;
}

.game-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

/* Schedule Section */
.schedule-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.schedule-section h2 {
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 2rem;
}

.schedule-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.schedule-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.schedule-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    position: relative;
}

/* Terminal window styling */
.schedule-item {
    position: relative;
    background: rgba(0, 20, 0, 0.8);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 2rem;
    padding-top: 3rem;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

/* Terminal header */
.schedule-item::before {
    content: '> ./event.sh --time="' attr(data-time) '" --execute';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 0, 0.1);
    border-bottom: 1px solid var(--primary-color);
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Scanline effect */
.schedule-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 0, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Glitch effect on hover */
.schedule-item:hover {
    transform: translateX(5px);
    box-shadow: 
        0 0 10px rgba(0, 255, 0, 0.2),
        0 0 20px rgba(0, 255, 0, 0.1),
        0 0 30px rgba(0, 255, 0, 0.05);
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitch {
    0% {
        transform: translateX(5px);
        text-shadow: 0 0 transparent;
    }
    2% {
        transform: translateX(8px);
        text-shadow: 3px 0 var(--primary-color);
    }
    4%, 100% {
        transform: translateX(5px);
        text-shadow: 0 0 transparent;
    }
}

.schedule-item .time {
    display: inline-block;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 0.3rem 0;
    position: relative;
}

.schedule-item .time::before {
    content: '[TIME]';
    color: rgba(0, 255, 0, 0.5);
    margin-right: 0.5rem;
    font-size: 0.8em;
}

.schedule-item .event {
    display: block;
    font-size: 1.3rem;
    margin: 1rem 0;
    color: #fff;
    position: relative;
    padding-left: 1.5rem;
}

.schedule-item .event::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.schedule-item .event-description {
    display: block;
    margin-top: 1rem;
    color: #a0a0a0;
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
}

.schedule-item .event-description::before {
    content: '#';
    position: absolute;
    left: 0;
    color: rgba(0, 255, 0, 0.5);
}

/* Matrix rain effect */
.highlight-event {
    border-width: 2px;
    background: rgba(0, 20, 0, 0.9);
}

.highlight-event::before {
    background: rgba(0, 255, 0, 0.15);
}

/* Add data-time attribute to schedule items in HTML */
@media (max-width: 768px) {
    .schedule-grid {
        padding: 0.5rem;
    }
    
    .schedule-item {
        padding: 1.5rem;
        padding-top: 2.5rem;
    }
    
    .schedule-item::before {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Origin Story Section */
.origin-story {
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.origin-story h2 {
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 2rem;
}

.story-container {
    background: rgba(26, 26, 26, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 0 auto;
}

.story-container p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.story-container p:hover {
    transform: translateX(5px);
    background: rgba(0, 255, 0, 0.1);
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sponsor-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.sponsor-logo {
    width: auto;
    height: 50px;
    max-height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

.sponsor-text {
    color: var(--text-color);
    font-size: 0.85rem;
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.9;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-left: 2px;
}

.footer-section {
    text-align: left;
    width: 100%;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.wiki-link {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.9;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 2.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
}

.wiki-link:hover {
    color: var(--primary-color);
    opacity: 1;
    border-bottom-width: 2px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    width: 100%;
    margin-top: 2rem;
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .game-container {
        padding: 1rem;
        display: flex;
        flex-direction: column;
    }

    .game-info {
        order: 0;
        width: 100%;
    }

    #gameCanvas {
        order: 1;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    #gameMessage {
        order: 2;
        width: 100%;
    }

    .game-controls {
        order: 3;
        width: 100%;
    }

    .banner-container {
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }

    .banner-image {
        max-height: 300px;
    }

    .game-section {
        margin: 1rem;
        padding: 1.5rem;
    }

    .game-container {
        gap: 1rem;
    }

    .what-to-expect {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }

    .hero-description {
        padding: 0 0.5rem;
    }

    .hero-description p {
        font-size: 1rem;
    }

    .schedule-section {
        padding: 1rem;
    }
    
    .schedule-container {
        padding: 0;
    }

    .schedule-item {
        margin: 0;
        padding: 1.2rem;
    }
} 

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-cta-primary, .nav-cta-secondary {
        width: 100%;
        text-align: center;
    }

    .game-container {
        flex-direction: column;
    }

    .game-info {
        order: 0;
    }

    #gameCanvas {
        order: 1;
        width: 100%;
    }

    #gameMessage {
        order: 2;
    }

    .game-controls {
        order: 3;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .schedule-item {
        margin: 0;
        padding: 2.5rem 1rem 1rem 1rem;
    }

    .schedule-item::before {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .schedule-item .time {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .schedule-item .event {
        font-size: 1.1rem;
        margin: 0.5rem 0;
    }

    .schedule-item .event-description {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    .schedule-intro {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    section {
        padding: 1.5rem 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-primary, .cta-secondary {
        margin: 0;
    }

    .game-section {
        margin: 0.5rem;
        padding: 1rem;
    }

    .story-container {
        padding: 1rem;
    }
} 

/* Add this to the end of your file for the mouse follow effect */
.schedule-item {
    --mouse-x: 50%;
    --mouse-y: 50%;
} 

@media (max-width: 480px) {
    .banner-image {
        height: 290px; /* Proportional for 800px width */
    }
} 

@media (max-width: 480px) {
    .banner-image {
        height: 180px; /* Proportional for 500px width */
    }
} 

/* Mobile adjustments */
@media (max-width: 768px) {
    .game-info h2 {
        font-size: 1.8rem;
        padding: 0.4rem 1rem;
    }

    .game-info h2::before {
        font-size: 0.8rem;
        top: -1.2rem;
    }

    .game-container {
        padding: 1.5rem 1rem;
        margin: 0 auto;
    }
} 