/* main.css
   ========================================================================== */

/* base */
*,
::before,
::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  line-height: 1.5;
}

body {
  margin: 0;
  background-color: #fff;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: #333;
}

h2 {
  margin-top: 2.4rem;
  margin-bottom: 0;
  font-family: Georgia, serif;
  font-size: 3.125rem;
  line-height: 1.536;
}

p {
  margin-top: 2.4rem;
  margin-bottom: 0;
}

h2:first-child,
p:first-child {
  margin-top: 0;
}

/* document */
.c-document.is-inactive {
  overflow: hidden;
}

/* container */
.o-container {
  max-width: 105.6rem;
  padding-right: 2.4rem;
  padding-left: 2.4rem;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

/* grid */
.o-grid {
  display: flex;
  flex-flow: row wrap;
  margin-bottom: -2.4rem;
  margin-left: -2.4rem;
}

.o-grid__col {
  box-sizing: border-box;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  padding-bottom: 2.4rem;
  padding-left: 2.4rem;
}

.o-grid--2 > .o-grid__col {
  width: calc(100% / 2);
}

/* icons */
.c-icon__svg {
  display: inline-block;
  vertical-align: top;
  width: auto;
  height: 1.5em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

/* labels */
.c-label {
  display: inline-block;
  margin-right: 1.2rem;
  padding: 0.75em 0;
  font-size: 1.6rem;
  line-height: 1.5;
  font-weight: 700;
  vertical-align: top;
}

/* fields */
.c-field {
  height: 3em;
  padding: 0.75em 0.75em;
  font-size: 1.6rem;
  line-height: 1.5;
  border: 1px solid #ccc;
  border-radius: 0.25em;
  background-color: #fff;
  vertical-align: top;
}

/* buttons */
.c-btn {
  position: relative;
  z-index: 0;
  display: inline-block;
  transform: translate3d(0, -0.25em, 0);
  padding: 0.75em 1.5em;
  font-size: 1.6rem;
  line-height: 1.5;
  border: 0;
  border-radius: 0.25em;
  background-color: #f0f0f0;
  vertical-align: top;
  text-decoration: none;
  font-weight: 700;
  color: #e91e63;
  cursor: pointer;
  transition: .2s;
}

.c-btn::before,
.c-btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
  box-shadow: 0 0.25em 0 0 #ccc;
  transition: .2s;
}

.c-btn::after {
  box-shadow: 0 0.25em 0 0 #aa1145;
  background-color: #e91e63;
  visibility: hidden;
  opacity: 0;
}

.c-btn:focus,
.c-btn:hover,
.c-btn:active {
  color: #fff;
}

.c-btn:focus::after,
.c-btn:hover::after,
.c-btn:active::after {
  visibility: visible;
  opacity: 1;
}

.c-btn--unstyled {
  position: static;
  transform: none;
  padding: 0;
  border-radius: 0;
  background: none;
  font: inherit;
  line-height: inherit;
  color: inherit;
}

.c-btn--unstyled::before,
.c-btn--unstyled::after {
  content: none;
}

/* dialogs */
.c-dialog {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  padding: 2.4rem;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  background-color: rgba(0, 0, 0, .75);
  transition: .2s;
}

.c-dialog__inner {
  align-self: flex-start; /* ie fix */
  width: 100%;
  max-width: 48rem;
  margin: auto;
  padding: 2.4rem;
  border-radius: .6rem;
  background-color: #fff;
  transition: .4s;
}

.c-dialog__dismiss:focus,
.c-dialog__dismiss:hover,
.c-dialog__dismiss:active {
  color: #e91e63;
}

.c-dialog[aria-hidden="true"] {
  visibility: hidden;
  opacity: 0;
}

.c-dialog[aria-hidden="true"] .c-dialog__inner {
  transform: translate3d(0, -4.8rem, 0);
}

/* modeless and tooltip dialogs */
.c-dialog--modeless {
  position: static;
  display: inline-block;
  padding: 0;
  background-color: transparent;
}

.c-dialog--modeless .c-dialog__inner {
  background-color: #f0f0f0;
}

/* utilities */
.u-p {
  margin-top: 2.4rem;
}

.u-w100 {
  width: 100%;
}

.u-flex {
  display: flex;
}

.u-flex-main-between {
  justify-content: space-between;
}

.u-color-pink {
  color: #e91e63;
}
