body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f1ea;
    color: #3a3a3a;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.book {
    width: 300px;
    height: 400px;
    background-color: rgba(121, 56, 21, 0.933);
    border-radius: 10px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2), inset 5px 5px 15px rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 5px solid #755a41;
}

.book:before {
    content: '';
    position: absolute;
    left: 10px;
    top: 5px;
    bottom: 5px;
    width: 10px;
    background: linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0));
}

.book:hover {
    transform: translateY(-10px) rotateZ(-2deg);
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.3), inset 5px 5px 15px rgba(255, 255, 255, 0.2);
}

.book-title {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    font-family: 'Georgia', serif;
}

h1 {
    margin-bottom: 2rem;
}

.back-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 24px;
    background-color: #755a41;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.back-button:hover {
    background-color: #5e4833;
    transform: translateY(-2px);
}

.book-page {
    background-color: #fffcf5;
    width: 80%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 3rem;
    border: 1px solid #ddd;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 80vh;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex-grow: 1;
    font-size: 1.2rem;
    line-height: 1.7;
    text-align: left;
    font-family: 'Georgia', serif;
}

.page-content h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Segoe UI', sans-serif;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.nav-button {
    padding: 10px 20px;
    background-color: #755a41;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.3s;
}

.nav-button:hover {
    background-color: #5e4833;
    transform: translateY(-1px);
}

.nav-button.disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
    pointer-events: none;
}

body.book-background {
    background-color: #e9e5e0;
}

.secret-link {
    text-decoration: none;
    color: inherit;
} 