body {
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
.container {
  position: relative;
  margin: 0 auto;
  width: 94%;
  max-width: 1350px;
  font-family: helvetica, sans-serif;
}
.content {
  position: relative;
  padding-top: 60px;
}
.content p {
  margin-bottom: 10px;
}
#header {
  z-index: 2;
  position: fixed;
  width: 100%;
  height: 60px;
  line-height: 60px;
  background: #222;
  color: white;
}
#header h1 {
  top: 0px;
  margin: 0px;
  text-transform: uppercase;
  font-size: 1.2em;
  color: #e67e22;
}
#nav {
  position: absolute;
  right: 0;
  top: -15px;
  height: 60px;
}
#nav ul li {
  float: left;
  list-style: none;
}
#nav ul li a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0 10px;
}
/*#nav ul li a::after{
  content: '';
  background-color: yellow;
  display: block;
  width: 0;
  height: 2px;
  margin-top: -15px;
  transition: .5s;
}
#nav ul li a:hover::after{
  width: 100%;
}*/
.container1{
  background-image: linear-gradient(rgb(0,0,0,0.6), rgb(0,0,0,0.6)), url(hero.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 90vh;
  background-color: #222;
  position: absolute;
}
.container1 h1{
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
    font-size: 240%;
    word-spacing: 4px;
    letter-spacing: 1px;
    font-weight: 300;
    text-transform: uppercase;
    font-family: 'Lato',arial,sans-serif;
}
.container1 .box{
    width: 1140px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.container1 button{
  background: #e67e22;
  border-radius: 25px;
  border: 1px solid #e67e22;
  padding: 15px 25px 15px 25px;
  color: #222;
  font-weight: bold;
  letter-spacing: 0px;
  font-size: 17px; 
}
.container1 button:hover{
  cursor: pointer;
  background-color: #cf6d17;
  border: 1px solid #cf6d17;
}
*:focus{outline: none;}

.container3{
  /*border:1px solid white;*/
  width: 600px;
  height: 350px;
  position: absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%);
  display: inline-flex; 
}
.backbox{  
  background-color: #404040;
  width: 100%;
  height: 80%;
  position: absolute;
  transform: translate(0,-50%);
  top:50%;
  display: inline-flex;
}

.frontbox{
  background-color: white;
  border-radius: 20px;
  height: 100%;
  width: 50%;
  z-index: 10;
  position: absolute;
  right:0;
  margin-right: 3%;
  margin-left: 3%;
  transition: right .8s ease-in-out;
}

.moving{
  right:45%;
}

.loginMsg, .signupMsg{
  width: 50%;
  height: 100%;
  font-size: 15px;
  box-sizing: border-box;
}

.loginMsg .title,
.signupMsg .title{
  font-weight: 300;
  font-size: 23px;
}

.loginMsg p,
.signupMsg p {
  font-weight: 100;
}

.textcontent{
  color:white;
  margin-top:65px;
  margin-left: 12%;
}

.loginMsg button,
.signupMsg button {
  background-color: #404040;
  border: 2px solid white;
  border-radius: 10px;
  color:white;
  font-size: 12px;
  box-sizing: content-box;
  font-weight: 300;
  padding:10px;
  margin-top: 20px;
}

/* front box content*/
.login, .signup{
  padding: 20px;
  text-align: center;
}

.login h2,
.signup h2 {
  color: #35B729;
  font-size:22px;
}

.inputbox{
  margin-top:30px; 
}
.login input, 
.signup input {
  display: block;
  width: 100%;
  height: 40px;
  background-color: #f2f2f2;
  border: none;
  margin-bottom:20px;
  font-size: 12px;
}

.login button,
.signup button{
  background-color: #35B729;
  border: none;
  color:white;
  font-size: 12px;
  font-weight: 300;
  box-sizing: content-box;
  padding:10px;
  border-radius: 10px;
  width: 60px;
  position: absolute;
  right:30px;
  bottom: 30px;
  cursor: pointer;
}

/* Fade In & Out*/
.login p {
  cursor: pointer;
  color:#404040;
  font-size:15px;
}

.loginMsg, .signupMsg{
  /*opacity: 1;*/
  transition: opacity .8s ease-in-out;
}

.visibility{
  opacity: 0;
}

.hide{
  display: none;
}


/*MEDIA QUERY*/


@media (max-width: 599px) {
  #header .container {
    width: 100%;
  }
  #header h1 {
    padding-left: 3%;
  }
  #nav {
    width: 100%;
    top: 60px;
  }
  #nav:before {
    content: '\2630';
    display: block;
    position: absolute;
    right: 3%;
    top: -50px;
    line-height: 40px;
    font-size: 1.4em;
    cursor: pointer;
  }
  #nav ul {
    background: #222;
    width: 100%;
    margin: 0px;
  }
  #nav ul li {
    float: none;
  }
  #nav ul li a {
    padding: 10px 3%;
    line-height: 20px;
    border-top: 1px solid #333;
  }
}

@media (max-width: 1220px) and (min-width: 1024px){
  .container1 .box{
    width: 930px;
  }
  .container1 h1{
    font-size: 185%;
  }
  .container1 button{
    padding: 11px 20px 11px 20px;
    font-size: 15px;
  }
}
@media (max-width: 1024px) and (min-width: 768px){
  .container1 .box{
    width: 670px;
  }
  .container1 h1{
    font-size: 185%;
  }
  .container1 button{
    padding: 11px 20px 11px 20px;
    font-size: 15px;
  }
}
@media (max-width: 768px) and (min-width: 500px){
  .container1 .box{
    width: 385px;
  }
  .container1 h1{
    font-size: 120%;
  }
  .container1 button{
    padding: 10px 18px 10px 18px;
    font-size: 12px;
  }
}