/* =============================
      BLOG PAGE SWITCHER
============================= */

#blogBox {
    width: 850px;
    margin: auto;
    padding: 10px;
    background-image: url("paper.jpg");
    border-radius: 20px;
    box-shadow: 0px 0px 20px #000a;
}

.post {
    display: none;
}

.post.active {
    display: block;
}

.blog-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.blog-controls button {
    padding: 8px 18px;
    border-radius: 10px;
    border: none;
    background: #d8eaff;
    font-weight: bold;
    cursor: pointer;
}

.blog-controls button:hover {
    background: #bcdcff;
}

.book-box {
    background-image: url('paper.jpg');
    background-repeat: no-repeat;     /* prevents tiling */
    background-size: cover;           /* makes it fill the box */
    background-position: center;      /* centers it nicely */
}


.book-box h2 {
    margin-bottom: 10px;
}

.book-box p {
    line-height: 2.9;
}

/* ----------------------- BUTTONS PAGE ----------------------- */

#buttons .section {
    background-color: #dcdcdc;
    border: 2px solid #808080;
    padding: 12px;
    margin: 20px auto;
    width: 90%;
    max-width: 500px;
    box-shadow: inset -2px -2px 0 #fff, inset 2px 2px 0 #000;
}

#buttons .section h2 {
    font-family: "Courier New", monospace;
    font-size: 18px;
    margin-bottom: 10px;
    color: black;
    text-decoration: underline;
    text-align: center;
}

#buttons .button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

#buttons .button-link {
    display: inline-block;
    border: 2px solid #999;
    padding: 5px;
    background-color: #efefef;
    transition: 0.3s ease-in-out;
    box-shadow: inset -1px -1px 0 #fff, inset 1px 1px 0 #000;
}

#buttons .button-link:hover {
    background-color: #c0c0c0;
    transform: scale(1.05);
}

#buttons .button-link img {
    width: 150px;
    height: auto;
    display: block;
    border-radius: 4px;
}