@font-face {
  font-family: 'osmose';
  src: url('../fonts/atosmose-medium-webfont.woff2') format('woff2'),
       url('../fonts/atosmose-medium-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;

}
@font-face {
  font-family: 'osmose';
  src: url('../fonts/fonts/ATOsmose-Bold.eot');
  src: local('AT Osmose Bold'), local('ATOsmose-Bold'),
      url('../fonts/ATOsmose-Bold.eot?#iefix') format('embedded-opentype'),
      url('../fonts/ATOsmose-Bold.woff2') format('woff2'),
      url('../fonts/ATOsmose-Bold.woff') format('woff'),
      url('../fonts/ATOsmose-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

html,body{
  background-color: black;
  padding: 0;
  margin: 0;
  color: white;
  min-height: 100vh;
  box-sizing: border-box;
  font-family: 'osmose';
}
body{
  display: flex;
  flex-direction: column;
  background-image: url('../img/background2.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
header{
  padding: 20px;
  display: flex;
}
header >div{
  align-self: center;
  flex: 1;
  text-align: right;
}
header .logo:after{
  display: none;
}
header a{
  color: white;
  display: inline-block;
  margin-left: 10px;
  padding: 10px;
  text-decoration: none;
  transition: background 0.5s ease, color 0.5s ease;
  position: relative;
}

header a:after{
  content:"";
  display: block;
  width: 0;
  height: 1px;
  background-color: white;
  transition: width 0.5s ease ;
}
header a:hover:after{
  width: 100%;
}
header select{
  background-color: transparent;
  outline: none;
  border: none;
  color: white;
  text-transform: uppercase;
  font-size : 1rem;
  font-family: 'osmose';
  margin-left: 10px;
}
select option {
  background-color: black; 
  outline:none;
}
.app{
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
  flex-wrap: wrap;
  flex: 1;

}
.valid,.errors,.home{
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  position: absolute;
  transition: opacity 0.25s ease;
}
.valid.visible,.errors.visible,.home.visible{
  opacity: 1;
  pointer-events: all;
  visibility: visible;
  position: relative;
  transition: opacity 0.25s ease;
}
.valid{
  max-width: 900px;
  width: 80%;
  margin-bottom: 70px;
  text-align: center;
}
.valid img{
  width: 100%;
  border: 3px solid white;
  box-sizing: border-box;
  background: white;
  max-width: 80%;
  max-height: 60vh;
  height: auto;
  width: auto;
  display:block;
  margin : auto;

}

.valid h2{
  margin: 0;
  margin-top: 10px;
  margin-bottom: 30px;
}

.errors{
  text-align: center;
  margin-bottom: 80px;
}
.errors h1{
  font-weight: bold;
  font-size: 2.4rem;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.errors p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}
.errors a,.home a,.valid a{
  color: black;
  background:white;
  display: inline-block;
  padding: 16px 30px 13px 30px;
  text-align: center;
  box-sizing: border-box;
  text-decoration: none;
  margin-top: 15px;
  line-height: 1.5;
  font-size: 1.2rem;
  transition: border 0.5s ease;
  text-transform: uppercase;
  font-weight: bold;
  outline:3px solid white;
  border: 1px solid white;
}
.errors a:hover, .home a:hover,.valid a:hover{
  border-color: black;
}

.home{
  text-align: center;
  margin-bottom: 80px;
}
.home h1{
  font-size: 2.8rem;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 5px;
  font-weight: bold;
  text-transform: uppercase;
}
.home h4 a{
  background: none;
  color: white;
  border : none;
  outline: none;
  padding: 0;
  margin: 0;
  text-transform: none;
  font-weight: 300;
  font-style: italic;
}
.home h4 a:after{
  content:"";
  display: block;
  width: 0;
  height: 1px;
  background-color: white;
  transition: width 0.5s ease ;
}
.home h4 a:hover:after{
  width: 100%;
}
.home h4{
  margin-top: 10px;
  margin-bottom: 60px;
}
.home p{
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.home input{
  background-color: rgba(0,0,0,0);
  outline: none;
  border : 1px solid white;
  color: white;
  font-size: 1.7rem;
  padding: 12px 0;
  text-align: center;
  margin-bottom: 30px;
}

@media screen and (max-width: 700px) {
  html{
    font-size: 14px;
  }
  header{
    padding: 20px;
  }
  .logo{
    max-width: 70px;
    margin-left: 0;
    padding: 0;
  }
  .logo img{
    width: 100%;
    height: auto;
  }
  .app{
    padding: 0 30px;
  }
  .home h1{
    font-size: 2.4rem;
  }
  .errors h1{
    font-size: 2rem;
  }
  header >div a:first-child{
    display: none;
  }
  .valid,.errors.home{
    margin-bottom: 40px;
  }
  .home p,.errors p{
    font-size: 1.2rem;
  }
  .valid{
    width: 90%;
  }
  .valid img{
    max-width: 100%;
  }
}