#agegate-close {
  display: none;
}
#agegate {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 100;
  color: white;
  text-align: center;
}
#agegate form {
  position: relative;
  background-color: #f48029;
  color: white;
  width: 50%;
  top: 50%;
  transform: translateY(-50%);
  padding: 5% 10%;
  margin: auto;
  box-sizing: border-box;
  -webkit-box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}
#agegate form div {
  display: flex;
}
#agegate header img {
  width: 60%;
}
#agegate input[type=submit],
#agegate a {
  font-size: 1.5em;
  font-family: 'Teko', sans-serif;
  text-transform: uppercase;
  color: white;
  background-color: rgba(255, 255, 255, 0);
  border: 2px solid white;
  padding: 0.25em;
  line-height: 1em;
  height: 2em;
  box-sizing: border-box;
  margin: 0 1em;
}
#agegate a:hover {
  color: #f48029;
  background-color: white;
}
#agegate form:valid input[type=submit] {
  background-color: white;
  color: #f48029;
}
#agegate form:valid input[type=submit]:hover {
  background-color: #f48029;
  color: white;
}
#agegate input[type=checkbox] {
  display: none;
}
#agegate label[for=remember-age] {
  display: block;
  margin-bottom: 1rem;
}
#agegate label[for=remember-age]::before {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\f096";
  margin-right: 0.25rem;
}
#agegate #remember-age:checked + label[for=remember-age]::before {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\f046";
}
body[data-login=no] #agegate label[for=remember-age] {
  display: none;
}
#agegate input[type=text] {
  text-align: center;
  font-size: 1.5em;
  width: 30%;
  background-color: rgba(245, 168, 202, 0);
  border: 2px solid white;
  padding: 0.25em;
  color: white;
}
#agegate input[type=text]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
#agegate input[type=text]:valid {
  background-color: white;
  color: #f48029;
}
#agegate input[type=text]:active,
#agegate input[type=text]:focus {
  background-color: rgba(255, 255, 255, 0.5);
}
#agegate form:invalid input[type=submit] {
  opacity: 0.5;
}
#top:target #agegate {
  animation-name: fadeout;
  animation-duration: 300ms;
  animation-delay: 400ms;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
@keyframes fadeout {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    display: none;
    font-size: 0;
    z-index: -10;
  }
}
