body {
  min-width: 400px;
  margin: 0;
  scrollbar-width: none;
}

::-webkit-scrollbar { display: none; }

section.authentication {
  display: none; /* Hidden by default */
  position: fixed; /* Sit on top of the page content */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
}

section.authentication > section {
  display: none; /* Hidden by default */
}

section.authentication > section > div {
  width: 400px;
  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  margin: 100px auto;
  padding-bottom: 20px;
  background-color: white;
}

section.authentication > section a.cancel {
  float: right;
  margin: 0 20px 0 0;
  font-size: 16px;
  color: black
}

section.authentication > section h1 {
  text-align: center;
  font-size: 24px;
  padding: 20px 0 20px 0;
  border-bottom: 1px solid #dee0e4;
}

@media only screen and (max-width: 600px) {
  section.authentication > section {
    position: fixed; 
    overflow : scroll;
    width: 100%;
    height: 100%;
    background-color: white;
  }	
  section.authentication > section > div {
    overflow : scroll;
    margin: auto;
    box-shadow: none;
  }
}


section.authentication > section form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 20px;
  margin: 0;
}


section.authentication > section label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
}

section.authentication > section > div div {
  text-align: center;
  font-size: 16px;
  margin-bottom: 10px;
  width: 360px;
  padding: 0;
}

section.authentication > section > div div:empty
{
    display:none;
}

section.authentication > section:not(.active) {
	display: none;
}

section.authentication > section.active {
	display: block;
}


section.authentication > section form input:not([type="submit"]) {
  width: 310px;
  height: 50px;
  border: 1px solid #dee0e4;
  padding: 0 10px;
}

section.authentication > section form input[type="submit"] {
  width: 360px;
  margin-top: 20px;
}

section.authentication > section .error {
  color: red;
}

.authentication.guest:not(.anonymous) {
  display: none;
}

.authentication.user:not(.authenticated) {
  display: none;
}
