@font-face {
    font-family: 'Symtext';
    src: url('fonts/Symtext.woff2') format('woff2'),
         url('fonts/Symtext.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #072730;
    font-family: 'Symtext', Arial, sans-serif;
}

#gameContainer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#gameCanvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#startScreen, #gameOverScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 300px;
}

/* Remove background and add text shadow for 8-bit effect */
#startScreen {
    background-color: transparent;
    color: #ffffff;
    text-shadow: 2px 2px 0 #000000;
}

#startScreen h1 {
    font-size: 36px;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
}

#gifContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

#startGif {
    width: 100px;
    height: 100px;
    image-rendering: pixelated;  /* This helps give a more pixelated look */
}

button {
    font-family: 'Symtext', Arial, sans-serif;
    font-size: 24px;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    background-color: #ff6500;
    color: white;
    border: none;
    text-transform: uppercase;
    /* Add an 8-bit style border */
    border: 4px solid #ffffff;
    box-shadow: 0 4px 0 #000000;
    transition: all 0.1s;
}

button:hover {
    background-color: #ff8533;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #000000;
}

button:active {
    transform: translateY(4px);
    box-shadow: none;
}

/* Game Over Screen Styles */
#gameOverScreen {
    background-color: #c0c0c0;
    padding: 20px;
    border-radius: 10px;
}

#gameOverScreen h1 {
    font-size: 24px;
    margin: 0 0 20px 0;
    color: #000;
}

#trophy {
    width: 60px;
    height: 60px;
    margin: 15px 0;
}

.over-text {
    color: #ff6500;
}

.score-text {
    font-size: 20px;
    margin: 10px 0;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    #gameContainer {
        border: none;
    }

    #gameCanvas {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}