/* Paletka Barw */
.color2 { color: #1d2744; }
.color3 { color: #4d5a91; }
.color4 { color: #8893e9; }
.color5 { color: #d0d3ff; }

/* Ogólne style */

 /*
    https://fonts.google.com/specimen/Teko?preview.text=Raf%20Electrical%20Service&preview.size=79
 
 */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f2f2f2;
    color: #333;
    width: auto;
    height: auto;
    
}
footer{
    margin-bottom: 0px;
    width: 100%;
    height: 12%;
    color: white;
    background-color: #123650;
    text-align: center;
    padding-top: 12px;
}

header {
    background-color: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

.menu li {
    margin-bottom: 10px;
    margin-left: 0;
    width: 100%;
    column-gap: 3%;
}


nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    width: auto;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #1d2744;
    padding-right: 6px;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-left: 20px;
    margin-bottom: 10px;
}

.button {
        background-color: white;
        color: #fff;
        padding: 10px 15px;
        border: 1px solid rgb(88, 91, 92);
        color: black;
        opacity: 87%;
        border-radius: 5px;
        text-decoration: none;
        font-weight: bold;
        transition: background-color 0.3s ease;
        width: 120px; 
        align-items: center; 
        justify-content: space-between; 
}


.button:hover {
    background-color: #4d5a91;
    opacity: 100%;
}

main {
    margin-top: 40%;
    padding: 30px;
}

/* Projekty */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.image-container {
    width: 200px;
    margin: 10px;
    position: relative;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.image-container:hover img {
    transform: scale(1.1);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}


.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    
    
}


.image-overlay img {
    max-width: 90%;
    max-height: 90%;
}

/* Kontakt */
table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #8893e9;
    color: #fff;
}

/* Media Queries */
@media (max-width: 768px) {
    .image-container {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .image-container {
        width: 100%;
    }

    .gallery {
        flex-direction: column;
    }

    .menu {
        flex-direction: column;
        align-items: center; 
        justify-content: space-between; 

    }

    .menu li {
        margin-bottom: 10px;
        margin-left: 0;
        width: 100%;
        column-gap: 3%;
    }

    .logo {
        font-size: 18px;
    }
}


