* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background-color: #45B09E;
    color: white;
}

body {
    direction: rtl;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 2vw;
    background-color: #EEE;
}

.header {
    width: 100%;
    max-height: 700px;
    background-color: #45B09E;
    align-self: flex-start;
    text-align: center;
}

nav {
    width: 100vw;
    background-color: #000000;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
}

.logo {
    width: 100px;
    font-family: sans-serif;
    font-weight: bold;
}
.logo .bookstore {
    width: 20vw;
    background-color: #1BB51B;
    color: #FFFFFF;
    padding: 2px;
    border-top-left-radius: 3.21vw 4.81vw;
    border-bottom-right-radius: 3.21vw 4.8vw;
    box-shadow:  5vw 0px green inset,
                 14vw 0px #1BB51B inset,
                 25vw 0px #45B09F inset;
    display: flex;
    justify-content: center;
    align-items: center;
}

.links {
    width: 60%;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style-type: none;
}
.links li a {
    color: inherit ;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: none;
}

/* start sections list */
.links .list {
    display: none;
    list-style: none;
    position: absolute;
    top: 56%;
    left: 1%;
    width: 15%;
    background-color: #000000;
    color: #FFFFFF;
}

.list li {
    padding: 1vw;
    margin: auto;
    border: 1px solid #1BB51B;
}

#sections-button {
    width: 15px;
    background-color: transparent; 
    border-style: solid ;
    border-width: 11px;
    border-color: #1BB51B transparent transparent transparent ;
    cursor: pointer;

}

.list li:hover {
    background-color: #D8D8D8;
    color: #000000;
} 
/* end sections list */

.main-area {
    width: 100%;
    align-self: center;
    margin-top: 20px;
}

.section{
    padding-left: 20px;
    padding-right: 20px;
    background-color: #E2E4E4;
    width: 95%;
    margin: 20px auto;
    font-family: serif;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-content: space-between;
    flex-wrap: wrap;
}

.title {
    flex-basis: 80%;
    align-self: center;
    margin: 20px auto;
    position: relative;
}

h2 {
    padding: 20px;
    margin-bottom: 50px;
    font-size: 7vw;
}

h2::after {
    content: "";
    display: block;
    width: 60vw;
    height: 4px;
    border-top: 2px solid #C3C2C2;
    border-bottom: 2px solid #C3C2C2;
    background-color: #E6E6E6;
    position: absolute;
    left: 50%;
    top: 70%;
    margin-left: -30vw;
    z-index: 1;
}

h4 {
    background-color: #E2E4E4;
    width: 300px;
    font-size: 3vw;
    font-weight: normal;
    position: absolute;
    left: 50%;
    top:  60%;
    margin-left: -150px;
    z-index: 2;
}

.content .book {
    width: calc(95% / 4);
    background-color: #C1C1C1;
    margin-bottom: 20px;
    padding: 20px;
    border: 2px solid #505050;
    border-radius: 5px;
    color: #FFFFFF;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: space-between;
    counter-increment: book-count;  /*book-counter */
}

.content .book:hover {
    border-radius: 5px;
    transition-duration: 0.3s;
    transition-timing-function: ease-in-out;
    border-color: #45B09E;
    transform: translateY(-5px);
    box-shadow: 0px 10px 30px -2px rgba(69, 176, 158, 0.4);
}


.content a {
    width: 100%;
    height: 100%;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    color: #FFFFFF ;
    text-decoration: none;
    text-align: center;
}

.book .img {
    height: auto;
    border: 1px solid #A9A9A9;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 10px;
    position: relative;
}

.book .img::before{
    content: counter(book-count);
    width: 30px;
    background-color: #45B09E;
    border-radius: 50%;
    text-align: center;
    position: absolute;
    left: 50%;
    bottom: -10px;
    margin-left: -15px;
}


a div{
    width: 100%;

}

a .author {
    align-self: flex-end;
    color: #45B09E;
    font-weight: bold;
}

.book:hover .name {
    color: #45B09E;
    text-decoration: underline;

}

.footer {
    background-color: #000000;
    color: #FFFFFF;
    width: 100%;
    padding: 50px;
    margin-top: 20px;
    align-self: flex-end;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    body {
        font-size: 3vw;
    }
    .links {
        font-size: 15px;
    }
    .links .list {
        width: 13%;
    }
    #sections-button {
        border-width: 9px;
    }
    .content .book {
        width: calc(95% / 2);
    }
}

@media (max-width: 480px) {
    .links {
        font-size: 12px;
    }
    .links .list {
        width: 12%;
    }
    #sections-button {
        border-width: 7px;
    }
    h2 {
        padding: 20px;
        margin-bottom: 25px;
        font-size: 8vw;
    }
    h2::after {
        width: 70vw;
        margin-left: -35vw;
    }
    
    h4 {
        width: 160px;
        font-size: 3.5vw;
        top:  65%;
        margin-left: -80px;
    }
}