* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    color: rgb(79, 91, 202);
    background-color: rgb(248, 237, 228);
    background-image: url("https://hillhouse.neocities.org/materials/backgrounds/images/mag-skyblue.png");
    background-repeat: repeat;
    image-rendering: pixelated;
}

h1, h2, h3, h4, h5, h6 {
    color: #d68282;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

p {
    color: #fcabab;
}

/* ----------------------- scrollbox ----------------------- */
.scrollbox {
    min-width: 0;
    width: 100%;
    white-space: normal;
    text-align: left;
    word-break: break-all;
    overflow-wrap: break-word;
    border: 3px dashed rgb(241, 189, 189);
    border-radius: 2px;
    overflow-y: auto;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: rgb(255, 231, 231);
}

::-webkit-scrollbar-thumb {
    background: rgb(241, 189, 189);
    border-radius: 5px;
}

.link {
    color: pink;
    text-decoration: underline;
    font-weight: bold;
}

.link:hover {
    color: bisque;
    text-decoration: none;
    text-shadow: 0 2px 0 orange;
}

.lace-banner {
    width: 100%;
    height: 53px;
    image-rendering: pixelated;
    background-image: url('https://i.postimg.cc/KjSR5CLB/lace-white-banner.png');
    background-repeat: repeat-x;
    z-index: -1;
}

/* ----------------------- main ----------------------- */
.container {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 10px auto;
    gap: 0;
}

.left-container {
    width: 380px;
    height: 80vh;
    padding: 20px;
    position: sticky;
    top: 60px;
    border: 2px dashed plum;
    overflow-y: auto;
    flex-shrink: 0;
}

.main-container {
    flex: 1;
    min-width: 0;
    margin-left: 20px;
    padding: 30px;
    border: 2px dashed orange;
    overflow-y: auto;
}

.content-box {
    margin: auto;
    padding: 5px;
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #d68282;
}

.my-book img {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.my-book img:hover {
    transform: scale(1.3);
    z-index: 10;
}

/* ----------------------- main contents ----------------------- */
.divider {
    height: 40px;
    background-image: url('[]');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 30px 0;
}

.clique-module {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 40px;
    border: 4px dashed white;
    margin-bottom: 60px;
    position: relative;
}

.clique-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #fcabab;
    background-color: white;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 2px #d68282;
}

.module-side {
    width: 220px;
    padding: 20px;
    background-color: white;
    border: 2px dashed pink;
    overflow-y: auto;
}

.module-main {
    flex: 2 1 300px;
    padding: 20px;
    overflow-y: auto;
    min-width: 0;
}

.footer {
    width: 100%;
    flex: 0 0 100%;
    padding: 10px;
    color: orange;
    border: 3px dashed pink;
    border-radius: 5px;
    background-color: white;
    text-align: center;
}

/* ----------------------- navigatin ----------------------- */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    position: relative;
    height: 100%;
}

.nav-list {
    position: static;
}

.nav-item {
    display: block;
    position: absolute;
    width: 120px;
    height: 120px;
    transition: transform 0.2s ease;
}

.nav-item:hover {
    transform: rotate(12deg);
}

.nav-item:nth-child(even) {
    margin-left: auto;
    margin-right: 20px;
}

.nav-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ----------------------- collection shelf ----------------------- */
.curiocabinet {
    display:block;
    width:375px;
    max-width:100vw;
    height:auto;
    border: 34px solid transparent;
    border-image: url('https://hillhouse.neocities.org/_images/pixels/tea/afternoontea-curio.png') 34 round;
    border-image-outset:0;
    image-rendering:pixelated;
    position:relative;
}

.shelves {
    line-height:84px;
    background:url('https://hillhouse.neocities.org/_images/pixels/tea/afternoontea-shelf.png') repeat-y;
    text-align:center;
    display:inline-block;
    width:100%;
    background-size:100% 84px;

}

.shelves img {
    vertical-align:bottom !important;
    display:inline-block;
    margin:2px 4px;
}

.bookshelf {
    background:url('https://hillhouse.neocities.org/cliques/library/images/shelf.png');
    line-height: 150px;
    padding: 0px 20px;
    outline: #5d1c27 solid 15px;
    border: #863133 solid 5px;
    border-radius: 5px;
    position: relative;
    vertical-align: text-bottom;
    margin: 30px 0;
    image-rendering: pixelated;
}

.bookshelf img {
    top: 15%;
    transition: transform 0.25s ease;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.bookshelf img:hover {
    transform: scale(1.15);
    z-index: 10;
}

html {
    scroll-behavior: smooth;

}