@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
*
{
    margin: 0;
    padding: 0;
    box-sizing:border-box;
    font-family: 'Poppins', sans-serif;
}

#userIdDisplay 
{
    font-size: 40%;
    font-style: italic;
    font-family: cursive;
}
  

.btn {
    border-radius: 0 !important;
}


body
{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background: linear-gradient(to right, #2d6e30, #ffb74d); /* Updated gradient background */
    /* background: #E0E0E0; */
}

.card-body h4
{
    font-size: 2em;
}

.container.kiosk 
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.row 
{
    text-align: center;
}


.encoder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    min-width: 80vw;
    background: linear-gradient(to right, #2d6e30, #ffb74d); /* Updated gradient background */
    /* background: #E0E0E0; */
    padding: 2%;
}


.encoder .card
{
    border: ridge;
}

.navbar
{
    border: ridge;
    margin-bottom: 2%;
}

.navbar-brand img 
{
    max-height: 5vh; 
    max-width: 100%; 
}
  
.navbar-nav .nav-link 
{
    margin-right: 15px; /* Add some spacing between navigation links */
    color: #333; /* Set the color of the navigation links */
}

.box
{
    position: relative;
    width: 380px;
    height: 420px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0; /* Start with opacity set to 0 */
    transition: opacity 1s ease; /* Add a transition for the opacity */
}

.hidden
{
    display: none;
}

.box::before
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg,
    transparent, #2d6e30, #2d6e30, #2d6e30);
    z-index: 1;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
}

.box::after
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg,
    transparent, #2d6e30, #2d6e30, #2d6e30);
    z-index: 1;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
    animation-delay: -3s;
}

.borderLine
{
    position: absolute;
    top: 0;
    inset: 0;
}

.borderLine::before
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg,
    transparent, #ff9800, #ff9800, #ff9800);
    z-index: 1;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
    animation-delay: -1.5s;
}

.borderLine::after
{
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 380px;
    height: 420px;
    background: linear-gradient(0deg,
    transparent, #ff9800, #ff9800, #ff9800);
    z-index: 1;
    transform-origin: bottom right;
    animation: animate 6s linear infinite;
    animation-delay: -4.5s;
}

@keyframes animate
{
    0%
    {
        transform: rotate(0deg);
    }
    100%
    {
        transform: rotate(360deg);
    }
}

.box form
{
    position: absolute;
    inset: 4px;
    background: white;
    padding: 50px 40px;
    border-radius: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.box form .logo
{
    display: flex;
    justify-content: center;
}

.box form .logo img
{
    height: 3.5em;
    width: 3.5em;
}

.box form .inputBox
{
    position: relative;
    width: 300px;
    margin-top: 35px;
}

.box form .inputBox input
{
    position: relative;
    width: 100%;
    padding: 20px 10px 10px;
    background: transparent;
    outline: none;
    border: none;
    box-shadow: none;
    color: #23242a;
    font-size: 1em;
    letter-spacing: 0.05em;
    transition: 0.5s;
    z-index: 10;
}

.box form .inputBox span
{
    position: absolute;
    left: 0;
    padding: 20px 0px 10px;
    pointer-events: none;
    color: black;
    font-size: 1em;
    letter-spacing: 0.05em;
    transition: 0.5s;
}

.box form .inputBox input:valid ~ span,
.box form .inputBox input:focus ~ span
{
    color: black;
    font-size: 0.75em;
    transform: translateY(-34px);
}

.box form .inputBox i
{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
    transition: 0.5s;
    pointer-events: none;
}

.box form .inputBox input:valid ~ i,
.box form .inputBox input:focus ~ i
{
    height: 44px;
}

.box form .links
{
    display: flex;
    justify-content: space-between;
}

.box form .links a
{
    margin: 10px 0;
    font-size: 0.75em;
    color: black;
    text-decoration: none;
}

.box form .links a:hover,
.box form .links a:nth-child(2)
{
    color: black;
}

/* Normal state */
.box form input[type="submit"] {
    border: solid #2d6e30;
    outline: none;
    padding: 9px 25px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    font-weight: 600;
    width: 100px;
    margin-top: 10px;
    transition: background 0.3s ease; /* Add a transition for smooth hover effect */
}

/* Hover state */
.box form input[type="submit"]:hover {
    background: #2d6e30; /* Change the background color on hover */
    color: #fff; /* Change text color on hover */
    animation: buttonPulse 1s infinite; /* Apply the animation on hover */
}

/* Active state */
.box form input[type="submit"]:active {
    opacity: 0.8;
}

/* Keyframes for the animation */
@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.card {
    margin-bottom: 1vh;
}

.card-header,
.card-body {
    padding: 1vw;
}

.loader-wrapper
{
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #2d6e30;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 40px;
    height: 40px;
    --c: no-repeat linear-gradient(rgb(250, 250, 250) 0 0);
    background: var(--c), var(--c), var(--c), var(--c);
    background-size: 21px 21px;
    animation: l5 1.5s infinite cubic-bezier(0.3, 1, 0, 1);
}

@keyframes l5 {
    0% {
        background-position: 0 0, 100% 0, 100% 100%, 0 100%
    }

    33% {
        background-position: 0 0, 100% 0, 100% 100%, 0 100%;
        width: 60px;
        height: 60px
    }

    66% {
        background-position: 100% 0, 100% 100%, 0 100%, 0 0;
        width: 60px;
        height: 60px
    }

    100% {
        background-position: 100% 0, 100% 100%, 0 100%, 0 0
    }
}
  
@keyframes loader
{
    0% {
      transform: rotate(0deg);
    }
    
    25% {
      transform: rotate(180deg);
    }
    
    50% {
      transform: rotate(180deg);
    }
    
    75% {
      transform: rotate(360deg);
    }
    
    100% {
      transform: rotate(360deg);
    }
}
  
@keyframes loader-inner 
{
    0% {
      height: 0%;
    }
    
    25% {
      height: 0%;
    }
    
    50% {
      height: 100%;
    }
    
    75% {
      height: 100%;
    }
    
    100% {
      height: 0%;
    }
}
