
@font-face {
  font-family: 'TravelingTypewriter';
  src: url('traveling-typewriter.woff') format('woff'), /* Pretty Modern Browsers */
       url('traveling-typewriter.ttf')  format('truetype'); /* Safari, Android, iOS */
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #f0eee8;
  font-family: 'TravelingTypewriter', 'American Typewriter', monospace;
}

a {
  color: black;
}

span.heading {
  position: relative;
}

span.heading::before {
  content: "\2014";
  position: absolute;
  left: -14px;
}

img#polaroid {
  width: 320px;
  position: relative;
  top: 175px;
  padding-right: 20px;
}

#monogram {
  width: 80px;
  fill: #e5e3dd;

  float: right;
  padding: 30px 10px 0 40px;
}

.content {
  flex-grow: unset !important;
  width: 470px;
  padding-left: 40px;
  padding-right: 30px;

  padding-top: 140px;
}

.wrapper {
  display: flex;
}

.wrapper > div {
  flex-grow: 1;
}

@media screen and (max-width: 900px) {
  svg#monogram {
    position: absolute;
  }
}

@media screen and (max-width: 600px) {
  .wrapper {
    flex-direction: column;
  }

  #monogram {
    top: calc(70vw - 180px);
  }

  .content {
    order: 2;
    width: auto;
    padding-bottom: 40px;
    padding-top: 10px;
  }

  img#polaroid {
    width: 50%;
    top: 10px;
    float: right;
    margin-bottom: -60px;
  }
}

.content p {
  margin-bottom: 30px;

}

input[type="text"], input[type="email"] {
  background: transparent url(/textbox-underline.png) no-repeat bottom left;
  border: none;
  background-size: 290px;
  height: 23px;
  outline: none;
  font-family: 'TravelingTypewriter';
  font-size: 15px;
  padding-left: 5px;
  position: relative;
  font-size: 16px;
}

button {
  cursor: pointer;
  border: none;
  font-family: 'TravelingTypewriter';
  font-size: 16px;
  position: relative;
  margin-left: 10px;
  background-color: transparent;
  color: black;
}

button:hover::before {
  transform: scale(1.05) rotate(2deg);
}

button::before {
  position: absolute;
  left: -10px;
  top: -5px;
  padding: 5px 10px;
  content: '';
  width: 100%;
  height: 100%;
  background: transparent url(circle.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}


#rsvp {
  margin-bottom: 100px;
  min-height: 200px;
}

#rsvp-form label {
  display: flex;
  margin-bottom: 5px;
  cursor: pointer;
}

#rsvp-form label .fake-checkbox {
  margin-right: 5px;
  align-self: flex-end;
}

input[type="checkbox"] {
  display: none;
}

input[type="checkbox"] + .fake-checkbox {
  width: 22px;
  height: 10px;
  display: inline-block;
  background-image: url(/textbox-underline.png);
  background-position: bottom left;
  background-repeat: no-repeat;
  background-size: 300px;
  position: relative;
}

input[type="checkbox"]:checked + .fake-checkbox:after {
  content: '';
  width: 18px;
  height: 23px;
  background: url(check.png);
  position: absolute;
  left: 3px;
  bottom: 0;
  background-size: contain;
  background-repeat: no-repeat;
}

#rsvp-button {
  position: relative;
  left: -16px;
  top: 10px;
}


.rsvp-field-label {
  white-space: nowrap;
}
.rsvp-field-label input {
  flex: 1 1 auto;
}

#find-form {
  flex-wrap: wrap;
  align-items: baseline;
  display: flex;
}

#find-form label {
  margin-bottom: 15px;
  display: flex;
  white-space: nowrap;
}

#find-form label input {
  flex: 1 1 auto !important;
  max-width: 290px;
  margin: 0 5px;
}
