h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

p {
  font-weight: 500;
}

body {
  font-family: "MM1_Body", "Courier New";
  font-size: 1.6em;
  background: black;
  color: white;
  overflow-x: hidden;
}

main {
  position: fixed;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: black;
}

aside {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  border: 1px solid white;
  opacity: 0;
  transition-property: opacity;
  transition-duration: 0.5s;
  background-color: black;
}

aside h3,
aside h4,
aside h5,
aside h6 {
  margin: 0;
}

#volume-slider {
  margin: 0 10px;
  padding: 0;
  width: 20px;
  writing-mode: vertical-lr;
  direction: rtl;
  vertical-align: middle;
  appearance: slider-vertical;
  -webkit-appearance: slider-vertical;
  -moz-orient: vertical;
  accent-color: red;
  background-color: gray;
}

#volume-slider::-moz-range-track {
  background-color: gray;
  border-radius: 3px;
}

#volume-slider::-ms-track {
  background-color: gray;
  border-radius: 3px;
}

#volume-slider::-webkit-slider-runnable-track {
  background-color: gray;
  border-radius: 3px;
}

#volume-slider::-moz-range-thumb {
  background-color: red;
  border: 1px solid white;
}

#volume-slider::-ms-thumb {
  background-color: red;
  border: 1px solid white;
}

#volume-slider::-webkit-slider-thumb {
  background-color: red;
  border: 1px solid white;
}

.runtime {
  width: 100%;
  display: flex;
}

#current-time-of-song {
  width: 64px;
}

#global-audio-controls {
  width: 200px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

#global-audio-controls button {
  background: transparent;
  color: white;
  font-size: 1.1em;
  padding: 0;
  margin: 0;
}

#global-audio-controls button:not(#button-play) {
  border: none;
}

.octothorpe {
  font-family: "Gill Sans";
  font-weight: 500;
  font-size: 0.9em;
}

#track-number {
  font-size: 1.3em;
}

#visitor-number {
  text-align: center;
}

.inactive {
  opacity: 0.5;
}

.border-right {
  border-right: 1px solid white;
}

.border-bottom {
  border-bottom: 1px solid white;
}

.play-pause {
  display: flex;
  gap: 24px;
}

.play-pause > button:first-of-type {
  width: 24px;
  height: 24px;
  border-style: solid;
  border-width: 12px 0px 12px 24px;
  box-sizing: border-box;
  border-color: transparent transparent transparent white;
}

.play-pause > button:nth-of-type(2) {
  display: flex;
  gap: 4px;
}

.play-pause > button:nth-of-type(2) > div {
  width: 6px;
  height: 24px;
  background: white;
}

#mypopover-credits {
  background: rgba(255, 255, 255, 0.75);
  width: 90dvw;
  height: 90dvh;
}

.mypopover-credits-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
}

.mypopover-credits-button {
  margin-top: 20px;
  font-family: "MM1_Body", "Courier New";
  color: black;
}

.mypopover-credits-open-button {
  position: fixed;
  bottom: 0.5em;
  right: 0.5em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.1em;
  cursor: pointer;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 8px;
  border: 2.4px solid rgb(40, 40, 40);
  border-radius: 12px;
  box-shadow: 4px 4px 4px rgba(0, 0, 0);
  transition-property: opacity;
  transition-duration: 0.6s;
  opacity: 0;
}

.mypopover-button-close {
  font-size: 2em;
  align-self: flex-end;
}

.credits-container {
  font-style: normal;
  font-weight: 500;
}

.credits-top-box p {
  font-weight: 700;
}

.credits-top-box:first-child {
  font-size: 1.2em;
}

.credits-top-box .credits-name {
  font-size: 1.8em;
}

.credits-name {
  font-weight: 700;
}

.credits-montage {
  color: cyan;
  font-weight: 700;
}

.credits-special-thanks {
  font-size: 0.8em;
}

.credits-colin {
  font-size: 1.1em;
}

.credits-minimized {
  font-size: 0.8em;
}

.credits-bonny-systems {
  color: inherit;
  text-decoration: none;
  font-family: "Rhythm", "MM1_Body", "Courier New";
  font-size: 1.2em;
}

.credits-bonny-text {
  color: #d66cd3;
}

.credits-systems-text {
  color: #56d595;
}

.credits-strike {
  text-decoration-style: double;
  color: black;
}

.credits-fuck-gmail {
  color: blue;
}

::backdrop {
  background-color: black;
  opacity: 0.75;
}

@media (prefers-reduced-motion) {
  aside {
    transition-property: opacity;
    transition-duration: 0.2s;
  }
}

section {
  width: 100svw;
  height: 100svh;
  position: absolute;
  /* default section to display `none` to avoid initial jitter */
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

section:not(#first-section, #last-section) {
  height: 100lvh;
  /* background: url("https://a.seethemwhiletheyrehere.com/background/_middle.png") */
  /* no-repeat center / cover; */
  /* background: url("https://a.seethemwhiletheyrehere.com/background/covers/full-website-background.png")
    no-repeat center / cover; */
  background: url("https://a.seethemwhiletheyrehere.com/background/covers/full-website-background-jpg.jpg")
    no-repeat center / cover;
  background-color: transparent;
  background-clip: content-box;
}

#first-section {
  background-color: black !important;
}

section:not(#first-section, #last-section):nth-child(2) {
  background: url("https://a.seethemwhiletheyrehere.com/background/covers/full-website-background-jpg.jpg")
    no-repeat left / cover !important;
}

section:not(#first-section, #last-section):nth-child(3) {
  background-image: url("https://a.seethemwhiletheyrehere.com/background/Middle-9x16-Panel-1.png") !important;
  background-position: 16% !important;
}

section:not(#first-section, #last-section):nth-child(4) {
  background-image: url("https://a.seethemwhiletheyrehere.com/background/Middle-9x16-Panel-2.png") !important;
  background-position: 32% !important;
}

section:not(#first-section, #last-section):nth-child(5) {
  background-image: url("https://a.seethemwhiletheyrehere.com/background/Middle-9x16-Panel-3.png") !important;
  background-position: 48% !important;
}

section:not(#first-section, #last-section):nth-child(6) {
  background-image: url("https://a.seethemwhiletheyrehere.com/background/Middle-9x16-Panel-4.png") !important;
  background-position: 64% !important;
}

section:not(#first-section, #last-section):nth-child(7) {
  background-image: url("https://a.seethemwhiletheyrehere.com/background/Middle-9x16-Panel-1.png") !important;
  background-position: 80% !important;
}

section:not(#first-section, #last-section):nth-child(8) {
  background-image: url("https://a.seethemwhiletheyrehere.com/background/Middle-9x16-Panel-2.png") !important;
  background-position: 16% !important;
}

section:not(#first-section, #last-section):nth-child(9) {
  background-image: url("https://a.seethemwhiletheyrehere.com/background/Middle-9x16-Panel-3.png") !important;
  background-position: 32% !important;
}

section:not(#first-section, #last-section):nth-child(10) {
  background-image: url("https://a.seethemwhiletheyrehere.com/background/Middle-9x16-Panel-4.png") !important;
  background-position: 48% !important;
}

section:not(#first-section, #last-section):nth-child(11) {
  background-image: url("https://a.seethemwhiletheyrehere.com/background/Middle-9x16-Panel-1.png") !important;
  background-position: 64% !important;
}

section:not(#first-section, #last-section):nth-child(12) {
  background-image: url("https://a.seethemwhiletheyrehere.com/background/Middle-9x16-Panel-2.png") !important;
  background-position: 80% !important;
}

section:not(#first-section, #last-section):nth-child(13) {
  background-image: url("https://a.seethemwhiletheyrehere.com/background/Middle-9x16-Panel-3.png") !important;
  background-position: 90% !important;
}

section:not(#first-section, #last-section):nth-child(14) {
  background: url("https://a.seethemwhiletheyrehere.com/background/covers/full-website-background-jpg.jpg")
    no-repeat right / cover !important;
}

#last-section {
  height: 100vh;
  width: 104svw;
}

#first-section,
#last-section {
  background-size: contain;
}

/* MEDIA QUERIES */

/* 
 * TODO: the aspect ratios still might need some work
 * it's hard to tell until we get the right images
*/

/* desktop */
@media (min-aspect-ratio: 3/4) {
  #first-section {
    background: var(--desktop-front-section-image);
    background-position: left;
  }
  #last-section {
    background: var(--desktop-back-section-image);
    background-position: right;
  }
}

@media (min-aspect-ratio: 4/3) {
  #first-section {
    background: var(--desktop-front-section-image);
    background-position: left;
  }
  #last-section {
    background: var(--desktop-back-section-image);
    background-position: right;
  }
}

/* mobile */
@media (max-aspect-ratio: 9/16) {
  #first-section {
    background: var(--mobile-front-section-image);
    background-position: left;
    background-clip: content-box;
  }
  #last-section {
    background: var(--mobile-back-section-image);
    background-position: right;
    background-clip: content-box;
  }
}

@media (max-aspect-ratio: 3/4) {
  #first-section {
    background: var(--mobile-front-section-image);
    background-position: left;
    background-clip: content-box;
  }
  #last-section {
    background: var(--mobile-back-section-image);
    background-position: right;
    background-clip: content-box;
  }
}
