@font-face {
  font-family: winter; /* set name */
  src: url('../fonts/BlueWinter.ttf') format('truetype');
}

@font-face {
  font-family: val; /* set name */
  src: url('../fonts/SongofValentineSans.otf') format('opentype');
}

* {
margin: 0px;
}

body {
    position: relative; 
}

.container {
    background-image: url('../img/background.jpg');
    overflow: hidden;
    height: 100vh;

    background-repeat: no-repeat; /* Prevents the image from tiling */
    background-position: center;  /* Centers the image within the container */
    background-size: 120%;    /* Scales the image down to fit fully */
}

.envelope {
  display: flex;
  height: 100%;
  justify-content: center; /* Centers horizontally */
  align-items: center;
}

.envelope img {
    scale: 90%;
    transition: transform 0.1s ease-in-out;
}

.envelope img:hover {
    transform: scale(1.1);
    cursor: pointer;

}

@keyframes zoomAndFade {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2); /* Zoom forward */
        opacity: 0;          /* Fade out */
    }
}

.zoom-out-effect {
    animation: zoomAndFade 0.6s ease-out forwards;
}

.letter {
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Keeps it horizontally centered */
    
    /* Animation Properties */
    animation: slideDown 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;


    height: 70vh;
    width: 40vw;
    background: linear-gradient(90deg,rgba(242, 172, 233, 1) 0%, rgba(255, 207, 224, 1) 100%);
    border: 10px solid rgb(228, 133, 133);
}

@keyframes slideDown {
    0% {
        top: -70vh; /* Start off-screen at the top */
    }
    100% {
        top: 50%; /* End at the vertical center */
        transform: translate(-50%, -50%); /* Perfect centering offset */
    }
}

.letterHead {
    display: flex;
    font-family: 'winter', "Comic Sans MS";
    color: rgb(205, 51, 51);
    justify-content:center;
    margin-top: 12%;
    font-size: 180%;
    margin-bottom: 10%;
}

.letterBody {
    white-space: pre-line;
    display: flex;
    text-align: center;
    font-size: 190%;
    justify-content:center;
    font-family: 'val', 'Comic Sans MS';
    color: rgb(191, 57, 57);
}

.beMyVal {
    display: flex;
    text-align: center;
    justify-content:center;
    font-size: 250%;
    font-family: 'val', 'Comic Sans MS';
    color: rgb(218, 69, 82);
    margin-top: 8%;
}

.buttonContainer {
    display: flex;            /* Enables Flexbox */
    justify-content: space-evenly; /* Evenly spaces buttons */
    align-items: center;      /* Vertically centers buttons */
    width: 100%;             /* Ensures container spans the letter width */
    margin-top: 20%;         /* Adds space between text and buttons */
}


.yesButton {
    background-color: rgb(255, 104, 104);
    width: 40%;
    height: 80px;
    border: 10px solid rgb(165, 77, 87);
    border-radius: 10px;
    font-family: 'Comic Sans MS';
    font-size: 180%;
}

.yesButton:hover {
    background-color: rgb(255, 187, 187);
    width: 40%;
    height: 80px;
    border: 10px solid rgb(252, 119, 119);
    border-radius: 10px;
    font-family: 'Comic Sans MS';
    font-size: 180%;
    cursor:pointer;
}

.noButton {
    background-color: rgb(255, 104, 104);
    width: 40%;
    height: 80px;
    border: 10px solid rgb(165, 77, 87);
    border-radius: 10px;
    font-family: 'Comic Sans MS';
    font-size: 180%;
}


.noButton:hover {
    background-color: rgb(132, 132, 132);
    width: 40%;
    height: 80px;
    border: 10px solid rgb(252, 119, 119);
    border-radius: 10px;
    font-family: 'Comic Sans MS';
    font-size: 180%;
    cursor:pointer;
}

@keyframes fadeIn {
    0% {
        opacity: 0%;
    }

    100% {
        opacity: 100%;
    }
}

.sadness {
    position: absolute;
    overflow: hidden;
    background-image: url('../img/sadness.gif');
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-repeat: no-repeat; /* Prevents the image from tiling */
    background-position: center;  /* Centers the image within the container */
    background-size: 120%;    /* Scales the image down to fit fully */
    animation: fadeIn 7s ease 3s both;
    animation-delay: 2s;
    z-index: 999;
}

.yippie {
    display: grid;
    grid-template-columns: 30vw 40vw 30vw;
    grid-template-rows: 33vh 16vh 16vh 33vh;
    justify-items: center;
}

.dancingCat {
    scale: 60%;
    grid-row: 2/4;
}

.cat1 {
    grid-column: 1/2;
}

.cat2 {
    grid-column: 3/4;
}

.thankYou {
    font-family: winter, "Comic Sans MS";
    font-size: 500%;
    color: rgb(135, 15, 73);
    grid-column: 2/3;
    grid-row: 1/2;
    align-self: center;
}

.youAre {
    font-family: winter, "Comic Sans MS";
    font-size: 900%;
    color: rgb(255, 113, 181);
    grid-column: 2/3;
    grid-row: 2/3;
    text-align: center;
}

