/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
}

footer {
    margin-top: auto;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content.user-library-content {
    align-items: flex-start;
}

/* Navigation */
nav {
    background-color: rgb(123, 179, 136);
    color: #fff;
    padding: 30px 30px;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

nav li {
    list-style: none;
}

nav li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 5px;
}

nav li a:hover {
    color: black;
    text-decoration: none;
}

/* Avatar */
.avatar-ctn {
    background-color: rgba(146, 146, 146, 0.449);
    text-align: center;
}

.avatar {
    width: 65%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Register Section */
.register-section {
    background-color: #f8f9fa;
    padding: 30px;
    text-align: center;
}

.register-section h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.register-section .btn-primary {
    margin-top: 20px;
    font-size: 1.2rem;
}

.btn-custom {
    margin-top: 10px;
    font-size: 1.1rem;
    width: 200px;
}

/* Login */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 10px;
}

.login-card {
    width: 100%;
    max-width: 500px;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-card h1 {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

.login-card img {
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
    display: block;
}

.btn-social {
    margin-bottom: 1rem;
}

/* Dashboard */
.welcome-section {
    text-align: center;
    margin: 10px 0px;
}

.dashboard-cards {
    margin-top: 30px;
}

.card-custom {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: 0.3s ease;
}

.card-custom:hover {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.card-custom i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #333;
}

.card-custom h5 {
    margin-top: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.card-custom .card-body {
    background-color: #f8f9fa;
}

/* Admin Actions */
.admin-actions {
    margin-top: 30px;
}

.action-card {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: 0.3s ease;
}

.action-card:hover {
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.action-card i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #333;
}

.action-card h5 {
    margin-top: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.action-card .card-body {
    background-color: #f8f9fa;
}

/* Alphabet Navigation */
.alphabet-nav {
    margin-top: 20px;
}

.alphabet-nav a {
    margin: 0 5px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #007bff;
    text-decoration: none;
}

/* Search Bar */
.search-bar {
    margin-bottom: 20px;
    position: relative;
}

.dropdown-menu {
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    width: 100%;
}

/* Word List */
.wordlist-section {
    margin-top: 30px;
}

.word-entry {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.word-entry h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.word-entry p {
    font-size: 1rem;
}

.word-entry video {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-top: 15px;
}

/* FAQ Section */
.faq-section {
    margin-top: 30px;
}

.faq-item {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    cursor: pointer;
}

.faq-item p {
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #ffffff;
    padding: 1rem;
    flex-shrink: 0;
    overflow: hidden;
    width: 100%;
    bottom: 0;
}

.footer-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    margin: 10px;
}

.footer .footer-logo {
    width: 100%;
}

.footer h5, .footer h4 {
    color: #fff;
}

.footer a {
    color: #ccc;
}

/* Miscellaneous */
.login-container i {
    margin-right: 10px;
}

.no-wrap {
    white-space: nowrap;
}

.custom-video-container {
    padding-left: 20px;
}

.wordlist-main-content {
    padding-bottom: 4%;
}

.delete-button-container {
    position: absolute;
    top: 5%;
    right: 2%;
}

/* Add Word */
/* Ensure required fields show a red asterisk */
/* Hide required star by default */
/* .required::after {
    content: " *";
    color: red;
    display: none;
} */
/* Show the star when an error class is added */
/* .required.error::after {
    display: inline;
} */
/* Increase input readability */
input.form-control, textarea.form-control {
    font-size: 1.1rem;
}
/* Style legends for clarity */
fieldset legend {
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0 10px;
}

/* Add List */
.add-list-custom-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.add-list-custom-navbar {
    background: rgba(255, 255, 255, 0.8);
}

/* List */
.list-content-container {
    margin-bottom: 5%;
}

.content-wrapper {
    max-width: 95%;
    align-items: center;
}
.word-card-image {
    width: 100px;             /* Fixed width */
    height: 100px;            /* Fixed height */
    object-fit: cover;        /* Maintain aspect ratio and crop if needed */
    border-radius: 8px;       /* Rounded corners */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow for depth */
    margin-right: 10px;       /* Spacing between image and text */
}
/* Override card-body styling for word cards */
.word-card .card-body {
    height: auto !important;
    display: block;
    text-align: left;
    align-items: initial;
    justify-content: initial;
    padding: 1rem; /* Optional: adjust padding as needed */
}
.toggle-icon {
    transition: transform 0.3s ease;
  }
  .rotate {
    transform: rotate(180deg);
  }

/* Reset */
.reset-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.reset-content {
    flex: 1;
}

/* Navbar */
.navbar {
    background-color: #343A40 !important; /* ASLSteamHub Green */
}

.navbar a {
    color: white !important; /* Ensures good readability */
}

.navbar a:hover {
    color: #f8f9fa; /* Light hover effect */
}

.navbar-nav .nav-link {
    font-weight: 500 !important; /* Ensures normal text weight */
    color: white !important; /* Keeps consistent color */
}

/* Fix for active links that appear bold */
.navbar-nav .nav-item .nav-link.active {
    font-weight: 500 !important; /* Ensures active links are NOT bold */
}

/* .navbar-brand {
    color: #6a11cb !important;
} */

nav div a.home-brand {
    color: #343A40; /* Initial text color */
    text-decoration: none;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    transition: color 0.3s ease;
}

nav div a.home-brand:hover {
    color: #191919; /* Gray out on hover */
}

/* Hero Section */
.hero-section {
    background-color: #eef7f1;
    padding: 50px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.hero-section h1 {
    color: #2c5e3d;
}

/* Video Container */
.video-container {
    width: 100%; /* Makes the video larger on desktops */
    max-width: 1200px; /* Limits max size */
    margin: 0 auto; /* Centers the video */
}

.video-container iframe {
    width: 800px;
    height: 500px; /* Large size for desktops */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 2%;
    padding: 0;
}

/* Media Queries */
@media (max-width: 992px) { /* Tablets */
    .video-container iframe {
        height: 400px;
    }

    .responsive-text-center {
        text-align: center !important; /* Centers text on smaller screens */
    }

    .responsive-text-left {
        text-align: left !important; /* Keeps text left-aligned */
    }

    .row {
        flex-direction: column; /* Stack elements */
        align-items: center; /* Center them */
        text-align: center;
    }

    .row.word-list {
        flex-direction: row; /* Keep word list items in a row */
        align-items: center; /* Center items */
    }

    .row.footer-row {
        flex-direction: row; /* Keep word list items in a row */
        align-items: center; /* Center items */
    }

    .register-section {
        margin-top: 20px; /* Add spacing */
        max-width: 90%; /* Keeps it centered */
    }
}

@media (max-width: 768px) { /* Small screens */
    .video-container iframe {
        height: 300px;
    }

    .row {
        flex-direction: column; /* Stack all elements */
        text-align: center; /* Align text to center */
    }

    .row.word-list {
        flex-direction: row; /* Keep word list items in a row */
        align-items: center; /* Center items */
    }
}

@media (max-width: 576px) { /* Extra small screens */
    .video-container iframe {
        height: 200px;
    }
}

@media (min-width: 992px) { /* Keep side-by-side on laptops & desktops */
    .row {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }

    .container {
        max-width: 95%; /* Make it significantly wider on laptops */
        padding: 0 3%;
    }
}