body {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.87);
  background-color: var(--accent-color, #232732);
}

#app {
  width: 100%;
  height: 100svh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
#content {
  display: none;
}
.top-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0)
  );
}

#pixi-container {
  z-index: 1;
  position: relative;
}

@media (orientation: portrait) and (max-width: 767px) {
  #stream_wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #stream_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    aspect-ratio: 4 / 3;
    clip-path: url(#bottom-curve);
    overflow: hidden;
    z-index: -1;
  }

  .bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  }
}

@media (orientation: landscape) {
  #stream_wrapper {
    position: fixed;
    top: 0;
    left: 0;
    left: 50%;
    transform: translateX(-50%);
    aspect-ratio: 16 / 9;
    height: 100svh;
    /* width: 100vw;s */
    z-index: -1;
    overflow: hidden;
  }

  #stream_wrapper.maximized:after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 0px;
    pointer-events: none;
    transform: translateX(-1px);
    background-image: linear-gradient(
      to left,
      rgba(255, 255, 255, 0),
      var(--accent-color, #232732) 90%
    );
    width: 7%;
    height: 100%;
  }

  #stream_wrapper.maximized:before {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: 0px;
    border-right: 5px solid var(--accent-color, #232732);
    pointer-events: none;
    background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0),
      var(--accent-color, #232732) 90%
    );
    width: 7%;
    height: 100%;
  }

  #stream_wrapper.minimized {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 60svh;
    aspect-ratio: 16 / 9;
    width: auto;

    border-radius: 0 0 20px 20px;
    z-index: -1;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top: none;
  }

  #stream_wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-right: 2px solid var(--accent-color, #232732);
  }
  .bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  }
}
