/* styles.css */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    flex-direction: column;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    font-size: 1.8em;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 10px 0;
    z-index: 1000;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

p, label {
    margin-top: 10px;
    font-weight: bold;
}

#team-mode label {
    display: block;
    margin-bottom: 5px;
}

#students-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

#students-list label {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    width: calc(50% - 10px); /* 2 columns */
    box-sizing: border-box;
}

#students-list label:hover {
    background-color: #e0e0e0;
}

#students-list input[type="checkbox"] {
    margin-right: 10px;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
        box-shadow: none;
    }

    h1 {
        font-size: 1.5em;
    }

    button {
        padding: 8px;
        font-size: 1em;
    }

    #team-mode label,
    #students-list label {
        font-size: 0.9em;
    }

    #students-list label {
        width: 100%; /* Full width on small screens */
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 1.2em;
    }

    button {
        padding: 6px;
        font-size: 0.9em;
    }
}
