/* Basic reset and styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#video-bg {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1000; /* Place the video behind other content */
    background-size: cover;
}

.anime-list-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 250px;
    width: 200px;
    background-color: #333;
    border-radius: 20px;
    text-align: center;
}

.anime-list-item::before {
    content: '';
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: top 0.3s ease;
    z-index: -1;
}

.anime-list-item:hover::before {
    top: 0;
}

.anime-list-item:hover {
    transform: translateY(-10px);
}

.anime-list-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px; /* Adjust margin as needed */
}

.anime-list-item h4 {
    font-weight: bold;
    color: white;
    font-size: 25px;
}

.anime-list-item-img {
    overflow: hidden;
    width: 200px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    animation: fadeIn 0.5s ease; /* Fade-in animation for the entire page */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    animation: slideIn 1s ease; /* Slide-in animation for the container */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease; /* Fade-in animation from top */
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    margin-right: 30px; /* Gap between logo and text */
}

header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-left: 10px; /* Adjust spacing between logo and text */
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #666;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #000;
}

.hero {
    background-image: url('background.jpg'); /* Replace with your background image */
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    animation: zoomIn 1s ease; /* Zoom-in animation for the hero section */
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    animation: fadeIn 1s ease; /* Fade-in animation for the overlay */
}

.hero-content {
    max-width: 600px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: slideInLeft 1s ease; /* Slide-in animation from left */
}

.hero p {
    font-size: 1.5rem;
    line-height: 1.6;
    animation: slideInRight 1s ease; /* Slide-in animation from right */
}

.featured-anime {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease; /* Fade-in animation from bottom */
}

.featured-anime h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: #333;
    color: #fff;
    font-size: 0.9rem;
    border-radius: 8px;
    animation: fadeIn 1s ease; /* Fade-in animation for the footer */
}

footer p {
    margin: 0;
}

/* Remove underline from all links */
a {
    text-decoration: none;
}

/* Style for header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Style for logo */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    margin-right: 30px; /* Gap between logo and text */
}

header h1 {
    font-size: 2.5rem;
    color: #333;
    margin: 0; /* Remove any default margins */
}

/* Keyframe animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
