:root {
  --primary-text-color: #a3a1a1;
  --primary-background-color: #0a0a0a;
  --primary-border-color: #3b3933;
}

html {
  font-size: 62.5%;
  color: var(--primary-text-color);
}

body,
input,
button {
  font-size: 2.4rem;
  font-family: "EB Garamond", serif;
}

body {
  margin: 0;
  background-color: var(--primary-background-color);
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none;
}

h4 {
  margin: 1rem 0;
  text-align: center;
}

#root {
  position: relative;
  max-width: 50rem;
  padding-top: 10rem;
  margin: 0 auto;
  background-size: 200px;
  background-position: 50% calc(50% + 50px);
  background-repeat: no-repeat;
  min-height: 32rem;
}

#active-selection {
  position: absolute;
  max-width: 50rem;
  width: 100%;
  background-color: var(--primary-background-color);
  padding-top: 0.6rem;
  cursor: pointer;
  z-index: 1;
}

input {
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 1) 0%,
    rgba(10, 10, 10, 1) 1%,
    rgba(25, 21, 18, 1) 10%,
    rgba(25, 21, 18, 1) 90%,
    rgba(10, 10, 10, 1) 99%,
    rgba(10, 10, 10, 1) 100%
  );
  color: var(--primary-text-color);
  border: none;
  outline: none;
  width: 100%;
  margin-bottom: 0.6rem;
  cursor: pointer;
  display: block;
  text-align: center;
}

#enable-conjunctions-label {
  cursor: pointer;
}

#enable-conjunctions-wrapper,
#no-maidens {
  text-align: center;
  margin-bottom: 0.6rem;
}

#final-string {
  text-align: center;
  margin-bottom: 3.2rem;
}

#enable-conjunctions {
  display: inline;
  width: 2rem;
  height: 2rem;
  margin: 0 0 0 0.6rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  -o-appearance: none;
  appearance: none;
  border: 1px solid var(--primary-text-color);
  color: var(--primary-text-color);
  position: relative;
}

#enable-conjunctions:checked:after {
  font-family: -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  content: "\2713";
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  text-align: center;
  color: var(--primary-text-color);
  margin-left: 3px;
  margin-top: -1px;
  font-size: 1.6rem;
}

#enable-conjunctions:focus {
  outline: var(--primary-text-color) auto 1px;
}

#enable-conjunctions-wrapper {
  margin-top: 3.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

#conjunctions {
  margin-bottom: 3.2rem;
}

input:focus,
input:focus-visible {
  cursor: initial;
}

input:focus,
input:hover,
input:focus-visible,
button:focus,
button:focus-visible,
button:hover {
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 1) 0%,
    rgba(10, 10, 10, 1) 1%,
    rgba(51, 49, 37, 1) 10%,
    rgba(51, 49, 37, 1) 90%,
    rgba(10, 10, 10, 1) 99%,
    rgba(10, 10, 10, 1) 100%
  );
}

button {
  display: block;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 1) 0%,
    rgba(10, 10, 10, 1) 1%,
    rgba(25, 21, 18, 1) 10%,
    rgba(25, 21, 18, 1) 90%,
    rgba(10, 10, 10, 1) 99%,
    rgba(10, 10, 10, 1) 100%
  );
  color: var(--primary-text-color);
  border: none;
  outline: none;
  margin-bottom: 0.6rem;
  cursor: pointer;
}

#finish {
  margin-top: 2rem;
}

.phantom {
  opacity: 0;
  transition: opacity 1s ease;
}

.summon {
  opacity: 1;
}

#may-denless {
  text-decoration: none;
  color: var(--primary-text-color);
  display: block;
  font-size: 2rem;
  margin-bottom: 2rem;
}

#may-denless:hover {
  text-decoration: underline;
}

#message-icon {
  width: 10rem;
  height: 10rem;
  background-size: 100%;
  margin-left: 10%;
}

#message-wrapper {
  display: flex;
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 1) 0%,
    rgba(10, 10, 10, 1) 1%,
    rgba(25, 21, 18, 1) 10%,
    rgba(25, 21, 18, 1) 90%,
    rgba(10, 10, 10, 1) 99%,
    rgba(10, 10, 10, 1) 100%
  );
}

#message-content {
  font-size: 2rem;
  margin-left: 3rem;
  margin-right: 10%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#message-text {
  flex: 1;
  margin-top: 2rem;
}

#message-appraisals {
  display: flex;
  justify-content: space-between;
}

.borderino {
  position: relative;
  padding: 1.2rem 0;
}

.borderino:after,
.borderino:before {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 1) 0%,
    rgba(10, 10, 10, 1) 1%,
    rgba(59, 57, 51, 1) 5%,
    rgba(59, 57, 51, 1) 95%,
    rgba(10, 10, 10, 1) 99%,
    rgba(10, 10, 10, 1) 100%
  );
}

.borderino:before {
  top: 0;
}

.borderino:after {
  bottom: 0;
}

#action-wrapper {
  display: flex;
  justify-content: center;
}

.action {
  background: none;
  width: auto;
  display: inline-block;
}

@keyframes jarmove {
  from {
    bottom: 100px;
  }
  to {
    bottom: 1100px;
  }
}

#jar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 50rem;
  max-width: 50rem;
  margin: 0 auto;
  animation: jarmove 250s linear;
}

#inner-jar {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

@keyframes gigajar {
  0% {
    top: 0;
    left: 0;
  }

  16.6666666667% {
    top: 40px;
    left: 40px;
  }

  33.3333333334% {
    top: 0;
    bottom: 40px;
    left: 0;
    right: 40px;
  }

  50% {
    right: 0;
    bottom: 0;
    left: 40px;
  }

  66.6666666668% {
    bottom: 40px;
    left: 0;
  }

  83.3333333335% {
    left: 40px;
    bottom: 0;
    top: 40px;
  }

  100% {
    left: 0;
    top: 0;
    bottom: 0;
  }
}

#jar img {
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  margin-left: -10%;
  object-fit: cover;
  object-position: center center;
  animation: gigajar 30s linear infinite;
}

#giga-jarnished.its-boss-time {
  transform: translateX(-50%) translateY(0%);
}

