* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    cursor: url(Bilder/cursor.png), auto;
}

body {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 1em;
    line-height: 1.6;

    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    background-image: url(Bilder/treebark.jpg);
    background-attachment: fixed;
    background-repeat: round;

    display: flex;
    flex-direction: column;

}


header {
    padding: 5rem 0;

    text-align: center;
    margin-bottom: 1.5rem;
    background-image: url(Bilder/raincoatkiller.jpg);
    background-size: cover;
    background-position: center;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

header p {
    margin-top: -1rem;
    font-size: 1.3rem;
    color: rgb(195, 175, 175);
}


nav {
    margin-bottom: 2rem;
    background-color: #0C1820;
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
}


ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-align: center;
    color: white;
}

li a {

    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;

}


nav,
footer,
header,
main {
    border-radius: 0.5rem;
}

nav,
footer,
main {
    padding: 1rem;
}


h1,
h2,
h3 {
    text-align: center;
    color: #b80721;
    font-family: 'Courier New', Courier, monospace;
}

h4 {
    color: #b80721;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.3rem;
}


p,
label {
    color: #708698;
    margin: 0.2rem;
}

input,
textarea {
    border: 0;
    background-color: #0C1820;
    color: #708698;
    border-radius: 1rem;
    padding: 0.5rem;
}
.submit-button {
    color: #b80721;
    background-color: #0C1820;
    border: 0.1rem solid #900c2b;
    padding: 0.2rem 1.5rem 0.2rem 1.5rem ;
    font-size: 1rem;
    border-radius: 5rem;
}

textarea {
    width: 100%;
    height: 5rem;
}

.form-layout-main {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.form-layout-section {
    width: 100%;
}

main {
    border-radius: 0.5rem;
    background-color: #0C2333;
    padding: 1em;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



article {
    color: darkgrey;
    display: flex;
    flex-direction: column;
}

article img {
    border-radius: 0.5rem;
    width: 40%;
    align-self: center;
    margin: 1.5rem 0;
}

.splash {
    width: 100%;
    border-radius: 0.5rem;
}

aside p {
    font-size: 0.8rem;
}

aside,
footer,
nav {
    color: white;
    font-family: Courier New;
    background-color: #0C1820;
    text-align: center;
}

aside {
    border-radius: 1rem;
    padding: 0.5rem;
    margin: 0.5rem 0;
}

aside h4 {
    color: white;
}

nav,
header {
    margin-bottom: 1.5rem;
}

footer {
    margin-top: 1.5rem;
}


section,
div {
    margin: 2rem;
}

.tag {
    text-align: center;
    font-size: 1.2rem;
    color: rgb(195, 175, 175);
    margin-bottom: 1rem;
}

.descr {

    text-align: center;

}

.logo {
    border: 0;

}


a {
    color: #900c2b;
    text-decoration: none;
}

a:hover {
    color: #da2c40;
    text-decoration: underline;
}

.subnav {
    font-size: 0.7rem;
}

pre {
    color: #6c15b0;
}


.gallery img {
    padding: 0;
    margin: 0;
    margin-bottom: 1%;
    width: 32.6%;
    height: 220px;
    object-fit: cover;
    border-radius: 0.5em;
}

.gallery {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1%;
    width: 100%;
    align-items: center;
}


/* responsive design */
@media (max-width: 600px) {

    .form-layout-main {
        flex-wrap: wrap;
    }

    .form-layout-section {
        margin: 1rem 0 1rem 0;
    }

    .gallery img {
        width: 100%;
    }

    .gallery {
        gap: 0.5rem;
    }

    nav {
        align-items: flex-start;
        padding: 0.2rem;
    }

    nav,
    header {
        margin-bottom: 0.5rem;
    }

    footer {
        margin-top: 0.5rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: space-between;
        text-align: start;
        flex-direction: row;
        font-size: smaller;
        padding: 0.5rem 0;
    }

    .subnav {
        font-size: 0.5rem;
        margin: 0;
        padding: 0;
    }

    header {
        padding: 0;
    }

    h1 {
        font-size: xx-large;
        line-height: normal;
    }

    h2 {
        font-size: x-large;
    }

    h3,
    h4 {
        font-size: large;
    }

    p,
    .tag,
    aside {
        font-size: small;
    }

    footer p {
        font-size: xx-small;
        margin: 0;
        padding: 0;
    }

    header p {
        font-size: medium;
        margin: 0.5rem;
    }

    section,
    div {
        margin: 0;
        padding: 0;
    }

    article img {
        width: 100%;
    }
}