body {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  margin: 32px 0;
  color: #333;
  background: url('teal2.png');
  background-size: 136px;
}

[hidden] {
  display: none;
}

[invisible] {
  visibility: hidden !important;
}

#scrim {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

#scrim:not([invisible]) {
  opacity: 1;
  transition: opacity 0.2s ease-out, visibility 0s 0s;
}

#scrim[invisible] {
  opacity: 0;
  transition: opacity 0.2s ease-out, visibility 0s 0.2s;
}

form .names {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 3px;
  text-align: center;
}

form .names input {
  display: block;
  width: 100%;
  height: 24px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #333;
  margin-bottom: 5px;
  outline: none;
  text-align: center;
  font-family: "Raleway";
  font-size: 14px;
}

form .names input:focus {
  border-bottom: 2px solid #333;
  margin-bottom: 4px;
}

form .options {
  /* TODO: Prefixes. */;
  display: flex;
  justify-content: center;
}

form .options label {
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin: 0 16px;
  font-size: 16px;
  line-height: 20px;
}

input[type=radio] {
  height: 0;
  width: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
}

input[type=radio] + div {
  display: inline-block;
  margin-right: 12px;
  border: 2px solid #333;
  width: 16px;
  min-width: 16px;
  height: 16px;
  color: transparent;
  text-align: center;
  position: relative;
}

input[type=radio]:checked + div > div {
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: #333;
}

h1 {
  font-family: 'Playfair Display', 'Baskerville', serif;
  font-size: 50px;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 white;
}

h1 .ampersand {
  font-family: 'Rouge Script';

  /* Adjustments to make this align. */
  vertical-align: top;
  margin-right: -7px;
}

h2, h3, h4 {
  font-family: 'Alex Brush', cursive;
  line-height: 1.2em;
}

h2 {
  font-size: 40px;
  margin-bottom: 10px;
}

h2.rsvp-text {
  letter-spacing: 4px;
}

h3 {
  font-size: 30px;
}

h4 {
  font-size: 23px;
}

h5 {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 4px;
  line-height: 1.4em;
}

p {
  font-size: 12px;
  line-height: 1.6em;
  text-transform: uppercase;
  letter-spacing: 3px;
}

a:not(.button) {
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 3px;
  color: #333;
  font-size: 14px;
  font-style: italic;
}

a:not(.button):hover {
  text-decoration: underline;
}

ul {
  margin: 10px 0;
}

ul li {
  line-height: 20px;
}

.card {
  box-sizing: border-box;
  width: 100%;
  background-color: #fafaff;
  background-image: url('paper_lightened.png');
  background-size: 200px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
              0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 0.3s cubic-bezier(.25, 0.8, 0.25, 1);
  margin: 0 auto 40px;
  padding: 20px;
  border-radius: 1px;
  text-align: center;
}

.card .group:not(:last-child) {
  margin: 20px 0;
}

.card .group:last-child {
  margin: 20px 0 0;
}

.popup {
  position: fixed;
  z-index: 100;
  width: auto;
  max-width: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16),
              0 3px 6px rgba(0, 0, 0, 0.23);
}

.popup:not([invisible]) {
  opacity: 1;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out, visibility 0s 0s;
}

.popup[invisible] {
  transform: translate(-50%, -50%) scale(1.05);
  opacity: 0;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out, visibility 0s 0.2s;
}

button,
a.button {
  display: inline-block;
  background: #eee;
  border-radius: 40px;
  padding: 10px 15px;
  border: 1px solid #aaa;
  box-shadow: inset 0 1px 0 white, 0 1px 0 white;
  font-family: "Raleway";
  outline: none;
  text-decoration: none;
  color: #333;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 3px;
  margin: 0 10px;
}

button[disabled] {
  color: #888;
}

button + button,
a.button + a.button {
  margin-top: 10px;
}

button:active,
a.button:active {
  background: #ccc;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  padding: 11px 15px 9px;
}

/* Columns. */
body {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#primary,
#secondary {
  margin: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#primary {
  width: 600px;
}

#secondary {
  width: 400px;
}

@media (max-width: 1040px) {
  #secondary {
    display: none;
  }
}

/* Cards. */
#main {
  text-align: center;
  padding: 125px 20px 50px;
  background-color: #fafaff;
  background-image: url('cherry_blossom_clip_plain.svg'), url('paper_lightened.png');
  background-position: top center;
  background-repeat: no-repeat, repeat;
  background-size: 80%, 200px;
}

#main:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16),
              0 3px 6px rgba(0, 0, 0, 0.23);
  transform: scale(1.01);
}

#main-names {
  margin-bottom: 30px;
}

#main #ampersand-block {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Rouge Script";
  font-size: 50px;
}

#main #ampersand-block:before,
#main #ampersand-block:after {
  content: '';
  display: block;
  border-top: 1px solid #333;
  width: 90px;
}

#main #ampersand-block:before {
  margin-right: 30px;
}

#main #ampersand-block:after {
  margin-left: 30px;
}

.polaroid {
  box-sizing: border-box;
  border-radius: 2px;
  background: #f3f3f3;
  width: 200px;
  padding: 25px 25px 50px;
  margin-bottom: 40px;
  transform: rotate(5deg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
              0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 0.3s cubic-bezier(.25, 0.8, 0.25, 1);
}

.polaroid:hover {
  transform: rotate(0deg);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16),
              0 3px 6px rgba(0, 0, 0, 0.23);
  transform: scale(1.1);
}

.polaroid img {
  width: 150px;
}



/* About card. */
#about p {
  text-align: left;
  text-indent: 45px;
}

#main .event-name {
  font-size: 19px;
  font-style: italic;
  font-weight: bold;
  letter-spacing: 6px;
}
