/* guestbook.css */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #111;
    font-family: 'Courier New', Courier, monospace;
}

#book-container {
    position: relative;
    width: 1920px;
    height: 1080px;
    transform-origin: top left;
}
#book-container.responsive {
    transform: scale(var(--scale));
}

#book-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page {
    position: absolute;
    width: 548px;
    height: 789px;
    background: rgba(255, 248, 240, 0);
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 1;
}

#left-page { left: 348px; top: 139px; display: flex; flex-direction: column; }
#right-page { left: 1009px; top: 139px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }

#guestbook-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#guestbook-form label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #333;
    font-family: 'Courier New', Courier, monospace;
}

#guestbook-form input,
#guestbook-form select,
#guestbook-form textarea {
    width: 100%;
    margin-top: 5px;
    padding: 8px;
    background: #faf3e82e;
    border: 1px solid #7e6a52;
    box-sizing: border-box;
    font-size: 15px;
    font-family: 'Courier New', Courier, monospace;
}

#guestbook-form button {
    margin-top: 15px;
    padding: 10px;
    width: 100%;
    background: #faf3e82e;
    border: 1px solid #7e6a52;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Courier New', Courier, monospace;
}

#guestbook-form button:hover {
    background: #faf3e82e;
}

#entries-container {
    flex: 1;
    overflow-y: auto;
}

.entry {
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #7e6a52;
    font-size: small;
}

.entry .meta {
    font-size: 14px;
    opacity: 0.7;
}

#page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-family: 'Courier New', Courier, monospace;
}

#page-nav button {
    background: #faf3e82e;
    border: 1px solid #7a6a55;
    padding: 5px 10px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
}

#page-nav button:disabled {
    opacity: 0.5;
    cursor: default;
}

#page-info {
    font-size: 14px;
}

#flip-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: none;
    z-index: 999;
    background-size: cover;
    background-position: center;
}

