* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    padding: 20px;
    display: flex;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(0deg,
            rgb(0, 255, 255) 50%,
            rgb(2, 0, 143) 100%);
}

#gameCanvas {
    margin-top: 50px;
    box-shadow: 10px 10px 20px black;
    background-color: black;
    border-radius: 5px;
    max-width: 100%;
    max-height: 100%;
    display: none;
}

#controls-screen {
    position: absolute;
    width: 470px;
    top: 50%;
    left: 50%;
    background: url('images/startscreen.png');
    border-radius: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    justify-content: center;
}

#controls-h1 {
    position: absolute;
    text-align: center;
    width: 300px;
    font-family: comic sans MS;
    color: yellow;
    text-shadow: 5px 5px 5px black;
    margin-top: -70px;
}

#controls-h2 {
    text-align: center;
    font-family: comic sans MS;
    font-size: 16px;
    color: rgb(163, 0, 0);
    text-shadow: 1px 1px 2px black;
    margin-top: 380px;
    padding-bottom: 80px;
}

#back {
    position: absolute;
    border-radius: 50px;
    padding: 3px;
    width: 90px;
    margin-top: 20px;
    background: rgb(43, 255, 0);
    text-align: center;
    text-decoration: none;
    text-shadow: 1px 1px 1px black;
    box-shadow: 8px 8px 18px black;
    margin-top: 320px;
    cursor: pointer;
}

@media all and (max-width: 1000px) {

    body {
        height: 1000px;
    }

    #controls-screen {
        border-radius: 0%;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        width: 250px;
        margin-top: 20px;
    }

    h1 {
        width: 300px;
        padding-top: 20px;
    }

    #back {
        margin-top: 180px;
    }

    #controls-h2 {
        font-size: 13px;
        margin-top: 220px;
    }
}

@media all and (max-width: 500px) {
    #controls-screen {
        width: 300px;
    }

    #back {
        margin-top: 200px;
    }

    #controls-h2 {
        font-size: 14px;
        margin-top: 260px;
    }
}