@font-face {
    font-family: 'Public Sans Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(https://cdn.jsdelivr.net/fontsource/fonts/public-sans:vf@latest/latin-wght-normal.woff2) format('woff2-variations');
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Public Sans Variable", sans-serif;
    margin: 1rem;
}

input, button, textarea {
    padding: 0.5rem;
    border-radius: 8px;
}

#particles-js {
    width: 100%;
    height: 100%;
    z-index: -1;
    position: fixed;
    top: 0;
    left: 0;
}

section, header, footer, aside {
    font-family: 'Public Sans Variable', "Droid Sans", sans-serif;
    padding: 1rem;
    border-radius: 16px;
    top: 50%;
    left: 30%;
    width: 60%;
    height: max-content;
    position: static;
    z-index: 0;
    margin: auto auto 1rem;
}

h1, h2, h3, h4, h5, h6, .center {
    text-align: center;
}

.left {
    text-align: left !important;
    
    h2, h3, h4, h5, h6 {
        text-align: left;
    }
}

.auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

#posts {
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
}

nav a {
    text-decoration: none;
}

nav a:not(:first-child):not(:last-child)::after {
    content: " - ";
    margin: 0 0.5rem;
}

section#blog br {
    margin-bottom: 2rem;
    line-height: 2;
}

.card, dialog[open] {
    display: grid;
    padding: 0.5rem;
    margin: 0.5rem;
    border-radius: 4px;
    grid-template-rows: auto 1fr auto;

    hr {
        align-self: end;
        margin: 1rem 0;
        border: none;
    }
    
    p {
        width: 100%;
        overflow: hidden;
    }
}

input, button, textarea, .btn {
    padding: 0.5rem;
    border-radius: 8px;
}

.end {
    align-self: end;
    margin: 1rem 0;
}

.auto-grid.third {
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
}

aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: auto auto 1rem;
    width: 60%;
    padding: 1rem;

    section {
        width: 100%;
        
        img {
            width: 100%;
        }
    }
}

.auto-grid {
    padding: 0.3rem;
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

header > h1 {
    margin-top: 0;
}

hr {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

footer {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    height: max-content;
}

#particles-js {
    background-color: #222;
}

.card, dialog[open] {
    border: 1px solid #c1cece;
    hr {
        border-bottom: solid #c1cece 1px;
    }
}

hr {
    border-bottom: solid #c1cece 1px;
}

header {
    display: grid;
    grid-template-columns: 0.6fr 1fr 1fr;
    grid-template-rows: 1.6fr 0.4fr;
    gap: 0 0;
    grid-template-areas:
    "Logo Greeting Greeting"
    "Logo Menu Menu";
}

.Logo {
    grid-area: Logo;
    text-align: center;
}

.Greeting {
    grid-area: Greeting;
    text-align: left;
}

.Menu {
    grid-area: Menu;
    text-align: left;
}

.icon-grid {
    justify-content: center;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    
    svg {
        fill: #c1cece;
        width: 24px;
        height: 24px;
    }
}

header, section, aside, dialog[open], footer {
    background-color: #042c28;
    color: #c1cece;
}

body {
    background-color: #042c28;
    color: #c1cece;
}

a {
    color: #c1cece;
}

input, button, textarea, .btn {
    background-color: #042c28;
    color: #c1cece;
    border-color: #c1cece;
}

@media (max-width: 800px) {
    section {
        width: 100%;
    }

    aside {
        display: block;
        width: 100%;
                
        img {
            width: 16rem;
        }
    }

    .auto-grid, #posts {
        display: block;
    }
    
    footer {
        width: 100%;
        .icon-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
            grid-template-rows: 1fr 1fr;
        }
    }

    header {
        width: 100%;
        display: grid;
        grid-template-columns: 3fr;
        grid-template-rows: 1.0fr 0.33fr 0.33fr;
        gap: 0 0;
        grid-template-areas:
    "Logo"
    "Greeting"
    "Menu";
    }
}