:root {
    --primary-color: #66A032;
    --secondary-color: #2ecc71;
    --accent-color: #000000;
    --background-color: #ecf0f1;
    --text-color: #333;
    --font-type: 'Helvetica Neue', sans-serif;
}

body, html {
    font-family: var(--font-type);
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Header Styles */
#navbar {
    background-color: white;
    color: #ffffff;
    text-align: center;
    padding: 0.8em;
    display: flex;
    align-items: center;
    top: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: var(--font-type);
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
    position: sticky;
    justify-content: space-between;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    font-size: 1.8em;
    z-index: 100; /*makes sure the navbar is on top of everything else*/
}

#navbar.scrolled {
    opacity: 0.9;
}

#navbar a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    font-size: 0.65em;
    margin: 0 1em;
    font-weight: 500;
    padding-right: 10px;
}

#navbar img {
    padding-left: 2%;
    width: 4em;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}


#navbar a:hover {
    color: var(--primary-color);
}



#home {
    background-image: url('../images/home/murerarbejde-renovering.jpeg');
    background-size: cover;
    background-position: center;  
    padding-bottom: 10rem;
    padding-top: 10rem;
    margin: 0;

}

#home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust the last value to make the overlay darker or lighter */
    z-index: -10;
}

#home h2 {
    color: white;
    text-align: center;
    font-size: xx-large;
}

#home p {
    color: white;
    text-align: center;
    font-size: large;
}

.service-item h3 {
    text-align: center;
    font-size: 1.5rem;
}

.service-item img {
    width: 90%;
    height: 100%; /* Adjust this line */
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

#bottom-info {
    background-color: #f4f4f4;
    padding: 1rem;
    text-align: center;
    
}

#bottom-info p {
    font-size: large;
    margin: 0;

}

#green-button {
    background-color: #66A032;
    height: 15px;
    
    color: white;
    font-weight: 500;
    padding: 15px 32px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 18px;
    margin: 14px 2px;
    cursor: pointer;
    border: none; /* This removes the border */
    border-radius: 20px;
}


/* images */
img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    height: 300px;
    object-fit: cover;
}


.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px; /* Adjust as needed */
}

/* Section Styles */
section {
    padding: 2em;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1em;
    transition: transform 0.3s ease-in-out;
    background-color: var(--background-color);
}

section h2 {
    color: #333;
    margin-bottom: 1em;
}

section p {
    color: #666;
    line-height: 1.8;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em;
    position: fixed;
    bottom: 0;
    display: flex;
    width: auto;
    height: 4%;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Section Styles */
section#contact, section#portfolio {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 1em;
    transition: transform 0.3s ease-in-out;
}



section#contact h2, section#portfolio h2 {
    color: #333;
    margin-bottom: 1em;
}

section#contact p {
    color: #666;
    line-height: 1.8;
}

/* Contact Form Styles */
form {
    display: grid;
    gap: 1em;
}

form label {
    color: #333;
}

form input,
form textarea {
    width: 100%;
    padding: 0.5em;
    margin: 0.5em 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form button {
    background-color: #333;
    color: #fff;
    padding: 0.5em 1em;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease-in-out;
}

form button:hover {
    background-color: #555;
}

@media only screen and (max-width: 600px) {
    header {
        flex-direction: column;
        height: 150px;
    }
    
    #navbar img {
        padding-left: 2%;
        width: 4em;
        height: auto;
        border-radius: 8px;
        transition: transform 0.3s ease-in-out;
        cursor: pointer;
    }

    .service-item, .portfolio-item {
        width: 100%; /* Full width for smaller screens */

        
    }

}

