/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* gap: 4rem; */
}

/* Headings */
h1 {
    color: #2c3e50;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.2rem;
    margin-bottom: 1rem;

}

.btn:hover {
    background-color: #2980b9;
}

/* Button Group and Dropdown */
.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 20px;
}

.dropdown {
    display: flex;
    position: relative;
}

.dropdown-content {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1;
    text-wrap: nowrap;
}

.dropdown-content a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: flex;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

/* Form Styles */
.marks-form, form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.form-group {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.form-group label {
    flex: 1;
    text-align: right;
    padding-right: 10px;
    color: #333;
    font-weight: bold;
}
.container input[type="text"]{
    width: 50%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin: 1rem;
    text-align: center;
}

.form-group input, .form-group textarea {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin: 1rem;
}

textarea {
    width: 50%;
    height: 100px;
    resize: vertical;
}

/* Flash Messages */
.flash {
    display: flex;
    justify-content: center;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    width: 100%;
    text-align: center;
}

.flash.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design with Flexbox */
@media (max-width: 800px) { /* Tablet */
    .container {
        width: 95%;
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .btn {
        width: 100%;
        align-items: center;
        text-align: center;
        justify-content: center;
    }

    .form-group {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    .form-group label {
        text-align: left;
        padding-right: 0;
        margin-bottom: 5px;
    }

    .form-group input, .form-group textarea {
        width: 100%;
    }
    .container input[type="text"] {
        width: 100%;
    }
    textarea {
        width: 100%;
    }
}

@media (max-width: 480px) { /* Mobile */
    .container {
        width: 100%;
        margin: 10px 0;
        padding: 10px;
    }

    h1 {
        font-size: 1.2rem;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        padding: 8px 15px;
        font-size: 1rem;
        width: 100%;
    }

    .form-group label, .form-group input, .form-group textarea {
        font-size: 1rem;
        width: 100%;
    }

    .flash {
        font-size: 1rem;
        padding: 8px;
    }
    .container input[type="text"] {
        width: 100%;
    }
    textarea {
        width: 100%;
    }
}