* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.lab2{
    margin-top: 50px;
}
body {
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(to right, #2193b0, #6dd5ed);
    /* Background gradient */
    color: #444;
    min-height: 100vh;
}
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.menu>li {
    position: relative;
    display: inline;
}

.menu a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

nav .menu .active {
    background-color: #555;
    color: white;
}

.submenu {
    display: none;
    position: absolute;
    background-color: #007BFF;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li:hover .submenu {
    display: block;
}

.submenu a {
    padding: 10px 20px;
}

section {
    margin: 20px 0;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../image/dorocosmo.jpg') center center / cover no-repeat;
    min-height: 100vh; /* Ensure it’s at least the height of the viewport */
    padding: 20px;
}

main {
    flex: 1;    
    padding: 20px;
}

header {
    background-color: #444;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;

    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.logo {
    position: absolute;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    width: 40px; /* Adjust size as needed */
    height: auto;
}

.logo-text {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    font-family: 'Roboto', sans-serif;
}

nav {
    display: flex;
    justify-content: center;
}
                                                                                                         
.menu a:hover {
    background-color: #555;
    border-radius: 5px;
}
.main-nav {
    background-color: #333;
    overflow: hidden;
}

.main-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-nav ul li {
    padding: 14px 20px;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    display: block;
}

.main-nav ul li a:hover {
    background-color: #575757;
}

.labs-bar {
    background-color: #444;
    box-shadow: 0 4px 8px rgba(88, 89, 80, 0.1);
    margin: 20px auto;
    width: fit-content;
    border-radius: 0px;
    position: fixed;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.labs-bar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.labs-bar ul li {
    padding: 10px 20px;
}

.labs-bar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px 20px;
    border-radius: 4px;
}

.labs-bar ul li a:hover {
    background-color: #555;
    color: white;
}

.labs-bar ul li a.active {
    background-color: #555;
    color: white;
}
.footer {
    background-color: #444;
    color: white;
    padding: 30px 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px 0;
}

.footer-section h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #f5a623;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #f5a623;
}

.footer-section .social-icons a {
    margin: 0 10px;
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #444;
    border-radius: 50%;
    overflow: hidden;
    transition: background-color 0.3s;
}

.footer-section .social-icons a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-section .social-icons a:hover {
    background-color: #f5a623;
}

.footer-bottom {
    margin-top: 20px;
    border-top: 1px solid #333;
    padding: 10px 0;
    font-size: 14px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    background-color: #f0f2f5;
}

.login-box {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 400px;
}

.login-box h1 {
    color: #1877f2;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 1.1em;
    background-color: #f5f6f7;
}

button {
    width: auto;
    padding: 15px;
    background-color: #1877f2;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #165db0;
}

p a {
    color: #1877f2;
    text-decoration: none;
    font-size: 0.9em;
}

p a:hover {
    text-decoration: underline;
}

.login-box {
    animation: slide-down 0.5s ease-out;
}

@keyframes slide-down {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }

}

/* Dashboard and exercise styles */
.dashboard-container {
    display: none;
    margin-top: 20px;
}

.exercise-list {
    margin-top: 20px;
}

.exercise-item {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.exercise-editor {
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 20px;
}

textarea#codeEditor {
    width: 100%;
    height: 300px;
    font-family: monospace;
    font-size: 14px;
    padding: 10px;
    border-radius: 4px;
}

.test-results {
    margin-top: 20px;
}
