* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* background-image: url('assets/img1.jpg'); */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background: #1A1D2B;*/
}

/* For background image */
.bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures the image covers the entire viewport */
    z-index: -1;
    /* Places the image behind all other content */
}

.visitor-count {
    background: linear-gradient(45deg, #013103, #02223c);
    color: #fff;
    text-align: center;
    padding: 2px 16px;
    border-radius: 8px;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin: 10px auto;
    width: fit-content;
    transition: transform 0.3s;
}

.visitor-count:hover {
    transform: scale(1.05);
}


.captcha-container
{
    /* min-width: 50%; */
    /* max-width: 50%; */
    background: #FFF;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    font-family: "Poppins", sans-serif;
    position: relative;
}

.header {
    background: #037AE2;
    color: #fff;
    font-size: 1.5rem;
    width: 100%;
    text-align: center;
    border-radius: 20px 20px 0 0;
    padding: 15px;

}

.securityCode {
    width: 100%;
    /*height: 250px;
    /* background:url('assets/img2.jpg'); */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    /* To control the position of inner elements */
}

.captchabg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    top: 0;
    left: 0;
}

.securityCode p {
    text-align: center;
    /*line-height: 250px;
    /* color: #fff; */
    color: #e63e3e;
    font-family: "Montserrat", sans-serif;
    font-size: 5vw;
    font-weight: bold;
    letter-spacing: 10px;
    user-select: none;
    z-index: 1;
}

.icons {
    z-index: 1;
    bottom: 0;
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.icons .fas {
    color: #ffffff;
    font-size: 1.rem;
    padding: 10px 5px;
    cursor: pointer;
    transition: 0.15s ease;
}

.icons .fas:hover {
    color: #037AE2;
}

.userInput {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.userInput input {
    border-radius: 20px 0 0 20px;
    outline: none;
    border: solid 1px gray;
    border-right: none;
    padding: 12px;
    width: 60%;
    font-size: 1.2rem;
}

.userInput .btn {
    border: none;
    outline: none;
    background: #037AE2;
    color: #fff;
    padding: 12px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: 0.15s ease;
    font-size: 1.2rem;
}

.userInput .btn:hover {
    background: #036CC9;
}

.form-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#start-btn {
    height: 65px;
    text-align: center;
    padding: 15px;
    margin-bottom: 10px;
    font-size: 30px;
    border-radius: 10px;
    cursor: pointer;
    border-style: none;
    border-width: 1px;
    background-color: #037AE2;
    color: #ffffff;
}

#start-btn:hover
{
    background-color: #ffffff;
    color: #037AE2;
    border: solid #037AE2;
}

#instructions {
    margin-top: 8px;
    padding: 4px;
    width: 100%;
    border-radius: 0 0 20px 20px;
    background-color: rgb(71, 255, 117);
    font-size: 20px;
    text-align: center;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    height: 100vh;
    background: #fefdfd;
    width: 100%;
}


.login-form {
    display: flex;
    flex-direction: column;
    width: 20rem;
    gap: 1rem;
}

.input-parent {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.login-input{
    padding: 8px;
}

.input-label{
    font-size: 20px;
}

#login-button{
    padding: 8px
}

/* Responsive Behaviour */

@media (max-width: 768px) {
    body{
        height: inherit;
        margin-top: 30%;
    }

    .container-fluid{
        margin-left: 20px;
        margin-right: 20px;
    }
    .header {
        font-size: 1.5rem; /* Reduce header font size */
    }


    #start-btn {
        font-size: 24px;
        width: 250px; 
    }

    #instructions p{
        font-size: 35px; 
    }
    #code{
        font-size: 14vw;
    }
   
}

@media (max-width: 480px) {
    .securityCode p {
        font-size: 8vw; /* Further adjust for very small screens */
    }

    .icons .fas {
        font-size: 1.2rem; /* Adjust icon size */
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #333;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000; /* Ensures the navbar stays on top */
}

.navbar .logo a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li {
    display: inline;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

.nav-links a:hover {
    color: #ddd;
}

.menu-icon {
    display: none; /* Hiding this for now, can be added later for mobile view */
    cursor: pointer;
}

.menu-icon i {
    font-size: 24px;
    color: white;
}

/* Padding for body to avoid overlap with fixed navbar */
body {
    padding-top: 100px; /* Adjust based on navbar height */
    padding-bottom:100px;
}
footer {
    text-align: center;
    padding: 25px 20px;
    background-color: #333;
    color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: 100px;
}


/* Responsive Behaviour */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start; /* Align items to the start */
        padding: 10px;
    }

    .nav-links {
        flex-direction: column; /* Stack links vertically */
        width: 100%;
        padding: 10px 0;
    }

    .nav-links li {
        margin: 5px 0; /* Add space between links */
    }

    .navbar .logo a {
        font-size: 20px; /* Adjust logo size for smaller screens */
    }
    
    .menu-icon {
        display: block; /* Show menu icon for smaller screens */
    }

    footer {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 5px;
    }

    .navbar .logo a {
        font-size: 18px; /* Further adjust logo size */
    }

    .nav-links a {
        font-size: 16px; /* Adjust link font size */
    }

    #start-btn {
        font-size: 24px; /* Adjust start button size */
        width: 250px; 
    }
}



.toggleMenu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 5px;
    justify-content: space-evenly;
    background-color: #ffffff;
    border: 4px solid black;
    border-radius: 100px;
    margin-bottom: 25px;
}

.toggleCaptchaBtn {
    font-size: 1.5vw;
    padding: 5px;
    color: black;
    background-color: #efefef;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.1s ease-in-out; 
    border: 4px solid transparent;
    border-radius: 10px;
}

.toggleCaptchaBtn:hover {
    border: 2px solid black;
    background-color: #c4bebe;
}

.timer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.timer p {
    font-weight: bold;
}