::-webkit-scrollbar {
    width: 0px;
    height: 0px;
} 

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  backdrop-filter: blur(8px); /* Apply blur effect to background */
  z-index: 1; /* Ensure overlay is behind popup form */
  display: none; /* Hide overlay by default */
}


#form-popup {
position: fixed;
  top:55%;
  left: 50%;
  width: 100%;
  max-width: 500px;
  height: 85%;
  background-color: white;
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); /* Box shadow for depth */
  z-index: 1001; /* Ensure popup form is on top of overlay */
  display: none; /* Hide popup form by default */
  margin-bottom: 5px;
  overflow: auto;
}


#closebtn{
  position:relative;
  width: 50px;
  float:left;
  margin-left:95%;
  cursor: pointer;
  
}
#closebtn:hover{
  color: red;
}
#userimg{
  left: 50%;
}


  .form_container .registration{
    display: none;
  }
  #check:checked ~ .registration{
    display: block;
  }
  #check:checked ~ .login{
    display: none;
  }
  #check{
    display: none;
  }
  .container .form{
    padding: 2rem;
  }
  .form header{
    font-size: 2rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1.5rem;
  }
   .form input{
     height: 60px;
     width: 100%;
     padding: 0 15px;
     font-size: 17px;
     margin-bottom: 1.3rem;
     border: 1px solid #ddd;
     border-radius: 6px;
     outline: none;
   }
   .form input:focus{
     box-shadow: 0 1px 0 rgba(0,0,0,0.2);
   }
  .form a{
    font-size: 16px;
    color: #009579;
    text-decoration: none;
  }
  .form a:hover{
    text-decoration: underline;
  }
  .form input.button{
    color: #fff;
    background: #009579;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 1.7rem;
    cursor: pointer;
    transition: 0.4s;
  }
  .form input.button:hover{
    background: #006653;
  }
  .signup{
    font-size: 17px;
    text-align: center;
  }
  .signup label{
    color: #009579;
    cursor: pointer;
  }
  .signup label:hover{
    text-decoration: underline;
  }
  @media only screen and (max-width:800px) {
/* For tablets: */
.form_container{
  position:relative;
    margin-top: 50px;
    float: left;
    top: 50%;
    left: 50%;
    margin-bottom: 10px;
    transform: translate(-50%,-50%);
    max-width: 430px;
    width: 100%;
    height:100%;
    background: #fff;
    border-radius: 7px;
    margin-bottom: 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    overflow:auto;

}
       
@media only screen and (max-width:680px){
  #overlay{
    overflow-y: auto;
  }
  .form_container{
    position: relative;
    margin-top: 10px;
      width: 100%;
      height: 100%;
      max-height: 1500px;
      margin-bottom: 10px;
      overflow-y: auto;
  }
}

@media only screen and (max-width:480px) {
/* For mobile phones: */
  #overlay{
    overflow-y: auto;
  }
  .form_container{
    position: relative;
    margin-top: 10px;
      width: 100%;
      height: 100%;
      max-height: 1500px;
      margin-bottom: 10px;
      overflow-y: auto;
  }
}
.alert {
        position: fixed;
        top: 20%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: black;
        color: red;
        border: none;
        padding: 10px;
        margin-bottom: 20px;
        text-align: center;
        z-index: 1000;
}