@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body {
  margin: 0;
  padding: 0;

  font-family: "Noto Sans", sans-serif;

  --text-color: #f2f2f2;
  --text-greyed: #D9D9D9;
  --disabled: #929292;
  --selection: #F2F2F240;

  --primary: #41ABDE;
  --grey: #67655F;

  --margin-sm: 5px;
  --margin-md: 10px;
  --margin-lg: 25px;

  --padding-md: 25px;

  background-color: black; /* TODO */
  color: var(--text-color);
}

#blurred-background-container {
  background-image: url("../video/test_thumbnail.jpg");
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

#main-content-container {
  display: flex;
  justify-content: center;
  backdrop-filter: blur(100px);
  background-color: #3E3D39CC;
}

main {
  max-width: 950px;
  height: 100vh;
  background-color: #0006;
}

.hotkey-guide {
  --hk-size: 18px;
  --hk-border-radius: 4px;
  --hk-border-width: 1px;
  --hk-color: var(--text-color);

  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: var(--hk-size);
  height: var(--hk-size);
  border-radius: var(--hk-border-radius);
  margin: 0 2px;

  border: var(--hk-border-width) solid var(--hk-color);
  color: var(--hk-color);
  background-color: transparent;
  font-size: calc(var(--hk-size) / 1.5);

  &::after {
    position: absolute;
    bottom: 0;
    transform: translateY(calc(100% - var(--hk-border-radius)));
    width: 100%;
    height: calc(var(--hk-size) / 2.75);
    border: var(--hk-border-width) solid var(--hk-color);
    border-radius: var(--hk-border-radius);
    border-top: 0px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    content: "";
  }

  &.hover {
    background-color: #F2F2F2;
    color: black;
  }

  &.pressed {
    --hk-color: #DCC140;
  }
}

button {
  all: unset;

  background-color: transparent;
  padding: 8px;
  border-radius: 6px;
  margin: var(--margin-sm);
  font-size: 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  &.on:not(.disabled),
  &:hover:not(.disabled) {
    cursor: pointer;
    background-color: #5C5A59;
  }

  &.on:not(.disabled) .hotkey-guide,
  &:hover:not(.disabled) .hotkey-guide {
    background-color: #F2F2F2;
    color: black;
  }

  &.disabled {
    color: var(--disabled);
    .content {
      text-decoration: line-through;
    }
  }  

  &.disabled .hotkey-guide {
    --hk-color: var(--disabled);
  }
}

.progress {
  --seeker-size: 13px;

  .punch-in {
    position: absolute;
    height: 4px !important;
    width: calc(var(--seeker-size) / 2);

    &.left {
      background-color: var(--primary);
      left: 0;
    }

    &.right {
      background-color: var(--grey);
      left: calc(100% - var(--seeker-size) / 2);
    }
  }

  .progress-inner {
    position: absolute;
    width: calc(100% - var(--seeker-size));
    height: 4px !important;
    left: calc(var(--seeker-size) / 2);
    bottom: 0;
    background-color: red;
  }

  .seeker {
    width: var(--seeker-size);
    height: var(--seeker-size);
    bottom: calc(-1 * var(--seeker-size) / 3.14);
    transform: translateX(-50%);
    transition: transform 0.1s;
    
    &.active {
      transform: translateX(-50%) scale(1.4);
    }
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
