*,
:after,
:before {
  box-sizing: border-box;
  margin: 0;
  transition: 0.4s;
}
body {
  background:url(../img/bg.jpg);
  background-size: cover;
  height: 100vh;
  overflow: hidden;
  color: white;
  font-family: tahoma;

}
.modal {
  height: 400px;
  width: 700px;
  margin: auto;
  box-shadow: 0 15px 35px rgba(0,0,0,.5);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transition: 0.4s, box-shadow 0.3s 0.4s;
}
.modal.hidden{
  box-shadow: none;
  transition: 0.4s, box-shadow 0s;
  opacity: 0;
  visibility: hidden;
}
.modal.hidden .form {
  top: 100%;
}
.modal.hidden .invite {
  top: -100%;
}
.modal.hidden .invite .close {
  height: 0;
  width: 0;
  top: 0;
  right: 0;
  
}
.form, .invite {
  background: rgba(71,71,71,0.8);
  width: 50%;
  height: 100%;
  padding: 25px;
  position: absolute;
  top: 0;
  left: 0;
}

input{
  background: rgba(255,255,255,.15);
  width: 100%;
  padding: 8px;
  margin: 15px 0;
  border: 1px solid white;
  color: white;
  font-size: 20px;
}
label {
  font: 500 14px tahoma;
  color: white;
  text-transform: uppercase;

}
button{
  background: white;
  padding: 15px 30px;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  position: absolute;
  bottom: 30px;
  left: 50%;
  color: black;
  font-size: 18px;
  cursor: pointer;
  transform: translateX(-50%);
  text-transform: uppercase;
  font-weight: bold;
}
button:hover::before{
  left: 110%;
  transition: 0.3s;
}
button::before{
  content: '';
  height: 100%;
  width: 65px;
  position: absolute;
  top: 0;
  left: -100%;
  transform: skew(-45deg);
  transition: 0s;
}
.invite{
  background: linear-gradient(-40deg, #fb5741, #e6890a);
  left: 50%;
}
h3{
  font-family: tahoma;
  text-transform: uppercase;
  font-size: 30px;
}
.nope {
  background: white;
  padding: 10px 15px;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,.25);
  position: absolute;
  bottom: 30px;
  left: 50%;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transform: translateX(-50%);
  color: black;
  font-weight: bold;

}
.close {
  background: #474747;
  height: 30px;
  width: 30px;
  border: 3px solid white;
  border-radius: 50%;
  position: absolute;
  top:-15px;
  right: -15px;
  cursor: pointer;
  transition: 0.4s 0.3s;
}
.close::before, .close::after{
  content: '';
  background: white;
  height: 80%;
  width: 3px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.close:after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.open {
  background:#1a1a1a;
  height: 65px;
  width: 240px;
  line-height: 45px;
  padding: 10px 40px;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 17px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
    text-transform: uppercase;
}
.open.active {
  opacity: 1;
  visibility: visible;
}
.open:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
}
