@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
    --bg-color: #F4E9E5;
    --text-color: #2D2D2D;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url('images/background-image.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Align to top */
    padding-top: 2vh;
    /* Push down to approx middle of top half */
    overflow: hidden;
    /* Prevent scrollbars from trail elements */
}

main {
    text-align: center;
    position: relative;
    z-index: 10;
    /* Ensure content is above trail */
}

.trail-text {
    position: absolute;
    pointer-events: none;
    color: rgba(255, 255, 255, 0.8);
    /* Semi-transparent white for visibility */
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 300;
    white-space: nowrap;
    animation: fadeTrail 0.8s ease-out forwards;
    transform: translate(-50%, -50%);
    /* Center on cursor */
    z-index: 1;
}

@keyframes fadeTrail {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

h1 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.main-logo {
    max-width: 504px;
    width: 90vw;
    /* 360 * 1.4 = 504 */
    height: auto;
    margin-bottom: -2rem;
}

.sub-logo {
    max-width: 140px;
    height: auto;
    margin-top: 0rem;
}

.bottom-left-image {
    position: absolute;
    bottom: 2rem;
    left: 4rem;
    max-width: 90px;
    height: auto;
    z-index: 5;
}

.bottom-right-image {
    position: absolute;
    bottom: 2rem;
    right: 4rem;
    max-width: 90px;
    height: auto;
    z-index: 5;
}

@media (max-width: 768px) {
    .bottom-left-image {
        left: 1rem;
        max-width: 70px;
    }

    .bottom-right-image {
        right: 1rem;
        max-width: 70px;
    }
}