@font-face {
        font-family: 'PP Writer';
        src: url('fonts/PPWriter-Thin.woff2') format('woff2');
        font-weight: 500;
        font-style: normal;
        font-display: swap;
}

@font-face {
        font-family: 'Petitfleur';
        src: url('fonts/PETIFL__\ copy.TTF') format('ttf');
        font-weight: 500;
        font-style: italic;
        font-display: swap;
}

body{
    margin:0;
    background-image: url('imgs/flame.gif');
    background-size: cover;      
    background-repeat: no-repeat;
    background-position: center;  
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    min-height:100vh;
    cursor: url('imgs/match1.png'), auto;

}

/* swap to alternate match cursor when body has this class */
body.match2-cursor{
    cursor: url('imgs/match2.png'), auto;
}

p {
    font-family: 'PP Writer', serif;
    color: rgba(159, 198, 208, 0.8);
    font-size: 1.3em;
    margin: 2em;
    text-align: center;
}

.container {
    display:flex;
    align-items:center;
    justify-content:center;
    margin-left: 4em;
    margin-right: 4em;
}

p span {
    display: inline-block;
    transition: color 0.6s ease, background 0.6s ease;
}

p span:hover,
p span.active {
    background: radial-gradient(circle at 100% 50%, #c82c05, #fc681e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

p span.faded {
    background: none;
    color: rgba(0,0,0,0);
    transition: color 3s ease, background 3s ease;
    transition: opacity 3s ease-out;
}

.matchbox {
    margin-top: 3em;
    margin-bottom:2em;
    cursor: url('imgs/match3.png'), auto;
}

.matchstrip {
    cursor: url('imgs/match1.png'), auto;
}

.swap-text-container {
    position: relative;
    display: inline-block;
    width: 15em;
    margin: 3em;
    font-size: 1.3em;
    font-family: 'PP Writer', serif;
    color: rgba(159, 198, 208, 0.8);
    text-align: center;
    background-color: #ffffff;
}

.swap-text-container span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
}

.swap-text-container .original-text {
    opacity: 1;
}

.swap-text-container .hover-text {
    opacity: 0;
    transition: opacity 1s ease;
    font-style: italic;
    cursor: url('imgs/match1.png'), auto;
}

.swap-text-container:hover .original-text {
    opacity: 0;
}

.swap-text-container:hover .hover-text {
    opacity: 1;
}

.link
{
    color: rgba(159, 198, 208, 0.8);
    text-decoration: none;
    cursor: pointer
}

#smoke {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.smoke-puff {
    position: absolute;
    width: 30px;
    height: 15px;
    background: radial-gradient(circle, rgb(255, 255, 255) 0%, rgb(255, 212, 121) 20%, rgba(255, 105, 36, 0.8)50%,rgba(0, 0, 0, 0) 90%);
    pointer-events: none;
    animation: ripple 1s ease-out forwards;
    transition: fade 1s ease-out;
}

/* grey variant: applied when user clicks ten words */
#smoke.grey .smoke-puff {
    transition: fade 1s ease-in;
    background: radial-gradient(circle, #c1c1c1 0%, #858585 50%, rgba(0,0,0,0) 90%);
    filter: grayscale(100%) contrast(95%);
}

@keyframes ripple {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(4) translateY(-5px);
        opacity: 0;
    }
}