
body {
 margin: auto;   
}

.envelope-container {
    position: absolute;
    transform: translate(-50%, -50%);
    left: 45%;
    top: 28%;
    opacity: 0;
    animation: dudu 6s ease 6s 1 alternate forwards, enlarge 7s ease-in-out 7s forwards; 
    z-index: 1;
    transform-origin: center center;
}

  .envelope {
    width: 112px;
    height: 112px;
    overflow: hidden;
    position: relative;
    transition: all ease;
    margin: auto;
  }
  .envelope--base {
    top: 50px;
    z-index: 2;
    width: 110px;
    height: 60px;
    position: relative;
    border-radius: 4px;
    border: 2px solid #00000024;
    background-color: rgb(254, 168, 182);
  }
  .envelope__tab {
    left: 14px;
    z-index: 1;
    bottom: 13px;
    width: 104px;
    height: 70px;
    position: absolute;
    transform: rotateZ(45deg);
    border-top-left-radius: 30px;
    background-color: pink;
    border: 2px solid #00000024;
  }
  .envelope__letter {
    left: 14px;
    z-index: 3;
    width: 79px;
    bottom: 8px;
    height: 50px;
    cursor: pointer;
    font-size: 6.5px;
    font-style: oblique;
    padding: 6px 9px;
    border-radius: 8px;
    position: absolute;
    box-sizing: border-box;
    background-size: cover;
    color: #a59090;
    border: 1px solid #00000024;
    transition: all 0.6s linear 0.4s;
    background-image: url("https://i.pinimg.com/564x/bd/27/23/bd2723cccfec31aeb82b41034fdd2933.jpg");
  }
  .envelope:hover .envelope__letter {
    height: 100px;
    color: #4c4444;
  }

  .envelope__letter:before {
    content: "";
    height: 0;
    width: 3px;
    right: -17px;
    bottom: -8px;
    position: absolute;
    border-top: 28px solid transparent;
    border-left: 53px solid pink;
    border-right: 53px solid pink;
    border-bottom: 32px solid rgb(255, 174, 187);
  }


  @keyframes dudu {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
} 

@keyframes enlarge {
    0% {
        transform: scale(1) translate(0, 0); 
    }
    100% {
        transform: scale(4) translate(0, 0); 
    }
}





.kontyner {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 10px;
    max-width: 500px;
    margin: 20px;
  }
  
  .kontyner .btn {
    display: flex;
    gap: 10px;
    opacity: 0;
    animation: showButtons 1.5s ease-in-out 14s forwards; 
   
}
  
  

  .btn a {
    text-decoration: none;
    color: #111;
    background: #fff;
    padding: 17px 40px;
    font-size: 22px;
    border-radius: 66px;
    box-shadow: 0.5rem 1rem 3rem hsl(0, 0%, 0%, 0.3);
  }


@keyframes showButtons {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#move-random {
    position: fixed; 
    top: 75%; 
    left: 50%; 
    z-index: 9999; 
}
#yes {
    position: fixed; 
    top: 75%; 
    left: 40%; 
}



