.header1 {
    padding:1em 2em 1em 2em;display:flex;justify-content:space-between;align-items:center;
}

.header2 {
    padding:1em 2em 1em 2em;
    display:flex;
    justify-content: center;
}

.header2 a {
    color:grey;
    text-decoration: none;
    font-size:15px;
    padding:0 .5em 0 .5em;
}

.header2 a:hover {
    opacity: 50%;
    transition: .3s;
}

.navlink {
    padding:1em;
}

.logindiv {
    position: absolute;
    background-color: white;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 500px;
    max-width: 80%;
    padding: 2em;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    overflow: auto;

}


#btn_login {
    background-color: grey;
    color:white;
}

#btn_login:hover {
    opacity:50%;
    transition: .3s;
}

#attendancesheetFormMsg,#actionMsg,#keyMsg {
    color: red;
    background-color: rgba(255, 0, 0, 0.097);
    padding: .5em;
    border-radius: 3px;
    display: none;
}

input.error {
    border: 1px solid red;
}


.popup {
    display: none;
    position: fixed;
    top: 11%;
    left: 50%;
    transform: translate(-50%, -11%);
    padding: 20px;
    border: 1px solid rgb(208, 69, 69);
    color: rgb(208, 69, 69);
    background-color: rgb(255, 232, 232);
    z-index: 2;
  }
  
.popup-content {
    text-align: center;
}

#activityList,#attendanceSheetList {
    overflow-x: auto;
    white-space: nowrap; /* Prevent line breaks within table cells */
    display: block; /* Ensure table doesn't expand beyond viewport */
    width: 100%; /* Ensure the table takes up the full width of the viewport */
}

#crudMsg {
    border: 1px solid rgb(21, 148, 21);
    color: green;
    background-color: rgb(198, 247, 198);
    padding: .5em;
    width: 100%;
}

#activitiesforAttendance {
    background-color: rgba(23, 116, 187, 0.453);
    padding: 1em;
    font-size: 20px;
    color:white;
    border-radius: 10px 10px 0 0;
}

#attendanceKey {
    text-align: center;
    font-size: 50px;
    font-family: monospace;
}

.sheet {
    padding: .5em 2em 0 2em;
    box-shadow: 0 5px 10px rgba(0,0,0,.1);
    overflow: auto;
    background-color: #fff;
    border-radius: 5px;
}


#loader-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: darkgray;
}

#canvas {
    border: 3px solid gainsboro;
    border-radius: 5px;
    width: 300px; 
    height: 150px; 
    touch-action: none;
}
button {
    margin: 5px;
}

.floating-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    border-radius: 100%;
    opacity: 40%;
    pointer-events: none; /* Makes the element ignore mouse events */
}
