@font-face {
  font-family: "Lazydog";
  src: url(Fonts/PlayChickens.ttf);
}
body {
  font-family: "Lazydog";
  background-color: rgba(0, 0, 0, 0.4);

  padding-top: 30px;
  font-family: "Lazydog", serif;
  text-transform: uppercase;
  color: #ffffff;
}
.background-clip {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: -1;

  background-size: cover;
}
@media (min-aspect-ratio: 16/9) {
  .background-clip {
    width: 103%;
    height: 115%;
    position: fixed;
  }
}
@media (max-aspect-ratio: 16/9) {
  .background-clip {
    width: 103%;
    height: 115%;
    position: fixed;
  }
}
p {
  margin: 0;
}
.top {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
}
.top .top_l {
  width: 70px;
  height: 70px;
  overflow: hidden;
  border-radius: 50%;
  border: 4px solid #ffffff;
}
.h1{
text-decoration:none;
}
}
.top_r {
  color: #ffffff;
}
.top .top_l img {
  width: 100%;
}
.animate {
  text-align: center;
  margin-bottom: 50px;
  color: #ffffff;
}
.animated-title {
  display: inline-block;
  animation: grow-and-shrink 4s infinite;
  text-align: center;
  display: inline-flex;
  align-items: center;
}
@keyframes grow-and-shrink {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1);
  }
}

.meme-container {
  position: relative;
  width: 390px;
  height: 390px;
  overflow: hidden;
  border: 8px solid #ffffff;
  border-radius: 20px;
  margin-bottom: 20px;
}

.meme_r {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.meme_r .buttons {
  display: flex;
  flex-direction: column;
}
.meme_r button {
  width: 390px;
  background-color: #d6cfc900;
  border: 5px solid #ffffff;
  padding: 16px;
  border-radius: 40px;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 20px;
  line-height: 28px;
  margin: 5px 0;
  color: #ffffff;
  transition: all 0.4s ease-in-out;
}
.meme_r button svg {
  margin-right: 15px;
}
.meme_r button:hover {
  transform: scale(0.94);
}

#downloadButton {
  color: #000000;
  background-color: #ffffff;
  border-color: #d6cfc900;
}
.meme-container img {
  position: absolute;
  width: 100%;
  height: auto;
  border-radius: 10px;
  left: 0;
  top: 0;
}

.meme-background {
  z-index: 0;
}

.meme-phone {
  z-index: 3;
  top: 20%;
  left: 25%;
  width: 50%;
}

.meme-mouths {
  z-index: 1;
  top: 50%;
  left: 40%;
  width: 20%;
}
.meme-hat {
  z-index: 4;
  top: 5%;
  left: 25%;
  width: 50%;
}

.meme-front {
  z-index: 5;
  left: 10%;
  width: 40%;
}
.meme-back {
  z-index: 2;
  bottom: 0;
  left: 15%;
  width: 50%;
}

.controls {
  margin-bottom: 20px;
  border-left: 2px solid #ffffff;
  text-align: left;
  padding: 50px 0 50px 60px;
}

.control-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-bottom: 30px;
}

.scroll-container {
  display: flex;
  align-items: center;
}

.scroll-btn {
  cursor: pointer;
  height: 80px;
  padding: 10px;
  border-radius: 10px;
  background-color: #d6cfc900;
  border: 2px solid #ffffff;
}

.scroll-btn:hover {
  background-color: #ffffff;
}
.image-gallery {
  display: flex;
  overflow: hidden;
  width: 500px;
  gap: 5px;
  padding: 0 20px;
  /* margin: 20px 0; */
}

.image-gallery .none_bg,
.image-gallery img {
  width: 80px;
  height: 80px;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid #ffffff;
  margin-right: 5px;
}
.image-gallery .none_bg img {
  width: 20px;
}

.image-gallery .none_bg {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px !important;
}
.image-gallery .none_bg.selected,
.image-gallery img.selected {
  border: 3px solid #ffffff;
  background-color: #d6cfc900;
}

.image-gallery .none_bg.selected {
  width: 80px !important;
}

.buttons {
  display: flex;
  gap: 10px;
}

button {
  padding: 10px 20px;
  cursor: pointer;
}

@media (max-width: 576px) {
  .controls {
    border: none;
  }
  .background-clip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }
}
