html {
  font-family: sans-serif;
}
body {
  margin: 0;
}

/**
 * Hide focus rings if not keyboard user
 */
body:not(.user-is-tabbing) *:focus {
  outline: none;
}

/**
 * Reset button styles.
 */
button {
  padding: 0;
  border: none;
  font: inherit;
  color: inherit;
  background-color: transparent;
  /* show a hand cursor on hover; some argue that we
  should keep the default arrow cursor for buttons */
  cursor: pointer;
}

.page {
  background: #f8d1c4;
  min-height: 100vh; /* Fallback for browsers that do not support Custom Properties */
  min-height: var(--wh, 100vh);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content {
  max-width: 1280px;
  padding: 0 1.0875rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.videos-container {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
}
@media (max-width: 1280px) {
  .videos-container {
    grid-template-columns: auto;
    grid-template-rows: auto;
  }
}

.video-container {
  position: relative;
}

video {
  width: 600px;
  padding: 1rem;
}

.videos-container.show-overlays > .video-container::after {
  content: attr(data-label);
  position: absolute;
  top: 50px;
  left: 50px;
  font-size: 4rem;
  color: blue;
}

.button-grid {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
}

button {
  color: black;
  background: white;
  border: 2px solid black;
  border-radius: 0.2rem;
  padding: 0.2rem;
  margin: 0.1rem;
}

.toggle-button {
  padding: 0.5rem;
  margin: 0.1rem;
}

.toggle-button.active {
  color: white;
  background: blue;
}

.toggle-button:hover {
  background: lightblue;
}

.order-1 {
  order: 1;
}

.order-2 {
  order: 2;
}

.order-3 {
  order: 3;
}

.order-4 {
  order: 4;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

footer {
  font-size: 0.8rem;
  font-weight: bold;
  margin: 1.67rem;
}

.video-id-input {
  font-size: 1.1rem;
  width: 3.5rem;
}

@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  html {
    font-size: 11px;
  }
}

@media (max-width: 319px) {
  html {
    font-size: 8px;
  }
}
