/*

Base styles

*/

@import "bootstrap-reboot.min.css";

:root {
  --text-color: #222;
  --textbox-color: #78d0b7;
  --textbox-color-shaded: #62c3a7;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  src: url("./BricolageGrotesque-VariableFont_opsz,wdth,wght.ttf");
}

em {
  font-variation-settings: "wght" 700;
  font-style: normal;
}

body {
  background-color: #b2e4d5;
  font-family: "Bricolage Grotesque";
  color: var(--text-color);
}

#site-border {
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  border: 4vw solid black;
}

#site-wrapper {
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 12vw 8vw;
}

@media (min-width: 601px) {
  #site-border {
    border-width: 30px;
  }

  #site-wrapper {
    padding: 4rem 4rem;
  }
}

p:empty {
  display: none;
}

p a,
li a {
  color: #bc004c;
  border-bottom: 2px solid #91c9b8;
  text-decoration: none;
  font-variation-settings: "wght" 800;
  transition: border-bottom 0.1s ease;
}

p a:hover,
li a:hover {
  border-bottom-color: #bc004c;
}

h1 {
  font-weight: 400;
  font-variation-settings: "wdth" 75, "wght" 800;
  color: white;
  font-size: 7vmax;
  line-height: 1;
  margin-bottom: 4vmax;
  orphans: 2;
  widows: 2;
}

@media (min-width: 601px) {
  h1 {
    font-size: 64px;
    margin-bottom: 28px;
  }
}

.textbox > *:last-child {
  margin-bottom: 0;
}

.textbox,
.toggle button {
  background-color: var(--textbox-color);
  padding: 1rem;
  position: relative;
}

.expandable {
  background-color: var(--textbox-color);
}

.toggle {
  margin: 0;
  position: relative;
}

.toggle button {
  appearance: none;
  border: none;
  text-align: left;
  width: 100%;
  display: block;
  font-variation-settings: "wght" 700;
  color: var(--text-color);
}

.toggle:before {
  content: "";
  position: absolute;
  top: 12%;
  right: 1.2rem;
  z-index: 1;
  font-family: system-ui, sans-serif;
  font-weight: 400;
  font-size: 48px;
}

.toggle[data-state="hidden"]:before {
  content: "˅";
}

.toggle[data-state="visible"]:before {
  content: "˄";
}

.toggle button:hover {
  background-color: var(--textbox-color-shaded);
}

.expandable[data-state="hidden"] {
  display: none;
}

/*

Home page

*/

#header-image {
  display: flex;
  justify-content: center;
}

#header-image img {
  max-width: 110%;
  height: auto;
  display: block;
  margin-bottom: 1.5rem;
}

/*

Audio pages

*/

.audio-player {
  margin-bottom: 3rem;
}

.audio-player .controls {
  display: flex;
  justify-content: center;
}

.audio-player .controls .control {
  appearance: none;
  background-color: rgba(25, 25, 25, 0.8);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 0.8;
  transform: none;
  transition: transform 0.1s ease, border-bottom 0.1s ease;
}

.audio-player .controls .control span {
  display: block;
}

.audio-player .controls .control:active {
  transform: translateY(2px);
}

.audio-player .controls .control:not(:last-of-type) {
  margin-right: 20px;
}

[data-for="credits"] {
  margin-top: 1.5rem;
}

#show-note {
  margin-top: 8rem;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

#show-note img {
  max-width: 150px;
  flex-grow: 0;
  flex-shrink: 1;
  height: auto;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

#show-note p {
  flex-basis: 300px;
  flex-grow: 1;
  flex-shrink: 0;
}
