* {
  margin: 0;
padding: 0;
}

@font-face {
  font-family: BaskervilleItalic;
  src: url("../fonts/BaskervilleItalic.ttf");
}

@font-face {
  font-family: BaskervilleReg;
  src: url("../fonts/BaskervilleReg.ttf");
}

@font-face {
  font-family: BaskervilleBold;
  src: url("../fonts/BaskervilleBold.ttf");
}

@font-face {
  font-family: BaskervilleSemiBoldItalic;
  src: url("../fonts/BaskervilleSemiBoldItalic.ttf");
}

@font-face {
  font-family: TimesLTStdExtraBold;
  src: url("../fonts/TimesLTStd-ExtraBold.otf")
}

@font-face {
  font-family: TimesLTStdBoldItalic;
  src: url("../fonts/TimesLTStd-BoldItalic.otf")
}

body {
  color: #fff;
  box-sizing: border-box;

  min-height: 100vh;
}

.main-page {
  background-image: url("../images/bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  height: 100vh;

}

.main-page > div {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  width: 90%;
  margin: -1% auto 0;
  height: 100%;
}

.main-page img {
  max-width: 650px;
  width: 80%;
}

.main-page p {
  font-size: 30px;
  font-style: italic;
  font-family: BaskervilleSemiBoldItalic, sans-serif;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.5;
}

.notify {
  border: 2px solid rgba(255,255,255,1);
  width: 240px;
  height: 60px;
  margin-top: 20px;
  display: flex;
  position: relative;
  transition: .5s .5s;
  font-family: "Open Sans", sans-serif;
}

.notify form {
 opacity: 0;
  z-index: 0;
  display: none;
}

.notify .start {
  opacity: 1;
  z-index: 1;
  transition: .2s;
  display: flex;
}

.notify .end {
  display: none;
  opacity: 0;
  cursor: default;
}

.notify.active {
  width: 400px;
}

.notify.active .start {
  opacity: 0;
}

.notify.thankyou .end {
  display: flex;
}

.notify.thankyou .start {
  display: none;
}

.notify.thankyou form {
  opacity: 0;
  transition: .5s;
  display: flex;
}

.notify.active form {
  display: flex;
  opacity: 0;
  transition: .2s .5s;
  position: absolute;
  top: 0;
}

div.start,
div.end{
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  color: #fff;
  width: 100%;
  height: 60px;
  font-size: 18px;
  font-family: "Open Sans", sans-serif;
  outline: none;
  cursor: pointer;
  border: none;
  text-align: center
}

form {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
}

form input {
  background-color: transparent;
  padding: 0 10px;
  color: #fff;
  height: 100%;
  border: none;
  outline: none;
  width: calc(100% - 80px);
  font-size: 16px;
}

form input[type=submit] {
  width: 80px;
  height: 100%;
  background-color: #fff;
  color: rgba(0,0,0,0.8);
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255,255,255,0.3);
  margin-top: 30px;
}

h1 {
  font-family: TimesLTStdExtraBold;
  font-size: 90px;
  line-height: 1;
}

h1 span{
  font-family: TimesLTStdBoldItalic;
}

h1 span.period {
  padding-left: 8px;
}

h4 {
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: center;
  margin: 15px 0 20px;
  font-family: BaskervilleBold;
  font-size: 26px;
}

h4 span {
  display: inline-block;
  position: relative;
}
h4 span:before,
h4 span:after {
  content: "";
  position: absolute;
  height: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  top: 50%;
  width: 600px;
}
h4 span:before {
  right: 100%;
  /*margin-right: 15px;*/
}
h4 span:after {
  left: 100%;
  /*margin-left: 15px;*/
}

.notify.error {
  border: 2px solid red;
  transition: .2s;
}



@media all and (max-width: 767px) {
  body {
    padding: 0;
  }

  .notify {
    height: 50px;
    max-width: 400px;
  }

  div.start,
  div.end,
  form input[type=submit]{
    height: 100%;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
  }

  div.start, div.end {
    font-size: 16px;
  }

  .main-page {
    height: 100vh;
    min-height: 300px;
    background-image: url("../images/mobile-bg.png");
    background-position: center;
    background-size: cover;
  }

  .main-page > div {
    justify-content: flex-start;
    padding-top: 80px;
    height: unset;
    width: 100%;
  }

  .notify.active {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .main-page p {
    font-size: 18px;
    padding: 0 5%;
  }


  h1 {
    font-size: 40px;
  }

  h1 span.period {
    padding-left: 4px;
  }

  h4 {
    font-size: 18px;
  }

  .main-page img {
    width: 90%;
  }

  .divider {
    margin-top: 24px;
  }

  button {
    width: 180px;
    font-size: 14px;
    padding: 15px 15px;
  }
}

@media all and (max-width: 500px) {
  .main-page {
    height: 100vh;
    min-height: 600px;
    background-image: url("../images/mobile-bg.png");
    background-position: center top;
    background-size: auto 850px;
  }

  .main-page > div {
    justify-content: flex-start;
    padding-top: 201px;
    height: unset;
    width: 100%;
  }

}
