* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Bangers', cursive;
}

body {
    background-color: rgb(20, 24, 20);
}

#canvas1 {
    background: url("all_project_images/background.png");
    position: absolute;
    top: 50%;
    left: 50%;
    border: 3px solid black;
    display: none;
    transform: translate(-50%, -50%);
}

#overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    /* width: 100vw; */
    pointer-events: none;
    display: none;
    transform: translate(-50%, -50%);
}

/* images to load and draw in canvas  */
#obstacles,#bull,  #egg, #toad, #larva, #toads {
    display: none;
}

#instructionSection {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.505);
    padding-top: 10px;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;
}

#instructions {
    background-color: rgba(24, 23, 23, 0.731);
    margin: auto;
    width: 60%;
    color: white;
    padding-top: 2vh;
    padding-bottom: 2vh;
    letter-spacing: 2px;
}

#instructions h1 {
    text-align: center;
    margin-bottom: 2vh;
}

#instructions>div:not(#texts) {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding-left: 20px;
}

#texts {
    padding-left: calc(70px + 2vw);
}

#instructions div:nth-child(odd) {
    background-color: black;
}

#instructions div img {
    width: 50px;
    height: 50px;
    /* background-color: blue; */
    object-fit: contain;
    margin-right: 2vw;
}


#startBtn {
    display: block;
    margin: auto;
    margin-top: 15px;
    width: 10vw;
    cursor: pointer;
    font-size: 20px;

}

#portraitWarning {
    display: none;
}

@media (orientation: portrait) {

    #canvas1, #overlay, #instructionSection {
        display: none;
    }

    #portraitWarning {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        color: aliceblue;
        background-color: red;
        z-index: 5;

        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 15vw;
    }

    #portraitWarning small{
        font-size: 3rem;
    }
}