/* header */

h1 {
    margin: 0px;
}

#header {
    text-align: center;
    background-color: #3a2618;
    margin-bottom: 0px;
}

a {
    text-decoration: none;
    color: #f0ead2;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

/* navbar */

.navbar {
    background-color: #3a2618;
    margin-top: 0px;
    font-family: Arial, Helvetica, sans-serif;
}

.navbar a {
    color: #f0ead2;
}

.navbar a:hover {
    color: #f0ead2;
}

.navbar-toggler {
    background-color: #f0ead2;
}

@keyframes shadow {
    to {
        box-shadow: 0 0 20px rgb(221, 229, 182)
    }
}

#timeline img {
    width: 100%;
    height: auto;
}

li:hover {
    animation-name: shadow;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}


/* footer */

section {
    padding: 20px;
}

.footer {
    background-color: #3a2618;
    text-align: center;
    padding: 10px;
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    gap: 3.5rem;
    left: 0;
    right: 0;
    bottom: 0;
}

.footer-content h4 {
    color: #f0ead2;
    font-size: 20px;
    margin-bottom: 1rem;
}

.footer-content li {
    margin-bottom: 15px;
    display: block;
}

.footer-content li a {
    color: #f0ead2;
}

.footer-content p {
    color: #f0ead2;
}

/* maincontent */

#maincontent {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: #f0ead2;
    font-weight: 900;
    font-family: Georgia, 'Times New Roman', Times, serif
}

/* kuvat */


#maincontent img {
    margin: 5px;
    border-radius: 5px;
}

figure {
    text-align: center;
    max-width: 100%;
}

figcaption {
    width: 100%;
    margin-top: 5px;
}

@keyframes hovershadow {
    to {
        box-shadow: 0 0 20px rgb(87, 41, 21);
    }
}

img:hover {
    animation-name: hovershadow;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}


/* responsiivisuus */

/* responsiivisuus ei ole vielä lähelläkään valmis :DD */

@media only screen and (max-width: 600px) {
    img:not(#timeline) {
        max-width: 350px;
    }
}