:root {
  --color-gray: #fefefe;
  --color-purple: #2e153d;
  --color-lightpurple: #442458;
  --color-light: #e5e7eb;
  --color-link: #e93a6d;
  --gradient-text: linear-gradient(300deg, #EF3355 30%, #C766F4 73%);
  --gradient-btn: linear-gradient(300deg, #EF3355, #C766F4);
}

* {
  color: white;
}

html,
body {
  font-family: 'Karla', sans-serif;
  background-color: var(--color-gray);
}

header {
  background-color: var(--color-purple);
  height: 8vh;
  min-height: 5em;
}

main {
  margin: 6em 0;
  min-height: calc(100vh - 2 * max(8vh, 5em) - 12em);
}

#mobile-overlay {
  position: fixed;
  top: 0;
  left:0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
}

#mobile-overlay section h2 {
  text-align: center;
  font-size: 26px;
  line-height: 40px;
}

@media only screen and (max-width: 768px) {
  #mobile-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

#subscription,
#thanks {
  max-width: 960px;
}

#subscription {
  background-color: var(--color-purple);
}

#subscription h2,
#thanks h2,
#thanks h3 {
  font-weight: 700;
  background: var(--gradient-text);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
}

#subscription a {
  color: var(--color-link);
}

#thanks a.btn,
#subscription button {
  padding: 0.75rem 3rem;
  cursor: pointer;
  border: 0;
  border-radius: 9999px;
  text-transform: uppercase;
  color: rgb(255, 255, 255);
  font-weight: 700;
  background: var(--gradient-btn);
  text-decoration: none;
}

.colors h4 {
  margin-bottom: 50px;
}

.colors div {
  display: inline-block;
  margin: 0 6px 6px;
}

.colors div label {
  min-width: 120px;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
}

.colors div.red label {
  background-color: red;
}

.colors div.green label {
  background-color: green;
}

.colors div.blue label {
  background-color: blue;
}

.colors div.phlox label {
  background-color: #DF00FF;
}

.colors div.other label {
  background-color: grey;
}

.back-to-home a,
.back-to-home a:hover {
  color: black;
  text-decoration: none;
}

.back-to-home img {
  transition: all .25s ease;
}

.back-to-home:hover img {
  transform: translate(-8px);
  transform: all .25s ease;
}

#loading,
#accepted,
#failed {
  position: fixed;
  display: flex;
  align-items: center;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  overflow: hidden;
  transition: all .3s;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.75);
}

#loading img,
#accepted img,
#failed img {
  margin: 0 auto;
  width: 10vh;
  height: 10vh;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

@keyframes reveal {
  0% {
    width: 30vh;
    height: 30vh;
    opacity: 0;
  }

  100% {
    width: 10vh;
    height: 10vh;
    opacity: 1;
  }
}

.reveal {
  animation: reveal .6s;
}

.spinner {
  animation: spinner 1s infinite;
  animation-timing-function: steps(12, end);
}

footer {
  background-color: var(--color-lightpurple);
  height: 8vh;
  min-height: 5em;
}

footer div {
  color: var(--color-light);
}

footer a,
footer a:hover,
footer span {
  color: var(--footer-color-light);
  margin: 0 .25em;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
