body {
  font-family: Arial, sans-serif;
  background-color: #95796a;
 
  padding-top: 30px;
  font-family: "Bree Serif", serif;
  text-transform: uppercase;
}

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 #372016;

}
.top_r {
  color: #372016;
}
.top .top_l img {
  width: 100%;
}
.animate {
  text-align: center;
  margin-bottom: 50px;
  color: #372016;
}
.animated-title {
  display: inline-block;
  animation: bounceZoom 6s infinite;
  text-align: center;
  display: inline-flex;
  align-items: center;
}

@keyframes bounceZoom {
  0% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(10px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1);
  }
  75% {
    transform: scale(0.9);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.meme-container {
  position: relative;
  width: 390px;
  height: 390px;
  overflow: hidden;
  border: 8px solid #372016;
  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: #d6cfc9;
  border: 5px solid #372016;
  padding: 16px;
  border-radius: 40px;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 20px;
  line-height: 28px;
  margin: 5px 0;
  color: #372016;
  transition: all 0.4s ease-in-out;
}
.meme_r button svg {
  margin-right: 15px;
}
.meme_r button:hover {
  transform: scale(0.94);
}

#downloadButton {
  color: #d6cfc9;
  background-color: #372016;
  border-color: #d6cfc9;
}
.meme-container img {
  position: absolute;
  width: 100%;
  height: auto;
  border-radius: 10px;
  left: 0;
  top: 0;
}

.meme-background {
  z-index: 0;
}

.meme-cat {
  z-index: 2;
  top: 20%;
  left: 25%;
  width: 50%;
}

.meme-hat {
  z-index: 5;
  top: 5%;
  left: 25%;
  width: 50%;
}

.meme-eyes {
  z-index: 4;
  top: 35%;
  left: 33%;
  width: 34%;
}


.meme-front {
  z-index: 6;
  left: 10%;
  width: 40%;
}
.meme-back {
  z-index: 3;
  bottom: 0;
  left: 15%;
  width: 50%;
}

.controls {
  margin-bottom: 20px;
  border-left: 2px solid #372016;
  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: #d6cfc9;
  border: 2px solid #372016;
}

.scroll-btn:hover {
  background-color: #f6efe9;
}
.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 #372016;
  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 #372016;
  background-color: #d6cfc9;
}

.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;
  }
}
