body {
    font-family: Arial, sans-serif;
    background: #e6f2ff;
    margin: 0;
    padding: 0;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background: #536588;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    border-radius: 50%;
}

.school-name h1, .school-name h2 {
    margin: 0;
}

.school-name h1 {
    font-size: 24px;
}

.school-name h2 {
    font-size: 18px;
    font-weight: normal;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #ff99cc;
    color: white;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #ff69b4;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    top: 100%;
    left: 0;
    z-index: 1;
    width: 150px;
}

.dropdown-content li {
    margin-bottom: 10px;
}

.dropdown-content li a {
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

footer {
    background:#536588;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    width: 100%;
}

.content-container {
   
    text-align: left;
	width: 95%;
    max-width: 480px; 
    margin: 10px auto;
    padding: 20px;
    background: #cce6ff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
    border-radius: 15px;
}
	


.content-container a {
    text-decoration: none;
    color: cornflowerblue;
    padding: 30px;
    font-size: larger;
}



.frmreg {
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.frmreg label {
    font-weight: bold;
    color: #392165;
    font-size: 16px;
}

.frmreg input, .frmreg select {
    width: 90%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.2s ease-in-out;
    color: #333;
    box-sizing: border-box;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.frmreg input:focus, .frmreg select:focus {
    border-color: #ff1493;
    box-shadow: 0 0 10px rgba(86, 78, 82, 0.8);
    outline: none;
}

.frmreg button {
    width: 120px;
    padding: 15px;
    margin: 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s ease-in-out;
    color: #333;
    box-sizing: border-box;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.frmreg button:hover {
    background: rgb(198, 200, 216);
    transform: scale(1.01);
}

.user-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    background: rgba(255,255,255,0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    max-width: 300px;
    text-align: center;
}

.user-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    border: 3px solid #05055c;
}

.user-panel span {
    font-size: 1.2em;
    font-weight: bold;
    color: #05055c;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    margin: 0;
    padding: 10px;
}
.button-grid button {
   	width: 100%;
    padding: 20px;
    min-height: 80px;
    border-radius: 8px;
    font-size: 16px;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,127,0.4);
    transition: all 0.2s ease;
    cursor: pointer;
}

.admin-buttons button{
	background: #EEEEEE;
}

.admin-buttons button:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.admin-buttons #Checkin button:hover {
    background: #3edeea;
   
}
.admin-buttons #Checkout button:hover {
    background:#ff99cc;
   
}
.admin-buttons #train-Face button:hover {
    background:#bdb6f0;
   
}

.admin-buttons #User-Admin button:hover {
    background:#ffcc38;
   
}
.admin-buttons #Generate-Report button:hover {
    background:#bdb6f0;
   
}
.admin-buttons #Checkin button:hover {
    background: #3edeea;
   
}


  train-Face


@media (max-width: 768px) {
    .content-container {
        width: 90%;
        padding: 10px;
    }

    .frmreg {
        gap: 12px;
    }
}

// for checkout
@media (max-width: 768px) {
    .content-container2 {
        width: 90%;
        padding: 10px;
    }

    .frmreg {
        gap: 12px;
    }
}



.carousel {
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
}

.slider {
    display: flex;
    width: 500%;
    animation: slide 24s infinite ease-in-out;
}

.slide {
    width: 20%;
    flex-shrink: 0;
    text-align: center;
    position: relative;
}

.slide img {
    width: 90%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.caption {
    position: absolute;
    bottom: 10px;
    width: 100%;
    background: rgba(255, 105, 180, 0.7);
    color: white;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    opacity: 0;
    animation: fadeIn 2s ease-in-out forwards;
}

@keyframes slide {
    0%, 20% {
        transform: translateX(0%);
    }
    25%, 45% {
        transform: translateX(-20%);
    }
    50%, 70% {
        transform: translateX(-40%);
    }
    75%, 95% {
        transform: translateX(-60%);
    }
    100% {
        transform: translateX(-80%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

main img {
    margin-top: 5px;
    align-self: center;
    justify-content: center;
    align-items: center;
    border-radius: 25%;
}


// student registration

.instructions {
   
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #05055c;
}

.instructions-trigger {
    cursor: pointer; 
    margin: 0; 
    padding: 0; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    font-weight: bold; 
    user-select: none; 
}

.instructions-trigger .toggle-icon {
    font-weight: bold;
    margin-left: 10px; 
    transition: transform 0.3s ease; 
}

.instructions-content {
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.5s ease-out, padding 0.5s ease-out; 
    padding-top: 0;
    padding-bottom: 0; 
    margin-top: 0; 
}


.instructions.active .instructions-content {
    
    max-height: 500px; 
    
    padding-top: 15px;
    margin-top: 10px; 
}

.instructions.active .instructions-trigger .toggle-icon {
    transform: rotate(45deg); 
    
}
//checkin check0out