 body {
    background: url('images/LMS.png') center / cover no-repeat; 
    color: #ffffff; 
    font-family: math;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
}
.card-body{
    background: #efefef;
}
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 45%); /* Darkens the background */
    pointer-events: none; /* Ensures content remains interactive */
}

#department {
    max-width: 300px; /* Adjust the width as needed */
}

/* Limit the width of the options inside the dropdown */
#department option {
    max-width: 300px;
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* Add ellipsis if the option text exceeds max-width */
}

        .card {
            border: none;
            box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
            border-radius: 10px;
        }
        .mt-3 {
            margin-top: 1rem !important;
            text-align: justify;
        }
        .btn-start {
            background: #ff6600;
            border: none;
            font-weight: bold;
            transition: background 0.3s ease;
        }
        .btn-start:hover {
            background: #00b0f0;
        }
        .btn:hover {
            color: #ffffff;
            background-color: #ff6600;
            border-color: #ffffff;
            font-size: larger;
            font-family: serif;
        }
        .navbar {
            background: #00b0f0;
            padding: 2px 80px;
            background-repeat: repeat-x;
        }

        /* Navbar brand styling */
        .navbar .navbar-brand {
            background-image: linear-gradient(306deg, #e1ff01 50%, #ff6c09 89%, #2ba3bf 7%, #ffffff 100%);
    background-size: 140% auto;
    background-clip: border-box;
    color: #fff;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff63;
    animation: textclip 2s linear infinite;
    display: inline-block;
    font-size: 23px;
    font-weight: bold;
    font-family: math;
        }

        /* Textclip animation */
        @keyframes textclip {
            0% {
                background-position: 200% 0;
            }
            100% {
                background-position: -200% 0;
            }
        }

        .navbar .nav-link {
            color: #fff;
            position: relative;
            padding: 10px 15px;
            transition: all 0.3s ease-in-out;
        }

        .navbar .nav-link:hover {
            color: #01398e;
    animation: bounceIn 0.8s ease-out;
    font-size: larger;
    font-family: fantasy;
        }

        @keyframes bounceIn {
            0% {
                transform: scale(0);
                opacity: 0;
            }
            60% {
                transform: scale(1.1);
                opacity: 1;
            }
            100% {
                transform: scale(1);
            }
        }

        .login-logo {
            max-width: 100px;
            margin-bottom: 15px;
            animation: rotateLogo 5s infinite cubic-bezier(0.66, 0.13, 0.07, 0.96);
        }

        .login-card {
            background: rgb(0 32 70 / 71%);
    color: #00b0f0;
    border-radius: 20px;
    padding: 15px;
    margin: 10px;
        }
        #languageSelect {
            padding: 5px;
            border-radius: 5px;
            border: 1px solid #ced4da;
            font-size: 14px;
            background-color: #ffffff;
            appearance: none; /* Remove default dropdown arrow */
            padding-right: 40px;
            background-image: url('path-to-down-arrow-icon.png'); /* Optional: Add custom dropdown arrow */
            background-position: right 10px center;
            background-repeat: no-repeat;
            cursor: pointer;
            max-width:max-content;
        }
        #languageSelect option {
        padding-left: 20px;
    }
    .flag-icon {
        margin-right: 8px;
    }
    .form-select {
        color: #9de0f9;
        background-color: #2e4d63bd;
        border:var(--bs-border-width) solid #5c76ae;
    }
        .main-section {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 20px;
        }

        .login-card {
            flex: 1;
            min-width: 300px;
        }
        .btn-warning{
            --bs-btn-color: #851b1b;
            --bs-btn-bg: #7b2403;
            border: outset;
        }
        .btn-success{
            --bs-btn-bg: #1b3f6bb8;
            border: inset;
        }
        .exam-section {
            flex: 2;
            min-width: 300px;
        }
       
        .card-header {
            background-color: #ff6600;
            color: #fff;
            font-family:auto;
        }

        .card-footer {
            background-color: #ffffff;
            color: #00b0f0;
        }

        @media (max-width: 768px) {
            .main-section {
                flex-direction: column;
            }
        }

        .animate-input {
            opacity: 0;
            animation: fadeIn 1s forwards;
        }

        .animate-button {
            animation: bounceIn 1s ease-out;
            color: #fff;
        }

        @keyframes bounceIn {
            0% {
                transform: scale(0);
                opacity: 0;
            }
            60% {
                transform: scale(1.1);
                opacity: 1;
            }
            100% {
                transform: scale(1);
            }
        }

        @keyframes fadeIn {
            0% {
                opacity: 0;
                transform: translateY(20px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Zoom In and Out Animation */
        @keyframes zoomIn {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.2); /* Zoom in */
            }
            100% {
                transform: scale(1);
            }
        }

        @keyframes zoomOut {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(0.8); /* Zoom out */
            }
            100% {
                transform: scale(1);
            }
        }

        /* Apply to the nav-link hover effect */
        .navbar .nav-link {
            transition: transform 0.3s ease;
        }

        .navbar .nav-link:hover {
            animation: zoomIn 0.5s ease-in-out;
        }
        .form-control {
            background-color: #b2b2b2c9;
            color: #ffffff;
        }

        #loginStatus {
            margin-top: 15px;
        font-size: 16px;
        transition: opacity 0.5s ease-in-out;
        position: fixed;
        top: 50px;
        right: 12px;
    }
    
    .alert-success {
        color: #ffffff;
        background-color: #2aa10b;
        border-color: #ccc0b9;
        border-radius: 13px;
    }
    
    .alert-danger {
        color: #ffffff;
        background-color: #ff0000;
        border-color: #ff6200;
    }
  
    
    /* Option styling */
    #languageSelect option {
        padding: 10px;
        font-size: 14px;
    }
    
    /* Styling for flag images using the ::before pseudo-element */
    #languageSelect option[data-flag]::before {
        content: "";
        display: inline-block;
        width: 20px;
        height: 15px;
        margin-right: 10px;
        background-size: contain;
        background-repeat: no-repeat;
        vertical-align: middle;
    }
    
    /* Specific flag icons for each language */
    #languageSelect option[data-flag="us"]::before {
        background-image: url('path-to-us-flag.png');
    }
    
    #languageSelect option[data-flag="et"]::before {
        background-image: url('path-to-ethiopia-flag.png');
    }
    /* Basic styling for the dropdown */
    #languageSelect {
        padding: 5px;
        border-radius: 5px;
        border: 1px solid #ffffff;
        background-color: #00b0f0;
        appearance: none; /* Remove default dropdown arrow */
        padding-right: 40px;
        cursor: pointer;
        color:#ffffff;
    }
    
    /* Option styling */
    #languageSelect option {
        padding-left: 30px; /* To give space for the flag icons */
        font-size: 14px;
    }
    
    /* Styling for flag images using the ::before pseudo-element */
    #languageSelect option[data-flag]::before {
        content: "";
        display: inline-block;
        width: 20px;
        height: 15px;
        margin-right: 10px;
        background-size: contain;
        background-repeat: no-repeat;
        vertical-align: middle;
    }
    
    /* Specific flag icons for each language */
    #languageSelect option[value="en"]::before {
        background-image: url('path-to-us-flag.png');
    }
    
    #languageSelect option[value="am"]::before {
        background-image: url('path-to-ethiopia-flag.png');
    }
    
    #languageSelect option[value="or"]::before {
        background-image: url('path-to-ethiopia-flag.png');
    }
    
    .flag-icon {
        margin-right: 10px;
    }