/* styles.css */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1d2067;
    text-align: center;
}
.intro-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #c3cee3;
    text-align: center;
}

.intro-screen h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.intro-screen p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.5;
}

.start-button {
    font-size: 1.5rem;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #24466a;
    color: white;
    border: none;
    border-radius: 5px;
}

.start-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.game-over-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: rgba(31, 100, 140, 0.9);  /* Slightly transparent */
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.game-over-screen h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.restart-button {
    font-size: 1.5rem;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #052a51;
    color: white;
    border: none;
    border-radius: 5px;
}

.restart-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

#gameCanvas {
    width:100%;
    border: 1px solid #000;
}
.ui {
    position: absolute;
    top: 10px;
    left: 10px;
    
    color: #cf1f1f;
    font-family: 'Eras Bold ITC', sans-serif;
}
.back{
    text-decoration: none;
    background-color: #052a51;
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #ffffff;
    font-family: 'Eras Bold ITC', sans-serif;
    padding : 10px 20px;
    border-radius: 10px;
}
.back:hover{
    background-color: #0056b3;
    transform: translateY(+2px);
}
@media(min-width:800px){
    #gameCanvas {
        width: 90%;
    }
    .ui {
        left: 44%;
    }
    .back{
        right: 44%;
    }
}





#scoreLabel {
    font-size: 18px;
}
