@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");

body {
  width: 550px;
  height: 550px;
}

.follow,
.sub,
.pozdrav,
.legend,
.cult,
.akcel,
.stoulil {
  background-color: #ffffff00;
  margin-left: 65px;
  width: 350px;
  height: 300px;
  background-size: 100%;
  background-repeat: no-repeat;
}

.jordi,
.krvelan,
.niki,
.raid,
.pika {
  background-color: #ffffff00;
  margin-left: 95px;
  width: 350px;
  height: 300px;
  background-size: 100%;
  background-repeat: no-repeat;
}

.follow {
  background-image: url(./img/kitty_follow.gif);
  width: 220px;
  height: 220px;
  margin-left: 105px;
}

.sub {
  background-image: url(./img/sub.gif);
  width: 250px;
  height: 250px;
}

.pozdrav {
  background-image: url(./img/uvitani_cici.gif);
}

.legend {
  background-image: url(./img/roses.gif);
}

.cult {
  background-image: url(./img/cult.gif);
}

.akcel {
  background-image: url(./img/akcel.png);
}

.stoulil {
  background-image: url(./img/stoulil.gif);
}

.jordi,
.krvelan,
.niki,
.raid,
.pika {
  position: relative; /* Přidáno pro absolutní pozicování videa */
}
.jordi video,
.krvelan video,
.niki video,
.raid video,
.pika video {
  width: 100%;
  height: 100%;
  position: absolute; /* Video bude pozicováno v rámci rodičovského elementu */
  top: 0;
  left: 0;
}

.container {
  background-color: rgba(0, 0, 0, 0);
  margin-top: 10px;
  margin-left: 50px;
  position: relative;
  height: 100px;
  float: left;
  overflow: hidden;
  transform: skew(-15deg);
}

.red-line {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 3px;
  background: #dc2020;
  animation: red-line var(--red-line-duration)
    cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.text-container {
  background-color: #353535;
  position: relative;
  top: 50%;
  left: -100%;
  padding: 10px 70px 10px 50px;
  transform: translateY(-50%);
  animation: text-container var(--text-container-duration) 1s ease-in-out,
    text-container-end 1s var(--text-container-end-start)
      cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
}

.text-container::before,
.text-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  background-color: inherit;
}

.text-container::before {
  left: -20px;
  transform: skewY(-15deg);
}

.text-container::after {
  right: -0px;
  transform: skewY(15deg);
}

.name {
  font-family: "Pacifico", cursive;
  font-size: 32px;
  color: #fff;
  text-align: left;
  margin: 0 0 5px 0;
}

.new-follower {
  font-family: "Pacifico", cursive;
  font-size: 24px;
  color: #dc2020;
  text-align: left;
  margin: 5px 0 0 0;
}

.red-block {
  height: 100%;
  width: 60%;
  background: #dc2020;
  position: absolute;
  top: 0;
  left: -60%;
  animation: red-block var(--red-block-duration) 1s ease-in-out forwards;
  border-radius: 10px 0 0 10px;
}

/* Animations start here */

@keyframes red-line {
  0% {
    height: 0;
  }
  15% {
    height: 180px;
  }
  75% {
    height: 180px;
  }
  100% {
    height: 0;
  }
}

@keyframes text-container {
  0% {
    opacity: 0;
    left: -100%;
    visibility: hidden;
  }
  1% {
    visibility: visible;
  }
  10% {
    opacity: 1;
    left: 0;
  }
  60% {
    left: 0;
  }
  70% {
    left: -100%;
    opacity: 1;
  }
  79% {
    opacity: 0;
    left: -100%;
  }
  80% {
    visibility: hidden;
  }
  100% {
    visibility: hidden;
  }
}

@keyframes text-container-end {
  0% {
    left: -100%;
  }
  100% {
    left: -100%;
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes red-block {
  0% {
    left: -60%;
  }
  5% {
    width: 60%;
  }
  11% {
    left: 100%;
    width: 0;
  }
  60% {
    left: 100%;
    width: 0;
  }
  65% {
    width: 60%;
  }
  71% {
    left: -100%;
    width: 60%;
  }
  100% {
    left: -100%;
    width: 60%;
  }
}
