body {
    font-family:'Segoe UI', Tahoma, Verdana, sans-serif;
    background-color: #dad1d2;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --------Header-------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #2E4451;
    color: #dad1d2;
    padding: 0px 20px;
    z-index: 1000;

    display: flex;
    align-items: center;
    font-size: 1.25rem;
}
nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px; 
}
nav a:hover {
    color: #737077;
}

/* --------Main-------- */
main {
    margin-top: 120px;
    padding: 20px;
    flex: 1;
}

main h1, h2, h3 {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    max-width: fit-content;
    border-style: outset;
    border-color:#737077;
    padding: 3px;
    border-radius: 5px;
}

main h1 {
    border-width: 5px;
    box-shadow: #2E4451 8px 4px;
}

main h2 {
    border-width: 3px;
    box-shadow: #2E4451 6px 3px;
}

main h3 {
    border-width: 2px;
    box-shadow: #2E4451 4px 2px;
}

main p, li {
    font-weight: 600;
    font-size: 110%;
    max-width: 1200px;
    line-height: 1.4;
}

/* --------Form-------- */
form {
    max-width: 500px;
    width: 100%;
}

fieldset {
    border: 5px solid #2E4451;
    border-radius: 5px;

    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    padding: 20px;
}

#submit, #reset {
    padding: 10px;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    grid-column: 2;
}

#reset {
    background-color: #61475F;
}

#submit{
    background-color: #2E4451;
}

button:hover {
    filter: brightness(1.2);
}

/* --------Footer-------- */
@import url('https://fonts.googleapis.com/css2?family=Ysabeau+SC&display=swap');

footer {
    background-color: #61475F;
    color: white;
    text-align: center;
    width: 100%;
    font-family: "Ysabeau SC", serif;
    font-size: large;
}

/* --------Galerij-------- */
.galerij {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; 
    padding: 10px;
    box-sizing: border-box;
}

.galerij picture {
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px); 
    margin: 0;
}

.galerij img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* --------Mobile-------- */
@media (max-width: 800px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        margin-top: 10px;
    }

    nav a {
        margin: 5px 10px;
    }

    main {
        margin-top: 130px;
        padding: 15px;
        
    }

    main h1, h2, h3 {
        font-size: 1.2rem;
        padding: 2px;
    }

    main p, li {
        font-size: 1rem;
        line-height: 1.5;
        max-width: fit-content;
    }

    .galerij picture {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    header {
        font-size: 1rem;
        padding: 10px;
    }

    nav a {
        font-size: 0.9rem;
    }

    main {
        margin-top: 120px;
        padding: 20px;
    }

    main h1, h2, h3 {
        font-size: 1rem;
    }

    main p, li {
        font-size: 0.9rem;
        max-width: fit-content;
    }

    form {
        padding: 10px;
    }

    .galerij picture {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
