/* css rest */

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

/* @import url('https://fonts.googleapis.com/css?family=Permanent+Marker&display=swap'); */
/* @import url('https://fonts.googleapis.com/css?family=Open+Sans:600&display=swap'); */
@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

body {
    /* display: flex; */
    justify-content: center;
    align-items: center;
    height: 100vh;

    background-image: url("img/bb2.png");
    text-align: center;
    font-family: 'Permanent Marker', cursive;
    min-width: 320px;

}





h1 {
    text-align: center;
    margin-top: 60px;
    text-transform: uppercase;
    font-size: 40px;
}

h2 {
    margin: 5px;
    font-size: 30px;
    height: 30px;
}

section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 320px;
}

main {
    margin: 20px;
    display: flex;
    flex-wrap: wrap;
    flex-basis: 80vh;
    min-height: 60vh;
    background-color: white;
    border: 0.5px solid black;



}

div {
    flex-basis: 20%;
    height: 15vh;
    border: 0.5px solid black;
    overflow: hidden;

}

button {
    margin-top: 20px;
    text-transform: uppercase;
    font-family: 'Permanent Marker', cursive;
    font-size: 20px;
    padding: 8px 20px;
    color: white;
    background-color: darkgrey;
    transition: 0.5s;
}

button:hover {
    background-color: black;
}


@media (orientation: landscape) and (max-width: 533px) {

    section {
        margin: 5px 20px;
    }


    h1 {
        font-size: 20px;
        margin: 20px 10px 10px 10px;
    }

    h2 {
        font-size: 14px;
        height: 0px;

    }

    button {
        font-size: 12px;
        margin: 5px;
        padding: 4px 16px;
    }


}


@media (orientation: landscape) and (max-width: 823px) {

    section {
        margin: 5px 20px;
    }


    h1 {
        font-size: 20px;
        margin: 20px 10px 10px 10px;
    }

    h2 {
        font-size: 14px;
        height: 0px;

    }

    button {
        font-size: 12px;
        margin: 5px;
        padding: 4px 16px;
    }


}



.img1 {
    content: url("img/1.png");
}

.img2 {
    content: url("img/2.jpg");
}

.img3 {
    content: url("img/3.png");
}

.img4 {
    content: url("img/4.png");
}

.img5 {
    content: url("img/5.png");
}

.img6 {
    content: url("img/6.png");
}

.img7 {
    content: url("img/js.jpg");
}

.img8 {
    content: url("img/8.png");
}

.img9 {

    content: url("img/9.png");

}


.img10 {
    content: url("img/10.png");

}

.hidden {

    content: url("img/ques3.png");
}


.off {
    background-color: transparent;
    content: none;
}



@media (orientation:portrait) and (min-width: 320px) {
    div {
        flex-basis: 25%;
        height: 12.5vh;
    }

    main {
        margin: 10px;

    }

    h1 {
        margin: 35px 5px 10px 5px;
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
        margin: 8px;
    }

    button {
        font-size: 12px;
        ;
    }

}

@media (orientation:portrait) and (min-width: 360px) {

    div {
        flex-basis: 25%;
        height: 12vh;
    }

    h1 {
        font-size: 30px;
    }

    button {
        margin-top: 15px;
    }
}


@media (orientation:portrait) and (min-width: 760px) {

    section {
        margin: 0 80px;
    }

    div {
        flex-basis: 25%;
        height: 13vh;
    }

    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 30px;
        margin: 18px;
    }

    button {
        margin-top: 26px;
        padding: 10px 36px;
        font-size: 30px;
    }
}