@font-face {
  font-family: Logo;
  src: url("../fonts/RockSalt-Regular.ttf");
}

@font-face {
  font-family: Body;
  src: url("../fonts/%2Cwght.ttf");
}

body {
  background-color: #f9f8f8;
  font-family: Body, -apple-system, system-ui, BlinkMacSystemFont;
  margin: 0;
  cursor: url("../images/cursor.png") 14 14, auto;
}

button {
  background-color: #eb9486;
  font-size: 20px;
  width: auto;
  color: #272838;
  outline: none;
  border: 3px solid #272838;
  box-shadow: 1px 1px 1px #272838;
}

button:hover {
  cursor: url("../images/cursor.png") 14 14, pointer;
}

.music {
  z-index: 2;
}

.header {
  background-color: #7e7f9a;
  padding: 20px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  color: #272838;
  font-size: 40px;
  font-family: Logo, sans-serif;
  z-index: 1;
}

.header::before {
  position: absolute;
  content: '';
  top: 50px;
  left: 50px;
  height: 304px;
  width: 304px;
  background: url("../images/multi.gif");
  z-index: 0;
  background-repeat: no-repeat;
}

.header::after {
  position: absolute;
  content: '';
  top: 20px;
  right: 0;
  height: 304px;
  width: 304px;
  background: url("../images/tremble.gif");
  z-index: 0;
}

.main {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding: 0px 40px 60px;
  font-size: 30px;
  text-align: center;
  height: 1500px;
}

.mainTitle {
  font-size: 60px;
  z-index: 1;
}

.coin {
  position: absolute;
  top: -170px;
}

#video {
  max-width: 1090px;
  width: 100%;
  height: auto;
}

.memes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 50px;
  row-gap: 50px;
  padding-top: 40px;
}

.memes img {
  width: 330px;
  height: 330px;
}

@media screen and (max-width: 1200px) {
  .generator {
    display: none;
  }

  .generatorFallback {
    display: block !important;
  }

  .memes {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 850px) {
  .header {
    gap: 50px;
  }

  .header::before {
    left: 60%;
    transform: translateX(-50%);
  }

  .header::after {
    content: none;
  }

  .main {
    padding-top: 10px;
    margin-top: 20px;
  }

  .coin {
    top: -160px;
    width: 500px;
    height: 500px;
  }

  .memes {
    grid-template-columns: 1fr;
  }

  #clearBtn {
    top: unset !important;
    bottom: 50px !important;
    left: 5px !important;
    font-size: 20px !important;
  }

  #addLevi {
    top: unset !important;
    bottom: 50px !important;
    right: 5px !important;
    left: unset !important;
    font-size: 20px !important;
  }
}

@media screen and (max-width: 500px) {
  .mainTitle {
    font-size: 40px;
  }

  .main {
    font-size: 20px;
  }

  .coin {
    width: 300px;
    top: -90px;
    height: 300px;
  }
}

#downloadImageBtn {
  height: 40px;
}

.ins {
  display: flex;
  align-items: center;
  gap: 12px;
}

.generatorFallback {
  padding: 100px 0;
  display: none;
}

.footer {
  padding: 50px 0;
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer img {
  max-width: 80px;
  max-height: 80px;
  border-radius: 50%;
}

.frame {
  border: 10px solid #7e7f9a;
}

.addedLevi {
  position: fixed;
  z-index: 3;
  pointer-events: none;
  width: 100px;
  height: 100px;
}

#clearBtn {
  position: fixed;
  top: 50%;
  left: 20%;
  z-index: 5;
  font-size: 40px;
  transform: translateY(-50%);
}

#addLevi {
  position: fixed;
  top: 50%;
  left: 70%;
  z-index: 4;
  font-size: 30px;
  transform: translateY(-50%);
  background-color: #eda787;
}