:root {
    --building-width: 33.33%;
    --building-height: 28vmin;
    --building-max-width: 100%;
    --active-width: 80vw;
    --inactive-width: 8vw;
    --transition-duration: 0.5s;
}

.building-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    max-width: 100vw;
    height: 17vw;
    overflow: hidden;
    position: relative;
    margin-left: calc(-50vw + 50%);
}

@media screen and (max-width: 768px) {
    .building-container {
        height: 30vw;
    }
}

.buildings-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
}

.building-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: var(--building-width);
    max-width: var(--building-max-width);
    height: var(--building-height);
    max-height: var(--building-height);
    position: relative;
    transition: 
        transform var(--transition-duration) ease,
        width var(--transition-duration) ease,
        filter var(--transition-duration) ease;
    z-index: 1;
    cursor: pointer;
    overflow: hidden;
}

.building-btn.active {
    width: var(--active-width);
    max-width: 1000px;
    z-index: 2;
}

.building-btn.inactive {
    width: var(--inactive-width);
    height: 100%;
    filter: grayscale(35%);
    z-index: 1;
    justify-content: flex-end;
    align-items: center;
}

.building-btn img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: bottom;
    transition: max-width var(--transition-duration) ease;
}

.building-btn.inactive img,
.building-btn.active img {
    max-width: 100%;
    max-height: 100%;
}

.building-btn-text {
    text-align: center;
    width: 100%;
    opacity: 1;
    transition: opacity var(--transition-duration) ease;
}

@media screen and (max-width: 915px) {
    .building-btn.inactive .building-text {
        display: none;
    }
} 

/* Background Trees Styling */
.background-trees {
    position: absolute;
    width: 50%;
    left: 0%;
    z-index: -1;
    bottom: 10%;
    opacity: 0.15;
    object-fit: cover;
    object-position: bottom;
}

.background-trees:nth-child(2) {
    left: 50%;
}

@media screen and (max-width: 600px) {
    .background-trees {
        width: 100%;
    }
    
    .background-trees:nth-child(2) {
        display: none;
    }
}

#head-text {
    display: none;
}

.logo-container {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.main-logo {
    max-width: 15%;
    height: auto;
    object-fit: contain;
}

/* Building Specific Inactive Styles */
.building-one.inactive {
}

.building-two.inactive {
    width: 6.3vw;
}

.building-three.inactive {
}


@media screen and (max-width: 768px) {
    .main-logo {
        max-width: 25%;
    }
}

@media screen and (max-width: 768px) {
    .building-btn.inactive {
        width: 23vw;
        height: 100%
    }

    .building-two.inactive {
        width: 19vw;
    }
}

