@charset "utf-8";

/* WELCOME PAGE TO HOME PAGE TRANSITION */
body, html {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrollbars */
    width: 100vw;
    height: 100vh;
}

.montserrat {
    font-family: "Montserrat", serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
}

.wlcpage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: #00C3B1; /* Background color */
    transform-origin: center center; /* Set the transform pivot point */
    transform: scaleY(0); /* Start compressed vertically */
    animation: smoothGrow 1.5s ease-in-out forwards;
    z-index: 1; /* Place behind the text */
}

/* Logo and Mascot initial styling */
.wlcpglogo, .wlcpgmascot {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wlcpglogo {
    height: 3em;
    padding-top: 6em;
}

.wlcpgmascot {
    height: 8em;
    padding-top: 8em;
}

.wlcpagep {
    align-content: center;
    justify-content: center;
    font-family: "Montserrat";
    color: white;
    font-size: 2.5em;
    text-align: center;
    text-shadow: 3px 5px 7px #5F5F5F;
    padding-top: 1em;
}

/* Transitions */
.logomascot {
    position: relative;
    display: inline-block;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Initial state for logo and mascot */
#logo, #mascot {
    transform: scale(0.01); /* Start smaller */
    transition: transform 1.2s ease-in-out;
}

/* Animated state */
.animate-logo-mascot #logo,
.animate-logo-mascot #mascot {
    transform: scale(2); /* Scaled-up state */
}

/* Happy Shopping Text Animation */
.wlcpagep {
    position: absolute;
    top: 100%; /* Start below the viewport */
    left: 50%;
    transform: translateX(-50%);
    font-family: "Montserrat", serif;
    color: white;
    font-size: 2.5em;
    text-align: center;
    text-shadow: 3px 5px 7px #5F5F5F;
    animation: slideUp 1s ease-in-out 0.5s forwards; /* Delay to sync with background */
    z-index: 2; /* Place above the background */
}

/* Sliding text animation */
@keyframes slideUp {
    from {
        top: 100vh; /* Start below the viewport */
        transform: translateX(-50%);
    }
    to {
        top: 70%; /* Move to the final position */
        transform: translate(-50%, -50%);
    }
}

/* Smooth grow keyframes */
@keyframes smoothGrow {
    from {
        transform: scaleY(0); /* No vertical height */
    }
    to {
        transform: scaleY(1); /* Fully expanded vertically */
    }
}

.fade-out {
    animation: fadeOut 2s ease forwards;
    background-color: #00C3B1; /* Retain the background color */
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: scale(1.1); /* Add a subtle zoom-out effect */
    }
}

