*, *::before, *::after{
    box-sizing: border-box;
}

:root{
    background-color: var(--bg);
    color: var(--primary);
    font-family: "Fredoka", sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    --bg: #FFFDFF;
    --primary: #202026;
}

body {
    margin: 0;
}

.container {
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}

header{
   background-color: var(--primary);
    color: var(--bg);

    nav ul {
        display: flex;
        margin: 0 0 0 -2em;
        flex-wrap: wrap;
        padding: 0;
        list-style: none;
    }

    nav a{
        display: inline-block;
        text-decoration: none;
        color: inherit;
        padding:  1rem;
    }
}



/* rows */
.row {
    display: flex;
    gap: 2rem;

    >*{
        padding: 1rem;
        border: 1px dashed blue;
        flex: 1 1 auto;
    }
}

.visually-hidden:not(:focus):not(:active){
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.navi {
    --text: #FFFDFF;
    --bg: #ae0000;
    nav ul {
        display: flex;
        margin: 0 0 0 -2em;
        flex-wrap: wrap;
        padding: 0;
        list-style: none;
        color:var(--text)

    }

    a{
        background-color: var(--bg);
        transition: color .2s ease-in-out, background-color .1s ease-in-out;
        display: inline-block;
        text-decoration: none;
        color: inherit;
        padding:  1rem;
        &:hover,
        &:focus-visible{
            color: var(--bg);
            background-color: var(--text);
            color:var(--text)
        }
    }
    li:first-child{
        margin: 1rem;
        margin-inline-end: auto;
    }

    li:first-child a{
        color: inherit;
        background-color: inherit;
        font-weight: bold;

    }
#title{
    color: #202026;
}


}


.cards{
    display: flex;
    list-style: none;
    margin: 0 0 0 -2rem;
    gap: 20px;
    li {
        position: relative;
        display: flex;
        flex-direction: column-reverse;
        border-style: solid;
        border-color: black;
        border-radius: 10px;
        overflow: hidden;
        &:hover {
            box-shadow: 5px 5px 5px;
        }
    }
}

.overlay-link{
    position: absolute;
    visibility: hidden;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.content{
    padding: 1rem;
}

footer {
    margin-top: 2rem;
}




