@import url("https://fonts.googleapis.com/css2?family=Averia+Sans+Libre&family=Jua&family=ZCOOL+QingKe+HuangYou&display=swap");

:root {
  --bg: #000;
  --dg: #333;
  --mg: #666;
  --fg: #aaa;
  /* --accent: #fa2; */
  --accent: #4f8;
}

html {
  background-color: var(--bg);
}

* {
  font-family:
    "Averia Sans Libre",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  padding: 0;
  margin: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  color: var(--fg);
}

:root {
  --dot-color: #333;
}

@keyframes colorShift {
  0%,
  100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(180deg);
  }
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle, currentColor 1px, transparent 1px),
    radial-gradient(circle, currentColor 1px, transparent 1px);
  background-size:
    20px 40px,
    20px 40px;
  background-position:
    0 0,
    10px 20px;
  pointer-events: none;
  z-index: -1;
  color: var(--mg);
  opacity: 0.5;
  /* animation: dotColor 3s ease-in-out infinite; */
}

@keyframes dotColor {
  0% {
    color: rgb(51, 51, 51);
  }
  50% {
    color: rgb(170, 107, 107);
  }
  100% {
    color: rgb(51, 51, 51);
  }
}

.learn-check {
  cursor: pointer;
  min-width: 1rem;
  max-width: 1rem;
  min-height: 1rem;
  max-height: 1rem;
  background-color: transparent;
  border: 2px solid var(--mg);
  border-radius: 1rem;
  margin-top: 2px;
}

a {
  color: var(--yellow);
}

.learn-check.checked {
  background-color: var(--green);
  border-color: var(--green);
}

.weight {
  user-select: none;
  cursor: pointer;
  color: var(--mg);
  opacity: 0.6;
}

.section {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  margin: 1rem;
  flex: 1;
  gap: 1rem;
}

.section-header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: var(--fg);
  font-size: 1.5rem;
}

.single {
  display: flex;
  flex-direction: column;
  background: transparent;
  justify-content: start;
  /* align-items: center; */
}

.grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 320px));
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  overflow: hidden;
}

.grid-item {
  display: flex;
  flex-direction: column;
  background: transparent;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0.25rem;
  aspect-ratio: 16 / 9;
  height: auto;
  max-width: 500px;
  transition: all 0.3s ease;
}

.grid-item-header {
  padding: 10px;
  color: white;
  background: var(--dg);
  flex-shrink: 0;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
}

.grid-item-properties {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
  gap: 0.5rem;
}

.grid-item-name {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.grid-item-name:hover {
  text-decoration: underline;
}

.grid-item-video-container {
  flex: 1;
  background: transparent;
  width: 100%;
  overflow: hidden;
}

.single-video-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.single-video-container .clip {
  max-width: 400px;
}

video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background-color: transparent;
}

iframe {
  aspect-ratio: 16 / 9;
  max-width: 500px;
}

/* #header { */
/* min-height: 2rem; */
/* display: flex; */
/* flex-direction: row; */
/* flex-wrap: wrap; */
/* justify-content: space-between; */
/* align-items: center; */
/* gap: 1rem; */
/* padding: 2rem; */
/* } */

.footer {
  margin-top: 2rem;
  min-height: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
}
