#accepted-message {
    margin-bottom: 300px;
}

#envelope {
    position: absolute;
    left: calc(50% + 50px);
    bottom: 30%;
    transform: translateX(-50%);
    visibility: hidden;
}

dialog {
    visibility: hidden;
    opacity: 0;
    background-color: hsl(44, 100%, 95%);
    display: flex;
    flex-direction: column;
    transition: opacity 0.5s;
    border-radius: 1em;

}

dialog[open] {
    opacity: 1;
}

dialog::backdrop {
    background-color: transparent;
}

img {
    display: block;
}

button {
    cursor: pointer;
    touch-action: manipulation;
}

#heart-button {
    position: relative;
    display: block;
    margin: auto;
    background: none;
    border: none;
}

body {
    background-color: pink;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

h1 {
    font-size: clamp(1rem, 4rem + 0.5vw, 10rem);
    text-align: center;
}

span {
    font-size: clamp(1rem, 2rem + 0.5vw, 10rem);
    text-align: center;
    display: block;
}

#card-info {
    text-align: left;
    margin-top: 0px;
}

#date {
    text-align: center;
    margin-top: 0px;
    margin-bottom: 0.5em;
}

.offset {
    transform: translateX(50px);
}

* {
    font-family: "Dancing Script", Cursive, Arial, Helvetica, sans-serif;
}


#dialog-buttons {
    margin-top: 5em;
    display: flex;
    justify-content: space-evenly;
}

.dialog-button {
    width: 40%;
    aspect-ratio: 1.5;
    border-radius: 1em;
}

#no-button {
    background-color: hsl(0, 100%, 83%);
}

#yes-button {
    background-color: hsl(120, 100%, 86%);
}

@keyframes rotate3d {
    from {
        transform: rotateY(var(--begin-angle, 0deg));
        transform-origin: calc(50% + var(--offset, 0px)) 50%;
    }

    to {
        transform: rotateY(var(--end-angle, 360deg));
        transform-origin: calc(50% + var(--offset, 0px)) 50%;
    }
}
