:root{
  --gradient:  linear-gradient(to right, #e80033, #f9a852, #f69653, #f38654, #f07654, #ed6856, #ef5956, #ee4c58, #56c1ab);
}
*{
  box-sizing: border-box;
}
.animation-container {
  font-family: sans-serif;
  color: #222;
  border-radius: 0.5rem;
  background: beige;
  background-image: var(--gradient);
  background-size: 400%;
  animation: fondo-anim 20s infinite alternate;
}
@keyframes fondo-anim{
  0%{background-position: left;} 
  100%{background-position: right;}
}



.header {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 1rem 2rem;
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #111827;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
@media (max-width: 768px) {
  .header {
    flex-direction: column; 
    gap: 0.5rem; 
  }

  .brand {
    margin: 0 auto; 
    font-size: 2rem;
  }

  .topnav {
    width: 100%;
    justify-content: center; 
}
    .topnav a {
        font-size: 1.25rem;
        padding: 0.5rem 1rem; 
    }
}

.typing-presentation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-family: "Times New Roman", Times, serif;
    color: rgb(238, 238, 245);
    font-size: 6vh;
}

.typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0; 
  border-right: 0.15rem solid transparent;
  vertical-align: bottom;
}

.part1 {
  animation: typing1 1.5s ease-out forwards, blink 0.9s step-end infinite;
}

.part2 {
  animation: typing2 2.9s ease-out 1.6s forwards, blink 0.9s step-end 2.9s infinite;
}

.part3 {
  animation: typing3 2.5s ease-out 4.5s forwards, blink 0.9s step-end 4.5s infinite;
}


@keyframes typing1 { 
  0% { border-color: currentColor; }
  99% { border-color: currentColor; }
  100% { max-width: 150px; border-color: transparent; } 
}

@keyframes typing2 { 
  0% { border-color: currentColor; }
  99% { border-color: currentColor; }
  100% { max-width: 290px; border-color: transparent; } 
}

@keyframes typing3 { 
  0% { border-color: currentColor; }
  100% { max-width: 345px; border-color: currentColor; } 
}

@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

h3 {
    font-family: "Times New Roman", Times, serif;
    color: green;
}

.par {
    background-color: #f2f2f2;
    border-radius: 0.25rem;
    padding: 0.5rem;
    font-family: "Times New Roman", Times, serif;
}

.topnav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0.3rem 0;
    background-color: #fff;
}

.topnav a {
    cursor: pointer;
    display: block;
    padding: 0.625rem 0.875rem;
    line-height: 1;
    color: #000;
    text-decoration: none;
    font-family: "Times New Roman", Times, serif;
    font-weight: 500;
    transition: color 0.2s ease;
}

.topnav a:hover {
    text-decoration: underline;
    text-underline-offset: 0.25rem; 
    text-decoration-thickness: 0.1rem;
    color: #212329;
}

aside {
    background-color: #21201f;
    color: #ffffff;
    overflow: hidden;
    padding: 0.5rem 0;
}

aside p {
    margin: 0;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
    animation: slidein 22s linear infinite;
}


@keyframes slidein {
    from {
        transform: translate3d(100vw, 0, 0);
    }
    to {
        transform: translate3d(-100%, 0, 0);
    }
}

.pie  {
    display: flex;
    background-color: #21201f;
    border-radius: 0.5rem;
    color: #ffffff;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    width: fit-content; ;
    margin: 0 auto;
    gap: 0.5rem;
}   
.heart {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    background: red;
    border-bottom-right-radius: 2.5px;
    margin: 0 4px;
    animation: beating 2s ease infinite;
}

@keyframes beating {
    0% {
        transform: rotate(45deg) scale(1);
    }
    50% {
        transform: rotate(45deg) scale(1.25);
    }
    100% {
        transform: rotate(45deg) scale(1);
    }
    
}

.heart::before,
.heart:after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: red;
    border-radius: 50%;
    
}
.heart:before {
    top: 0;
    left: -6px;
}
.heart:after {
    top: -6px;
    left: 0;

}


