/*

pink: hsl(23, 44%, 74%)
grey: hsl(37, 8%, 70%)
gold: hsl(38, 86%, 75%)

*/

@font-face {
  font-family: 'Mathlete';
  src: url('../fonts/Mathlete-Skinny-webfont.eot');
  src: url('../fonts/Mathlete-Skinny-webfont.eot?#iefix') format('embedded-opentype'),
  url('../fonts/Mathlete-Skinny-webfont.woff') format('woff'),
  url('../fonts/Mathlete-Skinny-webfont.ttf') format('truetype'),
  url('../fonts/Mathlete-Skinny-webfont.svg#mathleteskinny') format('svg');
  font-weight: normal;
  font-style: normal;
}

html {
  height: 100%;
}

body {
  font: 36px/1.2 Mathlete, sans-serif;
  text-align: center;
  color: hsl(37, 8%, 70%);

  margin: 0;
  padding: 0;
  height: 100%;

  -webkit-text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

article p a,
article address a {
  display: inline-block;
  white-space: nowrap;
  border-bottom: 1px solid hsl(37, 8%, 90%);
  padding-left: 3px;
}

address {
  font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

strong {
  font-weight: normal;
}

sup {
  font-size: 0.5em;
}

p {
  margin: 1em 0;
}

ul {
  list-style: none outside;
  margin: 0;
  padding: 0;
}

li {
  margin: 0;
  padding: 0;
}

label {
  display: block;
}

input[type="text"],
input[type="email"],
textarea {
  display: block;
  box-sizing: border-box;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  padding: 0.2em;
  border-radius: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: 1;
  background: transparent;
  border: 1px solid hsl(37, 8%, 92%);
  width: 100%;
}

input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 50%;
  border: 1px solid hsl(37, 8%, 92%);
  width: 1.2rem; height: 1.2rem;
  margin: 0;
}
input[type="radio"]:focus {
  outline: none;
}
input[type="radio"]:checked {
  border-color: hsl(37, 8%, 75%);
  background: hsl(37, 8%, 75%);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"><line vector-effect="non-scaling-stroke" stroke="hsl(37, 8%, 98%)" x1="0.25" y1="0.75" x2="0.5" y2="1" /><line vector-effect="non-scaling-stroke" stroke="hsl(37, 8%, 98%)" x1="0.5" y1="1" x2="1" y2="0.25" /></svg>');
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: 25% 30%;
}

select {
  -webkit-appearance: none;
  appearance: none;

  font-family: inherit;
  font-size: inherit;
  color: inherit;

  margin: 2px 0;
  padding: 0 28px 0 0;
  border: 1px solid hsl(37, 8%, 92%);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none"><path fill="hsl(37, 8%, 92%)" d="M 0 0 L 1 0 L 0.5 1 z" /></svg>');
  background-size: 28% 40%;
  background-repeat: no-repeat;
  background-position: calc(100% - 6px) 50%;
  border-radius: 6px;
}

.padded {
  padding: 16px;
}

.two-tones {
  background: linear-gradient(
    to right,
    hsl(23, 44%, 74%) 0%,
    hsl(23, 44%, 74%) 50%,
    hsl(37, 8%, 70%) 50%,
    hsl(37, 8%, 70%) 100%
  );
  background-attachment: fixed;
}

/* Main */

.main {
  position: relative;
  overflow: hidden;
}

@media (max-height: 400px) { .main { min-height: 500px } }

/* Triangle */

.triangle:before {
  content: '';
  position: absolute;
  top: 0px; right: 0px; bottom: 0px; left: 0px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none"><path fill="white" d="M 0 0 L 1 0 L 0.5 1 L 0 0 z" /></svg>');
  background-size: 100% 100%;
  z-index: -1;
}

.article {
  display: block;
  position: relative;
  background: white;
}

/* Diamond */

.diamond:before {
  content: '';
  position: absolute;
  top: 0px; right: 0px; bottom: 0px; left: 0px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none"><path fill="white" d="M 0.5 0 L 0.85 0.5 L 0.5 1 L 0.15 0.5 L 0.5 0 z" /></svg>');
  background-size: 100% 100%;
  z-index: -1;
}

/* Names */

.names {
  display: block;
  position: relative;
  margin: 0 auto;
  padding: 32px 0 0;
}

@media (min-width: 768px) { .names { margin-top: 48px } }

/* Logo */

.logo {
  display: block;
  margin: 0 auto 16px auto;
  width: 70%; height: auto;
}

@media (min-width: 768px) { .logo { margin-bottom: 48px } }
@media (min-width: 1000px) { .logo { width: 60% } }

/* Blurb */

.blurb {
  margin: 0;
  font-size: 24px;
}

@media (min-width: 375px) { .blurb { font-size: 28px } }
@media (min-width: 414px) { .blurb { font-size: 32px } }

/* Main-footer layout */

.main-footer-layout {
}

.main-footer-layout > main {
  position: absolute;
  top: 0; right: 0; bottom: 59px; left: 0;
}

.main-footer-layout > footer {
  position: absolute;
  top: auto; right: 0; bottom: 0; left: 0;
}

/* Footer Nav */

.footer-nav {
  display: flex;
  justify-content: space-around;
  background: hsla(0, 100%, 100%, 0.95);
}

/* Nav Link */

.nav-link {
  display: inline-block;
  position: relative;
  padding: .2em 0 .25em;
}
.nav-link:after {
  content: '';
  display: block;
  position: absolute;
  left: 0; bottom: .25em; right: 0;
  border-bottom: 1px solid hsl(37, 8%, 90%);
}

/* Slideover */

.slideover {
  display: block;
  position: absolute;
  top: 20px; right: 20px; bottom: 20px; left: 20px;
  transform: translateY(100vh);
  transition: transform .5s;
  box-shadow: 0px 2px 4px hsla(0, 0%, 0%, .25);
}

.slideover:after {
  content: '';
  position: absolute;
  bottom: 100%; left: 0;
  width: 1px; height: 50vh;
  background: hsl(0, 0%, 0%, 0);
  tranform: translate3d(0, 0, 0);
}

.slideover--reveal {
  transform: translateY(0vh);
}

.green {
  background: green;
}

.inherit {
  -webkit-appearance: none;
  appearance: none;

  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  font-style: inherit;

  color: inherit;
}

.card {
  display: block;
  margin: 0 0 2rem;
}

button {
  display: block;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 4px;
  border: 0;
  background: white;
  border: 1px solid hsl(37, 8%, 92%);
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.paper-plane {
  padding-right: 70px;
  background-image: url(../images/paper-plane.svg);
  background-repeat: no-repeat;
  background-position: 100% 50%;
  background-size: 60px;
}

.scrollable {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.fill {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
}

.article-title {
  position: relative;
  margin: 6rem 0 1.5rem 0;
  padding: 0;
}
.article-title:first-child {
  margin: 0 0 1.5rem 0;
}
.article-title > span {
  display: inline-block;
  position: relative;
  background: white;
  z-index: 2;
  padding: 0 .3em 0 .375em;
}
.article-title:before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: hsl(37, 8%, 92%);
  z-index: 1;
}


.line-top {
  display: block;
  border-top: 1px solid hsl(37, 8%, 92%);
  margin-top: 4px;
  padding-top: 4px;
}

.layout-horizontal {
  display: flex;
  justify-content: center;
}

.radio-button {
  margin: 4px 8px;
  padding: 0 4px;
  border: 1px solid hsl(37, 8%, 92%);
  border-radius: 6px;
}

.undecided .hidden-if-undecided,
.no .hidden-if-no,
.yes .hidden-if-yes {
  display: none;
}

.cute-message {
  padding-left: 1em;
  padding-right: 1em;
}

.gold {
  color: hsl(38, 86%, 75%);
}

.relative-fill {
  display: block;
  width: 100%; height: auto;
  margin: 0 auto;
}

.fancy-border {
  padding: .5em 0;
  border: 1px solid hsl(37, 8%, 92%);
}

.confetti {
  background-image: url(../images/confetti.png);
  background-size: 388px 558px;
}

.vertical-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.thanks {
  font-size: 2em;
  padding: 1em 0;
  background: radial-gradient(
    ellipse closest-side,
    hsla(0, 100%, 100%, .9) 50%,
    hsla(0, 100%, 100%, 0)
  );
}
