.services section{
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    scroll-snap-align: center;
}
.services  section.windowSection{
    background: white;
    display: flex;
    flex-direction: column;
    background: linear-gradient(var(--secondary2), var(--secondary1));
    
}
.services  section.windowSection #exitButton{
    position: absolute;
    width: 75px;
    height: 75px;
    top: 10%;
    right: 3%;
    padding: 0;
    border: 0;
    border: 4px solid var(--primary);
    border-left-style: dotted;
    border-right-style: dotted;
    border-radius: 100%;
    font-size: 50px;
    background-color: var(--accent);
    color: var(--primary);
}
.services  section.windowSection #exitButton.hidden{
    display: none;
}
.services .windowSection .serviceContainer{

    background-attachment: fixed;
    background-size: cover;
    background-position: center;

    cursor: pointer;
    flex: 1;
    transition: all 0.1s linear;
    overflow: hidden;

    display: flex;
    justify-content: stretch;
    align-items: stretch;

    -webkit-user-select: none;
    -ms-user-select: none; 
    user-select: none;
}

.services .windowSection .serviceContainer:not(.active, .inactive):hover{
    flex: 2;
}
.services .windowSection .serviceContainer.active{
    flex: 1;
}
.services .windowSection .serviceContainer.inactive{
    flex-grow: 0;
}
.services .windowSection .serviceContainer .titleBackground{
    margin: 0;
    width: 100%;
    padding-left: 2%;
    background: linear-gradient(90deg, var(--secondary2), var(--secondary1) 40%,  transparent );
    background-size: 200% auto;
    background-repeat: no-repeat;
    background-position: 50%;
    transition: background-position 0.3s ease-in-out, padding-left 0.5s ease-out;

    display: flex;
    align-items: center;
    justify-self: start;
    font-size: 1.5em;
    color: var(--primary);
}
.services .windowSection .serviceContainer.active .titleBackground{
    background-position: 200%;
}
.services .windowSection .serviceContainer:not(.active):hover .titleBackground{
    background-position: 75%;
    padding-left: 3%;
}
.services .windowSection .serviceContainer .titleBackground h2{
    margin: 0;
    font-family: 'Roboto';
    font-weight: normal;
    transition: opacity 0.3s ease-in-out;
}
.services .windowSection .serviceContainer.active .titleBackground h2{
    opacity: 0;
}
.services .windowSection .serviceContainer .imageSection{
    position: absolute;
    height: 90%;
    opacity: 0;
    display: none;
    color: var(--primary);
    text-shadow: 0 0 10px var(--accent);
    transition: opacity 0.2s ease-in;
}
.services .windowSection .serviceContainer .imageSection .detailsContainer{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.services .windowSection .serviceContainer .imageSection .detailsContainer .detailsText{
    padding-left: 5%;
    align-self: start;
}
.services .windowSection .serviceContainer .imageSection .detailsContainer .title{
    font-family: 'Akony';
    font-size: 3vw;
    margin: 0;
    margin-top: 5%;
}
.services .windowSection .serviceContainer .imageSection .detailsContainer p{
    font-size: 1.7vw;
}
.services .windowSection .serviceContainer .imageSection .buttonContainer{
    display: grid;
    grid-template-columns: 10% 1fr 10%;
    align-items: center;
    justify-items: center;

    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}
.services .windowSection .serviceContainer .imageSection .buttonContainer button,
.services .windowSection .serviceContainer .imageSection .detailsContainer button{
    font-size: 2vw;
    margin: 1%;
    padding: 5px;
    padding-bottom: 7px;
    height: auto;

    background-color: var(--secondary2);
    box-shadow: inset 2px 2px 1px var(--secondary1);
    border: var(--accent) solid 3px;
    color: var(--primary);
    transform: scale(0.9);
    font-weight: 300;
    border-radius: 40px;

    transition: box-shadow 0.5s ease-out, transform 0.5s ease-out;
}
.services .windowSection .serviceContainer .imageSection .buttonContainer button:hover,
.services .windowSection .serviceContainer .imageSection .detailsContainer button:hover{
    transform: scale(1);
    opacity: 1;

    box-shadow: inset 10px 10px 10px var(--secondary1);
}
.services .windowSection .serviceContainer .imageSection .buttonContainer img{
    flex-shrink: 1;
    flex-grow: 0;
    width: auto;
    height: auto;
    max-width: 40vw;
    max-height: 80vh;
    box-shadow: 5px 5px 1px var(--primary);
    border-radius: 10px;
}

.services .windowSection .serviceContainer.active .imageSection{
    display: grid;
    grid-template-columns: 1fr 1fr;
    opacity: 1;

} 

/* @media only screen and (max-width: 600px){
    .services section.windowSection:not(#any){
        display: none;
        height: 0;
        overflow: hidden;
    }
} */
@media only screen and (max-width: 1500px) {
    .services #titleSection{
        height: auto;
    }
}


@media only screen and (max-width: 600px){
    .services .windowSection .serviceContainer .titleBackground{
        font-size: 0.9em;
    }
    .services .windowSection .serviceContainer .imageSection:not(#any){
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;

    } 
    .services .windowSection .serviceContainer .imageSection .detailsContainer .detailsText.title{
        font-size: 5vw;
        margin-top: 5%;
    }
    .services .windowSection .serviceContainer .imageSection .detailsContainer p{
        font-size: 4.3vw;
        font-weight: 550;
    }
    .services .windowSection .serviceContainer .imageSection .detailsContainer button{
        font-size: 4vw;
    }
    .services .windowSection .serviceContainer .imageSection .buttonContainer img{
        width: 60vw;
        max-height: 40svh;
    }
    .services .windowSection .serviceContainer .imageSection .buttonContainer button{
        font-size: 8vw;
    }
    .services .windowSection .serviceContainer .imageSection .buttonContainer img{
        height: auto;
        width: auto;
        max-width: 75vw;
        max-height: 40vh;
    }
    .services  section.windowSection #exitButton{
        border: 2px solid var(--primary);
        border-left-style: dotted;
        border-right-style: dotted;
        width: 50px;
        height: 50px;
        top: unset;
        bottom: 3%;
        right: 3%;
        font-size: 30px;
        padding: 0;
        background-color: var(--secondary1);
    }
}
@media only screen and (max-width: 300px){
    .services section#titleSection .buttonGrid.mobile:not(#anything) button{
        font-size: 0.5em;
    }
    .services section#titleSection .buttonGrid.mobile:not(#anything) #title{
        font-size: 8vw;
    }
}

.services .i{
    background-image: linear-gradient(90deg, #000000aa, #00000080, #000000aa) ,url('../assets/Festés/0.jpg');
    animation-duration: 0.1s;
}
.services .d{
    background-image: linear-gradient(90deg, #000000aa, #00000080, #000000aa) ,url('../assets/Fürdőszoba/0.jpg');
    animation-duration: 0.2s;
}
.services .f{
    background-image: linear-gradient(90deg, #000000aa, #00000080, #000000aa) ,url('../assets/Hőszigetelés/0.jpg');
    animation-duration: 0.3s;
}
.services .c{
    background-image: linear-gradient(90deg, #000000aa, #00000080, #000000aa) ,url('../assets/Kerítés/0.jpg');
    animation-duration: 0.4s;
}
.services .a{
    background-image: linear-gradient(90deg, #000000aa, #00000080, #000000aa) ,url('../assets/Kőműves-meló/0.jpg');
    animation-duration: 0.5s;
}
.services .j{
    background-image: linear-gradient(90deg, #000000aa, #00000080, #000000aa) ,url('../assets/Nyílászárók/0.jpg');
    animation-duration: 0.6s;
}
.services .e{
    background-image: linear-gradient(90deg, #000000aa, #00000080, #000000aa) ,url('../assets/Teljes-lakás-felújítás/0.jpg');
    animation-duration: 0.7s;
}
.services .k{
    background-image: linear-gradient(90deg, #000000aa, #00000080, #000000aa) ,url('../assets/Tereprendezés/0.jpg');
    animation-duration: 0.8s;
}
.services .l{
    background-image: linear-gradient(90deg, #000000aa, #00000080, #000000aa) ,url('../assets/Tetőfedés/0.jpg');
    animation-duration: 0.9s;
}
.services .b{
    background-image: linear-gradient(90deg, #000000aa, #00000080, #000000aa) ,url('../assets/Térburkolás/0.jpg');
    animation-duration: 1s;
}
.services .h{
    background-image: linear-gradient(90deg, #000000aa, #00000080, #000000aa) ,url('../assets/Villanyszerelés/0.jpg');
    animation-duration: 1.1s;
}
.services .g{
    background-image: linear-gradient(90deg, #000000aa, #00000080, #000000aa) ,url('../assets/Vízszerelés/0.jpg');
    animation-duration: 1.2s;
}



