@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap");

:root {
  --main: #ffffff;
  --secondary: #ffff00;

  --ticker-font-size: 1.5rem;
  --yt-title-font-size: 1rem;
  --yt-title-font-size: 1.25rem;

  --tip-font-size: 2rem;
  --micro-bar-font-size: 12px;

  --bottom-bar-padding: 35px;
}

::selection {
  color: red;
  background: yellow;
}

html,
body {
  margin: 0;
  padding: 0;
  background: black;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  font-family: "Space Mono", monospace;
}

.player-container {
  width: 100vw;
  height: 100vh;
  background: black;
  position: relative;
}

.player {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.1) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 99;
}

.dark {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  /* background-size: 100% 4px; */
  pointer-events: none;
  z-index: 8;
}

/* SCREEN BARS */

.micro-bar {
  position: absolute;
  width: 100%;
  background-color: white;
  color: black;
  font-family: "Space Mono", monospace;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  top: 0;
}

.right-corner {
  display: flex;
  flex-direction: row;
  margin-right: 10px;
  align-items: center;
}

.video-id {
  padding: 2px 6px;
}

.video-id,
.video-id a {
  font-size: var(--micro-bar-font-size);
  letter-spacing: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  color: black;
  font-weight: bold;
}

.video-id a {
  color: red;
}

.site-name {
  font-size: var(--micro-bar-font-size);
  text-transform: uppercase;
  margin-right: 10px;
  font-weight: bold;
}

.date-time {
  font-size: var(--micro-bar-font-size);
  letter-spacing: 1px;
  margin-right: 10px;
}

/* YOUTUBE TITLE BAR */

.metadata-bar {
  position: absolute;
  width: 100%;
  background-color: rgba(0, 0, 0, 1);
  color: var(--main);
  padding: 20px 0;
  font-family: "Space Mono", monospace;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  border-top: 1px solid #333;
  /* border-bottom: 1px solid #333; */
}

.bottom-bar {
  bottom: 0;
  padding: var(--bottom-bar-padding) 0;
  flex-direction: column;
}

.top-bar {
  top: 22px;
  padding: var(--bottom-bar-padding) 0;
  border-bottom: 2px solid #333;
}

.top-bar:hover .video-title {
  animation-play-state: paused;
}

.separator {
  color: var(--secondary);
}
.padded {
  padding: 0 15px;
}

.video-title {
  box-sizing: content-box;
  /* width: 100%; */
  /* padding-right: 100%; */

  font-size: var(--yt-title-font-size);
  letter-spacing: -0.5px;

  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;

  animation: title-scroll 1500s linear infinite;
}

@keyframes title-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

.video-info:hover .video-title::before {
  animation-play-state: paused;
}
