*, *::before, *::after {box-sizing: border-box;}

:root{
    font-family: "Fredoka", sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
        --primary: oklch(0.25 0.01 325);
        --bg: oklch(0.99 0.003 325);
    background-color: var(--bg);
    color: var(--primary);

}


.container{
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1rem;
}
header{
    background-color: #00002e;
    color: var(--bg);
}
nav ul{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0rem;
    margin: 0 0 0 -2em ;
    
}
nav a{
    display: inline-block;
    padding: 1em 2em ;
    color: inherit;
    text-decoration: none;
}
.row {
  display: flex;
  gap: 2em;
}

.row > * {
  padding: 1rem;
  border: 1px dashed blue;
  flex: 1 1 auto;
}

.row > *:first-child {
  flex-grow: 2;
}

.visually-hidden{
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
main{
    nav{
        --text: oklch(0.99 0.003 325);
        --bg: oklch(57.987% 0.18915 25.308);
    }

    nav a{
        color: var(--text);
        background-color: var(--bg);
        transition: color .2s ease-in-out, background-color .1s ease-in-out;

        &:hover,
        &:focus-visible{
            color: var(--bg);
            background-color: var(--text);
        }

       

        
    }
    nav li:first-child {
        margin-inline-end: auto;

        a {
            background: none;
            color: var(--primary);
        }
    }
    .cards{
        display: flex;
        gap: 1rem;
        list-style-type: none;
        padding: 0;
    }
    .cards li{
        background-color: white;
        border: solid black;
        border-radius: 1rem;
        box-shadow: 0 0 0.2rem oklch(0 0 0/ .2), 0 0 2rem oklch(0 0 0/ .2);
        overflow: hidden;
        transition: transform 0.2s;
        position: relative;
        display: flex;
        flex-direction: column-reverse;
    
    }
    .cards li:hover{
        transform: scale(1.05);
        box-shadow: 0 0 1rem blue;
    }
    .cards img{
        height: auto;
    }
    .content{
        padding: 1rem;
    }
    .overlay-link{
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        color: white;
        display: none;
        justify-content: center;
        align-items: center;

    }
    .cards li:hover .overlay-link{
        display: flex;
        text-indent: -1000px;
    }
}