*{
    cursor: none;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1e1e2f;
    color: #fff;
    margin: 0;
    padding: 0;
}

.header {
    font-family: monospace;
    text-align: center;
    background-color: #4c4c94;
    padding: 20px 0;
    font-size: 2em;
    font-weight: 800;
    color: white;
}

.library {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.book {
    background-color: #2a2a4d;
    border-radius: 10px;
    width: 250px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.book:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.book img {
    width: 250px;
    height: 350px;
    border-radius: 5px;
}

.book-title {
    font-size: 1.2em;
    margin: 10px 0;
    color: #d4d4ff;
}

.book-author {
    font-size: 1em;
    margin-bottom: 10px;
    color: #a0a0d0;
}

.book a {
    display: block;
    text-align: center;
    text-decoration: none;
    background-color: #4c4c94;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.book a:hover {
    background-color: #3c3c7a;
}



nav {
display: block;
position: fixed;
background-color: #044367a0;
width: 220px;
top: 0;
left: -300px;
bottom: 0;
transition: all 0.5s;
z-index: 3;
opacity: 0;
border-bottom-right-radius: 18px;
border-top-right-radius: 18px;

}

.open nav {
left: 0;
opacity: 1;
}

nav .inner {
padding: 25px;
}

nav .inner ul {
list-style: none;
margin: 0;
padding: 0;
}

nav .inner ul p {
font-size: 10px;
color: #fff;
text-align: center;
font-family: Barlow, sans-serif;
position: fixed;
bottom: 1px;
left: -300px;
transition: all 0.5s;
opacity: 0;
}

.open nav .inner ul p {
left: 60px;
opacity: 1;
}

nav .inner ul li {
margin: 0;
border-bottom: 1px solid #ffffff;
}

nav .inner ul li a {
display: block;
color: #fffcfc;
font-size: 14px;
font-family: Barlow,sans-serif;
font-weight: 700;
padding: 1rem;
text-decoration: none;
transition-duration: 0.2s;
}

nav .inner ul li a:hover {
background: #e4e4e4;
color: #000;
border-radius: 8px;
}

.toggle-btn {
display: block;
position: fixed;
top: 30px;
right: 30px;
width: 30px;
height: 30px;
z-index: 3;
}

.toggle-btn span {
position: absolute;
display: block;
left: 0;
width: 30px;
height: 2px;
background-color: #8bf;
transition: all 0.5s;
border-radius: 4px;
}

.toggle-btn span:nth-child(1) {
top: 4px;
}
.toggle-btn span:nth-child(2) {
top: 14px;
}
.toggle-btn span:nth-child(3) {
bottom: 4px;
}

.open .toggle-btn span {
background-color: #8bf;
}

.open .toggle-btn span:nth-child(1) {
transform: translateY(10px) rotate(-315deg);
}

.open .toggle-btn span:nth-child(2) {
opacity: 0;
}

.open .toggle-btn span:nth-child(3) {
transform: translateY(-10px) rotate(315deg);
}

#mask {
display: none;
transition: all 0.5s;
}

.open #mask {
display: block;
background: #000;
width: 100%;
height: 100%;
top: 0;
left: 0;
position: fixed;
opacity: 0.8;
z-index: 2;
}

#cursor {
    width: 10px;
    height: 10px;
    background-color: #00FFBF;
    border-radius: 50%;
    position: absolute;
    pointer-events: none;
    transition: width 0.2s, height 0.2s;
    z-index: 1000;
    transform: translate(-50%, -50%);
    }
    
    #cursor.interacting {
    width: 30px;
    height: 30px;
    border: 2px solid #00FFBF;
    background-color: transparent;
    }