#start_game_box, #game_over_box {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    height: 250px;
    width: 90%;
    background-color: #2f29ff;
    color: white;
    font-size: 24px;
    justify-content: center;
    align-items: center;
    text-align: center;
}
#game_over_box {
    display: none;
}
#start_game, #reset_game {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    height: 50px;
    width: 90%;
    background-color: #2f29ff;
    color: white;
    font-size: 24px;
    cursor: pointer;
}
#reset_game {
    display: none;
}

body, html {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents scrollbars */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game_container {
    position: relative;
    width: 100vmin; /* vmin ensures it fits in the smallest dimension */
    height: 100vmin; /* Keeps the aspect ratio square */
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    width: 100%; /* Scales based on the parent container */
    height: 100%; /* Maintains the aspect ratio */
}