.books-grid {
    width: 1200px;
    max-width: 100%;
    padding: 10px;
    display: grid;
    grid-template-columns: auto auto auto auto;
}

.bookData {
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px 10px rgba(0,0,0, 0.2 );
    background-color: rgba(255,255,255,0.2);
}

.bookData:hover {
    cursor: pointer;
}

.bookImage {
    width: 100%;
}

.bookText {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bookText p {
    margin: 3px;
}

.bookText-price {
    font-size: 17pt;
    font-weight: 600;
    color: orange;
}

.book-button {
    width: 80%;
    padding: 5px;
    margin: 1%;
    box-shadow: 0 0 5px 5px rgba(0,0,0, 0.2 );
    border-color: rgb(240,150,0);
    border-radius: 8px;
    background-color: rgba(240,150,0,0.2);
}

.linkToDetailPage {
    text-decoration: none;
}

.margin-10 {
    padding:10px;
}

div#details
{
    background-color : #ffffff;
    border : 1px solid orange;
    border-radius : 5px;
    height: auto;
    padding : 5px;
    position : fixed;
    visibility : hidden;
    width : 600px;
    z-index: 5;
    box-shadow: 0 0 15px 15px rgba(0,0,0, 0.2 );
}

div#order
{
    background-color : #ffffff;
    border : 1px solid orange;
    border-radius : 5px;
    box-shadow: 0 0 15px 15px rgba(0,0,0, 0.4 );
    height: auto;
    padding : 5px;
    position : fixed;
    visibility : hidden;
    width : auto;
    z-index: 5;
}

td#hideDetailsTd {
    color : blue;
    text-align : right;
    text-decoration : underline;
}

td#hideDetailsTd:hover{
    cursor : pointer;
}

.card-title {
    font-size: 15pt;
    color: darkorange;
    font-weight: 400;
}

/** Book details page **/

.book-details-div {
    width: 1200px;
    max-width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-content: center;
}

.book-detail-cover-div {
    padding: 5%;
    width: 30%;
    max-width: 30%;
}

.book-details-text-div {
    padding: 5%;
    max-width: 70%;
}

.book-detail-cover-img {

    box-shadow: 0 0 5px 5px rgba(0,0,0, 0.2 );
    border-color: rgb(240,150,0);
    border-radius: 8px;
    background-color: rgba(240,150,0,0.2);
}

.book-detail-cover-text {
    width: 100%;
}

#bookTitle {
    color: orange;
    font-weight: 400;
    font-size: 23pt;
}

#bookAuthor {
    color: gray;
    font-weight: 400;
    font-size: 15pt;
    margin-bottom: 20px;
}

#bookPrice {
    color: gray;
    font-weight: 300;
    font-size: 13pt;
    margin-bottom: 10px;
}

#bookAmount {
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 0 5px 5px rgba(0,0,0, 0.2 );
    border-color: rgb(240,150,0);
    border-radius: 8px;
    background-color: rgba(240,150,0,0.2);
}

#bookDescrTitle{
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 400;
}

#bookDescription {
    line-height: 20px;
}

.selectButton {
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 0 5px 5px rgba(0,0,0, 0.2 );
    border-color: rgb(240,150,0);
    border-radius: 8px;
    background-color: lightgrey;
}

.selectHolder {
    margin-bottom: 20px;
}
@media only screen and (max-width: 950px ) {
    .books-grid {
        max-width: 100%;
        padding: 10px;
        display: grid;
        grid-template-columns: auto auto auto;
    }

    .book-detail-cover-div {
        width: 30%;
        max-width: 30%;
    }

    .book-details-text-div {
        width: 70%;
        max-width: 70%;
    }

    .book-detail-cover-img {
        max-width: 100%;
    }
}

@media only screen and (max-width: 667px ) {
    .books-grid {
        width: 650px;
        max-width: 100%;
        padding: 10px;
        display: grid;
        grid-template-columns: auto auto;
    }
}

@media only screen and (max-width: 400px ) {
    .books-grid {
        max-width: 100%;
        padding: 5px;
        margin: 5px;
        display: grid;
        grid-template-columns: auto auto;
    }

    .book-details-div {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .book-detail-cover-div{
        min-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .book-details-text-div {
        width: 100%;
    }

    .book-details-text-div {
        min-width: 80%;
        max-width: 80%;
        margin: 5px;
        padding: 0;
    }
}