:root {
  --color-primary: black;
  --color-secondary: white;
  --accent: rgb(0, 76, 134);
  --accent-darker: rgb(0, 51, 94);
  --accent-darkest: rgb(0, 32, 55);
  --accent-lighter: rgb(60, 164, 255);
  --accent-lightest: rgb(161, 205, 243);
  --accent-transparent: rgba(0, 76, 134, 0.8);
  --contrast: rgb(64, 138, 203);
  --contrast-lighter: rgb(96, 168, 231);
  --contrast-lightest: rgb(160, 211, 255);
  --contrast-darker: rgb(22, 85, 139);
  --contrast-darkest: rgb(1, 38, 70);
  --contrast-transparent: rgba(64, 138, 203, 0.7);
  --glass-lighter: rgba(195, 195, 195, 0.41);
  --glass-darker: rgba(0, 0, 0, 0.645);
  scrollbar-width: none;

}

@font-face {
  font-family: "hyperlegible";
  src: url('/Hyperlegible.woff');
}

@font-face {
  font-family: "retro";
  src: url('/retro.ttf');
}

@font-face {
  font-family: "sublima";
  src: url('/sublima.otf');
}

@keyframes color-shift {
  from {
    background-position: 0% 0%;
  }

  to {
    background-position: 100% 100%;
  }
}

body {
  background-color: black;
  background: linear-gradient(-45deg,
      var(--accent-darkest),
      var(--color-primary),
      var(--contrast-darkest),
      var(--color-primary),
      var(--accent-darkest));
  background-size: 200% 200%;
  animation-name: color-shift;
  animation-duration: 15s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-timing-function: linear;
  color: var(--color-secondary);
  background-attachment: fixed;
  margin: 0;
  width: 100vw;
  font-size: 16px;
  font-family: "hyperlegible";
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  overflow-x: hidden;
}

header a {
  margin-left: 5px;
  margin-right: 5px;
}

header {
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: larger;
  view-transition-name: header;
}

header>div {
  width: 100%;
}

#header-banner-link {
  font-size: xx-large;
  text-decoration: none;
  font-weight: bolder;
  margin-left: 10vw;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

#header-mobile {
  display: none;
}

#header-banner-link img {
  max-width: 5rem;
  margin-right: 1.5rem;
}

@media screen and (orientation:portrait) {
  #header {
    display: none;
  }

  #header-mobile {
    display: flex;
  }

  #header-banner {
    padding: 0 !important;
  }

  #header-banner-link {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  #header-banner-link img {
    margin: 0;
  }
}

.header-links {
  background-color: transparent;
  justify-content: space-between;
  padding: 5px;
}

header a {
  color: white;
  text-decoration: none;
}

#header-banner {
  background-color: var(--contrast-darker);
  justify-content: space-between;
  padding: 5px;
  flex-wrap: nowrap;
  align-items: center;
}


main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

main>p {
  max-width: 60rem;
  margin-left: 10px;
  margin-right: 10px;
}

article {
  background-color: var(--color-primary);
  max-width: 60rem;
  font-size: larger;
  line-height: 23px;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "hyperlegible";
  font-weight: 100;
  margin-top: 2rem;
  border-radius: 5px;
}

h1 {
  font-family: "sublima";
  font-weight: bold;
}

hr {
  width: 100%;
  color: var(--contrast);
  border-color: var(--contrast);
}

article a,
a,
.list-item {
  color: var(--accent-lightest);
}

article>div>div,
main>div>div {
  flex-direction: column;
}

button {
  font-family: "hyperlegible";
  border-style: solid;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 15px;
  padding-right: 15px;
  border-color: transparent;
  margin: 5px;
  min-width: fit-content;
  font-weight: bolder;
  border-radius: 0.25rem;
  background: linear-gradient(180deg, var(--accent-transparent), transparent, var(--accent-transparent));
  color: var(--color-secondary);
}

a {}

div {
  display: flex;
  flex-wrap: wrap;
}


.list {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-family: "sublima";
  font-weight: bold;
}

.list>div {
  margin-bottom: 15px;
  font-size: small;
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.list-item {
  padding: 15px;
  width: 800px;
  max-width: 90vw;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

img,
video,
iframe,
table {
  max-width: 100%;
}

main iframe,
main video {
  min-height: 40vh;
  aspect-ratio: 16/9;
  margin: 5px;
}

blockquote {
  margin: 0;
  border-left: 3px solid var(--accent-lighter);
  border-right: 3px solid var(--accent-lighter);
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 15px;
  background: linear-gradient(180deg, var(--glass-darker), var(--color-primary), var(--glass-darker));
  word-wrap: break-word;
  word-break: break-word;
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: medium;
  font-style: italic;
}

img,
video,
audio,
iframe,
.media-container {
  width: 100%;
  max-width: 80vw;
}

audio {
  border-radius: 0;
  padding: 0px;
}

.image-container {
  max-width: 80%;
}

article ul,
article p,
article h3 {
  width: 100%;
  max-width: 90vw;
}

article h3 {
  margin: 0;
}

.list-item {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  padding: 15px;
  align-items: flex-start;
  justify-content: flex-start;
  background-color: var(--color-primary);
  border-radius: 15px;
  margin-top: 5px;
}

.list-item a {
  text-decoration: none !important;
  color: var(--color-secondary);
}

.item-details {
  width: 100%;
}

.list-item>div {
  width: 100%;
  display: flex;
  flex-direction: row;
}

.list-item .tag {
  font-size: large;
  margin: 5px;
  color: var(--contrast-lightest);
}

.list-item h3 {
  font-size: xx-large;
}

.list-item p {
  font-size: x-large;
}

.list-item button {
  width: fit-content;
  margin-bottom: 10px;
}

.list span,
.list span a {
  font-family: "retro";
  font-size: small;
  color: var(--accent-lightest);
}

.list-media {
  max-width: 30vw;
  min-width: 20rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.item-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.item-header h1 {
  font-size: xx-large;
  line-height: 36px;
  margin-top: 15px;
  margin-bottom: 10px;
}

.item .tag {
  font-size: 14px;
  line-height: 16px;
  margin: 5px;
}

.media-container {
  width: 100%;
  padding: 5px;
  border: 2px solid var(--contrast-lightest);
  margin: 5px;
  border-radius: 15px;
  font-size: smaller;
  font-family: "retro";
}

.media-container select {
  background-color: var(--color-primary);
}

svg {
  stroke: var(--contrast-lightest);
  fill: var(--contrast-lightest);
}

@media screen and (orientation:portrait) {
  .header-buttons {
    width: 100%;
  }

  header {
    flex-wrap: wrap;
    font-size: medium;
  }

  nav a {
    font-size: medium;
  }

  header>a {
    font-size: large;
  }

  p {
    font-size: medium;
  }

  .list-item .tag {
    font-size: small;
  }

  .list-item p {
    font-size: small;
  }

  .list-item h3 {
    font-size: large;
  }
}

.listing {
  border-radius: 15px;
}

.listing-text {
  color: white !important;
  background-color: rgba(0, 0, 0, 0.612);
  padding: 15px;
}

.listing-text:hover {
  background-color: black;
}

.listing-text a {
  color: white;
}

.audio-player {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.audio-player>* {
  margin: 2px;
  margin-right: 5px;
  margin-left: 5px;
}

.audio-player p {
  width: fit-content;
}

.media-seek {
  width: 100%;
}

.audio-player {
  border: 0.15rem solid var(--theme-accent);
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--theme-accent);
  flex-wrap: nowrap;
}

.audio-player>* {
  margin: 5px;
}

.audio-player select,
.audio-player button {
  border-color: var(--theme-accent);
  color: var(--theme-accent);
  border-radius: 3px;
  padding: 0.5rem;
}

.icon svg {
  width: 2.25rem;
  height: 2.25rem;
  z-index: -1;
  background-color: transparent;
  pointer-events: none;
}

.icon path,
.icon rect {
  stroke: var(--theme-accent);
  fill: var(--theme-accent);
}

.icon svg circle {
  stroke: var(--theme-accent);
  fill: transparent;
  stroke-width: 6;
}

@keyframes spin-icon {
  0% {
    rotate: 0;
  }

  100% {
    rotate: 360deg;
  }
}

.spin {
  animation: spin-icon 3s linear infinite;
}

code {
  color:var(--accent-lightest);
  font-weight: bolder;
}