/*
https://www.w3schools.com/howto/howto_js_fullscreen_overlay.asp
*/

/*
Below is used to stop the page from scrolling when the login modal overlay is shown
*/
/*https://www.geeksforgeeks.org/how-to-disable-scrolling-temporarily-using-javascript/*/
.login-stop-scrolling { 
    height: 100%; 
    overflow: hidden; 
} 

/* The Overlay (background) */
.login-overlay {
    /* Height & width depends on how you want to reveal the login-overlay (see JS below) */   
    height: 100%;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    z-index: 9999996; /* Sit on top -- set higher than spectrum color picker */
    left: 0;
    top: 0;
    background-color: rgb(0,0,0); /* Black fallback color */
    background-color: rgba(0,0,0, 0.78); /* Black w/opacity originally 0.9 */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.0s; /* 0.5 second transition effect to slide in or slide down the login-overlay (height or width, depending on reveal) */
  }
  
  /* Position the content inside the login-overlay */
  .login-overlay-content {
    position: relative;
    top: 10%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
  }
  
  /* The navigation links inside the login-overlay */
  .login-overlay a {
    color: #818181;
    text-decoration: none;
    /*
    padding: 8px;
    font-size: 36px;
    display: block; 
    transition: 0.3s; 
    */
  }
  
  /* When you mouse over the navigation links, change their color */
  /*
  .login-overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
  }
  */
  
  /* Position the close button (top right corner) */
  .login-overlay .login-closebtn {
    font-size: 24px;
    /*
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
    */
  }
  
  /* When the height of the screen is less than 450 pixels, change the font-size of the links 
  and position the close button again, so they don't overlap */
  @media screen and (max-height: 450px) {
    /*.login-overlay a {font-size: 20px}*/
    /*
    .login-overlay .login-closebtn {
      font-size: 40px;
      top: 15px;
      right: 35px;
    }
    */
  }

  /*
    CSS animation loader waiting on login/signup auth processing
    https://www.w3schools.com/howto/howto_css_loader.asp
  */
  .login-loader {
    border: 12px solid #f3f3f3; /* Light grey */
    border-top: 12px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin: auto;
    animation: spin 2s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }