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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.github-link {
    position: fixed;
    top: 20px;
    right: 20px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.github-link:hover {
    color: #000000;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

.github-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    fill: currentColor;
}

.github-link:hover svg {
    transform: scale(1.1);
}

.game-container {
    text-align: center;
    padding: 20px;
    max-width: 900px;
    width: 100%;
}

h1 {
    margin-bottom: 10px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #ff6b35;
}

.instructions {
    margin-bottom: 20px;
    font-size: 1.1em;
    opacity: 0.9;
}

.level-info {
    margin-bottom: 15px;
}

#level-display {
    background: rgba(255, 107, 53, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #ff6b35;
    font-weight: bold;
    font-size: 1.1em;
}

.canvas-container {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

#gameCanvas {
    border: 3px solid #ff6b35;
    border-radius: 10px;
    background-color: #000;
    cursor: none;
    display: block;
    margin: 0 auto;
    /* Fixed size - no responsive scaling */
    width: 300px !important;
    height: 450px !important;
}

.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    z-index: 10;
}

.start-content {
    text-align: center;
    padding: 20px;
    z-index: 15;
    position: relative;
    width: 100%;
    height: 100%;
}

.start-content h2,
.start-content p {
    pointer-events: none;
}

.start-content h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #ff6b35;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.start-content p {
    font-size: 1.1em;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.4;
}

.play-button {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    border: 2px solid transparent;
    pointer-events: auto;
    position: absolute;
    width: 60px;
    height: 30px;
}

.play-button:hover {
    background: linear-gradient(135deg, #357ABD, #4A90E2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.play-button:active {
    transform: translateY(-1px);
}

.start-screen.hidden {
    display: none;
}

.game-info {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#status {
    font-size: 1.1em;
    font-weight: bold;
    flex: 1;
    text-align: left;
}

#restart-btn {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#restart-btn:hover {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#restart-btn:active {
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    #gameCanvas {
        /* Keep fixed size even on mobile */
        width: 300px !important;
        height: 450px !important;
    }
    
    .game-info {
        flex-direction: column;
        text-align: center;
    }
    
    #status {
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    
    .instructions {
        font-size: 1em;
    }
    
    #level-display {
        font-size: 1em;
        padding: 6px 12px;
    }
    
    .github-link {
        top: 15px;
        right: 15px;
        padding: 10px;
    }
    
    .github-link svg {
        width: 20px;
        height: 20px;
    }
}