@font-face {
  font-family: OpenSansSemiBold;
  src: url('../fonts/OpenSans-SemiBold.woff2') format('woff2');
}

* {
  box-sizing: border-box;
  font-family: OpenSansSemiBold;
}

.red { color: red; }
.u { text-decoration: underline; }

html,
body {
  margin: 0;
  height: 100%;
  background-color: #000;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #fff;
}

header a {
  text-align: center;
  font-size: 3.5em;
  color: #1c0707;
  margin: 30px auto 0;
  border: 6px solid #1c0707;
  padding: 2px;
  width: 177px;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

header span.commentinfo {
  cursor: default;
  text-align: center;
  font-size: 1em;
  margin: -27px auto 40px;
  width: 177px;
  text-decoration: none;
  display: block;
  position: relative;
  left: 71px;
}

header span.commentinfo.yes {
  color: #08472a;
}

header span.commentinfo.no {
  color: #570e0e;
}

main {
  padding: 10px 50px;
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: baseline;
}

main.profile-main {
  display: block;
}

#toggleinfo,
#toggledescription {
  display: none;
}

#toggleinfo:checked ~ .info-container,
#toggledescription:checked ~ .description-container {
  display: block;
}

label.close {
  color: rgb(133 0 0);
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 44px;
  cursor: pointer;
}

footer {
  margin: 0 auto 10px auto;
  color: #4b3535;
  font-size: 15px;
}

footer a {
  cursor: help;
}

footer a#info {
  cursor: pointer;
}

footer a:not(:last-child)::after {
  content: " | ";
  margin-left: 6px;
}

footer a:hover {
  color: #5f2d2d;
}

i.footer {
  margin: 0 5px;
}

.video-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

@media only screen and (max-width: 800px) {
  main {
    padding: 10px;
  }

  .video-container > .description-container {
    height: 100% !important;
  }

  .profile-overlay-anchor > .info-container {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .profile-sections {
    gap: 22px;
  }
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 1111px;
  max-height: 90vh;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: 0 0 30px 20px rgba(0, 0, 0, 0.8);
  animation: ambilight 70s ease infinite alternate;
  border-radius: 17px;
}

@keyframes ambilight {
  0% { box-shadow: 0 0 50px 30px rgba(255, 0, 0, 0.2); }
  7% { box-shadow: 0 0 50px 30px rgba(255, 128, 0, 0.2); }
  14% { box-shadow: 0 0 50px 30px rgba(255, 255, 0, 0.1); }
  21% { box-shadow: 0 0 50px 30px rgba(0, 255, 0, 0.1); }
  28% { box-shadow: 0 0 50px 30px rgba(0, 255, 255, 0.2); }
  35% { box-shadow: 0 0 50px 30px rgba(0, 0, 255, 0.3); }
  42% { box-shadow: 0 0 50px 30px rgba(128, 0, 255, 0.3); }
  49% { box-shadow: 0 0 50px 30px rgba(255, 0, 255, 0.2); }
  56% { box-shadow: 0 0 50px 30px rgba(255, 105, 180, 0.2); }
  63% { box-shadow: 0 0 50px 30px rgba(255, 165, 0, 0.2); }
  70% { box-shadow: 0 0 50px 30px rgba(0, 128, 0, 0.3); }
  77% { box-shadow: 0 0 50px 30px rgba(128, 0, 0, 0.3); }
  84% { box-shadow: 0 0 50px 30px rgba(255, 255, 255, 0.2); }
  91% { box-shadow: 0 0 50px 30px rgba(255, 125, 0, 0.2); }
  100% { box-shadow: 0 0 50px 30px rgba(255, 128, 0, 0.2); }
}

iframe.ytiframe,
.video-container > .info-container,
.video-container > .description-container {
  position: absolute;
  aspect-ratio: 16 / 9;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 17px;
}

iframe.ytiframe {
  border: 0;
}

div.description,
button.description {
  color: #5a3030;
  font-size: 14px;
  font-family: inherit;
  line-height: 29px;
  text-shadow: 0 0 3px black;
  text-align: center;
  border: 3px solid #1e0000;
  border-radius: 7px;
  margin: 20px auto;
  width: 246px;
  padding: 4px 0;
  background: linear-gradient(171deg, rgba(35, 8, 46, 0.3) 0%, rgba(96, 58, 58, 0.3) 59%, rgba(41, 6, 29, 0.3) 100%);
  cursor: pointer;
}

button.description {
  appearance: none;
}

div.description:hover,
button.description:hover {
  border: 2px solid #260000;
  box-shadow: 1px 1px 2px #32180b;
}

div.description label,
button.description {
  cursor: pointer;
}

.info-container,
.description-container {
  overflow-y: auto;
  display: none;
  padding: 14px 20px 30px;
  background-color: rgba(0,0,0,.9);
  color: #fff;
  scrollbar-width: auto;
  scrollbar-color: rgb(49,11,0) transparent;
  border-radius: 17px;
  z-index: 21;
}

.video-container > .description-container {
  height: 50%;
}

.profile-overlay-anchor {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.profile-overlay-anchor > .info-container {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(960px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
}

span.subinfo {
  cursor: default;
  color: #848fe1;
}

span.subinfo i {
  width: 23px;
  text-align: center;
}

.description-container::-webkit-scrollbar,
.info-container::-webkit-scrollbar {
  width: 16px;
}

.description-container::-webkit-scrollbar-track,
.info-container::-webkit-scrollbar-track {
  background: transparent;
}

.description-container::-webkit-scrollbar-thumb,
.info-container::-webkit-scrollbar-thumb {
  background-color: rgb(49,11,0);
  border-radius: 10px;
  border: transparent;
}

.info-container h1 {
  font-size: 1.5em;
  margin-right: 53px;
}

.description-container h2 {
  font-size: 1.3em;
  margin-right: 53px;
}

.profile-sections {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.gallery-section {
  display: grid;
  gap: 12px;
}

.gallery-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gallery-section__title {
  margin: 0;
  font-size: 1.35rem;
  color: #d3c3c3;
}

.gallery-section__source {
  color: #7d5454;
  font-size: 0.95rem;
  text-decoration: none;
}

.gallery-section__source:hover {
  color: #9b6c6c;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.gallery-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid #1e0000;
  border-radius: 12px;
  background: #090303;
  cursor: pointer;
  overflow: hidden;
}

.gallery-card:hover {
  border-color: #3c0a0a;
  box-shadow: 0 0 12px rgba(71, 12, 12, 0.55);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #000;
}

.gallery-empty {
  margin: 0;
  color: #745858;
}

.image-lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.9);
}

.image-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.image-lightbox__inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
  padding: 16px;
}

.image-lightbox__close {
  position: sticky;
  top: 6px;
  left: calc(100% - 48px);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(87, 14, 14, 0.92);
  color: #fff;
  cursor: pointer;
}

.image-lightbox__button {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: calc(100vh - 48px);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}

.image-lightbox__image {
  display: block;
  max-width: calc(100vw - 64px);
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
}

.image-lightbox.is-zoomed .image-lightbox__button {
  cursor: zoom-out;
}

.image-lightbox.is-zoomed .image-lightbox__image {
  max-width: none;
  max-height: none;
}