body {
    margin: 0;
    background: #e8dfd0;
    font-family: Georgia, serif;
}

/* ROOM */
.room {
    width: 100vw;
    height: 100vh;
    background: #f5eee2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* SCALE DOWN THE WHOLE BOOKSHELF WALL */
.room > div {
    transform: scale(0.1);   /* 10% size */
    transform-origin: top center;
}


/* SHELVES */
.shelf-row {
    width: 100%;
    height: 140px;
    background: #d4b48c;
    border-bottom: 12px solid #b08a5a;
    display: flex;
    align-items: flex-end;
    padding: 10px;
    gap: 10px;
    overflow: hidden;
}

/* BOOKS */
.book {
    height: 120px;
    background: #8b5e3c;
    color: #fff;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: bold;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 4px 6px rgba(0,0,0,0.4);
    transition: transform .2s;
}

.book:hover {
    transform: translateY(-8px);
}

/* WIDTH VARIANTS */
.thin { width: 40px; }
.medium { width: 60px; }
.thick { width: 80px; }

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
}

.modal-content {
    background: #fff;
    width: 80%;
    height: 80%;
    margin: 5% auto;
    border-radius: 10px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}
