@import url(https://fonts.bunny.net/css?family=cabin:400);

:root {
    --background: #222;
    --background-mid: #1d1d1d;
    --background-highlight: #111;
    --color: #ddd;
    --red1: #3c0000;
    --red2: #ce4040;
    --red3: #930000;
    --red4: #fbc2b7;
    --font: "Gill Sans", "Gill Sans MT", "Cabin", sans-serif;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--background);
    color: var(--color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

#content {
    flex: 1;
}

article {
    max-width: 100ch;
    margin: auto;
    margin-bottom: 1rem;
    padding-inline: 1rem;
}

a {
    text-decoration: none;
    color: var(--red4);
}

a:hover {
    color: var(--red2);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
    width: 100%;
    text-align: center;
}

h2 {
    margin-top: 4rem;
    font-size: 2rem;
}

p {
    font-size: 1.1rem;
}

button {
    outline: 0;
    border: 0;
    background: var(--red4);
    color: var(--red1);
    font-size: 1.3rem;
    font-family: inherit;
    padding: 0.5rem;
    cursor: pointer;
}

button:hover {
    background: var(--red2);
}

.page-title {
    color: var(--red2);
}

img {
    width: 100%;
}

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-block: 2rem;
}


/*----------------- header -------------------*/

nav {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: var(--background-highlight);
    justify-content: space-between;
}

nav a {
    color: var(--color);
}

#logo {
    height: 3rem;
    width: 3rem;
    margin: 0.7rem;
    margin-left: 2rem;
    display: block;
    flex-shrink: 0;
}

#main-nav {
    display: flex;
    width: auto;
    justify-content: center;
    flex-wrap: wrap;
    /* To match #logos effective flexbox size */
    margin-right: calc(2rem + 3rem + 0.7rem);
}

#main-nav a {
    margin: 0 1rem;
    font-size: 1.2rem;
}

#nav-toggle {
    display: none;
}

#burger {
    display: none;
    height: 3rem;
    width: 3rem;
    margin: 0.7rem;
    margin-right: 2rem;
    cursor: pointer;
}

@media screen and (max-width: 770px) {
    nav {
        align-items: start;
    }

    #burger {
        display: block;
    }

    #nav-toggle:checked ~ #main-nav {
        display: flex;
    }

    #main-nav {
        display: none;
        flex-direction: column;
        margin-right: 0;
    }

    #main-nav a {
        margin: 0.5rem;
        padding: 0.5rem;
        font-size: 1.3rem;
    }
}

/*----------------forms---------------------*/

form textarea,
form input {
    resize: none;
    background-color: var(--background-highlight);
    color: inherit;
    outline: 0;
    border: 0;
    font: inherit;
}

form textarea {
    padding: 0.5rem;
    width: 100%;
    height: 30vh;
}

form input {
    width: calc(100% - 13ch);
}

form button {
    float: right;
    margin-bottom: 1rem;
}

form label {
    color: var(--red4);
    display: inline-block;
    width: 12ch;
}

/*-------------------nav list------------------*/

nav.item-list {
    width: 60ch;
    margin: auto;
    display: block;
    background-color: var(--background);
}

nav.item-list h2 {
    text-align: left;
    font-size: 1.3rem;
}

/*-------------- footer --------------- */

.footer {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding-top: 1rem;
}

.footer-main a {
    margin: 1rem;
    font-size: 1.3rem;
}

.footer-links {
    list-style: none;
    columns: 2;
}


/*---------------list page -------------------*/
.list-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--background-highlight);
    padding: 1rem;
    margin: 1rem;
    color: var(--red4);
    text-decoration: none;
}
