body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: url('../media/photos/light-blue-background_edited.jpg') no-repeat ;
    background-size: cover;
    backdrop-filter: blur(10px);
}

header {
    height: 150px; 
    background-color: #020321;
    color: #ECF0F9;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.language-selector {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}

@media (max-width: 550px) {
    .language-selector {
        flex-direction: column;
    }
}

.language-selector a {
    color: #ECF0F9;
    text-decoration: none;
    padding: 8px 12px;
    border: 1px solid #ECF0F9;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.language-selector a:hover {
    background-color: #ECF0F9;
    color: #020321;
}

.logo-container {
    text-align: center;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.header-text {
    text-align: left;
}

.header-text h1 {
    margin: 0;
    font-size: 1.5em;
}

.header-text p {
    margin: 5px 0 0;
    font-size: 1em;
}

.topnav {
    background-color: #020321;
    display: flex;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.topnav a {
    float: left;
    display: flex;
    color: #ECF0F9;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    justify-content: center;
    align-items: center;
}

.topnav a:hover {
    background-color: #ECF0F9;
    color: black;
}

.topnav a.active {
    background-color: #020321;
    color: #ECF0F9;
}

.topnav .icon {
    display: none;
}

@media screen and (max-width: 900px) {
    .topnav a:not(:first-child) {display: none;}
    .topnav a.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width: 900px) {
    .topnav.responsive {position: relative;}
    .topnav.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
        display: block;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
    .topnav {
        display: block;
    }
}

/*_____Content___________*/

main {
    padding: 20px;
}

h2 {
    border-bottom: 2px solid #020321;
    padding-bottom: 10px;
}

#structure-materials {
    color: #020321c8;
}

#structure-materials img {
    border: 1px solid #020321;
    border-radius: 10px;
}

.grid {
    display: grid;
    grid-template-areas:
        "structure structure structure structure"
        "ceiling ceiling floor floor"
        "in-walls in-walls in-walls-fac in-walls-fac"
        "ex-walls-fac ex-walls-fac windows windows";
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
}

.grid-container {
    border: 1px solid #020321;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    align-items: center;
    text-align: left;
    width: 90%;
    justify-self: center;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.288);
    vertical-align: center;
}

.grid-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.grid-img {
    width: 300px;
    height: auto;
    display: block;
    margin-bottom: 10px;
    margin: 0 auto 10px auto;
}

.structure-img {
    width: 65%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    margin: 0 auto 10px auto;
}

.grid-container h3 {
    margin-top: 0;
    text-align: center;
}

.grid-container p {
    font-size: 20px;
}
.grid-container li {
    font-size: 20px;
}

.image-container {
    display: flex;
    flex-direction: row;
    vertical-align: center;
}
.windows {
    display: block;
}

.structure-text {
    text-align: center;
    margin: 0 20%;
}

/* Grid areas */
.grid-container:nth-child(7) { grid-area: ceiling; }
.grid-container:nth-child(2) { grid-area: in-walls; }
.grid-container:nth-child(1) { grid-area: structure; }
.grid-container:nth-child(6) { grid-area: floor; }
.grid-container:nth-child(4) { grid-area: ex-walls-fac; }
.grid-container:nth-child(3) { grid-area: in-walls-fac; }
.grid-container:nth-child(5) { grid-area: windows; }

/* Responsive styles */
@media (max-width: 768px) {
    .grid {
        grid-template-areas:
            "structure"
            "ceiling"
            "in-walls"
            "in-walls-fac"
            "ex-walls-fac"
            "floor"
            "windows";
    }
}

@media (max-width: 1200px) {
    .image-container {
        flex-direction: column;
    }
}

#hero {
    background-size: cover;
    background-attachment: fixed;
    color: #ECF0F9;
    text-align: center;
    padding: 150px 20px;
}

footer {
    background-color: rgba(2, 3, 33, 0.8);
    color: #B2BFC7;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    border-radius: 10px;
    margin: 20px;
    margin-bottom: 0;
}

footer p {
    margin: 0;
}
