body {
    background: #FDF6EC;
    font-family: "Caveat", serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
    position: relative;
}

.container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.envelope {
    background: #E74B3B;
    width: 300px;
    height: 200px;
    position: relative;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.5s ease-in-out;
}

.envelope.open .stamp, .envelope.open .for-sanja-title {
    visibility: hidden;
}

.flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: #D64537;
    transform-origin: top;
    transition: transform 0.5s ease-in-out;
}

.paper {
    position: absolute;
    width: 90%;
    height: 80%;
    background: #e6e6e6;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    transition: top 0.5s ease-in-out 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out 1s;
}

.stamp {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    transition: opacity 0.3s ease-in-out;
}

.open .flap {
    transform: rotateX(180deg);
}

.open .paper {
    top: 10%;
    opacity: 1;
}

.open {
    transform: rotate(10deg);
}

.buttons {
    display: none;
    position: absolute;
    width: 40%;
    height: 100%;
    top: 0;
    left: 0;
}

button {
    position: absolute;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.for-sanja-title {
    font-size: 38px;
    color: #ffffff;
}

.yes-btn {
    background-color: #E74B3B;
    color: #ffffff;
    text-transform: uppercase;
    border: none;
    border-radius: 7px;
    position: absolute;
    font-weight: bold;
}

#no {
    background-color: #ffffff;
    color: #E74B3B;
    text-transform: lowercase;
    border: 1px solid #e3e3e3;
    border-radius: 7px;
}

.mobile-only{
    display: block;
}

@media(max-width: 768px){
    .container{
        display: none;
    }
}
@media(min-width: 768px){
    .mobile-only{
        display: none;
    }
}

