* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f4f4f4;
}

.navbar {
    padding: 15px;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #2c3e50, #bdc3c7);
    z-index: 1000;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 10px;   
}

.navbar li {
    padding: 10px 20px;
    line-height: 20px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 27px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    cursor: pointer;
}

.navbar li a:hover, .active {
    transform: scale(1.1);
    background-color: #f39c12;
    border-radius: 10px;
    padding: 8px;
}

.navbar li.active {
    background-color: #f39c12; 
    border-radius: 10px;
    border: 3px solid #e67e22; 
    
}

.navbar li a{
    text-decoration: none;
    color: rgb(255, 255, 255);
    transition: transform 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}

.headerhome {
    position: relative;
    margin: 0;
    padding: 0;
}

.headerhome img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 85%;
}

.headerhome h1 {
    position: absolute;
    width: 33%;
    bottom: 15%; 
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    border: solid 3px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.5); 
    padding: 10px; 
}

.mainhome {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.mainhome section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 20px;
    grid-column: span 2; 
}

.mainhome img {
    grid-column-start: 1;
    justify-self: center;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3); 
    border-radius: 10px;
}

.sectionhome h3 {
    grid-column-start: 2;
    grid-row-start: 1;
    text-align: center;
    font-size: 30px;
    padding-bottom: 65px;
}

.articlehome h3 {
    grid-column-start: 2;
    grid-row-start: 1;
    text-align: center;
    font-size: 30px;
    padding-bottom: 65px;
}

.mainhome p {
    grid-column-start: 2;
    grid-row-start: 1;
    font-size: 18px;
    padding-top: 65px;
    line-height: 22px;
}

.mainhome article {
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    align-items: center;
    gap: 20px;
    grid-column: span 2;
}

.mainhome aside {
    grid-column: 2; 
    display: grid;
    place-items: center; 
}

.mainhome aside img {
    height: auto;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.mainhome article h3 {
    grid-column-start: 1;
    margin-bottom: 40px;
}

.mainhome article p {
    grid-column-start: 1;
    margin-top: 40px;
}

.footerbar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
    background: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

.footerbar h4 {
    grid-column: span 3; 
    text-align: center;
    margin-bottom: 10px;
}

.footersection {
    display: grid;
    grid-template-rows: repeat(3, auto); 
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-left: 65px;
}

.footersection li {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    width: 85%;
}

#kleurkeuze, #verfberekening {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px auto;
    width: 80%;
    max-width: 900px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    align-items: center;
    text-align: center;
}

#kleurkeuze h2, #verfberekening h2 {
    grid-column: span 2;
    text-align: center;
}

.kleur-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    grid-column: span 2;
    justify-content: center;
}

#Achtergrond {
    width: 100%;
    max-width: 100%;
    grid-column: span 2;
    border-radius: 10px;
}

button.kleur-btn {
    background: #ddd;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

button.kleur-btn:hover {
    background: #ffcc00;
    color: black;
}

#kleur-tekst {
    grid-column: span 2;
    font-size: 1.5em;
    color: #333;
    text-align: center;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 5px;
}

#verfberekening {
    display: grid;
    place-items: center;  
    text-align: center;
}

#verf-form {
    display: grid;
    gap: 10px; 
    width: 100%;
    max-width: 400px; 
}

#resultaat-balk {
    display: grid;
    place-items: center; 
    width: 100%;
    max-width: 400px;
    padding: 10px;
}

#verf-form label {
    grid-column: span 2;
    text-align: left;
    font-weight: bold;
}

#verf-form input {
    grid-column: span 2;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#verf-form button {
    grid-column: span 2;
    background: #444;
    color: white;
    border: none;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

#verf-form button:hover {
    background: #ffcc00;
    color: black;
}




