@font-face {
  font-family: 'UniversNextPro';
  src: url('/fonts/UniversNextProRegular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'UniversNextPro';
  src: url('/fonts/UniversNextProItalic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'UniversNextPro';
  src: url('/fonts/UniversNextProBold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
  font-family: 'UniversNextPro', sans-serif;
  overflow: auto;
}

:root {
  --contrastColor: hsl(160, 100%, 50%);
}
::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  text-align: left;
  color: white;
  margin: 0;
  line-height: 0;
  background-color: black;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

p {
  margin: unset;
  font-size: 1.5rem;
}

img {
  max-width: 100%;
  max-height: 100%;
}

#videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0;
  margin: 0;
}

.video {
  width: calc(100% / 8);
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
}

.video img {
  display: block;
  width: 100%;
  height: auto;
}

.video-txt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--contrastColor);
  color: white;
  opacity: 0;
  text-align: center;
}

.video-txt p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 90%;
  line-height: 1.2;
}

.video:hover .video-txt {
  opacity: 1;
}

@media only screen and (max-width: 800px) {
  .video {
    width: calc(100% / 4);
  }
}

@media only screen and (max-width: 500px) {
  .video {
    width: calc(100% / 2);
  }
}
