body {
    background-image: url("assets/cover-page-bkg.png");
    background-size: cover;
    background-position-x: center;
    display: flex;
    align-items: center;
    height: 95vh;
}

:root {
    cursor: none;
    --cursorX: 50vw;
    --cursorY: 50vh;
}

:root:before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    position: fixed;
    pointer-events: none;
    background: radial-gradient(
        circle 5vmax at var(--cursorX) var(--cursorY),
        rgba(255, 0, 0, 0.2) 10%,
        rgba(0, 0, 0, 0.5) 20%,
        rgba(0, 0, 0, 1)
    );
    z-index: 1; /*lower z-index to layer it backward*/
}

section {
    position: relative;
    z-index: 2; /*higher z-index to layer it forward*/
    margin: 80px;
    overflow: visible;
}

section h1, section h2, section h3 {
    color: white; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5rem;
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.8);
}

section h1 {
    font-size: 5.2rem;
    animation: expand1 2.5s ease-out;
    margin-top: 30px;
    margin-bottom: 30px;
}

@keyframes expand1 {
    from {
        letter-spacing: 0; /* start from letter space 0 */
    }
    to {
        letter-spacing: auto; /* end with automatically fitted letter space */
    }
}

section h2 {
    font-size: 2rem;
    animation: expand2 3s ease-out;
}

section h3 {
    font-style: italic;
    animation: expand2 3s ease-out;
}

@keyframes expand2 {
    from {
        letter-spacing: 0; /* start from width 0 */
    }
    to {
        letter-spacing: auto; /* end with automatically fitted width */
    }
}

@media screen and (max-width: 800px) {
    section h1 {
        font-size: 4.7rem;
    }
    section h2 {
        font-size: 1.5rem;
    }
    section h3 {
        font-size: 1rem;
    }
}
