:root {
  --controls-width: 15rem;
  --shell-gap: 0.75rem;
  --tile-min: 14rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Open Sans", sans-serif;
  background-color: #2d2d2d;
  color: #fff;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  min-height: 100%;
}

.controls {
  position: fixed;
  top: var(--shell-gap);
  left: var(--shell-gap);
  z-index: 100;
  width: min(var(--controls-width), calc(100vw - (var(--shell-gap) * 2)));
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  background: transparent;
}

.controls img {
  display: block;
  width: 50px;
  height: 50px;
  margin: 0 0 0.2rem 0;
}

h1 {
  font-size: 0.8rem;
  color: #e8f48c;
  margin: 0;
}

h2 {
  font-size: 0.8rem;
  color: #ffa500;
  margin: 0;
}

p {
  font-size: 0.75rem;
  margin: 0;
  padding: 0;
}

.small {
  font-size: 0.65rem;
  margin: 0 0 1rem 0;
  padding: 0;
}

.small span {
  color: gray;
}

a.button {
  display: inline-block;
  font-size: 0.75rem;
  color: #fff;
  text-shadow: #000 1px 1px 1px;
  background-color: #6b8e23;
  padding: 0 0.4rem 0.1rem 0.35rem;
  border-radius: 4px;
  margin: auto;
  width: fit-content;
  text-align: center;
  text-decoration: none;
}

a.button:hover {
  background-color: #00a9e0;
}

a.button:active {
  background-color: #c0392b;
}

.title_dashboard {
  width: 80%;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-top: 1rem;
}

.thumbnail-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile-min), 1fr));
  gap: 0.5rem;
  width: calc(100% - var(--controls-width) - (var(--shell-gap) * 3));
  margin: var(--shell-gap) var(--shell-gap) var(--shell-gap)
    calc(var(--controls-width) + (var(--shell-gap) * 2));
  padding: 0;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 0.25rem;
  border-radius: 4px;
  background-color: #000;
}

.image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid #000;
}

.image-container {
  position: absolute;
  inset: 0;
}

.image-container > a {
  display: block;
  width: 100%;
  height: 100%;
}

.image-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.thumbnail-title {
  margin: 0.15rem 0 0 0;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.sign:link,
.sign:visited {
  border-top: 2px solid #fff;
  background-color: #555;
  color: #fff;
  text-shadow: #000 1px 1px 1px;
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  padding: 0 0 0.15rem 0.25rem;
}

.sign:hover {
  background-color: #2e86c1;
}

.sign:active {
  background-color: #e74c3c;
  color: #fff176;
}

@media (max-width: 1100px) {
  :root {
    --tile-min: 12.5rem;
  }

  .controls {
    position: static;
    width: auto;
    margin: 0.75rem;
    max-width: none;
  }

  .thumbnail-container {
    width: auto;
    margin: 0 0.75rem 0.75rem;
  }
}

@media (max-width: 760px) {
  :root {
    --tile-min: 11rem;
  }

  h1,
  h2 {
    font-size: 0.76rem;
  }

  p {
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  :root {
    --tile-min: 100%;
  }

  .controls {
    margin: 0.5rem;
    padding: 0.5rem;
  }

  .thumbnail-container {
    margin: 0 0.5rem 0.5rem;
    gap: 0.4rem;
  }
}
