* {
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-y: scroll;
}

.logo-link img {
    display: block;
    width: 125px;
    height: auto;
    margin: 0 auto;
}

body {
    font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0C80FD;
}


header {
    background-color: #0C80FD;
    color: white;
    text-align: center;
    padding: 15px 30px;
}

h1 {
    font-size: 2.6rem;
    margin: 25px;
    font-weight: 800;
}

h2 {
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0;
}

h3 {
    font-size: 1.8rem;
    font-weight: 300;
    margin: 0;
}

p {
    font-size: 1.2rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 10;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: background-color 0.3s;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Hamburger Menu Styles */
.hamburger {
    display: none; /* Hidden by default */
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Optimization for mobile devices - Responsive Menu (Hamburger) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        transform: translate(-50%, -50%);
        top: 35%;
        left: 50%;
        background-color: #0C80FD;
        width: 100%;
        align-items: center; /* Centers the links horizontally */
        padding: 20px;
        border-radius: 10px;
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center; 
    }

    .hamburger {
        display: flex;
    }
}

/* Teacher/Student Section Button */
.cta-button {
    margin-top: 45px;
}

.button {
    background-color: #B8F171;
    color: black;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #007F74;
    color: white;
}

.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px auto;
    max-width: 1100px;
}

.section {
    display: flex;
    overflow: hidden;
    width: 100%;
    padding: 20px;
    border-radius: 0px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Content Sections */
.teachers-section {
    background-color: #FCFCF0;
    background-position: right;
    background-image: url('images/watercolor-background-world-teachers-day.jpg');
}

.students-section {
    background-color: #FFF8C2;
    background-position: right;
    background-image: url('images/organic-flat-podium-illustration.png');
}

.about-section {
    background-color: #FFF8C2;
    background-position: left;
    background-image: url('images/watercolor-illustration-world-teachers-day.jpg');
}

.section-text, .section-text-about {
    flex: 1;
    padding: 25px;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Optimization for mobile devices */
@media (max-width: 768px) { 
    .section {
        flex-direction: column;
        position: relative;
        background-position: center;
        overflow: hidden;
        width: 100%;
        padding: 10px;
        border-radius: 0px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        height: 780px;
        background-size: cover;
        color: #333;
    }

    .section::before {
        content: "";
        position: absolute;
        top: 380px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.9);
        z-index: 1;
    }
    
    .section * {
        z-index: 2;
    }

    .section-text {
        text-align: center;
        position: relative;
        top: 390px;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .section-text-about {
        text-align: center;
        position: absolute;
        top: 390px;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 30px;
    }
}


/* Footer Styles */
footer {
    background-color: #0C80FD;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

footer p {
    margin-top: 10px;
    color: white;
    font-size: 14pt;
}
/* ---------------------------------------------------Sign up Page */

/* Centered Container for Sign-Up Form */
.signup-container,.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 20px;
}

/* Sign-Up Form Styles */
form {
    background: white;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Form Heading */
form h2 {
    margin: 0;
    color: black;
    font-size: 1.6em;
    text-align: center;
}

/* Form Labels */
form label {
    display: block;
    font-weight: bold;
    color: #340F09;
}

/* Form Input Fields */
form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form select:focus{
    border-color: #ED6521;
    outline: none;
}

/* Styling for select dropdowns to match input fields */
form select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Button Styling */
form button {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #B7F172;
    color: black;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #0056b3;
}

/* Success and Error Messages */

.success-message,
.error-message {
    padding: 5px;
    text-align: center;
}

.success-message {
    color: white;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
}