@import "style.css";

.rightSide {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3%;
    padding-top: 100px;
}

.rightSide .searchBar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 75%;
    max-width: 1024px;
    height: fit-content;
    gap: 20px;
}

.rightSide .searchBar input {
    width: 80%;
    font-size: 1.3em;
    background: rgba(255, 255, 255, 0.27);
    border: 3px solid #B1B1B1;
    border-radius: 58px;
    padding: 3px 20px;
}

.rightSide .searchBar .searchButton {
    display: flex;
    align-items: center;
    background: #D9D9D9;
    border-radius: 50px;
    padding: 7px 20px;
    cursor: pointer;
    /* transition: background-color .1s linear, color 1s linear; */
}

.rightSide .searchBar .searchButton:hover {
    background: #5e6a6b;
}

.rightSide .searchBar .searchButton span {
    width: max-content;
    color: var(--main-text-color);
}

.rightSide .searchBar .searchButton:hover span {
    color: white;
}

.rightSide .count {
    width: 75%;
    margin-top: 30px;
    text-align: right;
}

.rightSide .count p {
    color: var(--main-text-color);
}

.rightSide .booksList {
    width: 100%;
    /* background-color: red; */
}

.rightSide .booksList .wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rightSide .booksList .wrapper .items {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book {
    position: relative;
    width: 75%;
    max-width: 1024px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    background-color: #89999a;
    justify-content: space-between;
    align-items: center;
    align-items: stretch;
    border-radius: 0 40px;
    gap: 10px;
    color: white;
    margin: 50px 0;
    transition: background-color .2s ease-in-out;
}


.book:hover {
    background: #FFFDEA;
    color: #667D58;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.25);
}

.book:hover a, .book:hover p {
    color: #667D58 !important;
}

.book .label {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 120px;
    height: 140px;
    background: linear-gradient(180deg, #BBC4C7 4.89%, #D8DCD6 37.77%, #FFFDEA 70.64%);
    box-shadow: -5px 4px 10px rgba(0, 0, 0, 0.25);
    border-radius: 20px;
    text-align: center;
    font-size: 1.1em;
    color: black;
}

.book .label p {
    margin: 0.5em 0 2em 0;
    color: #434343;
}

.book:hover .label {
    background: linear-gradient(180deg, #B3A395 4.89%, #C9BFB1 37.77%, #E6E1DC 70.64%)!important;
}

.book:hover .label>p:nth-child(1) {
    color: white;
}

.book .label>p:nth-child(1) {
    font-size: 1em;
    color: #656565;
}

.book .info {
    display: flex;
    flex-direction: column;
    width: 65%;
    padding: 30px 10px 20px 180px;
}

.book .info .top {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 5%;
    /* font-size: 1.2em; */
    padding-bottom: 10px;
    border-bottom: 1px solid white;
}

.book:hover .info .top {
    border-bottom: 1px solid #667D58;
}

.book .info .top .no {
    margin: 0;
}

.book .info .top .title {
    color: white;
    margin: 0;
    font-size: 1.6em;
    cursor: pointer;
}

.book .info .bottom {
    font-size: 1.3em;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    flex-direction: column;
}

.button {
    width: 150px;
    display: flex;
    background: linear-gradient(134.88deg, rgba(187, 196, 199, 0.5) 17.19%, rgba(216, 220, 214, 0.5) 39.17%, rgba(255, 253, 234, 0.5) 68.66%);
    box-shadow: 0px 4px 4px 0px #00000040;
    border-radius: 100px 50px 0px 200px;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
    padding-left: 10px;
    font-size: 1.3em;
    cursor: pointer;
}

.book:hover .button {
    background: linear-gradient(134.88deg, rgba(179, 163, 149, 0.5) 17.19%, rgba(201, 191, 177, 0.5) 39.17%, rgba(230, 225, 220, 0.5) 68.66%);
}

.button p {
    text-align: right;
    width: 60px;
    color: #164959;
    font-weight: bold;
}

.rightSide .pages {
    width: 75%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 20px;
}

.rightSide .pages img {
    width: 25px;
    cursor: pointer;
}

.rightSide .pages .page {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
}

.rightSide .pages .page span {
    width: 30px;
    /* height: 30px; */
    font-family: 'Microsoft JhengHei UI';
    padding: 5px;
    font-size: 1.2em;
    background: var(--background-color-1);
    border: 1px solid var(--background-color-1);
    color: #6B7C7D;
    text-align: center;
    line-height: 19px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .button {
        width: 100%;
        border-radius: 0px 0px 20px 20px;
        padding: 20px 0;
    }

    .book {
        gap: 20px;
        border-radius: 20px;
    }

    .button p {
        text-align: center;
        width: 100%;
    }

    .book .info {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 30px 180px 10px 40px;
    }

    .book .label {
        right: 30px;
        left: auto;
    }

    .rightSide {
        width: 100%;
    }

    .rightSide .searchBar .searchButton span {
        display: none;
    }

    .book .info {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 150px 30px 10px 30px!important;
    }
}

@media (min-width: 768px) and (max-width: 960px) {

    .button {
        width: 100%;
        border-radius: 0px 0px 20px 20px;
        padding: 20px 0;
    }

    .book {
        gap: 20px;
        border-radius: 20px;
    }

    .button p {
        text-align: center;
        width: 100%;
    }

    .book .info {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 30px 180px 10px 40px;
    }

    .book .label {
        right: 30px;
        left: auto;
    }
}