body {
    background-image: url("https://cdn.pixabay.com/photo/2017/02/12/12/42/wall-2059909_640.png");
    background-color: black;
    background-size: cover;
    font-family: "Helvetica Neue", sans-serif;
    color: white;
    text-align: center;
    margin-top: 80px;
}

header {
    position: fixed;
    width: 100%;
    height: 60px;
    padding: 20px 60px;
    box-sizing: border-box;
    background: #333;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
    z-index: 1000;
}

header .nav .menu {
    display: flex;
}

header .nav .menu li {
    list-style: none;
    margin-left: 40px;
}

header .nav .menu li a {
    color: #0fa;
    font-weight: bold;
    text-decoration: none;
}

h1, h2 {
    font-size: 3.2rem;
}

h2 {
    margin: 20px 0;
}

.neonText {
    color: #fff;
    text-shadow:
      0 0 7px #fff,
      0 0 10px #fff,
      0 0 21px #fff,
      0 0 42px #0fa,
      0 0 82px #0fa,
      0 0 92px #0fa,
      0 0 102px #0fa,
      0 0 151px #0fa;
}

.pulsate {
    animation: pulsate 1.5s infinite alternate;
}

@keyframes pulsate {
    0% {
        text-shadow:
          0 0 2px #fff,
          0 0 4px #fff,
          0 0 6px #fff,
          0 0 10px #0fa,
          0 0 45px #0fa,
          0 0 55px #0fa,
          0 0 70px #0fa,
          0 0 80px #0fa;
    }
    100% {
        text-shadow:
          0 0 4px #fff,
          0 0 11px #fff,
          0 0 19px #fff,
          0 0 40px #0fa,
          0 0 80px #0fa,
          0 0 90px #0fa,
          0 0 100px #0fa,
          0 0 150px #0fa;
    }
}

.book, .anime {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.book ul, .anime ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    justify-content: center; 
}

.book ul li, .anime ul li {
    margin: 10px;
}

.book ul li img, .anime ul li img {
    border-radius: 10px;
    object-fit: contain;
}

.book ul li img {
    width: 500px;
    height: 600px;
}

.anime ul li img {
    width: 600px;
    height: 500px;
}

footer {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.btn-backtotop a {
    color: #0fa;
    text-decoration: none;
    font-size: 1.2rem;
}

@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    header {
        padding: 20px 30px;
    }

    header .nav .menu li {
        margin-left: 20px;
    }

    .book ul li img {
        width: 150px;
        height: 225px;
    }

    .anime ul li img {
        width: 225px;
        height: 150px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    header {
        padding: 20px 15px;
    }

    header .nav .menu {
        flex-direction: column;
    }

    header .nav .menu li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .book ul li img {
        width: 150px;
        height: 225px;
    }

    .anime ul li img {
        width: 225px;
        height: 150px;
    }
}
body {
    background-image: url("https://cdn.pixabay.com/photo/2017/02/12/12/42/wall-2059909_640.png");
    background-color: black;
    background-size: cover;
    font-family: "Helvetica Neue", sans-serif;
    color: white;
    text-align: center;
    margin-top: 80px;
}

header {
    position: fixed;
    width: 100%;
    height: 60px;
    padding: 20px 60px;
    box-sizing: border-box;
    background: #333;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
    z-index: 1000;
}

.menu-toggle {
    display: none;
    font-size: 2rem; 
    color: #0fa;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; 
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    header .nav .menu {
        position: fixed;
        top: 60px;
        right: 0;
        background-image: url("https://cdn.pixabay.com/photo/2017/02/12/12/42/wall-2059909_640.png");  
        background-size: cover;
        background-blend-mode: overlay;    
        width: 100%;
        max-width: 300px;
        height: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%); 
        transition: transform 0.3s ease-in-out;
        padding: 20px; 
        text-decoration:none;
    }

    header .nav .menu li {
        margin: 20px 0;
    }

    header .nav .menu li a {
        font-size: 1.5rem; 
        color: #0fa;
        font-weight: bold;
        text-decoration: none;
        text-shadow: 
            0 0 5px #fff,   
            0 0 8px #0fa;  
    }

    header .nav .menu.open {
        transform: translateX(0); 
    }
}

@media screen and (max-width: 480px) {
    header {
        padding: 20px 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    header .nav .menu li {
        margin: 15px 0;
    }
}
.favorite-item img:hover {
    transform: scale(1.05);
    filter: brightness(1); 
}

.favorite-item p {
    margin-top: 10px; 
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}
.favorite-item img {
    width: 100%; 
    max-width: 100%; 
    height: auto;
    border-radius: 10px;
    filter: brightness(0.7); 
    transition: transform 0.3s, filter 0.3s;
    object-fit: contain; 
}

