@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:100');

* {
  font-family: 'Poppins', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100vh;
  min-height: 500px;
  margin: 0;
  background: #131313;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background: linear-gradient(rgba(10, 10, 10, .6), rgba(0, 0, 0, .9)), repeating-linear-gradient(0, transparent, transparent 2px, black 3px, black 3px), url('dj.jpg');
  background-size: cover;
  background-position: center;
}

main {
  overflow: hidden;
  width: 100%;
}

.container {
  transform: scale(.7);
  position: relative;
  margin: 20px;
  display: flex;
  align-self: stretch;
  justify-content: center;
  height: auto;
}

.container .card {
  display: flex;
  margin: 20px;
  padding: 20px;
  position: relative;
  width: 250px;
  height: 350px;
  background: #232323b5;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid #ffffff6e;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
}

.container .card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(13, 212, 208);
  clip-path: circle(70px at 100% 5%);
  transition: 0.3s ease-in-out;
}

.container .card:hover:before {
  clip-path: circle(300px at 80% -20%);
}

.container .card:after {
  content: '----';
  position: absolute;
  top: 90%;
  left: 50%;
  font-size: 3em;
  font-weight: 200;
  font-style: italic;
  color: rgba(15, 203, 255, 0.246);
  transform: translate(-50%, -50%);
}

.container .card .imgBx {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  z-index: 10000;
  width: 100%;
  height: 120px;
  transition: 0.5s;
}

.container .card:hover .imgBx {
  top: 0%;
  transform: translateY(0%);
}

.container .card .imgBx img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  width: 250px;
}

.container .card .contentBx {
  position: absolute;
  bottom: 0;
  width: 90%;
  height: 100px;
  text-align: center;
  transition: 1s;
  z-index: 10;
}

.container .card:hover .contentBx {
  height: 150px;
}

.container .card .contentBx h2 {
  position: relative;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
  margin: 10;
}

.container .card .contentBx a {
  display: inline-block;
  padding: 50px 10px;
  width: 90%;
  background: #ffffff;
  border-radius: 20px;
  margin-top: 10px;
  margin-left: -6%;
  text-decoration: none;
  font-weight: 700;
  font-size: larger;
  color: #111;
  opacity: 0;
  transform: translateY(50px);
  transition: 0.3s;
  margin-top: 0;
}

.container .card:hover .contentBx a {
  opacity: 1;
  transform: translateY(-80px);
  transition-delay: 0.3s;
}

@media screen and (max-width: 768px), screen and (max-height: 500px) {
  .container {
    transform: scale(.8);
    flex-direction: column;
    align-items: center;
    min-height: 50px;
  }

  .container .card {
    margin: 10px;
    width: 350px;
    height: 50px;
  }

  .container .card .imgBx {
    top: 10%;
    transform: translateY(-50%);
    z-index: 10000;
    width: 10%;
    transition: 0.3s;
    scale: 50%;
  }

  .container .card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(13, 212, 208);
    clip-path: circle(100px at 10% 0%);
    transition: 0.3s ease-in-out;
  }

  .container .card:hover:before {
    clip-path: circle(500px at 10% 20%);
  }

  .container .card:after {
    content: '----';
    position: absolute;
    top: 80%;
    left: 60%;
    font-size: 2em;
    font-weight: 200;
    font-style: italic;
    color: rgba(15, 203, 255, 0.246);
    transform: translate(-50%, -50%);
  }

  .container .card .contentBx a {
    display: inline-block;
    padding: 20px 10px;
    width: 80%;
    background: #ffffff;
    border-radius: 20px;
    margin-top: 10px;
    margin-left: 20%;
    text-decoration: none;
    font-weight: 600;
    color: #111;
    opacity: 0;
    transform: translateY(50px);
    transition: 0.3s;
    margin-top: 0;
  }

  .container .card:hover .contentBx {
    height: 75px;
  }

  .glitch {
    font-size: larger;
  }
}

#visitor-count {
  color: #ffffff; /* Text color */
  text-align: center; /* Center the text horizontally */
  font-size: 14px; /* Increase the font size */
}

.glitch {
  color: rgb(208, 208, 208);
  position: relative;
  font-size: calc(10vw);
  font-weight: 500;
  animation: glitch 7s 5s infinite;
  text-align: center;
  margin-top: 25px;
  margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif;
}

@keyframes glitch {
  1% {
    transform: rotateX(10deg) skewX(90deg);
    color: rgb(223, 191, 191);
  }
  2% {
    transform: rotateX(0deg) skewX(0deg);
    color: rgb(255, 0, 144);
  }
  3% {
    transform: rotateX(10deg) skewX(90deg);
    color: rgb(26, 156, 56);
  }
  4% {
    transform: rotateX(0deg) skewX(0deg);
    color: rgb(20, 184, 255);
    text-shadow: -5px 0 0 rgb(26, 156, 56), 5px 0 0 rgb(138, 43, 226);
  }
  5% {
    color: rgb(20, 184, 255);
    text-shadow: -5px 0 0 rgb(26, 156, 56), 5px 0 0 rgb(138, 43, 226);
  }
  6% {
    color: rgb(138, 43, 226);
  }
  7% {
    color: rgb(138, 43, 226);
    text-shadow: -5px 0 0 rgb(26, 156, 56), 5px 0 0 rgb(20, 184, 255);
  }
  8% {
    color: rgb(255, 0, 144);
    text-shadow: -5px 0 0 rgb(138, 43, 226), 5px 0 0 rgb(26, 156, 56);
  }
  9% {
    color: rgb(245, 245, 245);
  }
  15% {
    color: rgb(245, 245, 245);
    text-shadow: none;
  }
  100% {
    color: rgb(223, 191, 191);
    text-shadow: none;
  }
}