/*

general

*/

html,
body{
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 62.5%;
}

.maxWidthWrapper{
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    height: 100%;
    display: flex;
    
}

p{
    margin: 0;
}

::-webkit-scrollbar {
	width: 6px;
	height: 6px;
	background: #FFFFFF;
}

::-webkit-scrollbar-button {
	display: none;
}

::-webkit-scrollbar-thumb {
	background: #F15C2B;
	border-radius: 2px;
}

a[href^="tel:"] {
    text-decoration: none;
 }

 ::selection{
    background-color: #F15C2B;
    color: white;
}

::-moz-selection{
	background-color: #F15C2B;
	color: white;
}

/*

Facebook

*/

.fbWrapper{
    position: fixed;
    top: 20vh;
    left: -234px;
    z-index: 99;
    display: flex;
    transition: left 0.2s linear;
}

.fbSliderContent{
    width: 100%;
    max-width: 80vw;
    border: 2px solid #0575D1;
    height: 190px;
}

.fbWrapper:hover{
    left: 0;
}

/*

top bar

*/

.topBar{
    height: 18px;
    color: #5e7d47;
    border-bottom: 1px solid #5e7d47;
}

.topBarLeftSide ul{
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.topBarLeftSide ul li{
    font-size: 1rem;
    padding: 0 10px;
    display: flex;
    align-items: center;
    height: 100%;
}

.topBarRightSide{
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

/*

nav

*/

header{
    height: 100vh;
}

nav{
    height: 84px;
    width: 100vw;
    position: fixed;
    top: 0px;
    -webkit-z-index: 100;
    -moz-z-index: 100;
    -ms-z-index: 100;
    -o-z-index: 100;
    z-index: 100;
    background: rgba(255,255,255,0.7);
    box-shadow: 0 2px 4px -2px gray;
    transition: all 0.2s ease-in;
}

nav[scroll]{
    background: rgba(255,255,255,0.95);
}

.navLeftSide{
    display: flex;
    height: 100%;
    align-items: center;
}

h1{
    height: 55px;
    width: 230px;
    background-image: url('../res/logotyp.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center; 
    overflow: hidden;
    text-indent: -33333px;
    margin: 0;
}

h2{
    overflow: hidden;
    text-indent: -33333px;
    margin: 0;
    position: absolute;
}

.navRightSide{
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

.navRightSide > ul{
    display: flex;
    list-style: none;
    margin: 0;
}

.navRightSide > ul > li{
    text-decoration: none;
    padding: 3px 20px 0px 20px;
    text-align: center;
    cursor: pointer;
    font-size: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    user-select: none;
}

.navRightSide > ul > li > a{
    color: #4E4343;
    text-decoration: none;
}

.navRightSide > ul > li::after{
    top: 0;
    content: " ";
    height: 3px;
    width: 0%;
    border-radius: 2px;
    background-color: #F15C2B;
    transition: all 0.2s ease-in-out;
    opacity: 0; 
}


.navRightSide > ul > li:hover::after{
    opacity: 1;
    width: 100%;
}

.hambureger{
    display: none;
    justify-content: flex-end;
    width: 40px;
}

/*

header baner

*/

.headerBaner{
    width: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
}

.headerBanerBackground{
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s linear;
    position: absolute; 
    --webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
    animation-duration: 8s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
}

.headerBanerBackground::after{
    content: "";
    position: absolute;
    opacity: 0.1;
    width: 100%;
    height: 100%;
    background-color: #9c9c9c;
}

.headerBanerBackgroundFirst{
    z-index: -1;
    opacity: 1;
}

.headerBanerBackgroundSecond{
    z-index: -2;
}

@keyframes  sclaleIn{
    from {transform: scale(1)}
    to {transform: scale(1.15)}
}

@keyframes  sclaleOut{
    from {transform: scale(1.15)}
    to {transform: scale(1)}
}

.headerBanerWordWrapper{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    transition: transform 0.5s linear;
    height: calc(90vh - 144px);
    margin-top: 84px;
}

.headerBanerTitle{
    font-size: calc(2rem + 1vw);
    margin-bottom: 10px;
    min-width: 200px;
    max-width: 70%;
    will-change: contents;
}

.headerBanerDescription{
    font-size: calc(1rem + 0.5vw);
    max-width: 80%;
    will-change: contents;
}

.headerBanerWord{
    padding: 15px;
    color: #FFFFFF;
    animation-duration: 0.5s;
    background-color: rgba(241, 92, 43, 0.85);
    animation-duration: 0.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: linear;
    text-align: center;
    border-radius: 4px;
}

@keyframes  fadeOut{
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes  fadeIn{
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.promoHraderBaner{
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: calc(1rem + 0.5vw);
    font-weight: 700;
    padding: 10px 0;
    background-color: rgba(241, 92, 43, 0.85);
    color: #FFFFFF;
}

/*

Section

*/

.mainSection{
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 0px;
}

.mainSection h3{
    margin: 0px auto 30px auto;
    font-size: 4rem;
    font-weight: 400; 
    position: relative;
    display: inline-block
}

.mainSection h3::after{
    content: " ";
    bottom: -2px;
    left: 0;
    position: absolute;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    background-color: #F15C2B;
}

.mainSectionContent{
    text-align: left;
}

/*

O nas

*/

.oNasSection > p{
    font-size: 1.4rem;
    text-align: center;
    width: 90%;
    margin: 0 auto;
}

.oNasBottom{
    display: flex;
    margin-top: 40px;
}

.oNasBottomLeft{
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 100px;
}

.oNasBottomRight > img{
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
}

.oNasBottomRight{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 55%;
    padding-left: 50px;
    /*margin: 0 90px 0 10px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #F15C2B;
    border-radius: 5px;*/
}

.oNasBottomLeft > a{
    font-size: 2.5rem;
    position: relative;
    left: -42px;
    margin-bottom: 10px;
}

.oNasBottomLeft > ul{
    padding: 0;
}

.oNasBottomLeft > ul > li{
    font-size: 1.6rem;
    padding-left: 1rem;
    text-indent: -1.8rem;
    list-style: none;
    line-height: 2.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.oNasBottomLeft > ul > li:hover{
    color: #F15C2B;
}

.oNasBottomLeft > ul > li::before{
    background-color: #F15C2B;
    border-radius: 50%;
    content: "";
    display: inline-block;
    margin-right: 10px;
    height: 8px;
    width: 8px;
    vertical-align: middle;
}

.promoONasBaner{
    width: 400px;
    font-size: 1.4rem;
    padding: 15px;
    background-color: #F15C2B;
    color: #FFFFFF;
    font-weight: 700;
    text-align: center;
    margin: 60px auto 0 auto;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80%;
}

.promoONasBaner > img{
    margin-right: 20px; 
}

.popupWrapper{
    visibility: hidden;
    display: flex;
    position: fixed;
    opacity: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    justify-content: center;
    align-items: center;
    transition: opacity 0.1s ease;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.popupWrapperBg{
   position: fixed;
   height: 100%;
   width: 100%; 
   z-index: -1;
   object-fit: cover;
}

.popupClose{
    position: fixed;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.popupContent{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    background-color: rgba(241, 92, 43, 0.85);
    color:#FFFFFF;
    border-radius: 5px;
    width: 80%;
    max-height: 80%;
    max-width: 900px;
}

.popupContentTitle{
    text-align: center;
    font-size: 3rem;
    margin: 15px 0 20px 0;
}

.popupContentDescription{
    font-size: 1.6rem;
    margin: 10px;
    overflow-y: auto;
}

/*

Cennik

*/

.priceListTitle{
    font-size: 1.4rem;
    margin-bottom: 30px;
}

.priceListSectionWrapper{
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 20px auto;
}

.priceListItem{
    margin: 28px 0;
    text-align: left;
}

.priceListHeader{
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    background-color: rgba(241, 92, 43, 0.85);
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s linear;  
    border: 1.1px solid #F15C2B;
    position: relative;
}


.priceListHeader:after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    z-index: -1;
    filter: grayscale(1);
}

#stomatologia::after{
    background-image: url('../res/stomatologia.jpg');
    background-position: 50% 50%;
}

#ortodoncja::after{
    background-image: url('../res/ortodoncja2.jpg');
    background-position: 50% 20%;
}

#estetyczna::after{
    background-image: url('../res/estetyczna.jpg');
    background-position: 50% 40%;
}

.priceListHeader:hover{
    background-color: rgba(241, 92, 43, 0.92);
    color: #FFFFFF;
}

.priceListHeader:hover h4, .priceListHeader:hover svg{
    color: #FFFFFF;
    fill: #FFFFFF;
}

.priceListOpen{
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    background-color: rgba(241, 92, 43, 0.92);
}

.priceListOpen h4, .priceListOpen svg{
    color: #FFFFFF !important;
    fill: #FFFFFF !important;
}

.priceListOpen svg{
    transform: rotate(180deg);
}

.priceListHeader > h4{
    display: flex;
    font-weight: 400;
    margin: 0;
    padding: 25px 10px;
    color: #FFFFFF;
    font-weight: 400;
    justify-content: flex-start;
    flex: 1;
    font-size: 1.7rem;
    transition: all 0.1s linear;
}

.priceListHeader > svg{
    display: flex;
    justify-content: flex-end;
    margin-right: 5px;
    fill: #FFFFFF;
    transition: all 0.1s linear;
}

.priceListWrapper{
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.4rem;
    display: none;
    border: 1px solid #F15C2B;
}

.priceListCategory{
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    margin: 10px 0;
    font-size: 1.5rem;
}

.priceList{
    padding: 0;
    margin: 0;
    font-size: 1.4rem;
}

.priceList > li{
    padding: 8px 10px;
    display: flex;
    list-style: none;
    transition: background-color 0.2s linear;
}

.priceList > li:hover{
    background-color: rgba(241, 92, 43, 0.2);
}

.priceDescription{
    display: flex;
    justify-content: flex-start;
    flex: 1;
}

.price{
    display: flex;
    justify-content: flex-end;
}

/*

Zespół

*/

.teamWrapper{
    display: flex;
}

.teamMeber:first-child{
    justify-content: flex-end !important;
    text-align: right;
}

.teamMeber:first-child::after{
    content: "";
    width: 3px;
    background-color: #F15C2B;
    height: calc(100% - 47px);
    margin: 25px 0px 0px 10px;
}

.teamMeber{
    width: 50%;
    text-align: left;
    display: flex;
    justify-content: flex-start;
    padding-left: 10px;
}

.teamImage{
    transform: scale(0.8);
}

.teamMemberName{
    font-size: 2rem;
    margin-top: 5px;
    background-color: #F15C2B;
    padding: 5px;
    color: #FFFFFF;
    margin-top: 25px;
}

.teamMeber p:not(.teamMemberName){
    font-size: 1.2rem;
    margin-top: 10px;
}

.teamMemberTel{
    color: #000000;
}

.certWrapper{
    font-size: 1.3rem;
    background-color: #F15C2B;
    color: #FFFFFF;
    font-weight: 700;
    padding: 10px;
    border-radius: 5px;
    width: 80%;
    margin: 15px auto 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    -webkit-font-smoothing: subpixel-antialiased;
    will-change: transform;
}

.certWrapper > img{
    height: 22px;
    margin-right: 10px;
}

.certWrapper:hover{
    transform: perspective(1px) scale(0.95) translateZ(0);
    backface-visibility: hidden; 
}

.certGallery{
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(35, 35, 35, 0.9);
    z-index: 100;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.certGalleryImage{
    height: auto;
    width: auto;
    max-height: 70%;
    max-width: 80%;
    position: relative;
    background-image: url("../res/loadBig.svg");
    background-position: center;
    background-repeat: no-repeat;
}

.certGalleryArrowBack{
    position: absolute;
    top: calc(50% - 20px);
    left: -40px;
    cursor: pointer;
}

.certGalleryArrowForward{
    position: absolute;
    top: calc(50% - 20px);
    right: -45px;
    cursor: pointer;
}

.certImage{
    max-width: 100%;
    max-height: 100%;
    visibility: hidden;
}

.certGalleryClose{
    position: fixed;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.certGalleryList{
    margin-top: 40px;
    display: flex;
    max-height: 80px;
    max-width: 80%;
    flex: 1;
    align-items: flex-start;
}

.certGalleryListElement{
    width: auto;
    height: auto;
    margin: 0 5px;
    position: relative;
    cursor: pointer; 
    background-image: url("../res/loadMini.svg");
    background-position: center;
    background-repeat: no-repeat;
}


.certGalleryListElement > img{
    max-width: 100%;
    max-height: 100%;
    display: block;
    visibility: hidden;
}

.certGalleryListElement[active]::after{
    content: '';
    background-color: #F15C2B;
    width: 100%;
    height: 3px;
    position: absolute;
    display: block;
    margin-top: 4px;
    border-radius: 1px;
}


/*

Kontakt

*/

.sectionBg{
    background-color: #F15C2B;
}

.whiteTitle{
    color: #FFFFFF !important;
}

.whiteTitle::after{
    background-color: #FFFFFF !important;
}

.contactWrapper{
    display: flex;
}

.contactElement{
    font-size: 1.4rem;
    color: #FFFFFF;
    width: 33%;
    font-weight: 400;
    line-height: 22px;
}

.contactElement > p > a{
    color: #FFFFFF;
    display: block;
    margin-bottom: 5px;
}

.contactIcon{
    display: block;
    margin: 0px auto 10px auto;
    width: 35px;
}

.contactTitle{
    margin-bottom: 10px;
    font-size: 2rem;
}

.ggMap{
    position: relative;
    left: 0;
    right: 0;
    height: 240px;
    margin-top: -20px;
}

/*

Footer

*/

footer{
    height: 20px;
    background-color: #F15C2B;
    color: #FFFFFF;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (min-width: 900px){
    .navRightSide{
        display: flex !important;
    }
}

@media screen and (max-width: 900px){
    .navRightSide{
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        top: 84px;
        background: rgba(255,255,255,0.95);;
        display: none;
    }

    .navItemWrapper{
        max-width: none;
    }

    .navRightSide > ul{
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .navRightSide > ul > li{
        padding: 15px;
        border-bottom: 1px solid #F15C2B;
    }

    .navRightSide > ul > li:hover{
        background-color: #F15C2B;
        color: #FFFFFF;
    }

    .navRightSide > ul > li::after{
        display: none;
    }

    .oNasBottom{
        flex-direction: column;
        align-items: center;
    }

    .oNasBottomRight,
    .oNasBottomLeft{
        padding: 0;
        align-items: center;
        width: 100%;
    }

    .oNasRightImg{
        margin-top: 20px;
    }

    .teamWrapper{
        flex-direction: column;
    }

    .teamWrapper .teamMeber:first-child{
        flex-direction: column-reverse;
    }

    .teamMeber{
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    .teamMemberDescription{
        text-align: center;
    }

    .teamMemberDescription  p  a{
        color: #000000 !important;
    }

    .teamMemberName{
        margin-top: 0;
    }

    .teamMeber > img{
        width: fit-content;
    }

    .teamMeber:first-child::after{
        display: none;
    }

    .contactWrapper{
        flex-direction: column;
    }

    .contactElement{
        width: 100%;
        margin: 20px 0;
    }

    .navLeftSide > h1 {
        transform: scale(0.9);
    }

    .navLeftSide{
        flex: 1;
    }

    .hambureger{
        display: flex;
    }
}


