@font-face {
  font-family:"rounded";
  src:url("font/rounded-500.woff2") format("woff2"),
      url("font/rounded-500.woff") format("woff"),
      url("font/rounded-500.otf") format("opentype");
  font-weight:500;
  font-display:auto;
  font-style:normal;
  font-stretch:normal;
}

@font-face {
  font-family:"rounded";
  src:url("font/rounded-300.woff2") format("woff2"),
      url("font/rounded-300.woff") format("woff"),
      url("font/rounded-300.otf") format("opentype");
  font-weight:300;
  font-display:auto;
  font-style:normal;
  font-stretch:normal;
}

@font-face {
  font-family:"rounded";
  src:url("font/rounded-100.woff2") format("woff2"),
      url("font/rounded-100.woff") format("woff"),
      url("font/rounded-100.otf") format("opentype");
  font-weight:100;
  font-display:auto;
  font-style:normal;
  font-stretch:normal;
}


html, body {
  padding: 0;
  margin: 0;
  font-family: "rounded", sans-serif;
  font-optical-sizing: auto;
  font-weight: 100;
  font-style: normal;
  background-color: #efefef;
  text-align: center;
}

* {
  box-sizing: border-box;
}

.header {
  width: 100%;
  height: 325px;
  background: url("img/header.svg");
  background-position: center center;
  background-repeat: no-repeat;
  margin: auto;
  background-size: auto 240px;
}

.border {
  width: 100%;
  height: 20px;
  background: url("img/border.svg");
  background-size: 35px;
}

.main {
  background: #cca1ad;
  color: #fff;
  width: 100%;
  min-height: 80vh;
  padding-bottom: 40px;
}

.details {
  width: 100%;
  max-width: 785px;
  margin: auto;
}

.details h1 {
  margin: 0 auto;
  font-size: 42px;
  font-weight: 300;
  padding: 45px 0 30px 0;
}

.details p {
  font-size: 25px;
  margin: 40px auto 40px auto;
  max-width: 660px;
  line-height: 30px;
}

.details .links {
  max-width: 450px;
  margin: auto;
  padding-bottom: 45px;
}

.add-to-cal {
  display: none;
  max-width: 330px;
  margin: auto;
  text-align: center;
  font-size: 0;
}

.add-to-cal-label {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.add-to-cal a {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  margin: 3px;
  text-align: center;
  display: inline-block;
  height: 48px;
  width: 48px;
}

.add-to-cal a:last-child {
  margin-right: 0;
}

.details .links a.directions {
  display: inline-block;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 20px;
  color: #3e7f8c;
  text-decoration: none;
  border-bottom: 2px solid #3e7f8c;
  padding: 0 3px;
}

.details .event-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 15px 30px;
  margin: auto;
}

.details .event-info img {
  height: 80px;
  width: auto;
}

.details .event-info div {
  height: 106px;
  width: 1px;
  background: rgba(255,255,255,0.25);
}

.question {
  background: url("img/question.svg");
  background-position: top center;
  background-repeat: no-repeat;
  margin: auto;
  width: 100%;
  max-width: 850px;
  min-height: 350px;
  background-size: auto 350px;
  padding-right: 30px;
}

.question .buttons {
  display: flex;
  justify-content: space-between;
  margin: auto;
  max-width: 460px;
  padding-top: 200px;
}

.question .form {
  display: none; 
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  margin: auto;
  max-width: 220px;
  padding-top: 175px;
  row-gap: 25px;
}

.question .form .error {
  text-align: center;
  font-size: 14px;
  padding-bottom: 30px;
  margin-top: -10px;
  font-weight: 300;
  display: none;
}

.question .form input,
.question .form input:-webkit-autofill,
.question .form input:-webkit-autofill:hover, 
.question .form input:-webkit-autofill:focus {
  font-family: "rounded", sans-serif;
  border: 0;
  border-bottom: 1px solid #fff;
  border-radius: 0;
  background: 0;
  padding: 2px 5px;
  min-width: 100%;
  font-size: 15px;
  color: #fff;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-transition: "color 9999s ease-out, background-color 9999s ease-out";
    -webkit-transition-delay: 9999s;
}

::placeholder {
  color: #E7E7E7;
  opacity: 1;
}

::-ms-input-placeholder {
  color: #E7E7E7;
}

*:focus {
    outline: none;
}

.question .thanks {
  display: none;
  margin: auto;
  max-width: 460px;
  padding-top: 180px;
}

.question .thanks h2 {
  margin: 0;
  font-size: 25px;
  padding-bottom: 8px;
}

.question .buttons button, .question .form button {
  background: #3e7f8c;
  border: 2px solid #3e7f8c;
  color: #fff;
  border-radius: 25px;
  font-size: 15px;
  padding: 10px 30px;
  font-family: "rounded", sans-serif;
  font-weight: 300;
  box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.3);
}

.question .buttons button + button {
  background: #e8e4ed;
  color: #3e7f8c;
}

.question .form button {
  width: 165px;
}

.question .form button img {
  display: none;
  height: 10px;
}

@media only screen and (max-width: 640px) {
  .header {
    transform: translate3d(0,0,0);
    background-image: url("img/header-mobile.svg");
    background-size: auto 310px;
    background-position: center 20px;
    height: 340px;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
  }
  .border {
    height: 16px;
    background-size: 25px;
    margin-top: 340px;
    position: relative;
  }
  .main {
    position: relative;
    margin-top: -1px;
  }
  .details .event-info {
    justify-content: space-around;
    padding: 15px 0;
    max-width: 350px;
    border-top: 0;
  }
  .details .event-info img {
    height: 70px;
  }
  .details .event-info div {
    height: 80px;
  }
  .details .event-info .sep2 {
    min-width: 100%;
    height: 1px;
    margin: 15px 0;
  }
  .details h1 {
    display: none;
    font-size: 35px;
    line-height: 35px;
    padding: 30px 0 30px 0;
    max-width: 350px;
  }
  .details p {
    font-size: 18px;
    line-height: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
    max-width: 280px;
    font-weight: 300;
  }
  .details .links {
    max-width: 350px;
    font-size: 18px;
  }
  .details .links a {
    max-width: fit-content;
  }

  .question {
    background-image: url("img/question-mobile.svg");
    background-size: auto 260px;
    padding-right: 0;
    height: 300px;
    margin-bottom: 30px;
  }
  .question .buttons {
    padding-top: 145px;
    flex-direction: column;
    row-gap: 15px;
    max-width: 230px;
  }
  .question .buttons button {
    padding: 8px 30px;
    font-size: 14px;
  }
  .question .form {
    padding-top: 135px;
  }
  .question .thanks {
    padding-top: 140px;
  }
  .question .thanks h2 {
    max-width: 240px;
    margin: 0 auto;
    padding-bottom: 20px;
  }
  .add-to-cal {
    max-width: 200px;
  }
}