/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. */
/* SPDX-License-Identifier: MIT-0 */

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #dedede;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Ubuntu, "Helvetica Neue", sans-serif;
}

.app {
  height: 100%;
  display: grid;
  place-items: center;
}

.video-wrapper {
  width: 65%;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.15);
}

video {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.timed-metadata {
  width: 100%;
  height: 150px;
  color: #4a4a4a;
  font-family: monospace;
  background: #fff;
  border-radius: 0 0 6px 6px;
  display: flex;
  flex-shrink: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  flex-direction: column;
}

.metadata-line {
  display: flex;
  flex-shrink: 0;
  margin: 0 5px 0 0;
  padding: 10px 5px 5px 10px;
  word-break: break-all;
  transition: all 0.15s ease-in-out;
  animation: fadeIn 0.25s 1;
}

.metadata-line:last-child {
  padding-bottom: 10px;
}

.timed-metadata__time {
  min-width: 5rem;
  font-weight: 300;
}

.timed-metadata__value {
  font-weight: bold;
}

@keyframes fadeIn {
  0% {
    opacity: 0.4;
    background: #ffbf60;
  }
  100% {
    opacity: 1;
    background: transparent;
  }
}

@media (min-width: 320px) and (max-width: 767px) {
  .video-wrapper {
    width: 92%;
    max-width: 92%;
  }
}
