body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("/assets/heart-bg.jpg");
    font-family: "Pixelify Sans", sans-serif;
}

/* */

/* Envelope Screen (use id from html file) */
#envelope-container {
    text-align: center;
    cursor: pointer;
}

/* Pulse envelope */
@keyframes pulse {
      0% { transform:scale(1);   } /* no trailing semicolon outside brackets req. */ 
     50% { transform:scale(1.1); } 
    100% { transform:scale(1);   } 
}

#envelope {
    width: 200px;
    animation: pulse 1.5s infinite;
    cursor: pointer;
}

#letter-container {
    display: none; 	/* initially, hidden */
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
}

/* dot index appears to grab class name */
.letter-window {
    width: 90vw;
    max-width: 800px;
    aspect-ratio: 3/2;
    padding: 20px 20px 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url("/assets/window.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 12px;
    gap: 1px;
    padding-top: 180px;

    transform: scale(1.2);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.letter-window.open {
    transform: scale(1);
    opacity: 1;
}

/* Style H1 */
h1 {
    font-size: 30px; 
    margin: 0;
}

/* Style P (will you be my valentine) */
p {
    font-size: 40px;
}

/* Cat */

.cat {
    /* width: 250px;  */
    width: 230px;
    margin: 10px 0;
    transition: width 0.4s ease;
}

.letter-window.final .cat {
    width: 150px; /* final cat is a little smaller */
}


/* Buttons (center everything) */
.buttons {
    display: flex; 
    justify-content: center;
    gap: 30px;
    position: relative;
}


/* No Wrapper */
/* Make positions relative and for each button, make them 120px */
.no-wrapper {
    position: relative;
}

.btn {
    width: 100px;
    cursor: pointer;
    user-select: none;
}

.yes-btn,
.no-btn {
    width: 100px; 
    height: auto;
    display: inline-block;
}

.yes-btn {
    position: relative;
    z-index: 2;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

.no-btn {
    z-index: 1;
    position: relative;
    transition: transform 0.15s ease;
    cursor: default;
}

.final-text {
    font-size: 22px;
    /* line-height: 1.4; */
    line-height: 1.75; 
    text-align: center;
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 240, 240, 0.5);
    border-radius: 12px;
}

