body{
    font-family: Arial;
    background:#f4f4f4;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    margin:0;
    transition:0.3s;
}

/* Login Page */

.login-box{
    width:350px;
    background:white;
    padding:30px;
    border-radius:15px;
    box-shadow:0 0 15px gray;
    text-align:center;
}

.login-box input{
    width:100%;
    padding:12px;
    margin-top:15px;
    border:1px solid gray;
    border-radius:8px;
    font-size:16px;
}

/* Main Container */

.container{
    width:450px;
    background:white;
    padding:20px;
    border-radius:15px;
    box-shadow:0 0 15px gray;
    display:none;
}

h1{
    text-align:center;
}

/* Buttons */

button{
    width:100%;
    padding:12px;
    margin-top:10px;
    border:none;
    color:white;
    border-radius:8px;
    font-size:16px;
    cursor:pointer;
}

#darkBtn{
    background:black;
}

#voiceBtn{
    background:purple;
}

#submit{
    background:blue;
}

#logoutBtn{
    background:red;
}

button:hover{
    opacity:0.9;
}

/* Progress Bar */

.progress{
    width:100%;
    height:20px;
    background:#ddd;
    border-radius:10px;
    overflow:hidden;
    margin:20px 0;
}

#progressBar{
    width:0%;
    height:100%;
    background:green;
    transition:0.5s;
}

/* Timer */

#timer{
    text-align:right;
    color:red;
}

/* Options */

.option{
    display:block;
    background:#eee;
    margin:10px 0;
    padding:12px;
    border-radius:8px;
    cursor:pointer;
    transition:0.3s;
}

.option:hover{
    background:#dcdcdc;
}

/* Dark Mode */

.dark{
    background:#111;
    color:white;
}

.dark .container{
    background:#222;
}

.dark .option{
    background:#333;
}

.dark .option:hover{
    background:#444;
}

/* Leaderboard */

#leaderboard{
    margin-top:20px;
}

/* Certificate */

#certificateBox{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.8);

    justify-content:center;
    align-items:center;

    animation:fadeIn 1s;
}

.certificate-hidden{
    display:none !important;
}

.certificate-show{
    display:flex !important;
}

.certificate{

    width:750px;
    max-width:90%;

    background:linear-gradient(to right,#fff8dc,#ffffff);

    border:12px solid gold;

    padding:40px;

    border-radius:20px;

    text-align:center;

    box-shadow:0 0 40px gold;

    animation:zoomIn 1s;
}

.certificate h1{
    font-size:55px;
    color:darkred;
}

.certificate h2{
    color:#333;
}

.certificate p{
    font-size:22px;
}

.certificate h3{
    color:green;
    font-size:32px;
}

.iit{
    color:darkblue;
    font-size:45px;
    margin-top:10px;
    text-transform:uppercase;
    letter-spacing:4px;
    font-weight:bold;
}

.date{
    margin-top:20px;
    font-style:italic;
}

/* Animations */

@keyframes zoomIn{

    from{
        transform:scale(0);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }
}

@keyframes fadeIn{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }
}

/* Responsive */

@media(max-width:600px){

    .container{
        width:90%;
    }

    .certificate h1{
        font-size:35px;
    }

    .iit{
        font-size:28px;
    }
}