/* === Base Page Styling === */
body {
    margin: 0;
    padding: 0;
    font-family: 'Cinzel', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(
        to bottom right,
        #f5deaf 0%, #e5c798 25%, #d1aa76 50%, #ba915d 75%, #a67945 100%
    );
    background-attachment: fixed;
    background-size: cover;
    color: #2b1b0f;
}

/* === Top Logo and Greeting === */
.tippy-logo {
    position: absolute;
    top: 10px;
    left: 20px;
    width: 15vw;
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}
.tippy-logo:hover {
    transform: scale(1.1);
}
#greeting {
    font-size: 1.5rem;
    font-weight: bold;
    color: #5a3d1c;
    margin-top: 1vh;
}

#regtxt {
    text-align: center;
    font-size: 5vh;
    font-weight: bold;
    color: #5a3d1c;
    text-shadow: 2px 2px 3px black;
    margin: 10px 0 5px; /* ↓ reduced from 80px to 40px */
}


/* === Navbar === */
.Navbar_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.Navbar_container .btn {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    background: linear-gradient(to bottom, #a67c52 0%, #654321 100%);
    color: #f0c674;
    border: 1px solid #5a3d1c;
    border-radius: 8px;
    cursor: pointer;
    text-shadow: 1px 1px 2px #2b1b0f;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}
.Navbar_container .btn:hover {
    background: linear-gradient(to bottom, #d4af7f 0%, #7a5230 100%);
    color: #fff;
    transform: scale(1.08);
}

/* === Main Encounter Container === */
.encounter-container {
    width: 95%;
    max-width: 1000px;
    background: linear-gradient(to bottom right, #ede0c8, #cbb99a);
    border: 3px solid #5a3d1c;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    margin: 20px auto;
    box-sizing: border-box;
}

/* === Sectioned Info Display === */
.encounter-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #8f6d3f;
}
.encounter-section:last-child {
    border-bottom: none;
}

.encounter-section h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #7a5230;
    text-shadow: 1px 1px 1px #fff2cc;
}
.encounter-section p {
    margin: 0.3rem 0;
    font-size: 1rem;
}

/* === Generate Button === */
.generate-btn {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(to bottom, #ba9c5b, #8f6d3f);
    color: #fff4d0;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid #5a3d1c;
    border-radius: 8px;
    text-shadow: 1px 1px 2px black;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px auto;
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.3),
                0 4px 10px rgba(0, 0, 0, 0.4);
}
.generate-btn:hover {
    background: linear-gradient(to bottom, #ffe680, #d4af7f);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 230, 128, 0.7);
}

/* === Responsive Logo or Image Header === */
.below-navbar-image {
    display: block;
    margin: 0 auto;
    width: 65%;
    height: 20vh;
    max-width: 100%;
    object-fit: contain;
    max-height: 200px;
}
.difficulty-easy { color: green; font-weight: bold; }
.difficulty-medium { color: goldenrod; font-weight: bold; }
.difficulty-hard { color: darkorange; font-weight: bold; }
.difficulty-suicidal { color: crimson; font-weight: bold; }
