<?php
//session_start();
//include_once './config/config.php';
// if(!isset($_SESSION['STUDENT_AUTO_ID']) && !isset($_SESSION['STUDENT_REGNO']) && !isset($_SESSION['STUDENT_MOBNO'])){
//     echo "<script type='text/javascript'>
//         alert('Invalid login details.Session Expired. Please try again later. Thank you.');
//         window.location.href='index.php';
//     </script>"; 
// }
?>

<style>
    body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: calc(4em + 10vw);
    text-align: center;
    color: #fff;
    background-image: linear-gradient(-225deg, #cf2778, #7c64d5, #4cc3ff);
    overflow: hidden;
}

h1 {
    font-size: 1em;
    font-weight: 700;
    text-shadow: 0 0 0.1em rgba(0, 0, 0, 0.5);
}

h1 span::after {
    content: '🕛';
    font-size: 0.9em;
    animation: clock 5s linear infinite;
}

h2 {
    font-size: 0.15em;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1em;
    text-shadow: 0 0 0.2em rgba(0, 0, 0, 0.5);
}

.apple-os h1 span {
    margin: 0 0.1em;
}

.btn-success{
    background-color:green;
}
.apple-os h2 {
    margin-top: 0.4em;
}

@keyframes clock {
    8.333% {
        content: '🕐';
    }

    16.666% {
        content: '🕑';
    }

    25% {
        content: '🕒';
    }

    33.333% {
        content: '🕓';
    }

    41.666% {
        content: '🕔';
    }

    50% {
        content: '🕕';
    }

    58.333% {
        content: '🕖';
    }

    66.666% {
        content: '🕗';
    }

    75% {
        content: '🕘';
    }

    83.333% {
        content: '🕙';
    }

    91.666% {
        content: '🕚';
    }
}
</style>
<h1 aria-label="408 Error"><span></span></h1>
<h2>21<sup>st</sup> GRADUATION DAY - 2024 Registration Form Closed </h2>
<a href="https://avit.ac.in/" class="btn btn-success"><button class="btn btn-success">Home</button></a> 
<script>
    if (navigator.platform.match(/(Mac|iPhone|iPod|iPad)/i)) document.body.classList.add('apple-os');
</script>