/* FONTS */
@font-face {
    font-family: "Dosis";
    src: url(../fonts/Dosis/Dosis-Regular.ttf);
}
@font-face {
    font-family: "Dosis";
    src: url(../fonts/Dosis/Dosis-SemiBold.ttf);
    font-weight: 600;
}
/* CSS */
#mainBody {
    background-color: rgb(245, 241, 232);
}
.banner {
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2);
}
.banner > img, .banner > picture img {
    width: 100%;
}
.animateScroll {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    box-sizing: border-box;
    /*opacity: 0;
    transition: opacity 500ms;*/
}
/*.animateScroll.scrolled {
    opacity: 1;
}*/
.animateScroll h3 {
    margin: 7% 0 0 0;
    box-sizing: border-box;
    text-shadow: 4px 4px 5px rgba(37, 37, 37, 1);
}
.animateScroll p {
    margin: 3% 5% 8% 5%;
    box-sizing: border-box;
    text-shadow: 0px 0px 25px rgba(0, 0, 0, 1);
    font-size: 0.9em;
}
.animateScroll a {
    display: block;
    width: max-content;
    background-color: #c8d7d2;
    padding: 10px 15px;
    font-size: 1.1em;
    margin: 0 auto 20px auto;
    text-decoration: none;
    color: #000;
    border-radius: 15px;
    -webkit-box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.7);
    -moz-box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.7);
    box-shadow: 0px 0px 25px 0px rgba(0, 0, 0, 0.7), 0px 0px 5px 0px #427463 inset;
    box-sizing: border-box;
}
.banner .desktop, .desktopHomeLogo {
    display: none;
}
#projects {
    padding: 10px;
}
#mainDescription {
    text-align: center;
}
#mainDescription h2 {
    width: max-content;
    margin: 10px auto;
    padding: 10px 15px 10px 15px;
    border-bottom: 2px solid #333;
    box-shadow: 0 5px 5px -3px rgba(121, 121, 121, 0.5);
}
#mainDescription > p {
    margin: 0;
    padding: 20px 10px;
    line-height: 1.1em;
}
.postcard {
    width: 90%;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
}
.postcard img {
    width: 100%;
}
.opinionsWrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.desktopWrapper {
    display: none;
}
.mobileOpinions {
    display: none;
    margin: 40px 0 30px 0;
}
.mobileOpinions h1 {
    margin: 0;
}
.swiper-button-next, .swiper-button-prev, .swiper-pagination {
    display: none !important;
}
/* STARE MIEJSCE OPINII */
.smallBox {
    padding: 30px 0;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.2);
}
.smallBoxTextMobile {
    padding: 5px 40px;
    margin-bottom: 20px;
}
.smallBoxText {
    display: none;
}

/* MEDIA */
@media screen and (min-width: 800px) {
    .smallBox {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto 1fr;
    }
    .smallBoxTextMobile {
        display: none;
    }
    .smallBoxText {
        display: block;
        padding: 0 20%;
    }
}
@media screen and (min-width: 1000px) {
    .desktopHomeLogo {
        display: block;
        width: 50%;
        margin: 20px auto 50px auto;
    }
    .banner {
        position: static;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgb(224,224,224);
        background: linear-gradient(135deg, rgba(224,224,224,1) 0%, rgba(217,217,217,0) 80%);
    }
    .banner > img, .banner > picture img {
        display: none;
    }
    .banner .desktop {
        display: block;
    }
    .banner img.desktop, .banner picture.desktop {
        padding: 20px;
        height: calc(96vh - 70px);
        max-height: 1000px;
        width: auto;
    }
    .animateScroll {
        position: static;
        width: auto;
        flex: 1;
        margin-right: 5vw;
        height: 100%;
        background-color: rgba(255, 255, 255, 0);
        color: #000;
        text-align: center;
        box-sizing: border-box;
    }
    /*.animateScroll.scrolled {
        opacity: 1;
    }*/
    .animateScroll h3 {
        margin: 0;
        padding: 0 2vw;
        box-sizing: border-box;
        font-size: 38px;
        text-shadow: none/*4px 4px 5px rgba(37, 37, 37, 1)*/;
        font-family: Dosis;
        font-weight: 600;
    }
    .animateScroll p {
        margin: 5% 5% 8% 5%;
        box-sizing: border-box;
        text-shadow: none/*0px 0px 25px rgba(0, 0, 0, 1)*/;
        font-family: Raleway;
        font-size: 24px;
    }
    .animateScroll a {
        display: block;
        width: max-content;
        padding: 20px 30px;
        font-family: Raleway;
        font-size: 26px;
        font-weight: 600;
        margin: 0 auto 20px auto;
        color: #000;
        border-radius: 50px;
        box-shadow: 0px 0px 5px 0px #427463 inset;
        box-sizing: border-box;
    }
    .animateScroll a:hover {
        background-color: #4b8571;
        color: #fff;
        transition: 0.3s;
    }
    .animateScroll a:active {
        position: relative;
        top: 3px;
        box-shadow: 0 3px 3px 0 rgba(51, 51, 51, 0.6);
        text-shadow: 0 3px 2px rgba(51, 51, 51, 0.5);
    }
    .desktopFlexWrap {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .desktopFlexText, .desktopFlexWrap .postcard, .smallBox {
        flex: 1;
    }
    #mainDescription h2 {
        width: max-content;
        margin: 0 auto 10px auto;
        padding: 0 15px 10px 15px;
        border-bottom: 2px solid #333;
        box-shadow: 0 5px 5px -3px rgba(121, 121, 121, 0.5);
        font-size: 32px;
    }
    #mainDescription p {
        margin: 0 auto;
        padding: 20px 50px;
        text-align: justify;
        font-size: 20px;
        line-height: 1.1em;
    }
    .mobileOpinions {
        display: none;
    }
    .desktopWrapper {
        display: block;
        margin: 40px 0;
        padding-bottom: 40px;
        background: rgb(224,224,224);
        background: linear-gradient(0deg, rgba(224,224,224,1) 0%, rgba(217,217,217,0) 80%);
        box-shadow: 0 0 3px -1px rgba(0, 0, 0, 0.2), 0 5px 5px -2px rgba(0, 0, 0, 0.2);;
    }
    .swiper-button-next, .swiper-button-prev, .swiper-pagination {
        display: block !important;
    }
    .swiper-button-next:hover, .swiper-button-prev:hover {
        transform: scale(1.2);
        transition: all 0.2s ease;
    }
    .desktopWrapper .flexContainer {
        gap: 50px;
        width: 90%;
        margin: 0 auto;
    }
    .desktopWrapper h1 {
        margin: 0 0 40px 0;
        padding-top: 30px;
        box-shadow: 0 -5px 5px -2px rgba(0, 0, 0, 0.2);
    }
    .opinion {
        max-width: 600px;
        display: flex;
        flex-direction: column;
    }
    .opinion p.author {
        margin-top: auto !important;
    }
    .postcard {
        max-width: 50%;
        margin: 30px 0;
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
    }
    .reversedFlex {
        flex-direction: row-reverse;
    }
    .centeredFlex {
        flex-direction: column;
        margin: 40px 0;
        background: rgb(224,224,224);
        background: linear-gradient(0deg, rgba(224,224,224,1) 0%, rgba(217,217,217,0) 80%);
        box-shadow: 0 0 3px -1px rgba(0, 0, 0, 0.2);
    }
    #mainDescription .centeredFlex p {
        width: 100%;
        text-align: center;
        padding: 50px 20vw 50px 20vw;
        box-sizing: border-box;
        font-size: 24px;
        background-color: rgba(255, 255, 255, 0);
        box-shadow: 0 -5px 5px -2px rgba(0, 0, 0, 0.2);
    }
    .smallBox {
        background-color: rgba(255, 255, 255, 0);
        box-shadow: 0 5px 5px -2px rgba(0, 0, 0, 0.2);
        padding: 40px 0 70px 0;
    }
    .smallBoxText {
        font-size: 20px;
    }
    .smallBoxPart img {
        width: 96px;
        margin-bottom: 10px;
    }
    #mainDescription .projectsDesc {
        text-align: center;
        padding: 20px 15vw;
    }
    #projects {
        display: flex;
        align-items: center;
        padding: 30px 0 80px 0;
    }
    .projectPrev {
        flex: 1;
        margin: 0 20px;
        padding: 0;
        box-shadow: 0 3px 5px 0 rgba(51, 51, 51, 0.4);
        box-sizing: border-box;
    }
    .bedroomCompare {
        order: 1;
    }
    .kitchenCompare {
        order: 3;
    }
    .bathroomCompare {
        order: 2;
    }
    .livingroomCompare {
        display: none;
    }
}