#book-animation {
    z-index: -9999; /* Below darker cover */
    display: none;
}

.book-cover {
    display: block;
}

body, html {
    background: none;
    background-size: cover;
}

html::before {
    background: url('img/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    filter: brightness(90%) blur(1px);
}

h1, h2, h3, p, a, li {
    text-shadow: 0px 0px 10px #000000; /* Black shadow for better readability */
}

h2, h3 {
    text-shadow: 3px 3px 10px #000000; /* Black shadow for better readability */
}

h2 {
    color: #41c72b;
}

.bg-img {
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Behind everything else */
    background: url("img/cover_placeholder_stars.png") no-repeat center center;
    background-size: cover; /* Cover entire area */
    filter: brightness(50%);
    transition: filter 0.5s ease; /* Smooth transition for filter */
}

#cover {
    position: relative;
    z-index: 1;
}

#cover, footer, main {
    transition: opacity 0.5s ease;
}

#cover h1 {
    padding-top: 38vh;
    font-size: 4.16vw;
}

main {
    display: none;
}

#cover h1, #cover h2 {
    text-shadow: 2px 2px 8px #000000; /* Black shadow for better readability */
    text-align: center;
    margin-left: 0.8vw;
    color: #41c72b;
    margin: 0;
}

#cover h2 {
    padding-top: 2vh;
    font-size: calc((1.94 * 16) / 1920 * 100vw);
}

.bio-container {
    display: flex;
    align-items: flex-start;
    padding: 6vh 1.67vw;
}

.profile-pictures {
    display: flex;
    flex-direction: column;
    padding-left: 1.67vw;
    margin-right: 3.33vw; /* Space between images and bio text */
    margin-top: 3vh;
}

.profile-picture {
    width: 100%; /* Keep image original width */
    max-width: 26.67vw; /* Maximum width */
    margin-bottom: 11vh; /* Space between two images */
    border-radius: 0.83vw;
}

.bio-content {
    width: 60%; /* Adjust width according to the space taken by profile pictures */
    padding: 0vh 2vw;
}

.bio-content h2 {
    font-size: calc(40 / 1920 * 100vw);
    margin-bottom: 10px;
    text-decoration: underline;
}

.bio-content p, .bio-content h3, .bio-content li {
    font-size: calc((1.56 * 16) / 1920 * 100vw);
    line-height: 1.6; /* Adjust line height for readability */
}

button {
    font-size: 1.25vw;
    padding: 1.75vh 2vw; /* Make button larger */
    border-radius: 8px; /* Add rounded corners to button */
    cursor: pointer; /* Change mouse cursor to pointer when hovering over button */
    border: 1px solid #ccc; /* Add border to button */
    background-color: var(--forest-green); /* Change background color */
    margin-left: 47%;
    margin-top: 5vh;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-shadow: 1px 1px 3px #000;
    color: white;
}

button:hover {
    background-color: var(--moss-green); /* Change background color on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

footer {
    bottom: 0px;
    width: 100%;
    color: white;
    margin-top: calc((6 * 16) / 1920 * 100vw);
    z-index: 1;
    padding: 0;
}

footer > p, footer > p {
    font-size: calc(16 / 1920 * 100vw);
}
