@import url("https://fonts.googleapis.com/css2?family=Amaranth:ital,wght@0,400;0,700;1,400;1,700&display=swap");

:root {
    --background: #fff;
}

* {
    color: #fff;
    font-family: "Amaranth", sans-serif;
    font-weight: 400;
    font-style: normal;
}

body {
    background-position: right center;
    background-size: 100%;
    background: #cf3973e0;
}

.container-button {
    text-align: center;
}

.button-click {
    margin-top: 20vh;
    width: 200px;
    height: 50px;
    cursor: pointer;
    border-radius: 20px;
    border: 2px solid #bebbbbc7;
    background: rgb(14, 185, 57);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(14, 185, 57, 0.5);
}

.button-click:hover {
    width: 230px;
    height: 60px;
    box-shadow: 0 0 30px rgba(14, 185, 57, 0.8);
    animation: buttonGlow 0.6s ease-in-out infinite;
}

@keyframes buttonGlow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(14, 185, 57, 0.8);
    }

    50% {
        box-shadow: 0 0 40px rgba(14, 185, 57, 1);
    }
}

span {
    text-transform: uppercase;
}

.container {
    width: 90%;
    height: auto;
    padding-top: 5vh;
    margin: 0 auto;
}

.balloon {
    width: 550px;
    margin: 0 auto;
    padding-top: 30px;
    position: relative;
}

.balloon>div {
    width: 104px;
    height: 140px;
    background: rgba(182, 15, 97, 0.9);
    border-radius: 0;
    border-radius: 80% 80% 80% 80%;
    margin: 0 auto;
    position: absolute;
    padding: 10px;
    box-shadow: inset 17px 7px 10px rgba(182, 15, 97, 0.9);
    transition: transform 0.15s ease-out;
}

.balloon>div:nth-child(1) {
    background: rgba(182, 15, 97, 0.9);
    left: 0;
    box-shadow: inset 10px 10px 10px rgba(135, 11, 72, 0.9);
    -webkit-animation: balloon1 6s ease-in-out infinite;
    -moz-animation: balloon1 6s ease-in-out infinite;
    -o-animation: balloon1 6s ease-in-out infinite;
    animation: balloon1 6s ease-in-out infinite;
}

.balloon>div:nth-child(1):before {
    color: rgba(182, 15, 97, 0.9);
}

.balloon>div:nth-child(2) {
    background: rgba(242, 112, 45, 0.9);
    left: 120px;
    box-shadow: inset 10px 10px 10px rgba(222, 85, 14, 0.9);
    -webkit-animation: balloon2 6s ease-in-out infinite;
    -moz-animation: balloon2 6s ease-in-out infinite;
    -o-animation: balloon2 6s ease-in-out infinite;
    animation: balloon2 6s ease-in-out infinite;
}

.balloon>div:nth-child(2):before {
    color: rgba(242, 112, 45, 0.9);
}

.balloon>div:nth-child(3) {
    background: rgba(45, 181, 167, 0.9);
    left: 240px;
    box-shadow: inset 10px 10px 10px rgba(35, 140, 129, 0.9);
    -webkit-animation: balloon4 6s ease-in-out infinite;
    -moz-animation: balloon4 6s ease-in-out infinite;
    -o-animation: balloon4 6s ease-in-out infinite;
    animation: balloon4 6s ease-in-out infinite;
}

.balloon>div:nth-child(3):before {
    color: rgba(45, 181, 167, 0.9);
}

.balloon>div:nth-child(4) {
    background: rgba(190, 61, 244, 0.9);
    left: 360px;
    box-shadow: inset 10px 10px 10px rgba(173, 14, 240, 0.9);
    -webkit-animation: balloon1 5s ease-in-out infinite;
    -moz-animation: balloon1 5s ease-in-out infinite;
    -o-animation: balloon1 5s ease-in-out infinite;
    animation: balloon1 5s ease-in-out infinite;
}

.balloon>div:nth-child(4):before {
    color: rgba(190, 61, 244, 0.9);
}

.balloon>div:nth-child(5) {
    background: rgba(180, 224, 67, 0.9);
    left: 480px;
    box-shadow: inset 10px 10px 10px rgba(158, 206, 34, 0.9);
    -webkit-animation: balloon3 5s ease-in-out infinite;
    -moz-animation: balloon3 5s ease-in-out infinite;
    -o-animation: balloon3 5s ease-in-out infinite;
    animation: balloon3 5s ease-in-out infinite;
}

.balloon>div:nth-child(5):before {
    color: rgba(180, 224, 67, 0.9);
}

.balloon>div:before {
    color: rgba(182, 15, 97, 0.9);
    position: absolute;
    bottom: -11px;
    left: 52px;
    content: "▲";
    font-size: 1em;
}

span {
    font-size: 4.8em;
    color: white;
    position: relative;
    top: 30px;
    left: 50%;
    margin-left: -27px;
}

@-webkit-keyframes balloon1 {

    0%,
    100% {
        -webkit-transform: translateY(0) rotate(-6deg);
    }

    50% {
        -webkit-transform: translateY(-20px) rotate(8deg);
    }
}

@-moz-keyframes balloon1 {

    0%,
    100% {
        -moz-transform: translateY(0) rotate(-6deg);
    }

    50% {
        -moz-transform: translateY(-20px) rotate(8deg);
    }
}

@-o-keyframes balloon1 {

    0%,
    100% {
        -o-transform: translateY(0) rotate(-6deg);
    }

    50% {
        -o-transform: translateY(-20px) rotate(8deg);
    }
}

@keyframes balloon1 {

    0%,
    100% {
        transform: translateY(0) rotate(-6deg);
    }

    50% {
        transform: translateY(-20px) rotate(8deg);
    }
}

@-webkit-keyframes balloon2 {

    0%,
    100% {
        -webkit-transform: translateY(0) rotate(6eg);
    }

    50% {
        -webkit-transform: translateY(-30px) rotate(-8deg);
    }
}

@-moz-keyframes balloon2 {

    0%,
    100% {
        -moz-transform: translateY(0) rotate(6deg);
    }

    50% {
        -moz-transform: translateY(-30px) rotate(-8deg);
    }
}

@-o-keyframes balloon2 {

    0%,
    100% {
        -o-transform: translateY(0) rotate(6deg);
    }

    50% {
        -o-transform: translateY(-30px) rotate(-8deg);
    }
}

@keyframes balloon2 {

    0%,
    100% {
        transform: translateY(0) rotate(6deg);
    }

    50% {
        transform: translateY(-30px) rotate(-8deg);
    }
}

@-webkit-keyframes balloon3 {

    0%,
    100% {
        -webkit-transform: translate(0, -10px) rotate(6eg);
    }

    50% {
        -webkit-transform: translate(-20px, 30px) rotate(-8deg);
    }
}

@-moz-keyframes balloon3 {

    0%,
    100% {
        -moz-transform: translate(0, -10px) rotate(6eg);
    }

    50% {
        -moz-transform: translate(-20px, 30px) rotate(-8deg);
    }
}

@-o-keyframes balloon3 {

    0%,
    100% {
        -o-transform: translate(0, -10px) rotate(6eg);
    }

    50% {
        -o-transform: translate(-20px, 30px) rotate(-8deg);
    }
}

@keyframes balloon3 {

    0%,
    100% {
        transform: translate(0, -10px) rotate(6eg);
    }

    50% {
        transform: translate(-20px, 30px) rotate(-8deg);
    }
}

@-webkit-keyframes balloon4 {

    0%,
    100% {
        -webkit-transform: translate(10px, -10px) rotate(-8eg);
    }

    50% {
        -webkit-transform: translate(-15px, 20px) rotate(10deg);
    }
}

@-moz-keyframes balloon4 {

    0%,
    100% {
        -moz-transform: translate(10px, -10px) rotate(-8eg);
    }

    50% {
        -moz-transform: translate(-15px, 10px) rotate(10deg);
    }
}

@-o-keyframes balloon4 {

    0%,
    100% {
        -o-transform: translate(10px, -10px) rotate(-8eg);
    }

    50% {
        -o-transform: translate(-15px, 10px) rotate(10deg);
    }
}

@keyframes balloon4 {

    0%,
    100% {
        transform: translate(10px, -10px) rotate(-8eg);
    }

    50% {
        transform: translate(-15px, 10px) rotate(10deg);
    }
}

.pop {
    animation: pop 0.3s forwards;
}

@keyframes pop {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 1;
    pointer-events: none;
    z-index: 9999;
}

h1 {
    position: relative;
    top: 200px;
    text-align: center;
    color: white;
    font-size: 3.5em;
    transition: 2s;
}

.container-image {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.image1,
.image2 {
    width: 180px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.grid {
    display: grid;
    grid-template-columns: 1fr .20fr;
    gap: 40px;
    justify-content: center;
    align-items: start;

}

.grid-right {
    background: white;
    padding: 15px;
    border-radius: 15px;
    width: 350px;
    height: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-image {
    width: 100%;
    border-radius: 10px;
    animation: fadeSlide 1s ease-in-out;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.button-level {
    width: 200px;
    height: 50px;
    border: none;
    border-radius: 10px;
    color: black;
    font-size: 25px;
    cursor: pointer;
    margin: 10px;
}

.container-level-1 {
    background: #fff;
    max-width: 520px;
    padding: 10px;
    border-radius: 10px;
    transition: 6s;
}

.container-level-1 p {
    color: black;
    background: #db2580b6;
    padding: 15px;
    border-radius: 20px;
    font-size: 20px;
    cursor: pointer;
    text-align: center;
    gap: 10px;
}

.container-level-1 p {
    transition: box-shadow 0.1s ease, transform 0.1s ease;
    position: relative;
    overflow: hidden;
}

.container-level-1 p::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.container-level-1 p:hover::before {
    left: 100%;
}

.container-level-1 p:hover {
    animation: pulse .6s ease-in-out forwards;
    box-shadow: 0 0 15px #ff71cdb6;
}

.envelope {
    position: relative;
    width: 650px;
    height: 270px;
    cursor: pointer;
    margin: 0 auto;
}


.envelope-container {

    display: none;
    position: relative;
    width: 650px;
    height: 270px;
    margin: 20px 0;
    perspective: 1000px;
}

.envelope-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffc0d8;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
    overflow: hidden;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 125px;
    background: #e83e88;
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 3;
    transform-origin: top center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s 0.4s;
}

.envelope.opening .envelope-flap {
    transform: rotateX(-180deg);
    z-index: 0;
}

.envelope .text-bottom {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #b8004b;
    font-weight: 600;
    line-height: 1.5;
    z-index: 2;
    text-align: center;
    transition: opacity 0.3s ease;
}

.envelope.opening .text-bottom {
    opacity: 0;
}

.envelope .text-bottom span {
    display: block;
    font-size: 11px;
}


.letter {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 90%;
    max-width: 580px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
    opacity: 0;
    pointer-events: none;
}

.envelope.opening .letter {
    transform: translateX(-50%) translateY(-350px);
    opacity: 1;
    pointer-events: auto;
}

.letter-content {
    padding: 30px;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    max-height: 500px;
    overflow-y: auto;
}

.letter-content h2 {
    color: #e83e88;
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid #ffc0d8;
    padding-bottom: 10px;
}

.letter-content p {
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
}

.letter-signature {
    margin-top: 30px;
    text-align: right;
    font-style: italic;
    color: #e83e88;
    font-size: 18px;
    font-weight: bold;
}


.envelope:not(.opening):hover .envelope-flap {
    transform: rotateX(-15deg);
}

.envelope:not(.opening):hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1.03);
    }
}

.right-modal {
    position: absolute;
    top: 0;
    right: -380px;
    width: 350px;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: right 0.4s ease;
    transition: 3s;
}

.right-modal img {
    width: 100%;
    border-radius: 10px;
}

.container-level-1.show {
    opacity: 1;
    transform: translateY(0);
}

.container-level-1 p.selected {
    background: #ff71cdb6;
    font-weight: bold;
    box-shadow: 0 0 10px #ff71cdb6;
}

.heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #ff3d6b;
    transform: rotate(-45deg);
    animation: rise 2s ease-out forwards;
    z-index: 9999;
}

.heart::before,
.heart::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #ff3d6b;
    border-radius: 50%;
}

.heart::before {
    top: -10px;
    left: 0;
}

.heart::after {
    top: 0;
    left: 10px;
}

@keyframes rise {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(-45deg);
    }

    100% {
        opacity: 0;
        transform: translateY(-150px) scale(1.5) rotate(-45deg);
    }
}


.flappy-container {
    display: none;
    width: 650px;

}

.flappy-game {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(232, 62, 136, 0.3);
    border: 3px solid #e83e88;
     width: 100%;
     
}

.score-value,
.high-score-value {
    color: #e83e88;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#gameCanvas {
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    background: linear-gradient(to bottom, #87CEEB, #dff7ff);
}

.game-controls {
    margin-top: 15px;
    text-align: center;
}

.game-btn {
    background: linear-gradient(135deg, #e83e88 0%, #ff71cd 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(232, 62, 136, 0.4);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 62, 136, 0.6);
    background: linear-gradient(135deg, #ff71cd 0%, #e83e88 100%);
}

.game-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(232, 62, 136, 0.4);
}

.game-instructions {
    margin-top: 15px;
    color: #b8004b;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}