:root {
    --bg-color: black;
    --bg-color-highlight: rgb(20, 20, 20);
    --text-color: white;
    --faded-text-color: rgb(150, 150, 150);
    --more-faded-text-color: rgb(67, 67, 67);

    --bars: rgb(36, 36, 36);

    --primary: #b6ff25;
    --secondary: #db3450;
}

@font-face {
    font-family: SilomBol;
    src: url(fonts/SilomBol.ttf) format('truetype');
}

body{
    font-size: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: SilomBol, sans-serif;
    text-align: center;
    background-image: url(img/bg.png);
    background-size: 500px;
    text-shadow: 0.2em 0.2em 0 black;
    animation: animate-bg 20s linear infinite;
    margin: 0;
}

/* .banner{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    background-color: var(--bg-color-highlight);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
} */

main{
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    
    min-height: 100vh;
    padding: 5em;
    max-width: 800px;

    margin: auto;

    margin-top: 20vh;
    margin-bottom: 20vh;

    gap: 8em;
}


@keyframes animate-bg {
    from {background-position: 0 0;}
    to {background-position: -2000px 500px;}
}

h1,h2,h3,h4{
    font-weight: normal;
}

header{
    .tags{
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-bottom: 16px;
    }

    h1{
        animation: breath-scale 4s ease-in-out infinite, breath-rotate 6s ease-in-out infinite;
        animation-delay: -0.5s, -1s;
    }

    .subtitle{
        font-size: 1.2em;
        color: var(--faded-text-color);
        margin-top: -0.5em;
        animation: breath-scale 4s ease-in-out infinite, breath-rotate 6s ease-in-out infinite;
        animation-delay: -0.1s, -0.6s;
    }
}


h2{
    font-size: 1.2em;
}


.prose{
    text-align: left;
    line-height: 1.6em;
    color: var(--more-faded-text-color);

    h1,h2,h3{
        color: var(--text-color);
    }

}

@keyframes breath-scale {
    0%, 100% {
        scale: 1;
    }
    50% {
        scale: 1.1;
    }
}

@keyframes breath-rotate {
    0%, 100% {
        rotate: -2deg;
    }
    50% {
        rotate: 2deg;
    }
}

.progress-main-container{
    max-width: 620px;
    display: grid;
    width: 100%;
    margin: 0 auto;
    gap: 24px;
}

.progress-detailed-container{
    max-width: 550px;
    display: grid;
    width: 100%;
    margin: 0 auto;
    gap: 24px;
}

.summary{
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

section.progress-section{
    p{
        margin-top: 1.5em;
        font-size: 0.8em;
    }
}

.progress{
    height: 36px;
    width: 100%;
    outline: 6px solid white;
    outline-offset: 8px;
    gap: 8px;
    display: flex;

    &.not-started{
        outline-color: var(--bars);
    }

    &.large{
        height: 52px;
    }

    .bar{
        background-color: var(--bars);
        height: calc(100%);
        width: 100%;
        background-size: contain;
        box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.5);
        transition: 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        
        &.filled{
            background-color: var(--primary);
        }

        &.progressing{
            animation: blinking 1.5s steps(1) infinite;
        }
    }

    .bar:hover{
        transform: translateY(5px);
        box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.5);
        height: calc(100% - 5px);
        transition: 0s;

        &.filled{
            background-color: white;
        }
    }
}

@keyframes blinking {
    0%, 100% {
        background-color: var(--primary);
    }
    50% {
        background-color: var(--bars);
    }
}


a{
    color: var(--secondary);
    cursor: pointer;
    text-decoration: none;

    &:hover{
        text-decoration: underline;
    }
}

footer{
    font-size: 0.9em;

    nav{
        display: flex;
        justify-content: center;
        gap: 16px;
        margin-top: 8px;
    }
}