body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: black;
}

main{
    position: relative;
    min-height: 100vh;
    width: 95bw;
}
main::before{
    content: "";
    background: url("../images/attendanceBackground.jpg") no-repeat center center/cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.5;
    height: 100%;
    width: 100%;
}

.page-head {
    font-size: 3.5rem;
    color: #f2f2f2;
    text-align: center;
    margin-bottom: 1.5rem;
}

.attendance-form-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.attendance-form {
    display: inline-block;
}

#absent-button {
    background-color: #007bff;
    color: white;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#absent-button:hover {
    background-color: #0056b3;
}

.absentee-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.absentee-list li {
    background-color: #f8f9fa;
    color: #333;
    
    width: 80%;
    text-align: center;
    font-size: 1.2rem;
    padding: 10px 20px;
    margin: 5px;
    
    border-radius: 5px;

    list-style-image: url("../images/icons8-no-16.png");
}

/* ANIMATIONS to list items*/
.slide-up {
    animation: slideUp 1s ease-in-out 0s 1 normal forwards;
}
@keyframes slideUp {
    from{
        opacity: 0;
        transform: translateY(100%);
    }
    to{
        opacity: 1;
        transform: translateY(0%);
    }
}

.no-absentees{
    background-color: #f8f9fa;
    color: #333;
    
    width: 80%;
    text-align: center;
    font-size: 1.2rem;
    padding: 10px 20px;
    margin: auto;
    
    border-radius: 5px;
}

@media screen and (max-width: 550px) {

    .attendance-form-container,
    .absentee-list {
        width: 100%;
    }

    #absent-button {
        width: 100%;
    }
}

