#fullscreen {
    background-color: rgb(0, 0, 0, 0.7);
    position: fixed;
    height: 100vh;
    width: 100vw;
    text-align: right;
    padding-top: 2px;
    padding-right: 3px;
}

#centered-image{
    position: fixed;
    height: 100vh;
    width: 100vw;
    z-index: 320;
    display: flex;
    flex-direction: row ;
    text-align: center;
    align-content: center;
}


/*-----------------------------------MAIN-----------------------------------*/

main{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin-top: 0px;
    align-items: center;
    padding-left: 10vh;
    padding-right: 10vh;
}


/*----------------------Section select----------------------*/

#sections {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 90%;
    border-bottom: solid 1px;
}

.section {
    width: 50%;
    height: 100%;
    align-items: center;
    border-right: solid 1px;
    border-bottom: none;
    flex-direction: row;
    display: flex;
    justify-content: center;
    background-color: #ad97ff;
    cursor: pointer;
}

.final {
    border-right: none;
}

.section img {
    margin-top: 5px;
    margin-bottom: 5px;
}

#img img {
    width: 40%;
    height: auto;
}

#link img {
    width: 95%;
    height: auto;
}


/*----------------------Banner----------------------*/

#banner {
    margin-top: 25px;
    margin-bottom: 10px;
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    justify-items: center;
    align-items: center;
    width: 80%;
    height: 10%;
    border-style: solid;
    border-width: 1px;
    background-color: #b39fff;
}

.subbanner {
    height: 100%;
    align-items: center;
    justify-items: center;
}

#filters {
    width: 50%;
}

#tags, #tags-disturb{
    list-style-type: none;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    /*width: 90%;*/
}

.tags {
    display: flex;
    flex-direction: column;
    justify-content: left;
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.tags li {
    margin-right: 10px;
    display: flex;
    flex-direction: row;
}

.tags li label {
    margin-right: 10px;
    margin-bottom: 3px;
    padding: 2px;/*
    border: solid 1px;
    border-color: #705eb4;*/
    border-radius: 10px;
}

.checkbox {
    margin-right: 3px;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.reverse-tag, .reverse-tag-check {
    display: flex;
    flex-direction: row-reverse;
    cursor: pointer;
}

#language {
    text-transform: capitalize;
    background-color: #f7adff;
    border-width: 1px;
}

#element-limit, #language-select {
    width: 25%;
    display: flex;
    flex-direction: column;
}

#limit, #language {
    width: 50%;
}


/*----------------------Pagination----------------------*/

#top-pagination {
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-change {
    width: 75%;
    height: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.arrow {
    width: 20px;
    height: auto;
    cursor: pointer;
}

.pages {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 35%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    list-style-type: none;
    color: #000070;
}

.pointer /*From JavaScript*/ {
    cursor: pointer;
}

#content {
    list-style-type: none;
}


/*----------------------Javascript----------------------*/

.image_box {
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%;
    margin-bottom: 20px;
}

.image_box p {
    padding-bottom: 50px;
    border-bottom: solid 2px;
}

.main_img {
    width: 60%;
    height: auto;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
}

.link_box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    margin-left: 5%;
    margin-bottom: 50px;
    border-style: solid;
    border-width: 1px;
    cursor: pointer;
    background-color: #efefef;
    padding: 5px;
}

.link_box img {
    width: 80%;
    margin-top: 0px;
    height: auto;
}

.list-img {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.img-arrow {
    height: 80px;
    width: auto;
    margin: 15px;
}

.p-arrow {
    height: 35px;
    width: auto;
    margin: 15px;
}









/* @media screen and (max-width : 900px) { */

/* @media screen and (min-width : 431px) and (max-width : 900px) { */

@media screen and (max-width : 580px) {

    #fullscreen {
        background-color: black;
        opacity: 0.7;
        position: fixed;
        height: 100vh;
        width: 100vw;
    }

    #centered-image{
        position: fixed;
        height: 100vh;
        width: 100vw;
        z-index: 320;
        display: flex;
        flex-direction: row ;
        text-align: center;
        align-content: center;
    }


    /*-----------------------------------MAIN-----------------------------------*/

    main{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        margin-top: 0px;
        margin-left: 0px;
        width: 100vw;
        justify-self: right;
        align-items: center;/*
        padding-left: 1vw;*/
        padding-right: 0vw;
    }


    /*----------------------Section select----------------------*/

    #sections {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        width: 100%;
        border-bottom: solid 1px;
    }

    .section {
        width: 95%;
        height: 100%;
        align-items: center;
        border-right: none;
        border-bottom: solid 1px;
        flex-direction: row;
        display: flex;
        justify-content: center;
        background-color: #ad97ff;
        cursor: pointer;
    }

    .final {
        border-bottom: none;
    }

    .section img {
        margin-top: 5px;
        margin-bottom: 5px;
    }

    #img img {
        width: 40%;
        height: auto;
    }

    #link img {
        width: 95%;
        height: auto;
    }


    /*----------------------Banner----------------------*/

    #banner {
        margin-top: 25px;
        margin-bottom: 10px;
        padding: 1px;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        justify-items: center;
        align-items: center;
        width: 90%;
        height: 10%;
        border-style: solid;
        border-width: 1px;
        background-color: #b39fff;
    }

    .subbanner {
        height: 100%;
        align-items: center;
        justify-items: center;
        margin-bottom: 10px;
    }

    #filters {
        width: 100%;
    }

#tags, #tags-disturb{
    list-style-type: none;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    /*width: 90%;*/
}

.tags {
    display: flex;
    flex-direction: column;
    justify-content: left;
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.tags li {
    margin-right: 10px;
    display: flex;
    flex-direction: row;
}

.tags li label {
    margin-right: 10px;
    margin-bottom: 3px;
    padding: 2px;/*
    border: solid 1px;
    border-color: #705eb4;*/
    border-radius: 10px;
}

.checkbox {
    margin-right: 3px;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

    .reverse-tag, .reverse-tag-check {
        display: flex;
        flex-direction: row-reverse;
        cursor: pointer;
    }

    button {
        text-transform: capitalize;
        background-color: #f7adff;
        border-width: 1px;
    }

    #element-limit, #language-select {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    #limit, #language {
        width: 50%;
    }

    .subbanner:not(#language-select){
        border-bottom: dotted 2px;
        padding-bottom: 10px;
    }


    /*----------------------Pagination----------------------*/

    #top-pagination {
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .page-change {
        width: 95%;
        height: 20px;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
    }

    .arrow {
        width: 20px;
        height: auto;
        cursor: pointer;
    }

    .pages {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 35%;
        height: 100%;
        margin: 0px;
        padding: 0px;
        list-style-type: none;
        color: #000070;
    }

    .pointer /*From JavaScript*/ {
        cursor: pointer;
    }

    #content {
        list-style-type: none;
        padding-right: 10vw;
    }


    /*----------------------Javascript----------------------*/

    .image_box {
        display: flex;
        flex-direction: column;
        align-items: center; 
        width: 100%;
        margin-bottom: 20px;
    }

    .image_box p {
        padding-bottom: 50px;
        border-bottom: solid 2px;
        text-align: center;
    }

    .image_box h2 {
        text-align: center;
    }

    .main_img {
        width: 60%;
        height: auto;
        border-style: solid;
        border-width: 1px;
    }

    .link_box {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 98%;
        margin-left: 0px;
        margin-bottom: 50px;
        border-style: solid;
        border-width: 1px;
        cursor: pointer;
        background-color: #efefef;
        padding: 5px;
    }

    .link_box img {
        width: 80%;
        margin-top: 0px;
        height: auto;
    }

    .list-img {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .img-arrow {
        height: 30px;
        width: auto;
        margin: 15px;
    }

    .p-arrow {
        height: 20px;
        width: auto;
        margin: 15px;
    }

}