:root {
  --night-deepest: #05070d;
  --night-deep: #0a1019;
  --night-mid: #12212a;
  --night-teal: #1d3a3a;
  --moonlit-teal: #284b42;
  --corn-gold: #f5c542;
  --corn-gold-light: #f8d572;
  --on-gold: #0b1f14;
  --leaf-green: #b6e36b;
  --sage: #a9c79b;
  --cream: #eaf0dc;
  --sage-light: #cfe0b6;
  --muted-green: #7fa274;
}

body.puzzlebang-root {
  background-color: var(--night-deepest);
  color: var(--cream);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  box-sizing: border-box;
}

main h1, main h2 {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}
main .MuiCard-root h2 {
  margin-top: 0 !important;
}

a {
  color: var(--corn-gold);
  text-decoration: none;
}
a:hover {
  color: var(--corn-gold-light);
}

a.no-link-style {
  color: inherit;
  text-decoration: none;
}
a.no-link-style:hover {
  text-decoration: none;
}

.main-header {
  font-family: "Kanit", sans-serif;
  padding: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.main-header .header-skyline {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 46%, #000 85%);
  mask-image: linear-gradient(to right, transparent 46%, #000 85%);
}
.main-header .logo {
  align-items: center;
  display: flex;
  flex: 0 0 130px;
  justify-content: center;
  margin-right: 20px;
  position: relative;
}
.main-header .logo .logo-link {
  width: 90%;
  height: 90%;
}
.main-header .title-wrapper {
  flex: 2;
}
.main-header .title {
  margin-top: 8px;
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 8px;
}
.main-header .subtitle {
  font-weight: 400;
  margin: 0;
}

.main-content {
  flex: 1;
}

.main-footer {
  font-family: "Kanit", sans-serif;
  align-items: center;
  background-color: var(--night-deepest);
  background-image: url("/images/footer-corn.svg");
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: auto 100%;
  box-sizing: border-box;
  display: flex;
  height: 90px;
  justify-content: center;
  margin-top: 30px;
  padding: 8px;
  width: 100%;
}
.main-footer a {
  color: var(--muted-green);
}
.main-footer a:hover {
  color: var(--sage);
}

@media all and (max-width: 500px) {
  .main-header {
    flex-wrap: wrap;
  }
  .main-header .logo {
    max-height: 50px;
    order: 1;
    margin-bottom: 8px;
  }
  .main-header .logo-img {
    max-height: 50px;
  }
  .main-header .title-wrapper {
    min-width: 100%;
    order: 3;
  }
  .main-header .title-wrapper .title {
    font-size: 1.2em;
    margin: 0 auto 8px;
  }
  .main-header .title-wrapper .subtitle {
    font-size: 1.1em;
    margin: 0 auto 8px;
  }
}
.discord_login {
  display: flex;
  align-items: center;
  background-color: #5865F2;
  color: white;
  font-size: 0.8em;
  padding: 5px 10px;
  border-radius: 3px;
}

.discord_login:hover {
  text-decoration: none;
  color: white;
}

.discord_login img {
  height: 1em;
  margin-right: 0.5em;
}

.card {
  background-color: var(--night-mid);
  color: var(--cream);
  box-shadow: 0 0 0 8px var(--night-mid), 0 0 0 10px var(--cream), inset 0 0 0 8px var(--night-mid), inset 0 0 0 10px var(--cream);
  border: 2px dashed var(--cream);
  border-radius: 60px;
  padding: 60px;
  margin: 20px;
}

ul {
  margin: 0;
  padding-left: 1rem;
  position: relative;
}

hr {
  border: 0;
  border-top: 2px dashed var(--cream) !important;
  position: relative;
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  width: 100%;
}

.faq {
  padding: 0 1.5rem;
}
.faq h1 {
  margin-top: 2rem;
}
.faq h3 {
  margin: 0;
  position: relative;
}
.faq h3:first-of-type::before {
  border-top: none;
}
.faq h3::before {
  content: "Q: ";
  display: block;
  font-weight: 700;
  left: -1.5rem;
  position: absolute;
  width: 100%;
}
.faq p {
  position: relative;
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.faq h3 + p::before,
.faq h3 + ul::before {
  content: "A: ";
  font-weight: 700;
  position: absolute;
  left: -1.5rem;
}
.faq hr {
  left: -1.5rem;
  width: calc(100% + 1.5rem);
}

/* MailChimp */
#mc_embed_signup {
  padding: 0;
  padding-left: 2rem;
  padding-bottom: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}
#mc_embed_signup .refferal_badge {
  filter: invert(85%);
  height: 40px;
  padding: 2px 0px;
  width: 130px;
}
#mc_embed_signup .honeypot {
  position: absolute;
  left: -5000px;
}
#mc_embed_signup #mce-responses .response {
  display: none;
}
#mc_embed_signup .helper_text {
  background-color: transparent !important;
  color: var(--text-color) !important;
}
#mc_embed_signup .clear.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

dl {
  margin: 0;
  padding: 0;
}
dl dt {
  font-weight: 700;
}
dl dd {
  margin: 0;
  margin-bottom: 1rem;
}
dl:last-of-type dd {
  margin-bottom: 0;
}

#puzzle-root h3 {
  margin-top: 0;
  margin-bottom: 0;
}

.fish {
  width: 200px;
  height: 100px;
  background: red;
  border-radius: 100px/50px;
  position: absolute;
  top: 100px;
  left: 100px;
  animation: 10s swim infinite linear;
}

.fish .tail {
  position: absolute;
  right: -20px;
  width: 0;
  height: 0;
  border-top: 50px solid transparent;
  border-right: 100px solid red;
  border-bottom: 50px solid transparent;
}

@keyframes swim {
  0%, 100% {
    top: 0px;
    left: 0px;
    transform: rotateY(180deg);
  }
  25% {
    top: 100%;
    left: 100%;
    transform: rotateY(180deg);
  }
  50% {
    top: 100%;
    left: 100%;
    transform: rotateY(0deg);
  }
  75% {
    top: 0px;
    left: 0px;
    transform: rotateY(0deg);
  }
}
