section {
  height: 110vh;
  width: 100%;
  padding: 100px;
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(
    0deg,
    rgba(145, 25, 23, 0) 0%,
    rgba(0, 0, 0, 1) 100%
  );
  overflow: hidden;
}
section::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(145, 25, 23, 0) 10%
  );
  z-index: 1;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: radial-gradient(
    circle,
    rgb(255, 102, 0),
    rgba(150, 22, 59, 0) 100%
  );
  animation: flicker-light 5s infinite alternate;
  z-index: -99;
}
@keyframes flicker-light {
  0% {
    opacity: 0.2;
  }
  10% {
    opacity: 0.1;
  }
  20% {
    opacity: 0.3;
  }
  30% {
    opacity: 0.2;
  }
  40% {
    opacity: 0.1;
  }
}
.ofrenda_data {
  height: 100vh;
  width: 500px;
}
h2.ofrenda_title span {
  font-size: 4em;
  font-weight: 400;
  font-family: "Rouge Script", cursive;
  color: #fff;
  position: relative;
  left: 30px;
}
h2.ofrenda_title {
  font-size: 2.5em;
  font-family: "Great Vibes", cursive;
  color: #fff;
  line-height: 0.9;
  text-align: center;
}
p.ofrenda_text {
  height: 400px;
  width: 400px;
  background: rgba(255, 255, 255, 0.514);
  font-family: "Montserrat", sans-serif;
  text-align: center;
  padding: 50px;
}
.ofrenda {
  width: 100%;
  height: 96vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.nivel3 {
  width: 325px;
  height: 200px;
  position: absolute;
  top: 0;
}
section img {
  position: absolute;
  object-fit: cover;
  pointer-events: none;
}
img.nivel_3 {
  top: 0;
}
img.nivel2 {
  top: 170px;
}
img.nivel1 {
  bottom: 80px;
}
img.flores {
  bottom: 0;
}
.candleOfrenda {
  height: 100px;
  width: 100px;
  position: absolute;
  left: 38px;
  top: 8px;
  z-index: 1;
}
.candleOfrenda2 {
  height: 100px;
  width: 75px;
  position: absolute;
  right: 0px;
  top: 8px;
}
#glass {
  position: absolute;
  width: 40px;
  bottom: 0;
}

#glass .bowl {
  background-color: rgba(190, 190, 190, 0.5);
  padding-top: 10px;
  width: 40px;
  height: 30px;
  border-radius: 5px 5px 20px 20px / 20px;
}

#glass .bowl .wax {
  background-color: #f5e594;
  box-shadow: inset 3px -6px 9px #dfc145;
  margin: 0 auto;
  width: 30px;
  height: 25px;
  border-radius: 4px 4px 20px 20px / 20px;
}
.fire-container {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
  bottom: 16px;
  left: 0px;
  transform-origin: center center;
  transform: rotate(-5deg);
  animation: flicker 3s ease alternate infinite;
}

.flame-1 {
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-bottom: 34px solid #fde26c;
  position: absolute;
  top: -30px;
  left: 10px;
  opacity: 0.4;
}

.flame-1:after {
  content: "";
  position: absolute;
  left: -10px;
  top: 34px;
  width: 0;
  height: 0;
  border: 10px solid transparent;
  border-top: 16px solid #fde26c;
}

.flame-2 {
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-bottom: 12px solid #fda263;
  position: absolute;
  top: 6px;
  left: 16px;
  opacity: 0.8;
}

.flame-2:after {
  content: "";
  position: absolute;
  left: -4px;
  top: 12px;
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top: 8px solid #fda263;
}

.flame-3 {
  width: 0;
  height: 0;
  border: 1px solid transparent;
  border-bottom: 4px solid #ffd2bc;
  position: absolute;
  top: 20px;
  left: 19px;
  opacity: 0.9;
}

.flame-3:after {
  content: "";
  position: absolute;
  left: -1px;
  top: 4px;
  width: 0;
  height: 0;
  border: 1px solid transparent;
  border-top: 4px solid #ffd2bc;
}

@keyframes flicker {
  0% {
    transform: rotate(-1deg);
  }
  20% {
    transform: rotate(1deg);
  }
  40% {
    transform: rotate(-1deg);
  }
  60% {
    transform: rotate(1deg) scale(1.1);
  }
  80% {
    transform: rotate(-2deg) scale(1);
  }
  100% {
    transform: rotate(1deg);
  }
}
.base {
  width: 830px;
  height: 315px;
  position: absolute;
  bottom: 0;
}
.smoke-container {
  width: 830px;
  height: 180px;
  position: absolute;
}
svg.smoke {
  position: absolute;
  bottom: 0;
  right: 80px;
  height: 600px;
  width: 200px;
}

svg.smoke path {
  fill: none;
  stroke: white;
  opacity: 0.3;
  stroke-width: 20px;
  stroke-dasharray: 200 100;
  stroke-linecap: round;
  animation: dash 3s linear infinite;
}

@keyframes dash {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 600;
  }
}
@media screen and (max-width: 500px) {
  section {
    flex-direction: column;
    height: 200vh;
  }
  p.ofrenda_text {
    margin-left: 50px;
  }
  .ofrenda_data {
    position: absolute;
    top: 0;
  }
  .ofrenda {
    flex-direction: column;
    position: absolute;
    bottom: 0;
  }
  img.nivel_3 {
    top: 0px;
    width: 300px;
  }
  img.nivel2 {
    top: -100px;
    width: 350px;
  }
  img.nivel1 {
    bottom: -200px;
    width: 400px;
  }
  img.flores {
    bottom: -20px;
    width: 500px;
  }
}
