@font-face {
    font-family: "Fredoka";
    src: url("./fonts/Fredoka-VariableFont_wdth,wght.woff2") format("woff2")
}
*,
*::before,
*::after{
    box-sizing: border-box;
}
:root{
    font-family: Fredoka, serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    --bg: oklch(0.99 0.003 325);
    --primary: oklch(0.25 0.01 325);
}
body{
    margin: 0;
    background-color: var(--bg);
    color: var(--primary);
}
.container{
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.social-section {
    text-align: center;
}

.social-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.find-me {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 0;
    margin: 0;
}

.find-me li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6a0dad;
    font-weight: 500;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.find-me img {
    width: 80px;
    height: 80px;
    margin-bottom: 0.75rem;
}

header{
    background-color: var(--primary);
}
footer{
    background-color: var(--primary);
    color: var(--bg);
    width: auto;
}
nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 0 -2rem;
}

nav a {
    color: var(--bg);
    background-color: var(--primary);
    text-decoration: none;
    padding-block: 1rem;
    padding-inline: 2rem;
    display: block;

    transition:
            color 0.2s ease-in-out,
            background-color 0.2s ease-in-out;
}
nav a:hover,
nav a:focus-visible {
    color: var(--primary);
    background-color: var(--bg);
}
.visually-hidden{
    color: oklch(0 0 0 / 0.0);
}

.exercise-nav{
    --text: oklch(0.99 0.003 325);
    --bg: oklch(0.45 0.32 40);
}
.exercise-nav ul{
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
}
.exercise-nav a {
    color: var(--text);
    background-color: var(--bg);
    padding: 0.4rem 0.7rem;

    transition:
            color 0.2s ease-in-out,
            background-color 0.2s ease-in-out;
}
.exercise-nav a:hover,
.exercise-nav a:focus-visible {
    color: var(--bg);
    background-color: var(--text);
}
.exercise-nav li:first-child{
    margin-inline-end: auto;

}
.exercise-nav li:first-child a{
    font-weight:600;
}
@media {
    .cards {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: flex-start;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .cards li {
        flex: 0 0 350px;
        max-width: 350px;
        padding: 20px;
        border-radius: 1rem;
        overflow: hidden;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);

        display: flex;
        flex-direction: column;
    }
}


.cards img {
    width: auto;
    height: auto;
    display: block;
}

.cards .content{
    padding: 1rem 1.2rem;
    position: relative;
    z-index: 1;
}

.cards h3 {
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
}

.cards p {
    margin: 0 0 1rem;
}

.cards a {
    color: #3849ff;
    text-decoration: none;
    font-size: 0.9rem;
}
.find-me{
    display: flex;
    justify-content: start;
    position: relative;
    flex-wrap: wrap;
}
.find-me a{
    display: flex;
    text-decoration: none;
}
.find-me img{
    padding: 1rem;
}