/***********************************************************************
 *  Book
 **********************************************************************/
.book {
    margin-bottom: 20px;
    margin-top: 20px;
    display: flex;
}

.login--heading {
    text-align: center;
    margin: 120px 0;
}

.login--a {
    text-decoration: none;
    color: var(--blue);
}

.book--left {
    width: 18%;
    margin-right: 3%;
}

.book--right {
    margin-top: 20px;
    width: 60%;
}

.book--preview--p {
    margin-top: 60px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--grey2);
}

.book--upload {
    margin-top: 60px;
    padding-bottom: 28px;
}

.book--preview {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
}

.book--preview--div {
    position: relative;
    width: 30%;
    max-height: 280px;
    margin-right: 3%;
    margin-bottom: 3%;
    box-shadow: 0px 2px 10px 2px var(--grey2);
    cursor: pointer;
    overflow: hidden;
    text-align: center;
    border: 1px solid unset;
}

.book--preview--img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

/***********************************************************************
 *  Form
 **********************************************************************/
input[type=text],
input[type=number],
textarea {
    font-family: 'Roboto', sans-serif;
    border: 1px solid transparent;
    padding: 10px 12px;
    background-color: transparent;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.book--title {
    width: 100%;
    font-size: 28px;
    line-height: 34px;
    margin-bottom: 25px;
}

.book--about {
    resize: vertical;
    width: 100%;
    min-height: 85px;
    max-height: 500px;
    font-size: 14px;
    line-height: 17px;
    color: var(--grey);
    margin-bottom: 25px;
}

.book--buy {
    display: flex;
    align-items: center;
}

.book--price {
    text-align: right;
    font-size: 18px;
    font-weight: 500;
    width: 112px;
    color: black;
}

.book--price--p {
    font-size: 18px;
    font-weight: 500;
}

#book {
    border: 1px solid transparent;
    padding: 5px;
}

.form--button {
    text-align: center;
    margin: 40px 0 60px;
}

input[type=button] {
    background: var(--blue);
    border: 2px solid var(--blue);
    padding: 12px 45px;
    border-radius: 25px;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
    outline: none;
    transition: background .5s, color .5s;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

input[type=button]:hover {
    background-color: transparent;
    color: var(--blue);
}

input.wrong,
textarea.wrong,
input[type=text]:not(:placeholder-shown).wrong,
input[type=password]:not(:placeholder-shown).wrong {
    border: 1px solid red;
    color: red;
}

.book--preview--div.wrong,
#book--img.wrong,
#book.wrong {
    border: 1px solid red;
}

.book--img--div {
    position: relative;
    cursor: pointer;
}

.book--icon--div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50px;
    opacity: 0.7;
}

.book--icon {
    width: 30px;
    height: auto;
}

#book--img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border: 1px solid transparent;
}

#bookImg,
#bookSnippet1,
#bookSnippet2,
#bookSnippet3 {
    display: none;
}

.snippet--icon--div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50px;
    opacity: 0.7;
}

.plus--icon {
    width: 22px;
    height: auto;
}

#warning {
    display: none;
    color: red;
    font-size: 15px;
    margin-bottom: 15px;
}

#notification {
    display: none;
    color: rgb(145, 228, 22);
    font-size: 15px;
    margin-top: 20px;
}

#warning.active,
#notification.active {
    display: block;
}

#gif {
    display: none;
    width: 70px;
    height: auto;
}

/***********************************************************************
 *  Responzivity
 **********************************************************************/
@media screen and (max-width: 1600px) {
    .book--title {
        font-size: 24px;
        line-height: 28px;
    }

    .book--preview--p,
    .book--upload {
        font-size: 20px;
        line-height: 24px;
    }
}

@media screen and (max-width: 1460px) {
    .book--left {
        width: 21%;
    }
}

@media screen and (max-width: 1100px) {
    .book--right {
        width: 70%;
    }
}

@media screen and (max-width: 1000px) {
    .book {
        flex-wrap: wrap;
        justify-content: center;
    }

    .book--left {
        width: 23%;
    }

    .book--right {
        width: 90%;
    }
}

@media screen and (max-width: 700px) {
    .book--left {
        width: 30%;
    }
}

@media screen and (max-width: 500px) {
    .book--left {
        width: 40%;
    }

    .book--right {
        width: 100%;
    }
}