/* Font import and global reset */
@import url('https://fonts.googleapis.com/css2?family=Sniglet:wght@400;800&display=swap');
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Sniglet", system-ui, sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #885b5b;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}
body:hover {
    transform: scale(1.);
}
/* Background image as a fixed positioned element */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background.png');
    background-size: 44rem;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0;
    transform: translateY(-30px);
    animation: pageLoad 1.1s ease-out forwards;
    z-index: -1;
    transition: transform 0.3s ease;
}
body:hover::before {
    transform: scale(1.05) translateY(0);
}
/* Keyframes for both background and text */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.text-container {
    margin-bottom: 1.4rem;
    margin-right: 11rem;
    line-height: 2.3;
    position: relative;
    padding: 2.5rem;
    max-width: 40rem;
    border-radius: 1rem;
    text-align: left;
    opacity: 0;
    transform: translateY(-30px);
    animation: pageLoad 1.1s ease-out forwards;
    transition: transform 0.5s ease;
}
body:hover .text-container {
    transform: scale(1.20) translateY(0);
}
p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: rgb(85, 104, 155);
    line-height: 2;
    /* Text outline effect */
    text-shadow: 
        -1px -1px 0 white,
        -1px 1px 0 white,
        1px -1px 0 white,
        1px 1px 0 white,
        -2px 0 0 white,
        2px 0 0 white,
        0 -2px 0 white,
        0 2px 0 white;
}
.highlight {
    color: #dc7d6c;
    /* Text outline effect */
    text-shadow: 
        -1px -1px 0 white,
        -1px 1px 0 white,
        1px -1px 0 white,
        1px 1px 0 white,
        -2px 0 0 white,
        2px 0 0 white,
        0 -2px 0 white,
        0 2px 0 white;
}