body {
    width:100vw;
    height:100vh;
    margin:0;
    overflow:hidden;
}
.score {
    position:absolute;
    top:5px;
    left:10px;
    margin:0;
    font-size:36px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color:white;
    z-index:100
}
.main {
    position:fixed;
    z-index:-1
}
.deadScreen {
    position:absolute;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    background-color:black;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    font-size:64px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    z-index:200;
    transition: opacity 0.5s ease;
    opacity:0;
    display:none;
    
}
#deadScreenPlayAgainButton {
    position:absolute;
    top:55%;
    margin-top:20px;
    padding:10px 20px;
    background-color:red;
    color:white;
    border:none;
    cursor:pointer;
    width:30%;
    height:10%;
}
.finalscore {
    position:absolute;
    top:35%;
    left:50%;
    transform:translate(-50%, -100%);
    font-size:36px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color:white;
    z-index:100;
    transition: opacity 0.5s ease;
    opacity:1;
}
.highscore {
    position:absolute;
    top:41%;
    left:50%;
    transform:translate(-50%, -100%);
    font-size:24px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color:white;
    z-index:100;
    transition: opacity 0.5s ease;
    opacity:1;
}
.startMenu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: black;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 64px; /* Default font size for larger screens */
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    z-index: 200;
    transition: opacity 0.5s ease;
    opacity: 0.8;
}

.starthighscore {
    position: absolute;
    top: 34%;
    left: 50%;
    transform: translate(-50%, -100%);
    font-size: 24px;
    color: white;
    z-index: 100;
    transition: opacity 0.5s ease;
    opacity: 1;
}

#title {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px; /* Default font size for larger screens */
    color: white;
    z-index: 100;
}

#startButton {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px; /* Padding for larger screens */
    background-color: blue;
    color: white;
    border: none;
    cursor: pointer;
    width: 30%; /* Responsive width */
    max-width: 200px; /* Limit max width for larger screens */
    height: auto; /* Allow height to adjust */
    z-index: 100;
    font-family: 'Courier New', Courier, monospace;
    font-size: 50%;
    font-weight: 550;
}

#startButton:hover {
    background-color: rgb(0, 159, 146);
}

/* Mobile Styles */
@media (max-width: 600px) {
    .startMenu {
        font-size: 32px; /* Smaller font size for mobile */
    }
    #title {
        font-size: 32px; /* Smaller title */
    }
    .starthighscore {
        font-size: 16px; /* Adjust high score size */
    }
    #startButton {
        width: 80%; /* Increase button width on mobile */
        padding: 15px; /* Increase padding for better touch target */
        font-size: 120%; /* Increase font size for better readability */
        top:50%;
    }
}
