@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.navbar {
    top: 0;
    width: 100%;
    background: #222;
    padding-bottom: 20px;
    padding-top: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideDown 0.8s ease-in-out;
}

h1 {
    color: rgb(0, 0, 0);
    font-size: 30px;
    margin-bottom: 0;
    margin-top: 10px;
}

.logo {
    float: left;
    width: 10%;
    height: 25%;
    margin-left: 10px;
    margin-bottom: 10px;
}

.logo img {
    width: 17%;
    vertical-align: middle;
    transition: transform 0.3s ease-in-out;
}

.logo img:hover {
    transform: scale(1.1);
}

.nav-menu {
    list-style: none;
    display: inline-block;
}

.nav-menu li {
    display: inline-block;
    margin: 0 15px;
    padding: 10px;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    padding: 10px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

.nav-menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: #ffcc00;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.nav-menu li a:hover {
    color: #ffcc00;
}

.nav-menu li a:hover::after {
    transform: scaleX(1);
}

#navphone {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
}

.inleiding {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 20px;
    animation: fadeIn 1s ease-in-out;
    border-top: #444 1px solid;
    line-height: 1.5;
}

.inleidingcontent {
    padding: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #ccc;
    border-radius: 8px;
    border-top: #444 1px solid;
    padding-top: 20px;
    grid-area: 1 / 2 / 2 / 4;
    transition: box-shadow 0.3s ease-in-out;

}

.inleidingcontent:hover {
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}
article h2{
    font-size: 20px;
    margin-bottom: 0;
    margin-top: 10px;
    transition: font-size 0.3s ease-in-out;
}
#home-garamond-content,
#home-helvetica-content,
#home-bodoni-content {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border-left: 10px solid;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

#home-garamond-content {
    border-color: #ffcc00;
    border-bottom: #ffcc00 1px solid;
}
#home-helvetica-content {
    border-color: #ff0000;
    border-bottom: #ff0000 1px solid;
}
#home-bodoni-content {
    border-color: #00c3ff;
    border-bottom: #00c3ff 1px solid;
}
#home-content{
    padding-left: 15%;
    padding-right: 15%;
    padding-top: 5%;
}
#home-garamond-content:hover,
#home-helvetica-content:hover,
#home-bodoni-content:hover {
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.2);
}

.home-img {
    width: 15%;
    height: auto;
    padding: 5%;
    padding-left: 12%;
    transition: transform 0.3s ease-in-out;
}

#home-garamond-img:hover,
#home-helvetica-img:hover,
#home-bodoni-img:hover {
    transform: scale(1.05);
}

.geschiedeniscontent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 5%;
    margin-left: 2%;
    margin-right: 2%;
    margin-top: 5%;
}

.geschiedeniscontentgara {
    font-family: 'Garamond', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 20px auto;
    text-align: justify;
    background: #f9f9f9;
    padding: 15px;
    border-left: 10px solid #ffcc00;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}
.geschiedeniscontentgara2{
    font-family: 'Garamond', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 20px auto;
    text-align: justify;
    background: #f9f9f9;
    padding: 15px;
    border-right: 10px solid #ffcc00;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}
.geschiedeniscontentgara:hover {
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.3);
}

.zelfportretgaramond,.zelfportrethelvetica,.zelfportretbodoni,
.garafbeelding {
    width: 100%;
}

.geschiedeniscontenthelvetica{
    font-family: 'Helvetica', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 20px auto;
    text-align: justify;
    background: #f9f9f9;
    padding: 15px;
    border-left: 10px solid #ff0000;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}
.geschiedeniscontenthelvetica2{
    font-family: 'Helvetica', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 20px auto;
    text-align: justify;
    background: #f9f9f9;
    padding: 15px;
    border-right: 10px solid #ff0000;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}
.geschiedenisbodoni{
    font-family: 'Bodoni', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 20px auto;
    text-align: justify;
    background: #f9f9f9;
    padding: 15px;
    border-left: 10px solid #00c3ff;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}

.geschiedenisbodoni2{
    font-family: 'Bodoni', serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 20px auto;
    text-align: justify;
    background: #f9f9f9;
    padding: 15px;
    border-right: 10px solid #00c3ff;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
}
footer {
    text-decoration: none;
    text-align: center;
    padding: 15px;
    background: #333;
    color: white;
    margin-top: 20px;
    font-size: 20px;
    transition: background 0.3s ease-in-out;
}

footer:hover {
    background: #444;
}

footer a {
    color: white;
    font-size: 20px;
    font-style: normal;
    margin-right: 20px;
    transition: color 0.3s ease-in-out;
}

footer a:hover {
    color: #ffcc00;
}

@media screen and (max-width: 768px) {
    #navphone {
        display: block; /* Toon hamburger op kleine schermen */
    }

    .nav-menu {
        display: none; /* Verberg menu standaard */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #222;
        padding: 10px 0;
    }

    .nav-menu.open {
        display: flex; /* Toon menu als het open is */
    }

    .nav-menu li {
        text-align: center;
        padding: 10px 0;
    }

    .content {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3,1fr);
        grid-template-rows: auto;
    }
    .inleidingcontent{
        grid-column: span 1;
        grid-row: span 2;
    }
    .content p{
        font-size: 8px;
    }
    .geschedeniscontent{
        display: grid;
        grid-template-columns: 1fr;
    }
    #geschiedenisgaramond {
        grid-template-columns: 1fr;
    }

    .geschiedeniscontentgara {
        grid-column: span 1;
    }

    .zelfportretgaramond,
    .garafbeelding {
        max-width: 100%;
    }
}
