/* General Styles */
body {
    font-family: 'Comfortaa';
    font-size: 22px;
    background-color: #E0BBE4;
    padding: 0;
    margin: 0;
}

.hero {
    padding: 8% 16%;
    text-align: center;
}

.in-container {
    display: inline-block;
}

/* Typography animations */
.in-container .hey {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 1px;
    border-right: 5px solid;
    width: 0%;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 2s steps(13), cursor 0.4s step-end infinite alternate;
    animation-fill-mode: forwards;
}

@keyframes cursor {
    50% { border-color: transparent; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; border-color: transparent; }
}

.in-container .hap {
    font-weight: 900;
    border-right: 5px solid;
    width: 0%;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 2s steps(14), cursor 0.4s step-end infinite alternate;
    animation-delay: 2s;
    animation-fill-mode: forwards;
    color: #ffffff;
    font-size: 110px;
    letter-spacing: 3px;
    margin-block-start: 60px;
    margin-block-end: 60px;
}

.in-container .i, .in-container .so {
    font-weight: 900;
    border-right: 5px solid;
    width: 0%;
    white-space: nowrap;
    overflow: hidden;
    font-size: 25px;
}

.in-container .i {
    animation: typing 6s steps(63), cursor 0.4s step-end infinite alternate;
    animation-delay: 4s;
    animation-fill-mode: forwards;
}

.in-container .so {
    animation: typing 3s steps(30), cursor 0.4s step-end infinite alternate;
    animation-delay: 10s;
    animation-fill-mode: forwards;
}

/* Transition backgrounds */
.trans-p-c, .trans-c-l, .trans-l-p, .trans-p-la {
    height: 200px;
    width: 100%;
}

.trans-p-c {
    background-image: linear-gradient(to bottom, rgba(224, 187, 228), rgba(254, 200, 216));
}

.trans-c-l {
    background-image: linear-gradient(to bottom, rgba(254, 200, 216), rgba(255, 223, 211));
}

.trans-l-p {
    background-image: linear-gradient(to bottom, rgba(255, 223, 211), rgba(224, 187, 228));
}

.trans-p-la {
    background-image: linear-gradient(to bottom, rgba(224, 187, 228), rgba(254, 200, 216));
}

/* Containers */
.container-cotton {
    background-color: #FEC8D8;
    padding: 8% 16%;
}

.container-cotton p {
    font-size: 25px;
}

.container-lum {
    background-color: #FFDFD3;
    padding: 8% 8%;
    position: relative;
}

.container {
    padding: 8% 16%;
}

.container p {
    font-size: 25px;
}

/* Images and Video */
.bori {
    height: 400px;
    width: 400px;
    margin-left: 70%;
}

.container-lum video {
    margin-top: -200px;
}

.love {
    height: 150px;
    width: 400px;
    position: absolute;
    left: 37%;
    top: 40%;
    transform: rotate(-20deg);
}

.elf-comment {
    margin-top: 20px;
    font-size: 24px;
    text-align: center;
}

/* Card Style */
.card-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 60px;
}

.card {
    height: 350px;
    width: 250px;
    background-color: #957DAD;
    color: white;
    padding: 40px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.5s, transform 0.5s;
    border-radius: 15px;
}

.card h2, .card p {
    display: none;
}

.card font {
    margin-top: 120px;
    display: block;
    font-size: 80px;
    text-align: center;
}

.card.show h2, .card.show p {
    display: block;
}

.card.show font {
    display: none;
}

.card:hover {
    transform: scale(1.05);
}

/* Button */
.navigate-btn {
    display: block;
    margin: 30px auto;
    padding: 15px 30px;
    font-size: 20px;
    color: #FFFFFF;
    background-color: #FF6F61;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.navigate-btn:hover {
    background-color: #FF4F41;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .bori, .container-lum video {
        width: 80%;
        height: auto;
        margin: auto;
        display: block;
    }
    .container-cotton, .container-lum, .container {
        padding: 10% 8%;
    }
    .in-container .hap {
        font-size: 80px;
        margin-block-start: 30px;
        margin-block-end: 30px;
    }
    .container-cotton p, .container p, .container-lum p {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8% 5%;
    }
    .in-container .hey {
        font-size: 20px;
    }
    .in-container .hap {
        font-size: 60px;
    }
    .in-container .i, .in-container .so {
        font-size: 20px;
    }
    .bori, .container-lum video {
        width: 100%;
        height: auto;
    }
    .love {
        width: 50%;
        height: auto;
        left: 25%;
    }
    .elf-comment {
        font-size: 18px;
    }
    .container-cotton, .container-lum, .container {
        padding: 5% 5%;
    }
    .container-cotton p, .container p, .container-lum p {
        font-size: 18px;
    }
    .card-container {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 90%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .in-container .hey {
        font-size: 16px;
    }
    .in-container .hap {
        font-size: 40px;
    }
    .in-container .i, .in-container .so {
        font-size: 16px;
    }
    .container-cotton p, .container p, .container-lum p {
        font-size: 16px;
    }
    .navigate-btn {
        font-size: 18px;
        padding: 10px 20px;
    }
}
