body {
    background: #FFF1E6;
    font-family: Arial, Helvetica, sans-serif;

    /* Prevent all scrolling */
    overflow: hidden; 
    height: 100vh; /* Changed from 100% to 100vh for a fixed viewport height */
    width: 100vw;  /* Ensure width is locked to the viewport */
    margin: 0;
    position: fixed; /* Extra layer of protection against scrolling */
}

.main {
    position: relative;
    top: 5vh;
    display: grid;
    justify-items: center;
    color: #B21F29;
}

.main span {
    position: relative;
    width: 80vw;
    font-size: 24pt;
    font-weight: bold;
    text-align: center;
}

.main span.name {
    font-size: 18pt;
    background: #FFF1E6;
    color: #B21F29;
    padding: 8px;
    margin-bottom: 25px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.main span.title {
    padding-bottom: 65px;
}

.main span.valentine {
    font-size: 18pt;
}

.main img {
    padding: 20px;
    width: 50%;
    max-height: 30vh; /* Prevents the image from pushing content off-screen */
    object-fit: contain;
    padding-bottom: 40px;
}

.buttons {
    position: relative;
    top: 8vh;
    height: 6vh;
    display: flex;
    flex-direction: row;
    justify-content: center;
    background: #FFF1E6;
    border-color: #FFF1E6;
    border-style: solid;
    border-width: 4px;
    border-radius: 6px;
    padding-block: 4vh;
    padding-inline: 3vw;
    margin-inline: 9vw;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    z-index: 10; /* Ensures buttons stay above background flowers */
}

.buttons button {
    width: 30%;
    height: 100%;
    color: #FFF1E6;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    margin-inline: 30px;
}

.buttons button:hover {
    cursor: pointer;
    filter: brightness(0.8);
}

.buttons button.yes {
    background: green;
}

.buttons button.no {
    background: red;
}

img.border {
    position: absolute;
    top: -8vh;
    left: -4vw;
    width: 110%;
    pointer-events: none;
}

img.rose {
    position: absolute;
    top: 40vh;
    left: -20vw;
    width: 45%;
    transform: rotate(25deg);
    z-index: -1;
}

img.rose2 {
    position: absolute;
    top: 40vh;
    right: -20vw;
    width: 45%;
    transform: scaleX(-1) rotate(25deg);
    z-index: -1;
}

img.flower {
    position: absolute;
    bottom: -6vh;
    right: -13vw;
    transform: rotate(-25deg);
    width: 50%;
    z-index: -1;
}
