html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}


body {
    background: #0F0D19; /* Deep black */
    color: white;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

/* 🌍 Global Yellow Highlight */
a, strong, .highlight {
    color: #FFC900; /* Danime Yellow */
}

/* 🔥 Navbar */
.navbar {
    background: #0F0D19; /* Match background */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #FFC900; /* Yellow border */
}

.navbar a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    margin: 0 15px;
    transition: 0.3s;
}

.navbar a:hover {
    color: #FFC900;
}

/*Yellow display name*/
.name-highlight{
    color: #FFC900;
}
/* Buttons for the Welcoming Message*/
.btn.btn-warning:active {
    color: #b6effb;
}
.btn.btn-warning:hover {
    color: #0F0D19;
    background-color: #ffcc00;
}

/* LOGO */
.logo-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFC900;
    box-shadow: 0 0 10px rgba(255, 201, 0, 0.6);
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 20vh;
}

.content {
    flex: 1; /* Ensures content takes up available space */
    padding-bottom: 30px; /* Adjust based on footer height */
}

.footer {
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    width: 100%;
}

.f-ac{
    text-decoration: none;
    color: #FFC900;
}

/*SEARCH FUNCTION*/
.search-form {
    display: flex;
    justify-content: center; 
    align-items: center;
    margin: 20px auto;
    width: 100%;
    max-width: 500px; 
}

    
    .search-form input[type="text"] {
        width: 100%;
        padding: 10px;
        border: 2px solid #FFC900;
        border-radius: 5px 0 0 5px;
        font-size: 16px;
        outline: none;
    }

    
    .search-form button {
        padding: 10px 15px;
        background: #FFC900;
        color: black;
        border: 2px solid #FFC900;
        border-left: none;
        border-radius: 0 5px 5px 0;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .search-form button:hover {
            background: #e6c228;
        }


/*Anime Search*/
.anime-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px; 
    width: 90%;
    max-width: 1200px;
    margin: 0 auto; 
}

.anime-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #FFC900; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

    
    .anime-item:hover {
        transform: translateY(-5px); 
        box-shadow: 0px 5px 15px rgba(255, 201, 0, 0.5); 
        background: rgba(255, 201, 0, 0.2); 
    }


.anime-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
}


.anime-item h3 {
    font-size: 16px;
    color: white;
    margin-top: 10px;
}


.view-more-btn {
    background: #FFC900;
    color: black;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-top: 10px;
    transition: background 0.3s ease;
}

   
    .view-more-btn:hover {
        background: #e6c228;
    }



/*Anime Details*/
.anime-details-container {
    border: none !important;
    box-shadow: none !important;
    background: none; 
}

.anime-image-container img {
    width: 100%; 
    max-width: 500px; 
    height: 400px; 
    border-radius: 5px; 
}


.anime-media {
    display: flex; 
    gap: 100px; 
    align-items: center; 
    justify-content: flex-start; 
}

.anime-trailer-container{
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.anime-trailer-container iframe {
    justify-content:center;
    width: 900px; 
    height: 400px; 
    border-radius: 5px; 
}

.trailer-heading {
    font-family: sans-serif;
    padding-top: 20px;
}

.anime-title {
    font-size: 28px;
    font-weight: bold;
    text-align: left; 
}

.anime-synopsis {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding-top: 20px;
    font-size: 20px;
    line-height: 1.6;
}

.anime-meta {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: flex-start; 
    margin-top: 15px; 
    align-items: center; 
}
   
    .anime-meta p {
        background: rgba(255, 255, 255, 0.1); 
        padding: 8px 12px;
        border-radius: 5px;
        font-size: 14px;
        font-weight: bold;
        color: white;
        margin: 0;
    }

.anime-genres {
    display: flex;
    gap: 10px;
    align-items: center;
}

.genre-tag {
    display: inline-block;
    background: #ff9900;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

/* Back Button */
.back-btn {
    display: inline-block;
    margin-top: 20px;
    background: #FFC900;
    color: black; 
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease; 
}

    
    .back-btn:hover {
        background-color: #e6c228;
        color: black; 
    }

    
    .back-btn:active {
        background-color: #d4af1d;
        color: white; 
    }


/*MANGA SEARCH */
.manga-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


.manga-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #FFC900; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

    
    .manga-item:hover {
        transform: translateY(-5px);
        box-shadow: 0px 5px 15px rgba(255, 201, 0, 0.5);
        background: rgba(255, 201, 0, 0.2);
    }

.manga-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.manga-item h3 {
    font-size: 16px;
    color: white;
    margin-top: 10px;
}


.details-button {
    background: #FFC900;
    color: black;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-top: 10px;
    transition: background 0.3s ease;
}

    .details-button:hover {
        background: #e6c228;
    }


/*MANGA DETAILS*/
.details-container {
    border: none !important;
    box-shadow: none !important;
    background: none;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


.details-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: flex-start;
}


.details-image {
    width: 100%;
    max-width: 350px; 
    height: auto;
    border-radius: 10px;
}


.manga-synopsis {
    display: flex;
    gap: 20px;
    font-size: 16px;
    line-height: 1.6;
    margin-top: 15px;
}


.manga-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin-top: 15px;
    align-items: center;
}

    .manga-meta p {
        background: rgba(255, 255, 255, 0.1);
        padding: 8px 12px;
        border-radius: 5px;
        font-size: 14px;
        font-weight: bold;
        color: white;
        margin: 0;
    }


.manga-genres {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.anime-genres {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.genre-tag {
    display: inline-block;
    background: #ff9900;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}


/*TERMS OF USE*/
.tou-content {
    font-size: 18px;
    font-family: sans-serif;

}

/*ACCESSIBILITY*/
.asy-content {
    font-family: sans-serif;
    font-size: 18px;
}

/*PRIVACY*/
.pry-content {
    font-family: sans-serif;
    font-size: 18px;
}


/*STYLING FOR THE HOMEPAGE*/
/* 📌 Homepage Layout */
.content-container {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: auto;
    gap: 20px;
    padding-top: 30px;
}

/* 🏆 Section Titles */
.section-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffcc00;
    display: flex;
    align-items: center;
}

/* 🔥 Homepage Anime/Manga Lists */
.homepage-anime-list, .homepage-manga-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 🎖️ Anime/Manga Items */
.homepage-anime-item, .homepage-manga-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(20, 20, 20, 0.8);
    padding: 12px;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #ffcc00;
    position: relative;
}

    .homepage-anime-item:hover, .homepage-manga-item:hover {
        transform: scale(1.03);
        box-shadow: 0px 4px 10px rgba(255, 204, 0, 0.5);
    }

/* 🏅 Ranking Number Badge */
.homepage-rank-badge {
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffcc00;
    color: black;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 50%;
}

/* 🖼️ Anime/Manga Images */
.homepage-anime-item img, .homepage-manga-item img {
    width: 80px;
    height: 120px;
    border-radius: 5px;
}

/* 🎤 Anime/Manga Titles */
.homepage-anime-title, .homepage-manga-title {
    font-size: 18px;
    font-weight: bold;
    color: #ffcc00;
}

/* 📌 Anime/Manga Info */
.homepage-anime-info, .homepage-manga-info {
    font-size: 14px;
    color: #ccc;
}



/* RECENTLY AIRING ANIME*/
/* 📌 Content Layout (Keeps Everything in One Row) */
.content-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 30px;
}

/* Each Section (Anime, Manga, Airing) */
.section {
    flex: 1;
    min-width: 320px;
    padding-left: 15px;
    
}

/* Section Title */
.section-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffcc00;
}

/* Anime/Manga/Airing List */
.homepage-anime-list,
.homepage-manga-list,
.homepage-airing-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Individual Anime/Manga/Airing Box */
.homepage-anime-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(20, 20, 20, 0.8);
    padding: 15px;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #ffcc00;
    position: relative;
}

/* Rank Badge */
.homepage-rank-badge {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffcc00;
    color: black;
    font-weight: bold;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 50%;
}

/* Hover Effect */
.homepage-anime-item:hover {
    transform: scale(1.03);
    box-shadow: 0px 4px 10px rgba(255, 204, 0, 0.5);
}

/* Anime Images */
.homepage-anime-item img {
    width: 80px;
    height: 120px;
    border-radius: 5px;
    object-fit: cover;
}

/* Anime Details */
.anime-details {
    flex: 1;
    color: white;
    gap: 5px;
}

/* Anime Title */
.homepage-anime-title {
    font-size: 18px;
    font-weight: bold;
    color: #ffcc00;
}

/* Anime Info */
.homepage-anime-info {
    font-size: 14px;
    color: #ccc;
}


/*FAVORITES */
.favorite-btn {
    background-color: transparent;
    border: none;
    font-size: 16px;
    color: #ff4d4d; /* Red Heart Color */
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    padding-top: 20px;
}

    .favorite-btn:hover {
        transform: scale(1.1);
        color: #ff0000; /* Darker red on hover */
    }

/* Favorites Page Container */
.favorites-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Individual Favorite Item */
.favorite-card {
    background-color: #0F0D19;
    border-radius: 10px;
    width: 220px;
    padding: 15px;
    text-align: center;
    box-shadow: 0px 4px 8px rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease-in-out;
}

    .favorite-card:hover {
        transform: scale(1.05);
    }

    /* Favorite Anime Image */
    .favorite-card img {
        width: 100%;
        border-radius: 8px;
    }

    /* Favorite Anime Title */
    .favorite-card h3 {
        font-size: 16px;
        margin-top: 10px;
        color: white;
    }

/* Remove Button */
.remove-favorite-btn {
    background-color: #e6c228;
    color: white;
    border: none;
    padding: 8px 12px;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

    .remove-favorite-btn:hover {
        background-color: #e63939;
    }


/*LOGIN AND REGISTER*/

.lg-color {
    color: #FFC900;
}

.other-links{
    padding-left: 90px;
    padding-top: 20px;
}