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

/* h1, h2, h3, h4{
    margin: 1rem;
} */

.display {
    width: 100%;
    padding: 10px 0 0 0;
    text-align: center;
}

#facts {
    width: 100%;
    padding: 20px;
    text-align: justify;
    text-align-last: left;
}
header{
    background-color: aqua;
    width: 100%;
    height: auto;
    padding: 10px;
    border-style: solid;
    border-width: 0 0 2px 0;
    border-color: #a0a0a0;
    /* text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between; */
}


main{
    margin:  20px auto;
    border-radius: 20px;
    width: 600px;

    padding: 25px;
    background-color: rgb(192, 192, 192);
}
#form-flex{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.form-group{
    background-color: #a7a7a7;
    border: 1px solid rgb(85, 85, 85);
    border-radius: 10px;
    width: 100%;
    margin: 10px 0;
    align-content: end;
    padding: 5px;
}
.form-split{
    display: flex;

}
.form-split > div{
    width: 50%;

}


input, select, button{
    border-radius: 5px;
    border: 1px solid rgb(85, 85, 85);
    padding: 5px;
    margin-bottom: 12px;
    width: 100%;
    background-color: rgb(237, 255, 249);
}

#btn_get{
   background-color: aqua;
}
#btn_get:hover{
   background-color: rgb(2, 189, 189);
}
#btn_get:active{
   background-color: rgb(1, 150, 150);
}

#meme_image{
    width: 80%;
    margin: 10px auto;
    padding: 0;
    border: rgb(85, 85, 85) solid 1px;
}
img{
    width: 100%;
}

#image_array{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-bottom: 12px;
}
.list_image{
    width: 20%;
    height: 100px;
    border: 1px rgb(85, 85, 85) solid;
}

.navigator{
    display: block;
    position: relative;
    /* flex-direction: row;
    justify-content: space-between; */
    width: 100%;
    height: 0;
}
.navigator > div{
    background-color: #dddddd83;
    border: 1px rgb(85, 85, 85) solid;
    padding: 5px;
    cursor: pointer;
    border-radius: 2px;
    font-weight: 700;
}
.navigator > div:hover{
    background-color: #a0a0a0;
}
.navigator #btn_back{
    position: absolute;
    left: 0;
    top: 30px;
    z-index: 2;
}
.navigator #btn_forward{
    position: absolute;
    right: 0;
    top: 30px;
    z-index: 2;
}

.navigator > .no_btn{
    background-color: rgb(192, 192, 192);
    border: 1px rgb(85, 85, 85) solid;
    padding: 5px;
    cursor: default;
    border-radius: 2px;
}

#image_array > div{
    cursor: pointer;
    background-image: none;
    background-position-x: center;
    background-size: cover;
    border-radius: 2px;
}

.red_bdr{
    border-color: red;
}

#error_box{
    width: 100%;
    display: none;
    border: red solid 1px;
    margin-bottom: 5px;
    background-color: rgb(237, 255, 249);
    border-radius: 5px;
    padding: 5px;
}

@media only screen and (max-width: 576px)
{
    main{
        width: 100%;
    }
    .form-split{
        flex-direction: column;
    }
    .form-split > div{
        flex-direction: column;
        width: 100%;
    }
    /* header{
        flex-direction: column;
    } */
}