* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;

    background-image: url("Inside_the_Library_2.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    font-family: 'Cinzel', serif;

    display: flex;

    transition: background-image 1s ease;
}

/* Darkens image slightly */
#overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    z-index: -1;
}

#sidebar {
    width: 300px;

    background: rgba(20, 15, 10, 0.88);

    border-right: 2px solid #c89c55;

    padding: 25px;

    display: flex;
    flex-direction: column;
}

#sidebar h2 {
    color: #f7d18d;
    text-align: center;
    margin-bottom: 15px;
}

#floorButtons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}



#main-content {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px;
}

.textbox {
    width: 90%;
    max-width: 800px;

    background: rgba(15, 10, 5, 0.85);

    border: 2px solid #d4a65f;

    color: #f5e8cc;

    padding: 35px;

    box-shadow: 0 0 25px rgba(255, 210, 130, 0.3);
}

.textbox h1 {
    margin-bottom: 20px;

    color: #ffd38c;

    text-align: center;
}

.textbox p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===========================
   FLOOR BUTTON REDESIGN
=========================== */

.floorButton {

    width: 100%;

    background: transparent;

    border: none;

    padding: 12px 0;

    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 6px;

    transition: all .25s ease;
}

.floorIcon {

    width: 130px;

    height: auto;

    object-fit: contain;

    transition:
        transform .25s ease,
        filter .25s ease;
}

.floorText {

    color: #f7e5c1;

    font-family: 'Cinzel', serif;

    font-size: 1rem;

    text-align: center;

    line-height: 1.2;

    text-shadow:
        0 0 4px rgba(0,0,0,.8);
}

/* Hover animation */

.floorButton:hover .floorIcon {

    transform: scale(1.1);

    filter: brightness(1.2);
}

.floorButton:hover .floorText {

    color: #ffd38c;
}

/* Floor-specific glows */

.keter:hover .floorIcon {
    filter: drop-shadow(0 0 8px #fff1c4);
}

.malkuth:hover .floorIcon {
    filter: drop-shadow(0 0 8px #e5c8a0);
}

.yesod:hover .floorIcon {
    filter: drop-shadow(0 0 8px #5577ff);
}

.hod:hover .floorIcon {
    filter: drop-shadow(0 0 8px #ff9933);
}

.netzach:hover .floorIcon {
    filter: drop-shadow(0 0 8px #00ff88);
}

.tiphereth:hover .floorIcon {
    filter: drop-shadow(0 0 8px #ffd54f);
}

.gebura:hover .floorIcon {
    filter: drop-shadow(0 0 8px #ff4444);
}

.chesed:hover .floorIcon {
    filter: drop-shadow(0 0 8px #3d8dff);
}

.binah:hover .floorIcon {
    filter: drop-shadow(0 0 10px #c9b38c);
}
.hokma:hover .floorIcon {
    filter: drop-shadow(0 0 10px #ffffff);
}

/* ====================================
   FLOOR TRANSITIONS
==================================== */

body {

    transition:
        background-image .8s ease-in-out,
        filter .8s ease-in-out;
}

.transitioning {

    filter: brightness(.7);
}

.textbox {

    transition:
        opacity .6s ease-in-out,
        transform .6s ease-in-out;
}

.textbox.changing {

    opacity: 0;

    transform: translateY(25px);
}

#floorTitle {

    transition: opacity .6s ease-in-out;
}

#floorDescription {

    transition: opacity .6s ease-in-out;
}