/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-image: url("images/VHSBackground.png");
  background-size: cover;
  background-repeat: repeat-y;
  color: rgb(47, 120, 47);
  font-family: decterm, Comic Sans MS
}

@font-face {
    font-family: decterm;
    src: url("fonts/decterm.ttf") format("truetype");
}

@font-face {
    font-family: EightOSixFont;
    src: url("fonts/806Typography.otf") format("opentype");
}

.website-header {
  background-color: #ffffff00;
  color: #65306a;
  position: relative;
  top: 0;
  padding: 20px;
  text-align: center;
  font-family: EightOSixFont, Comic Sans MS, sans-serif; /* Always include generic fallback fonts */
}

.floating-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 15vh; /* Adjust container size as needed */
  width: 100%;
}

.floating-img {
  width: 15vw;
  height: auto;
  animation: float-animation 3s ease-in-out infinite;
}

.video-thumbnail {
  display: block;
  width: min(100%, 320px);
  height: auto;
}

#featured-videos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.video-entry {
  width: min(100%, 736px);
  text-align: center;
}

.video-title {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.video-card {
  --thumbnail-offset-x: -9px;
  --thumbnail-offset-y: 90px;

  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 736 / 552;
  padding: 12px;
  background: #bdbdbd url("images/video-background.png") center / contain no-repeat;
}

.video-card a {
  display: block;
  transform: translate(var(--thumbnail-offset-x), var(--thumbnail-offset-y));
}

.video-thumbnail {
  display: block;
  
  width: 100%;
  height: auto;
}

@keyframes float-animation {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px); /* Distance the image floats up */
  }
  100% {
    transform: translateY(0px);
  }
}