html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #121212;
    color: white;
    font-family: Arial, sans-serif;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    line-height: 60px;
}

.main-container * {
    visibility: visible !important;
    opacity: 1 !important;
   
}

.top-nav {
    background-color: #6A1B9A;
    padding: 10px 0;
}

    .top-nav .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .top-nav .nav-links {
        display: flex;
        list-style-type: none;
        padding: 0;
        margin: 0;
        gap: 30px;
    }

        .top-nav .nav-links li a {
            color: white;
            text-decoration: none;
            font-weight: bold;
            text-transform: uppercase;
            font-size: 14px;
            transition: color 0.3s ease;
        }

            .top-nav .nav-links li a:hover {
                color: #FF4D4D;
            }

.secondary-nav {
    background-color: #4A148C;
    padding: 15px 0;
    color: white;
}

    .secondary-nav .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .secondary-nav .nav-links {
        display: flex;
        list-style-type: none;
        padding: 0;
        margin: 0;
        justify-content: center; /* Center the items horizontally */
        color: white;
    }

        .secondary-nav .nav-links li {
            margin: 0 15px; /* Add space between items */
            color: white;
        }

        .nav-links li a {
            color: white;
            text-decoration: none;
        }

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .logo-section .logo {
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }

    .logo-section .site-title {
        color: white;
        font-size: 24px;
        font-weight: bold;
    }

.search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 5px 15px;
}

    .search-bar input {
        background: transparent;
        border: none;
        color: white;
        outline: none;
        width: 250px;
        margin-right: 10px;
    }

    .search-bar button {
        background: none;
        border: none;
        cursor: pointer;
        color: white;
    }

.main-container h2,
.main-container h3,
.main-container h4,
.main-container p,
.main-container a,
.section-header h3,
.see-all {
    color: white !important;
    text-shadow: 1px 1px 3px black;
}

body {
    background-color: #121212;
    color: white;
    font-family: Arial, sans-serif;
}

.navbar {
    background-color: #6A1B9A !important;
}

.navbar-brand, .nav-link {
    color: white !important;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.hero-banner {
    position: relative;
    height: 400px;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 50%;
}

    .banner-content h2 {
        font-size: 32px;
        margin-bottom: 10px;
        color: white;
    }

.banner-buttons {
    margin-top: 20px;
}

    .banner-buttons .btn {
        margin-right: 10px;
        padding: 8px 20px;
        border-radius: 4px;
    }

.btn-primary {
    background-color: #FF4D4D;
    border-color: #FF4D4D;
}

.btn-outline-light {
    color: white;
    border-color: white;
}

.anime-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .section-header h3 {
        font-size: 24px;
        margin: 0;
        color: white;
    }

.see-all, .view-dictionary {
    color: #FF8A00;
    text-decoration: none;
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.anime-card {
    background-color: #1E1E1E;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

    .anime-card:hover {
        transform: translateY(-5px);
    }

.anime-image {
    position: relative;
    height: 200px;
}

    .anime-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FFD700;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.anime-info {
    padding: 15px;
}

    .anime-info h4 {
        margin: 0 0 5px 0;
        font-size: 16px;
    }

    .anime-info p {
        margin: 0 0 10px 0;
        color: #9E9E9E;
        font-size: 14px;
    }

.rating {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stars {
    color: #FFD700;
}

.difficulty {
    color: #9E9E9E;
}

.beginner-friendly {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.term-card {
    background-color: #1E1E1E;
    border-radius: 8px;
    padding: 20px;
}

    .term-card h4 {
        margin: 0 0 5px 0;
    }

    .term-card h5 {
        margin: 0 0 10px 0;
        color: #9E9E9E;
    }

    .term-card p {
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
    }


/* Dictionary specific styles */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background-color: #1E1E1E;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

    .stat-card h3 {
        font-size: 28px;
        margin: 0;
        color: #FF8A00;
    }

    .stat-card p {
        margin: 5px 0 0;
        color: #9E9E9E;
    }

.terms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.anime-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

    .anime-link:hover {
        text-decoration: none;
        color: inherit;
    }

/* Anime Details specific styles */
.detail-card {
    background-color: #1E1E1E;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.anime-stats {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
    gap: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 14px;
    color: #9E9E9E;
}

.stat-value {
    font-size: 16px;
    font-weight: bold;
}

.recommendation-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.recommendation-card {
    background-color: #1E1E1E;
    border-radius: 8px;
    padding: 20px;
}

    .recommendation-card .rating {
        color: #FFD700;
        margin-bottom: 10px;
    }

    .recommendation-card .comment {
        margin-bottom: 10px;
    }

    .recommendation-card .user-info {
        font-size: 14px;
        color: #9E9E9E;
    }

.add-recommendation {
    background-color: #1E1E1E;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.login-prompt {
    background-color: #1E1E1E;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.recommended-list {
    list-style-type: none;
    padding: 0;
}

    .recommended-list li {
        padding: 8px 0;
        border-bottom: 1px solid #333;
    }

        .recommended-list li:last-child {
            border-bottom: none;
        }

    .recommended-list a {
        color: #FF8A00;
        text-decoration: none;
    }

        .recommended-list a:hover {
            text-decoration: underline;
        }

/* Starter Pack improved styles */
.starter-packs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.starter-pack-card {
    background-color: #1E1E1E;
    border-radius: 8px;
    overflow: hidden;
    flex: 1 1 300px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}


.stars {
    display: flex;
    flex-direction: row;
}

    .stars span {
        margin-right: 2px;
    }


/* Profile styles */
.profile-header {
    display: flex;
    background-color: #1E1E1E;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.profile-avatar {
    position: relative;
    margin-right: 40px;
}

    .profile-avatar img {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border: 3px solid #6A1B9A;
    }

.edit-profile-btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #6A1B9A;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    text-decoration: none;
}

.profile-info {
    flex: 1;
}

    .profile-info h2 {
        margin: 0 0 5px 0;
        font-size: 28px;
    }

.member-since {
    color: #9E9E9E;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-count {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #FF8A00;
}

.stat-label {
    color: #9E9E9E;
}

.profile-tabs {
    margin-bottom: 40px;
}

.nav-tabs {
    border-bottom: 1px solid #333;
}

    .nav-tabs .nav-link {
        color: #9E9E9E;
        background-color: transparent;
        border: none;
        border-bottom: 3px solid transparent;
        margin-bottom: -1px;
    }

        .nav-tabs .nav-link.active {
            color: #FF8A00;
            background-color: transparent;
            border-bottom: 3px solid #FF8A00;
        }

.recommendation-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.recommendation-card {
    background-color: #1E1E1E;
    border-radius: 8px;
    padding: 20px;
}

.recommendation-header {
    margin-bottom: 10px;
}

    .recommendation-header a {
        color: #FF8A00;
        font-weight: bold;
        text-decoration: none;
    }

.recommendation-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.profile-section {
    background-color: #1E1E1E;
    border-radius: 8px;
    padding: 30px;
}

.auth-card {
    background-color: #1E1E1E;
    color: white;
}

    .auth-card .card-title {
        color: white;
    }

    .auth-card label {
        color: white;
    }

    .auth-card .form-control {
        background-color: #2c2c2c;
        border-color: #444;
        color: white;
    }

        .auth-card .form-control:focus {
            background-color: #333;
            color: white;
            border-color: #6A1B9A;
            box-shadow: 0 0 0 0.2rem rgba(106, 27, 154, 0.25);
        }