*{
    box-sizing: border-box;
    transition: .2s ease;
}

.pauseBtn{
    /* background: aqua; */
    position: absolute;
    top: 0;
    right: 0;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    font-size: 30px;
    color: white;
    transition: .2s ease;
}

.pauseBtn:hover{
    scale: 1.1;
    color: blue;
}

body {
    text-align: center;
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* body .pauseScreen{
    display: flex;
} */

#pauseScreen{
    position: absolute;
    background-color: rgba(0, 0, 0, 0.859);
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
}

#pauseScreen h1{
    background: white;
    width: 100%;
    padding: 15px;
}

#pauseScreen button{
    all: unset;
    background-color: white;
    font-size: 20px;
    border-radius: 5px;
    margin: 10px;
    height: 40px;
}

#pauseScreen button a{
    text-decoration: none;;
    color: black;
    padding: 20px;
    width: 100%;
    height: 100%;
}

#pauseScreen button a:hover{
    color: white;
}

#pauseScreen button:hover{
    color: white;
    background: blue;
}

canvas {
    background-color: #222;
    /* margin: 0 auto; */
    display: block;
    max-width: 700px;
    max-height: 500px;
    width: 90%;
    height: 60%;
}

.controllers{
    display: flex;
    align-items: center;
    justify-content: center;
    /* width: 100%; */
    /* background-color: red; */
}

#player{
    display: flex;
    width: 100px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
}

@media (max-width: 600px) {
    #gameCanvas {
        max-height: 400px;
        width: 80%;  /* Adjust width when screen width is less than 500px */
        height: 40%; /* Adjust height accordingly */
        transform: rotate(90deg);  /* Rotate canvas by 90 degrees */
        transform-origin: center center;  /* Keep the center as the pivot point */
    }
    body{
        flex-direction: column;
        justify-content: space-around;
    }
    /* #pauseScreen{
        transform: rotate(90deg);
    } */
    #player{
        flex-direction: row-reverse;
    }

    #player button{
        transform: rotate(90deg);
    }
}