.children_books_container {
    display: flex;
    flex-direction: row;
    margin: 2.5%;
    border-radius: 20px;
    width: 95%;
    max-width: 95%;
    min-width: 240px;
    height: fit-content;
    padding: auto;
    overflow: hidden;
    /* background-color: rgba(34, 194, 141, 0.46); */
}

.children_books_container h1 {
    font-weight: bold;
    font-size: 25px;
    margin: 2.5%;
    margin-bottom: 5%;
}

.children_books_image {
    display: flex;
    justify-content: center;
    width: 45%;
    max-width: 45%;
    border-radius: 20px;
    overflow: hidden;
}

.children_books_image img {
    display: flex;
    width: auto;
    margin-left: 7.5%;
    margin-right: 2.5%;
    height: 70vh;
    min-height: 240px;
    border-radius: 20px;
    filter: invert(1);
    overflow: hidden;
}

.children_books_image p {
    position: absolute;
    display: block;
    width: auto;
}

.children_books_description {
    display: flex;
    flex-direction: column;
    width: 52.5%;
    max-width: 52.5%;
    margin-right: 2.5%;
    margin-left: 0%;
    overflow: hidden;
}
.fire {
    background-color:#ff5a00;
    width:65%;
    margin: auto;
  }
  .fire::before {
    background: linear-gradient(350deg, rgba(255,0,0,1) 0%, rgba(255,154,0, 1) 48%, rgba(255,232,8, 1) 100%) !important;
}
.children_books_description h1 {
    display: flex;
    align-self: center;
    margin-top: 7.5%;
    font-size: 33px;
    font-weight: bold;
    text-align: center;
    flex: 15%;
    font-family: Appl_font;
}

.children_books_description p {
    display: flex;
    font-size: 17px;
    text-align: justify;
    margin-left: 12.5%;
    margin-right: 12.5%;
    flex: 62.5%;
    font-family: Appl_font;
}

.cbd_button {
    display: flex;
    flex: 12.5%;
    align-self: center;
    align-items: center;
    justify-self:flex-end;
    padding-left: 10%;
    padding-right: 10%;
    border-radius: 12px;
    color: white;
    background-color: #2cae7c;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    border-style: none;
    transition: ease-in-out .3s; }

.cbd_button:hover {
    cursor: pointer;
    color: greenyellow;
    padding-right: 15%;
    padding-left: 15%;
    font-size: 23px; 
}

.children_books_sandwich {
    display: flex;
    width: fit-content;
    height: fit-content;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.children_books_rotate_right_fade_out {
    transition: ease 700ms;
    transform: rotateY(180deg);
    opacity: 0.15;
}

.children_books_rotate_right_fade_in {
    transition: ease 700ms;
    transform: rotateY(0deg);
    opacity: 1;
}

#children_books_small_res {
    display: flex;
}

#children_books_big_res {
    display: flex;
}


/* Resizers of bigger res book presentation version in terms of screen width */
@media screen and (min-width: 950px) {
    .children_books_description h1 {
        font-size: 2.55vw;
        flex: 15%;
    }
    
    .children_books_description p {
        font-size: 2vw;
        margin-left: 12.5%;
        margin-right: 12.5%;
        flex: 70%;
    }
    
    .children_books_description button {
        flex: 15%;
    }

    .children_books_image img {
        height: 70vh;
        min-height: max(70vh, 240px);
    }
}
@media screen and (min-width: 656px) {
    #children_books_small_res {
        display: none;
    }

    .children_books_image img {
        height: 60vh;
    }
}

/* Resizer of smaller res book presentation version in terms of screen width */
@media screen and (max-width: 655px) {
    .children_books_container {
        flex-direction: column;
        align-items: center;
    }

    .children_books_description {
        position: absolute;
        margin: 0px;
        padding: 0px;
        height: 60%;
        width: 45%;
        min-width: 45%;
        min-height: 60%;
        z-index: 1;
    }

    .children_books_description p {
        font-size: 2vw !important;
        font-weight: bold;
        flex: 60%;
    }
    
    .children_books_description br {
        flex: 35%
    }

    .children_books_description button {
        flex: 5%;
        background-color: black;
        color: white;
    }

    .children_books_image {
        width: 100%;
        max-width: 100%;
        height: 100%;
        min-height: 100%;
        object-fit: cover;
        justify-content: center;
        align-items: center;
        display: block;
        z-index: 2;
    }

    .children_books_image img {
        margin: 0%;
    }

    #children_books_big_res {
        display: none;
    }
    #children_books_small_res {
        display: flex;
    }
}

@media screen and (max-height: 550px) and (max-width: 650px) {
    .children_books_description p {
        font-size: 10px !important;
        margin-top: none;
        padding-left: 10px;
        padding-right: 10px;
    }

    .children_books_description button {
        flex: 10%;
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media screen and (max-height: 350px) and (max-width: 650px) {
    .children_books_description p {
        font-size: 10px !important;
        flex: 70% !important;
        margin-top: max(1vw, 50px);
    }
    .children_books_description button {
        flex: 10%;
        margin-bottom: 10%;
    }
}

@media screen and (max-height: 240px) {
    .children_books_description p {
        font-size: 8px !important;
        margin-top: max(1vw, 50px);
    }

    .children_books_description button {
        margin-bottom: 20%;
    }
}

/* Resizers of smaller res book presentation version in terms of screen height */
@media screen and (max-height: 500px) and (max-width: 655px) {
    .children_books_description {
        min-width: 35%;
        width: 35%;
        height: 65%;
    }
    .children_books_description p {
        font-size: 14px;
    }

    .children_books_description button {
        font-size: 14px;
    }

    .children_books_description button:hover {
        padding-left: 6%;
        padding-right: 6%;
    }
}
@media screen and (max-height: 300px) and (max-width: 655px) {
    .children_books_description {
        min-width: 32%;
        width: 32%;
        height: 77%;
    }
    .children_books_description p {
        font-size: 12px;
        font-weight: normal;
    }

    .children_books_description button {
        font-size: 9px;
    }
}
@media screen and (max-height: 270px) and (max-width: 655px) {
    .children_books_description {
        height: 85%;
    }
    .children_books_description p {
        font-size: 11px;
    }
}
@media screen and (max-height: 240px) and (max-width: 655px) {
    .children_books_description {
        height: 120%;
    }
}
