* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-size: 11px;
    scrollbar-width: thin;
    scrollbar-color: #D4A359 #354719;
}

body {
    height: 100vh;
    width: 100vw;
    background-color: #E2A036;
    
    /* Path points out of the css folder into images */
    background-image: url("images/bgnotes.png");
    
    /* Makes the image tile across x and y */
    background-repeat: repeat;
    
    /* Adjust this number (e.g., 250px, 400px, etc.) to make the pattern bigger or smaller */
    background-size: 350px; 
    
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* --- LEFT SIDEBAR --- */
#nav {
    min-width: 250px;
    width: 250px;
    height: 100vh;
    padding: 12px;
    background-color: #354719;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    color: #F5E6C8;
    z-index: 10;
}

#nav a {
    color: #F5E6C8;
    text-decoration: none;
    font-size: 11px;
}

.home-link {
    display: inline-block;
    margin-bottom: 8px;
}

h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 34px;
    color: #F5E6C8;
    margin: 8px auto 12px auto;
    text-align: center;
    text-decoration: #B47F29 underline 3px;
}

p {
    background-color: #485E22;
    padding: 8px;
    border: 1px dashed #283713;
    font-size: 10px;
    line-height: 1.35;
    color: #F5E6C8;
    margin-bottom: 12px;
}

#entries {
    overflow-y: auto;
    flex-grow: 1;
}

#entries ul {
    list-style: none;
    padding: 0;
}

#entries li {
    margin-bottom: 10px;
}

#entries a {
    font-weight: bold;
    font-size: 11px;
    color: #F5E6C8;
}

#entries a:hover {
    text-decoration: dotted underline;
}

em {
    background-color: #B47F29;
    color: #F5E6C8;
    padding: 1px 6px;
    border-radius: 10px;
    font-style: italic;
    font-size: 9px;
    margin-left: 4px;
}

/* --- MAIN VIEWPORT & EXPANDED BOOK --- */
#main {
    flex-grow: 1;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#book {
    width: clamp(750px, 82vw, 1200px);
    height: clamp(500px, 85vh, 800px);
    border: 5px solid #354719;
    border-radius: 18px;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.45);
    transform: rotate(-1.5deg);
    display: flex;
    overflow: hidden;
}

/* LEFT PAGE (Art / Background Image) */
.page-left {
    width: 50%;
    height: 100%;
    background-image: url('images/notebg.jpg');
    background-size: cover;
    background-position: center;
    border-right: 3px solid rgba(0, 0, 0, 0.3);
}

/* RIGHT PAGE (Content / Text / Notes) */
.page-right {
    width: 50%;
    height: 100%;
    background-color: #4a3411; 
    color: #F5E6C8;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-y: auto; /* Allows page scrolling when you add long entries */
}

.cover-icon {
    font-size: 24px;
    margin-bottom: 15px;
}

.cover-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 32px;
    margin-bottom: 10px;
}

.cover-date {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 15px;
}

.cover-subtitle {
    font-size: 11px;
    opacity: 0.9;
}

