/* Global Styles */
* {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 1rem;
    color: black;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overscroll-behavior: none;
    background: linear-gradient(to top, hotpink 20%, lightgreen 30%, #c70396 80%);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    background: url(images/banner.jpg) center/cover no-repeat fixed;
}

/* Books Section */
.books_section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 2%;
}

.books_section img {
    width: 300px;
    height: 500px;
    border-radius: 3%;
    box-shadow: 10px 10px 20px;
}

/* Author Container */
.author_section {
    max-width: 400px;
    margin: 5% auto;
    text-align: center;
}

.author_section img {
    border-radius: 10%;
    object-fit: cover;
}

.author_section p {
    text-align: left;
    white-space: pre-line;
    margin: 2% auto;
}

/* BeckyJo Container */
.beckyjo_section {
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 2% auto;
}

.beckyjo_section a {
    font-size: 16px;
    text-decoration: none;
    color: rgb(0, 85, 0);
}

/* Links Container */
.links_section {
    text-align: center;
}

.links_section a {
    color: black;
    margin-inline: 1px;
    text-decoration: none;
}

/* Copyright Container */
.copyright_section {
    margin: 20px;
    text-align: center;
}

/* Flip Container */
.flip_container {
    perspective: 1000px;
    margin: 2%;
}

.flipper {
    position: relative;
    width: 300px;
    height: 500px;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.flip_container:hover .flipper {
    transform: rotateY(180deg);
}

.front, .back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 3%;
    box-shadow: 10px 10px 20px;
    backface-visibility: hidden;
}

.front {
    background-size: cover;
}

.back {
    background-color: #ff69b4;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.back p {
    white-space: pre-line;
    max-height: 70%;
    max-width: 85%;
    margin: auto;
    overflow: auto;
}

/* Button Container */
.button {
    display: flex;
    justify-content: center;
    margin: auto;
}

.button a {
    background-color: green;
    color: whitesmoke;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
}

/* Media Queries */
@media screen and (max-width: 500px) {
    .hero {
        background-image: url(images/banner-long.jpg);
    }
}

@supports (-webkit-touch-callout: none) {
    .hero {
        background-attachment: scroll;
    }
}
