
* {
    outline: 1px solid transparent;
}

body {
    width: 100%;
    height: 200vh;
    margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-image: linear-gradient(90deg, #23a5f6, lightskyblue);
    color: white;
}

.container {
    width: 50%;
    margin: auto;
    text-align: left;
    padding-top: 25vh;
}

.headword {
    width: 100%;
    font-family: Playfair Display, serif;
    font-size: 8rem;
    margin-bottom: 0;
}

.pronouciation {
    background: steelblue;
    font-family: Open Sans, Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 550;
    margin-right: 2px;
    padding: 0 5px 5px;
}

.wordclass {
    font-family: Arial, sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
}

.definition {
    font-family: Arial, sans-serif;
    font-size: 1.2rem;
    line-height: 1.5;
}

@supports (animation-timeline: view()) {
    .headword {
        transform: scale(1);
        transform-origin: 20% 50%;
        animation: zoomFadeOut linear forwards;
        animation-timeline: scroll(root);
        animation-range: entry 0% exit 100%;
    }
}

@keyframes zoomFadeOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    60% {
        transform: scale(3.5);
        opacity: 0;
    }

    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}