.main .container{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
}
.main .container.mobile{
    display: none;
    scroll-snap-type: x mandatory;

}
.main .container.mobile section{
    flex-direction: column;
    scroll-snap-align: center;
}
.main .buttonContainer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: nowrap;
    align-self: stretch;
    
    margin-bottom: 2%;
    height: 20vh;
}

.main section{
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    align-items: center;
    flex-shrink: 0;

    background-size: cover;
    background-position: center;
}
.main .container.mobile section{
    background-attachment: scroll;

}
.main .container.desktop section{
    background-attachment: fixed;
}
.main section#mainSection,
.main section#mainSectionMobile
{
    background-image:  linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), url('../assets/Térburkolás/0.jpg');
}
.main section#ref0Section,
.main section#ref0SectionMobile{
    background-image:  linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), url('../assets/Textures/engineer.jpg');
}
.main section#ref1Section,
.main section#ref1SectionMobile{
    background-image:  linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), url('../assets/Teljes-lakás-felújítás/2.jpg');
}
.main section#ref2Section,
.main section#ref2SectionMobile{
    background-image:  linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), url('../assets/Kőműves-meló/1.jpg');
}
.main section#mainDetailsSection{
    height: auto;
    min-height: 100%;
    display: grid;
    overflow-x: hidden;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows:  auto 1fr 2fr repeat(4, 1fr);
    color: var(--primary);
    background: linear-gradient(11deg,
    var(--primary) 10%,
    var(--primary) 25.8%,
    var(--secondary2T) 25.8%,
    var(--secondary2T) 40%,
    var(--primary) 40%,
    var(--primary) 42%,
    var(--secondary2T) 42%,
    var(--secondary2T) 71%,
    var(--primary) 71%, 
    var(--primary) 73%,
    var(--secondary2T) 73%,
    var(--secondary2) 85%
    ), url('../assets/Térburkolás/0.jpg');
    background-attachment: scroll, fixed;
    background-size: auto, cover;
    background-position: 0, center;
}
.main section#mainDetailsSection .title{
    font-size: 3.5vw;
    margin-top: 10vh;
    margin-bottom: 40vh;
    font-family: 'Akony';
}
.main section#mainDetailsSection button{
    opacity: 1;
}

.main .container.desktop section#mainDetailsSection .mainDetailsContainer {
    margin: 2%;
}
.main section#mainDetailsSection .mainDetailsContainer .circle{
    margin: 1%;
    padding: 1%;
    width: 5vw;
    height: 5vw;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: 2px solid var(--primary);
    border-left-style: dotted;
    border-right-style: dotted;
    border-radius: 100%;
}
.main section#mainDetailsSection .mainDetailsContainer .circle h1{
    text-align: center;
    font-size: 3vw;
    margin: 0;
    font-family: 'Akony';
    height: fit-content;
    transform: translateY(5%);
    
}
.main section#mainDetailsSection .mainDetailsContainer:not(.fullRow) p{
    font-size: 1.4vw;
}
.main section#mainDetailsSection .mainDetailsContainer:not(.fullRow) h2{
    font-size: 1.5vw;
    font-weight: 600;

}
.main section#mainDetailsSection .mainDetailsContainer:not(.fullRow){
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.main section#mainDetailsSection .mainDetailsContainer.fullRow{
    color: var(--accent);
    grid-column: span 2;
    font-size: 1.5vw;
    font-style: italic;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.main section#mainDetailsSection .mainDetailsContainer.fullRow .circle{
    border-color: var(--accent);

}

.main section button{
    font-size: 2vw;
    margin: 3%;
    padding: 20px;
    height: auto;
    opacity: 0.85;

    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, opacity 0.2s linear;
}
.main section button:hover{
    transform: scale(1);
    opacity: 1;

    box-shadow: inset 10px 10px 10px var(--secondary1);

}

.main section button:active{
    opacity: 1;
    transform: scale(0.95);
    box-shadow: inset 5px 5px 5px var(--secondary1);


    background: linear-gradient(110deg, 
    var(--secondary1) 10%, var(--secondary2) 10%, 
    var(--secondary2) 20%, var(--secondary1) 20%,
    var(--secondary1) 30%, var(--secondary2) 30%, 
    var(--secondary2) 40%, var(--secondary1) 40%, 
    var(--secondary1) 50%, var(--secondary2) 50%, 
    var(--secondary2) 60%,var(--secondary1) 60%,
    var(--secondary1) 70%, var(--secondary2) 70%, 
    var(--secondary2) 80%, var(--secondary1) 80%,
    var(--secondary1) 90%, var(--secondary2) 90%, 
    var(--secondary2) 100%, var(--secondary1) 100% );
}

.main section .detailsContainer{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    align-self: stretch;
}
.main section .detailsContainer h1{
    text-align: center;
    
    margin: 0;
    margin-top: 3%;
    font-weight: bold;
    font-size: 5em;
    line-height: normal;

    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    color: var(--primary);
    text-shadow: 5px 5px 3px var(--accent);

}
.main section .detailsContainer p{
    width: 70vw;
    font-size: 1.3vw;
    text-align: center;
    color: var(--primary);
    margin: 0;
}
.main section .detailsContainer button{
    margin: 0;
}
@media only screen and (max-width: 600px){

    .main .container.desktop{
        display: none;
    }
    .main .container.mobile{
        display: flex;
    }
    .main section{
        height: 100%;
    }
    .main section .detailsContainer{
        flex: 1;
    }
    .main section .detailsContainer p{
        width: 90vw;
        max-height: 35vh;
        overflow-y: auto;
        font-size: 3.5vw;
    }
    .main section :not(#mainSectionMobile) .detailsContainer p{
        flex-grow: 1;
    }
    .main section .detailsContainer h1{

        width: 100vw;
        font-size: 1.8em;
        flex-shrink: 1;
        text-shadow: 2px 2px 1px var(--accent);

    }
    .main section button{
        margin: 5px;
        padding: 5%;
        font-size: 5vw;
    }
    .main .container{
        overflow-x: visible;
    }
    .main section#mainDetailsSection{
        display: flex;
        flex-direction: column;
        background: var(--primary);
    }
    .main section#mainDetailsSection .title{
        font-size: 5vw;
        background-color: var(--secondary2);
        margin: 0;
        padding-top: 10%;
        padding-bottom: 10%;

    }
    .main section#mainDetailsSection .mainDetailsContainer{
        padding-top: 15%;
        padding-left: 2%;
        padding-right: 2%;
    }
    .main section#mainDetailsSection .mainDetailsContainer:nth-child(2n){
        background: linear-gradient(5deg, var(--primary) 80%, var(--secondary2) 80%);
        color: var(--accent);
    }
    .main section#mainDetailsSection .mainDetailsContainer:nth-child(2n) .circle{
        border-color: var(--accent);
    }
    .main section#mainDetailsSection .mainDetailsContainer:nth-child(2n-1){
        background: linear-gradient(5deg, var(--secondary2) 80%, var(--primary) 80%);
    }
    .main section#mainDetailsSection .mainDetailsContainer:nth-child(3){
        background: linear-gradient(5deg, var(--secondary2) 90%, var(--primary) 90%);

    }
    .main section#mainDetailsSection .mainDetailsContainer .circle{
        width: 7vw;
        height: 7vw;
    }
    .main section#mainDetailsSection .mainDetailsContainer .circle h1{
        font-size: 5vw;
    }
    .main section#mainDetailsSection .mainDetailsContainer:not(.fullRow) p{
        font-size: 1em;
    }
    .main section#mainDetailsSection .mainDetailsContainer:nth-child(2n).fullRow{
        padding-top: 15%;
    }
    .main section#mainDetailsSection .mainDetailsContainer:nth-child(2n).fullRow p{
        font-size: 4vw;
    }
}
@media only screen and (max-width: 300px){

    .main section .detailsContainer h1{
        width: 100vw;
        font-size: 13vw;
    }
}