@charset "UTF-8";

.shard {
  display: inline-block;
  position: relative;
  will-change: transform, opacity;
}

@keyframes fadeInFromNone {
    0% {
        display: none;
        opacity: 0;
        scale: 0.2;
    }

    1% {
        display: block;
        opacity: 0;
    }
    70% {
        scale: .95;
    }

    100% {
        display: block;
        opacity: 1;
        scale: 1;
    }
}


@keyframes explode {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) rotate(var(--r)) scale(0); opacity: 0; }
}


#exclamation {
  display: none;
  animation: fadeInFromNone 0.2s linear;
  position: absolute;
  z-index: 1;
  margin-top: -3rem;
  margin-left: -4rem;
  text-shadow: 0px 0px 6px #000000;
  top: 4rem;
  left: 4rem;
  text-wrap: nowrap;
  font-size: 10vw;
}

#exclamation.show {
  display: block;
  animation: fadeInFromNone 0.5s ease-out;
}

button.wrong::before {
  content: "X";
  color: #860202;
  position: absolute;
  top: 0;
  font-size: 2rem;
  line-height: 1.6;
  right: 0.5rem;
}

button.wrong {
  background-color: #8d06063b;
  border-color: rgb(113, 4, 4);
  animation: wrongColorChange 600ms;
}

@keyframes wrongColorChange {
  40% {
    box-shadow: 0px 0px 15px 0px rgba(164, 0, 0, 0.6)
  }

  100% {
    background-color: #8d06063b;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

button.correct::before {
  content: "✓";
  color: #028627;
  position: absolute;
  top: 0;
  font-size: 2rem;
  line-height: 1.6;
  right: 0.5rem;
}

button.correct {
  background-color: #02862747;
  border-color: #028627;
  animation: correctColorChange 600ms;
}

@keyframes correctColorChange {
  40% {
    box-shadow: 0px 0px 15px 0px #028627
  }

  100% {
    background-color: #02862747;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 5vw;
  aspect-ratio: 1;
  --c: no-repeat linear-gradient(#ffffffaf 0 0);
  background:
    var(--c) 0% 50%,
    var(--c) 50% 50%,
    var(--c) 100% 50%;
  background-size: 20% 100%;
  animation: l1 1s infinite linear;
}

@keyframes l1 {
  0% {
    background-size: 20% 100%, 20% 100%, 20% 100%
  }

  33% {
    background-size: 20% 10%, 20% 100%, 20% 100%
  }

  50% {
    background-size: 20% 100%, 20% 10%, 20% 100%
  }

  66% {
    background-size: 20% 100%, 20% 100%, 20% 10%
  }

  100% {
    background-size: 20% 100%, 20% 100%, 20% 100%
  }
}

.card .loader {
  display: none;
}

.card.loading .loader {
  display: inline-block;
}

#loading {
  display: inline-block;
  width: 4rem;
  display: flex;
  padding: 1rem 0;
}

#answerContainer button {
  border-radius: 0.5rem;
  position: relative;
  cursor: pointer;
}

#slide-out {
  display: none;
}

.tap-target {
  display: none;
}

html,
body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: normal;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  user-select: none;
}

body {
  background-color: #c9d2e4;
  margin: 0;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a.btn {
  border: 1px solid #333;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  color: #333;
  display: inline-block;
  border-radius: .2rem;
  background-color: #22345afc;
  color: #fff;
}

a.btn:hover {
  background-color: #d8e3ff;
  color: #22345a;
}

.card {
	border: 1px solid #ccc;
	border-radius: .5rem;
	background-color: #fff;
	box-shadow: 5px 5px 4px #0003;
	flex-direction: column;
	display: flex;
	max-width: 40rem;
	width: 90%;
	flex-grow: 1;
	margin: 0 1rem;
}

.card.hint h3:first-of-type {
  margin-top: 0;
}

.card.hint h3 {
	color: #22345afc;
	margin-bottom: 0.3rem;
	font-size: 1rem;
	background-color: #ededed;
	padding: 0.4rem;
	margin-left: -1rem;
	margin-right: -1rem;
	text-align: center;
}

.card-container {
  height: 100vh;
  width: 100vw;
  top: 0;
  left: 0;
  position: absolute;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.card-title h2 {
  color: #fff;
  font-weight: 600;
  padding: 1rem;
  font-size: 5vw;
  border-bottom: 1px solid #22345a;
  margin: 0;
}

#latinRoot {
  padding: 1rem;
  width: 90%;
}

.hint-container {
  position: absolute;
  top: 100vh;
  width: 100%;
  left: 0;
}

.card.hint {
  margin-left: auto;
  margin-right: auto;
}

#hint-marker:hover svg {
  opacity: 0.6;
}

#hint-marker:hover {
  scale: 1.2 !important;
  box-shadow: 0 0 10px 2px #22345afc !important;
}

#hint-marker svg {
  height: 1.5rem;
  width: 1.5rem;
  opacity: 0.4;
}

#hint-marker {
  position: fixed;
  bottom: 0.7rem;
  right: 0.7rem;
  background-color: #22345afc;
  border-radius: 50%;
  height: 2rem;
  width: 2rem;
  text-align: center;
  color: #ffffff6b;
  transition: opacity 500ms;

  display: flex;
  align-items: center;
  align-self: center;
  justify-content: center;

  animation-duration: 3s;
  animation-fill-mode: both;
  animation-name: flash;
  animation-iteration-count: 1;
}

@keyframes flash {

  0%,
  50%,
  100% {
    scale: 1;
    box-shadow: none;
  }

  25%,
  75% {
    scale: 1.2;
    box-shadow: 0 0 10px 2px #22345afc;
  }
}

#hint_card {
  margin-bottom: 3rem;
}

body.show-hint #hint-marker,
body.show-hint #hint_card,
body.show-hint #top-of-site-pixel-anchor {
  display: flex;
}

#hint-marker,
#hint_card,
#top-of-site-pixel-anchor {
  display: none;
}

#hint-marker.hidden {
  opacity: 0;
}

.hint-container::after {
  content: " ";
  line-height: 2;
}

#hint-marker::before {
  content: "Hint";
  color: #22345afc;
  position: absolute;
  display: inline-block;
  top: -0.1rem;
  width: 2.6em;
  text-align: center;
  margin-top: -1.2rem;
  font-size: 1rem;
  font-weight: 900;
}

.card-title {
  font-size: 2rem;
  background-color: #22345afc;
  display: flex;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  color: #fff;
  font-weight: bold;
  border-bottom: 1px solid #22345a;
}

.card-content {
  padding: 0 1rem 1rem;
  font-family: "Montserrat", sans-serif;
}

#answerContainer {
  min-height: 15rem;
}

button {
  display: block;
  width: 100%;
  padding: 1rem;
  margin: 1rem 0;
  text-align: left;
  font-size: 5vw;
  background-color: #e7e8ec;
}

@media screen and (min-width: 800px) {
  button {
     font-size: 14pt;
  }

  .card-title h2 {
    font-size: 2.5rem;
  }

  .loader {
    width: 45px;
  }
  #exclamation {
    font-size: 4rem;
  }

}


button:hover {
  cursor: pointer;
}

.card-action {
  background-color: #fff;
  padding: 1rem;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

#celebrations {
  height: 100%;
  width: 100%;
  position: absolute;
  display: none;
}

body.celbrate #celebrations {
  display: block;
}

.wrapper {
  height: 100%;
  position: fixed;
  left: 0;
  top: 0;
}

.wrapper .menu-btn {
  position: absolute;
  left: 20px;
  top: 10px;
  background: #4a4a4a;
  color: #fff;
  height: 45px;
  width: 45px;
  z-index: 9999;
  border: 1px solid #333;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

#btn:checked~.menu-btn {
  left: 247px;
}

.wrapper .menu-btn i {
  font-style: normal;
  position: absolute;
  font-size: 23px;
  transition: all 0.3s ease;
}

.wrapper .menu-btn i.fa-times {
  opacity: 0;
}

#btn:checked~.menu-btn i.fa-times {
  opacity: 1;
  transform: rotate(-180deg);
}

#btn:checked~.menu-btn i.fa-bars {
  opacity: 0;
  transform: rotate(180deg);
}

#sidebar {
  position: fixed;
  background: #404040;
  height: 100%;
  width: 270px;
  overflow: hidden;
  left: -270px;
  transition: all 0.3s ease;
}

#btn:checked~#sidebar {
  left: 0;
}

#sidebar .title img {
  height: 45px
}

#sidebar .title h1 {
  font-size: 18pt;
  margin: 0 0 0 10px;
}

#sidebar .title {
  background: #333;
  font-size: 25px;
  font-weight: 600;
  color: #f2f2f2;
  border-bottom: 1px solid #222;
  line-height: 1.3;
  text-align: left;
  padding: 0.5rem 20px 0.5rem 10px;
  display: flex;
  align-items: center;
}

#sidebar .list-items {
  position: relative;
  background: #404040;
  width: 100%;
  height: 100%;
  list-style: none;
  padding: 0;
}

#sidebar form {
  position: relative;
  height: 100%;
  width: 100%;
}

#sidebar .list-items li {
  padding: 0 1rem;
  line-height: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid #333;
  transition: all 0.3s ease;
  color: #f2f2f2;
}

#sidebar label {
  margin-left: 0.5rem;
  font-size: 1.2rem;
}

#sidebar .list-items li:hover {
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  box-shadow: 0 0px 10px 3px #222;
}

#sidebar .list-items li:first-child {
  border-top: none;
}

#sidebar .list-items li a {
  color: #f2f2f2;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  height: 100%;
  width: 100%;
  display: block;
}

#sidebar .list-items li a i {
  margin-right: 20px;
}

#sidebar .list-items .icons {
  width: 100%;
  text-align: center;
  position: absolute;
  bottom: 100px;
  line-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.celbrate #celebrations {
  display: block;
}


#sidebar .list-items .icons a {
  height: 100%;
  display: block;
  margin: 0 5px;
  font-size: 0.9rem;
  color: #f2f2f2;
  background: #4a4a4a;
  border-radius: 5px;
  border: 1px solid #383838;
  transition: all 0.3s ease;
  width: 100%;
  text-decoration: navajowhite;
}

#sidebar .list-items .icons a:hover {
  background: #404040;
}

.list-items .icons a:first-child {
  margin-left: 0px;
}

.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #202020;
  z-index: -1;
  width: 100%;
  text-align: center;
}

.content .header {
  font-size: 45px;
  font-weight: 700;
}

.content p {
  font-size: 40px;
  font-weight: 700;
}