/* src/styles.css */
:root {
  --text-highlight: #c2441d;
  --background-light: #fff1de;
  --background-dark: #fcdcb4a0;
  --max-content-width: 812px;
  --bear-dimension-desktop: 120px;
  --bear-dimension-mobile: 70px;
}
@font-face {
  font-family: Beario;
  src: url("./beario.ttf");
}
html {
  background: url("./img/bg-wavy.png"), var(--background-light);
  font-family:
    Avenir,
    Helvetica,
    Arial,
    sans-serif;
}
body {
  position: relative;
  margin: 0;
  padding: 0;
}
@media (max-width: 1050px) {
  footer {
    margin-top: 150px;
  }
}
@media (max-width: 950px) {
  footer {
    margin-top: 250px;
  }
}
@media (max-width: 800px) {
  footer {
    margin-top: 250px;
  }
}
.campaign {
  width: 340px;
}
@media (min-width: 450px) {
  .campaign {
    width: 382px;
  }
}
#bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}
#left,
#right {
  width: 230px;
  height: 300px;
  overflow: hidden;
}
#left {
  background: 0 100% url("./img/trees.png") no-repeat;
  background-size: 460px auto;
}
#right {
  background: 0 100% url("./img/trees.png") no-repeat;
  background-size: 460px auto;
  background-position-x: -230px;
}
@media (max-width: 450px) {
  #left {
    margin-left: -40px;
  }
  #right {
    margin-right: -40px;
  }
}
p {
  line-height: 1.6;
}
main {
  margin: 0 1rem;
}
main > header {
  margin: 6rem 0 4rem 0;
  padding: 0 3rem;
}
footer {
  padding: 0.25rem 3rem;
}
h1 {
  font-family: "Bahiana", serif;
  font-weight: 400;
  font-style: normal;
  font-size: 6rem;
  margin: 1rem 0 0 0;
  text-align: center;
}
h2 {
  text-align: center;
}
h1 .paw {
  font-family: "Beario";
  user-select: none;
}
h1 .br {
  display: inline;
}
[role=doc-subtitle] {
  font-size: 1.6rem;
  opacity: 0.5;
  text-align: center;
}
.red {
  color: #c2441d;
}
.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
}
main > section {
  padding: 0 3rem;
  margin-bottom: 2rem;
}
.panel {
  background-color: var(--background-dark);
  border-radius: 3rem;
}
.BearSelector {
  margin-bottom: 3rem;
}
.BearSelector ul {
  list-style-type: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.BearSelector ul li {
  display: block;
  height: max-content;
  position: relative;
  cursor: pointer;
  box-sizing: content-box;
}
.Bear .card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem 1rem 1rem;
  align-items: center;
  border-radius: 1rem;
  border: 3px solid transparent;
  background-color: rgb(255, 236, 211);
  backface-visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.Bear.selected .card {
  border: 3px solid black;
}
.Bear:hover .card.front {
  transform: rotateY(180deg);
}
.Bear:hover .card.back {
  visibility: visible;
  transform: rotateY(0deg);
  box-shadow: 0px 8px 8px 3px rgb(168 111 34 / 20%);
}
.Bear .card.back {
  display: flex;
  visibility: hidden;
  position: absolute;
  inset: 0;
  justify-content: center;
  align-items: center;
  background-color: white;
  transform: rotateY(-180deg);
}
.Bear .card .scientificName {
  display: none;
}
.Bear .commonName {
  display: flex;
  gap: 0.25rem;
}
.Bear .card.front .commonName {
  margin-top: 1rem;
}
.Bear .card.back .commonName {
  font-weight: bold;
}
.Bear .card .scientificName {
  font-size: 0.9em;
  font-style: italic;
}
.Bear .card.back .funFact {
  line-height: 1.3;
  font-size: 0.8em;
  text-align: center;
  color: #616161;
}
.Bear .card p {
  margin-bottom: 0;
}
.Bear img {
  max-width: var(--bear-dimension-desktop);
}
.Bear.locked .commonName::after {
  content: " ";
  display: inline-block;
  width: 18px;
  height: 18px;
  background: center center / contain url("./img/lock.svg") no-repeat;
}
.FitnessSelector {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
}
.FitnessSelector .fitnessImage {
  width: 200px;
  height: 200px;
  margin-bottom: 1rem;
}
.Calculator {
  padding: 3rem;
  margin-bottom: 3rem;
}
.Calculator h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
}
.ButtonGroup {
  display: flex;
  justify-content: center;
}
.ButtonGroup button,
select {
  display: block;
  padding: 0.5rem 1rem;
  min-width: 30%;
}
@keyframes pulsate {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 1;
  }
}
.crunching {
  color: var(--text-highlight);
  text-align: center;
  animation: pulsate 1s ease-out;
  animation-iteration-count: infinite;
}
#donate-button-container {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
}
details {
  border-top: 1px solid #ffd398;
  padding: 1rem 0.5rem;
}
details:last-of-type {
  border-bottom: 1px solid #ffd398;
}
details[open] {
  padding-bottom: 0;
}
details[open] summary {
  font-weight: bold;
}
summary::marker {
  color: #ffd398;
}
details p {
  padding-left: 1rem;
}
.Results {
  position: relative;
  padding: 2rem;
  min-height: 150px;
  border-radius: 2rem;
  background-color: rgba(255, 255, 255, .3);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  z-index: 0;
}
.Results::before {
  content: " ";
  display: block;
  position: absolute;
  inset: 1rem;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}
.Results.true::before {
  background: no-repeat center / contain url("./img/plausible.png");
}
.Results.false::before {
  background: no-repeat center / contain url("./img/claws.svg");
}
.Results .acknowledgment,
.Results .outcome {
  margin: 0;
  line-height: 1.2;
}
.Results .acknowledgment {
  text-transform: uppercase;
}
.Results .outcome {
  font-family: "Bahiana";
  font-size: 4rem;
  color: var(--text-highlight);
}
.Results button {
  display: flex;
  gap: 0.25rem;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  cursor: pointer;
}
.Results button:hover {
  background: rgba(255, 255, 255, 0.75);
}
.Results button img {
  width: 20px;
}
.cr {
  font-size: 0.8em;
  margin: 0;
  text-align: center;
}
.Share {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.Share .icon {
  display: block;
  height: 36px;
  width: 36px;
  color: transparent;
  user-select: none;
}
.Share .icon.b {
  background: 36px 36px / cover url("./img/bs.svg");
}
.Share .icon.f {
  background: 36px 36px / cover url("./img/fb.svg");
}
.Share .icon.p {
  background: 36px 36px / cover url("./img/p.svg");
}
.Share .icon.x {
  background: 36px 36px / cover url("./img/x.svg");
}
@media (max-width: 800px) {
  h1,
  [role=doc-subtitle] {
    text-align: left;
  }
  h1 .br {
    display: block;
  }
}
@media (max-width: 750px) {
  .BearSelector ul {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  main > header {
    margin: 3rem 0;
    padding: 0 3rem;
  }
  h1 {
    font-size: 5rem;
  }
  [role=doc-subtitle] {
    font-size: 1.2rem;
  }
  section {
    margin-bottom: 2rem;
  }
}
@media (max-width: 550px) {
  .BearSelector ul {
    grid-template-columns: 1fr;
  }
  .Bear .card {
    border-radius: var(--bear-dimension-mobile);
  }
  .Bear .card.front {
    flex-direction: row;
    gap: 1rem;
    padding: 0.5rem;
  }
  .Bear img {
    max-width: var(--bear-dimension-mobile);
  }
  .Bear .card.front .commonName {
    margin-top: 0;
    font-weight: bold;
  }
  .Bear .card.front .scientificName {
    display: initial;
  }
  .Bear .card.back {
    padding: 1rem;
  }
  .Bear .card.back .scientificName,
  .Bear .card.back .commonName {
    display: none;
  }
  .Bear .card.back .funFact {
    margin: 0;
  }
  .ButtonGroup button,
  select {
    width: 100%;
  }
  .Calculator {
    padding: 2rem;
  }
  main > section {
    padding: 0 2rem;
  }
  .cr {
    font-size: 0.7em;
  }
}
