@import url("https://fonts.googleapis.com/css2?family=Barriecito&family=Inconsolata:wght@200..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");
html,
body {
  height: 100%;
  margin: 0;
}

.content {
  font-size: max(1.2vh, 16px);
}

body {
  height: 100%;
  background: linear-gradient(to bottom right, #444444, #009a5b);
}

button {
  font-family: inherit;
}

select {
  font-family: inherit;
}

main {
  color: #fff6d5;
  font-family: Raleway, sans-serif;
  text-align: center;
  justify-content: center;
  flex-direction: column;
  min-height: 100%;
  display: flex;
}

ul.no-bullets {
  list-style-type: none;
  /* Remove bullets */
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

ul.no-bullets li {
  list-style: none;
  float: left;
}

ul.result-effects {
  list-style-type: none;
  width: 100%;
  padding-left: 0;
}

ul.result-effects li {
  list-style: none;
  display: inline-block;
  border: 2px solid #444444;
  border-radius: 4px;
  padding: 0.25em 0.5em;
}

.ingredient-select label {
  padding: 0.25em 0.5em;
  margin: 0.25em 0.5em;
}
.ingredient-select select {
  padding: 0.5em;
  margin: 0.5em;
}

.product-select select {
  padding: 0.5em;
  margin: 0.5em;
}

.rank-select select {
  padding: 0.5em;
  margin: 0.5em;
}

.checkbox-button input[type=checkbox] {
  display: none;
}
.checkbox-button input[type=checkbox]:checked + label {
  background-color: #759FBC;
  color: #fff6d5;
  border-color: #759FBC;
}
.checkbox-button button {
  transition: all 0.2s ease;
}
.checkbox-button button {
  padding: 0.25em 0.5em;
  margin: 0.25em 0.5em;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: inherit;
}
.checkbox-button button[data-status=Null] {
  background-color: #dce7ee;
}
.checkbox-button button[data-status=Null]:hover {
  background-color: #cbdbe6;
}
.checkbox-button button[data-status=Desired] {
  background-color: #759FBC;
  color: #fff6d5;
  border-color: #759FBC;
}
.checkbox-button button[data-status=Desired]:hover {
  background-color: #cbdbe6;
  color: #444444;
}
.checkbox-button button[data-status=Unwanted] {
  background-color: #bc7589;
  color: #fff6d5;
  border-color: #bc7589;
}
.checkbox-button button[data-status=Unwanted]:hover {
  background-color: #e6cbd2;
  color: #444444;
}
.checkbox-button label {
  display: inline-block;
  padding: 0.25em 0.5em;
  margin: 0.25em 0.5em;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #dce7ee;
  color: #444444;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}
.checkbox-button label:hover {
  background-color: white;
}

#effectset {
  width: 70%;
  margin: auto;
  border: none;
  align-content: center;
}

.result-container {
  margin: auto;
  border: none;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.max-effect input {
  margin-bottom: 1em;
}

.notice {
  font-size: small;
}

main .content {
  min-height: calc(100vh - max(4vh, 80px) - 6vw - 50px - 3.5 * max(1.25vh, 16px));
}

.footer {
  height: 50px;
  max-height: 50px;
  text-align: center;
}

.nav-container {
  align-items: center;
  justify-content: center;
  display: flex;
  max-height: max(4vh, 80px);
  max-width: 100%;
}

.nav-buttons {
  width: calc(min(80%, 1000px) + 2em);
  font-family: Raleway, sans-serif;
  font-weight: 900;
  margin-bottom: max(1.25vh, 16px);
  display: flex;
}

h1 {
  font-family: Barriecito, fantasy;
}

.header {
  max-height: 6vw;
  height: 6vw;
  margin-top: max(1.25vh, 16px);
  margin-bottom: calc(1.5 * max(1.25vh, 16px));
  display: block;
}

.header h1 {
  margin-top: 0;
  margin-bottom: 0;
  font-family: Barriecito, fantasy;
  align-items: center;
  font-size: 6vw;
}

.help {
  display: block;
  width: min(80%, 1000px);
  margin: auto;
  text-align: left;
  border: 2px solid rgb(8, 63, 9);
  border-radius: 10px;
  padding: 1em;
}

.help dl dt {
  font-weight: bold;
  text-decoration: underline;
}
.help dl dd {
  margin: 0;
  padding: 0 0 0.5em 0;
}

.clarity--warning-line {
  display: inline-block;
  width: 36px;
  height: 36px;
  --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath fill='%23000' d='M18 21.32a1.3 1.3 0 0 0 1.3-1.3V14a1.3 1.3 0 1 0-2.6 0v6a1.3 1.3 0 0 0 1.3 1.32' class='clr-i-outline clr-i-outline-path-1'/%3E%3Ccircle cx='17.95' cy='24.27' r='1.5' fill='%23000' class='clr-i-outline clr-i-outline-path-2'/%3E%3Cpath fill='%23000' d='M30.33 25.54L20.59 7.6a3 3 0 0 0-5.27 0L5.57 25.54A3 3 0 0 0 8.21 30h19.48a3 3 0 0 0 2.64-4.43Zm-1.78 1.94a1 1 0 0 1-.86.49H8.21a1 1 0 0 1-.88-1.48l9.74-17.94a1 1 0 0 1 1.76 0l9.74 17.94a1 1 0 0 1-.02.99' class='clr-i-outline clr-i-outline-path-3'/%3E%3Cpath fill='none' d='M0 0h36v36H0z'/%3E%3C/svg%3E");
  background-color: currentColor;
  -webkit-mask-image: var(--svg);
  mask-image: var(--svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.admonition {
  padding: 0.5rem 1rem;
  box-sizing: border-box;
  border: 0.25em solid transparent;
}
.admonition > :first-child {
  margin-top: 0;
}
.admonition.alert {
  border-left-color: #ff4d4d;
}
.admonition.alert .title {
  color: #ff4d4d;
}
.admonition.alert .title:after {
  margin-left: 1rem;
  content: "Warning";
}
.admonition .title {
  display: flex;
  align-items: center;
  line-height: 1;
  margin-bottom: 0;
  margin-top: 0;
}
.admonition .adm-content {
  flex-grow: 1;
  margin-bottom: 0;
  margin-top: 0;
}

.max-effect input {
  padding: 0.5em 1em;
  margin: 1em 1em;
  border-radius: 5px;
}

.go-button {
  padding: 0.25em 0.5em;
  margin: 0.25em 0.5em;
  font-size: 2rem;
  background-color: #B07BAC;
  border: 2px solid #ccc;
  border-radius: 6px;
}

pre.result {
  font-size: 1.5rem;
}

pre {
  font-family: Inconsolata, monospace;
}

.tab-button {
  padding: 10px 20px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-size: calc(min(100vw, 1000px) / 4 * 0.15);
  font-weight: 700;
  color: #e9dbe8;
  border: 2px solid transparent;
  border-radius: 5px 5px 0 0;
  border-bottom: 2px solid #c39bc0;
  margin-bottom: -2px;
  transition: all 0.3s ease;
  position: relative;
  width: 25%;
  height: max(4vh, 80px);
}

.tab-button:hover:not(.active) {
  background-color: #c39bc0;
  color: #444444;
}

.tab-button.active {
  color: #444444;
  border-radius: 5px 5px 0 0;
  background-color: #B07BAC;
}

.tab-button-long {
  font-size: calc(min(100vw, 1000px) / 4 * 0.12);
}

.content select {
  font-size: inherit;
}

.content input {
  font-size: inherit;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #FFF;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
