/* Gallery styles */

#gallery-container {
  position: relative;
  padding: 64px;
  background-color: var(--transparent-white-color);
  border: 1px solid var(--text-color);
  border-radius: 16px 0 16px 16px;

  @media screen and (max-width: 767px) {
    border-top-right-radius: 16px;
    padding: 16px;
  }
}

.page-title-container {
  position: relative;
  display: flex;
  width: 100%;
}

.page-title-container > img {
  @media screen and (min-width: 933px) {
    position: absolute;
    top: -110px;
  }

  @media screen and (min-width: 768px) and (max-width: 932px) {
    position: absolute;
    top: -100px;
    width: 55%;
  }

  @media screen and (max-width: 767px) {
    width: 70%;
  }
}

#gallery-container > #gallery {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}

/* Evolution chart */

:root {
  --male-color: #8CCFFF;
  --female-color: #FF567E;
  --neutral-color: #EE48FF;
}

#base-evolution-chart {
  position: relative;

  @media screen and (max-width: 767px) {
    display: none;
  }
}

#base-evolution-chart > img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

#base-evolution-chart > button {
  position: absolute;
  width: 4%;
  aspect-ratio: 1;
  border: none;
  background-color: transparent;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: end;
  border-radius: 8px;
}

#base-evolution-chart > button > .tooltip {
  display: none;
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  align-items: center;
}

#base-evolution-chart > button.male > .tooltip {
  left: -225px;
  justify-content: start;
}

#base-evolution-chart > button.female > .tooltip {
  left: 225px;
  justify-content: end;
}

#base-evolution-chart > button.neutral > .tooltip {
  left: 225px;
  justify-content: end;
}

#base-evolution-chart > button > .tooltip > div {
  position: relative;
  display: flex;
  width: fit-content;
  justify-content: center;
  align-items: center;
}

#base-evolution-chart > button.female > .tooltip > div {
  flex-direction: row-reverse;
}

#base-evolution-chart > button.neutral > .tooltip > div {
  flex-direction: row-reverse;
}

#base-evolution-chart > button > .tooltip .tooltip-arrow {
  width: 0;
  height: 0;
  border: 15px solid;
}

#base-evolution-chart > button.male > .tooltip .tooltip-arrow {
  border-color: transparent transparent transparent var(--male-color);
  border-right: none;
}

#base-evolution-chart > button.female > .tooltip .tooltip-arrow {
  border-color: transparent var(--female-color) transparent transparent;
  border-left: none;
}

#base-evolution-chart > button.neutral > .tooltip .tooltip-arrow {
  border-color: transparent var(--neutral-color) transparent transparent;
  border-left: none;
}

#base-evolution-chart > button > .tooltip .tooltip-content {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  background-color: white;
  width: 200px;
  border-radius: 16px;
}

#base-evolution-chart > button.male > .tooltip .tooltip-content {
  border: 2px solid var(--male-color);
}

#base-evolution-chart > button.female > .tooltip .tooltip-content {
  border: 2px solid var(--female-color);
}

#base-evolution-chart > button.neutral > .tooltip .tooltip-content {
  border: 2px solid var(--neutral-color);
}

#base-evolution-chart > button > .tooltip ul {
  margin: 8px;
  padding: 0;
  list-style-position: inside;
  text-align: left;
}

#base-evolution-chart > button > .tooltip p {
  margin: 8px 0 0 0;
  font-size: 0.8rem;

  @media screen and (min-width: 1400px) {
    font-size: 0.9rem;
  }
}

#base-evolution-chart > button > .tooltip li {
  text-indent: 0;
  margin: 2px;
  font-size: 0.8rem;

  @media screen and (min-width: 1400px) {
    font-size: 0.9rem;
  }
}

#base-evolution-chart > button > .tooltip b {
  color: var(--secondary-color);
  text-transform: capitalize;
}

#base-evolution-chart > button:hover > .tooltip {
  display: flex;
}

#base-evolution-chart > .male:hover {
  box-shadow: 0 0 4px var(--male-color);
}

#base-evolution-chart > .female:hover {
  box-shadow: 0 0 4px var(--female-color);
}

#base-evolution-chart > .neutral:hover {
  box-shadow: 0 0 4px var(--neutral-color);
}

#base-evolution-chart > #yooyutchi-btn {
  top: 45.5%;
  left: 6.5%;
}

#base-evolution-chart > #niinitchi-btn {
  top: 45.5%;
  left: 11%;
}

#base-evolution-chart > #welcotchi-btn {
  top: 34.5%;
  left: 23%;
}

#base-evolution-chart > #lionetchi-btn {
  top: 34.5%;
  left: 28.5%;
}

#base-evolution-chart > #mitsumarutchi-btn {
  top: 59%;
  left: 23.2%;
}

#base-evolution-chart > #otamatchi-btn {
  top: 59%;
  left: 29%;
}

#base-evolution-chart > #kuriritchi-btn {
  top: 21%;
  left: 40.4%;
}

#base-evolution-chart > #labilatchi-btn {
  top: 21%;
  left: 46.2%;
}

#base-evolution-chart > #gunchitchi-btn {
  top: 45.5%;
  left: 40.5%;
}

#base-evolution-chart > #teftetchi-btn {
  top: 45.5%;
  left: 46.2%;
}

#base-evolution-chart > #curltchi-btn {
  top: 72.5%;
  left: 40.5%;
}

#base-evolution-chart > #tustustchi-btn {
  top: 72.5%;
  left: 46.5%;
}

#base-evolution-chart > #mametchi-btn {
  top: 3.5%;
  left: 58%;
}

#base-evolution-chart > #neliatchi-btn {
  top: 3.5%;
  left: 64%;
}

#base-evolution-chart > #weeptchi-btn {
  top: 14%;
  left: 58.6%;
}

#base-evolution-chart > #milktchi-btn {
  top: 14%;
  left: 64.4%;
}

#base-evolution-chart > #shimagurutchi-btn {
  top: 24%;
  left: 58%;
}

#base-evolution-chart > #momotchi-btn {
  top: 24%;
  left: 64.2%;
}

#base-evolution-chart > #kuchipatchi-btn {
  top: 35%;
  left: 58.2%;
}

#base-evolution-chart > #woopatchi-btn {
  top: 35%;
  left: 64.4%;
}

#base-evolution-chart > #shykutchi-btn {
  top: 45%;
  left: 58.2%;
}

#base-evolution-chart > #memetchi-btn {
  top: 45%;
  left: 63.8%;
}

#base-evolution-chart > #bigsmile-btn {
  top: 55%;
  left: 58.2%;
}

#base-evolution-chart > #picochutchi-btn {
  top: 55%;
  left: 64.2%;
}

#base-evolution-chart > #kikitchi-btn {
  top: 65.5%;
  left: 58.4%;
}

#base-evolution-chart > #mimitchi-btn {
  top: 65.5%;
  left: 64.2%;
}

#base-evolution-chart > #unimarutchi-btn {
  top: 75.5%;
  left: 61.5%;
}

#base-evolution-chart > #gozarutchi-btn {
  top: 86.2%;
  left: 58%;
}

#base-evolution-chart > #sebiretchi-btn {
  top: 86.2%;
  left: 64.2%;
}

#base-evolution-chart > #hypertchi-btn {
  top: 24.5%;
  left: 79.5%;
}

#base-evolution-chart > #bubbletchi-btn {
  top: 24.5%;
  left: 85.7%;
}

#base-evolution-chart > #shimashimatchi-btn {
  top: 65.5%;
  left: 79.5%;
}

#base-evolution-chart > #yattatchi-btn {
  top: 65.5%;
  left: 86%;
}

#base-evolution-chart > #view-all {
  position: absolute;
  top: 2%;
  left: 2%;
  background-color: white;
  border: 2px solid var(--secondary-color);
  border-radius: 16px;
  width: fit-content;
  height: fit-content;
  aspect-ratio: 0;
  padding: 8px 16px;
  color: var(--secondary-color)
}

#base-evolution-chart > #view-all:hover {
  box-shadow: 0 0 8px var(--secondary-color);
}

#tamas {
  width: 100%;
  display: flex;
  flex-direction: column;  
  gap: 32px;
  justify-content: center;
  align-items: center;
}

.section {
  position: relative;
  border: 1px solid var(--text-color);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.section > .entry-title {
  background-color: #AF423120;
  border-bottom: 1px solid var(--text-color);
  padding: 8px 0 8px 16px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section > .entry-content {
  background-image:  linear-gradient(#FBA25040 1px, transparent 1px), linear-gradient(to right, #FBA25040 1px, #FFFFFF40 1px);
  background-size: 20px 20px;
  background-color: var(--transparent-white-color);
  border-radius: 0 0 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 32px;
}

.section > .entry-content > .tama-data {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin-bottom: 16px;

  @media screen and (min-width: 1400px) {
    width: 60%;
  }

  @media screen and (max-width: 767px) {
    flex-direction: column;
    gap: 16px;
  }
}

.section > .entry-content > .tama-data > div {
  padding: 16px 2%;
  width: 25%;
  background-color: white;
  border-radius: 16px;
  border: 1px solid var(--holes-color);

  @media screen and (max-width: 767px) {
    width: 100%;
  }
}

.section h2 {
  font-family: "Audiowide", sans-serif;
  font-size: 24px;
  color: var(--secondary-color);
  text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
    2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff;
  margin: 0;
}

.section h3 {
  font-family: "Audiowide", sans-serif;
  font-size: 18px;
  color: var(--text-color);
  text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff,
    2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff;
  margin: 0;
  text-align: center;
}

.section p {
  font-family: 'SourGummyFont', Fallback, sans-serif;
  font-weight: 400;
  font-style: normal;
  text-shadow: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0;
}

.section b {
  color: var(--secondary-color);
}

/* Film strip */

:root {
  --film-color: #ff9ad5;
  --holes-color: #ff9ad5;
}

.film-strip {
  --s: 6px;
  --c: var(--holes-color);

  background: 
    conic-gradient(at 50% var(--s),var(--c) 75%,#0000 0) 
    0 0/calc(2*var(--s)) calc(100% - var(--s)) padding-box;
  border: var(--s) solid var(--c);
  box-sizing: content-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;

  @media screen and (min-width: 768px) {
    width: fit-content;
    height: 164px;
    border-left: none;
    border-right: none;
  }

  @media screen and (max-width: 767px) {
    flex-direction: column;
    width: 164px;
    height: fit-content;
    border-top: none;
    border-bottom: none;
  }
}

.film-strip > div {
  display: flex;
  gap: 8px;
  padding: 6px 64px;
  background-color: var(--film-color);

  @media screen and (max-width: 767px) {
    flex-direction: column;
  }
}

/* Decoration styles */

#background {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  background-image: url('/assets/shrines/tamagotchi/ui/background.png');
  background-repeat: repeat;
  mix-blend-mode: soft-light;
}
