/* OBECNÝ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    font-style: normal;
}

html{
    background-color: white;
    scroll-behavior: smooth;
}

h1{
    text-align: center;
    font-size: 3em;
    margin-block: .5em;
}

a{
    text-decoration: none !important;
    transition: 0.2s;
    color: black !important;
    display: block;
    position: relative;
    padding: 0.2em 0;
}

a.underline::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.1em;
    background-color: #7CA031;
    transition: opacity 300ms, transform 300ms;
    transform: scale(0);
    transform-origin: center;
}

a.underline:hover::after,
a.underline:focus::after {
  transform: translate3d(0, 0.2em, 0);
  transform: scale(1);
}

.line{
    width: 100%;
    background-color: #D9D9D9;
    height: 10px;
}

/* NAV */

nav{
    height: 100px;
    display: flex;
    justify-content: space-between;
    padding: 1em 2em;
    align-items: center;
    background-color: white;
    font-size: 1.4em;
    text-decoration: none;

    transform: translateX(-100px);
    transition: 1s;
}

nav.show{
    transform: translateX(0px);
}

.navLeftPart{
    display: flex;
    gap: 4em;
}

.links{
    margin-block: auto;
    display: flex;
    gap: 4em;
}

/* CONTACT INFO */

.contactInfo, footer{
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    color: white;
}

.contactInfo{
    background-image: url("images/background.jpeg");
    background-position: left 70%;
    height: calc(100vh - 100px);
    display: grid;
    align-items: center;
    transition: 1s;
}

.contactInfo::after, footer::after{
    content: "";
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    pointer-events: none;
}

/* footer::after{
    background-color: rgba(0, 0, 0, 0.6);
} */

.contactInfo * {
    z-index: 2;
    opacity: 0;
    transition: 1.5s;
}

.contactInfo.show *{
    opacity: 1;
}

.contactInfo h1{
    font-size: 2.7em;
    margin-bottom: 1.5em;
    text-align: left;
}

.contactInfo p{
    font-size: 1.6em;
    margin-bottom: 1em;
}

.contactWrapper{
    max-width: 35em;
    margin: auto 0 auto 4em;
}

.contacts {
    display: flex;
    gap: 1em;
}

.contacts a{
    padding: .6em 1em;
    width: fit-content;
    border-radius: 2em;
    display: flex;
    gap: 1em;
    justify-content: center;
    align-items: center;
    background-color: #D9D9D9;
    transform: scale(1);
    transition: transform .2s;
}
.contacts a:hover{
    transform:scale(1.05)
}

/* Sluzby */

.services{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    margin-bottom: 1em;
}

.service{
    max-width: 40em;
    width: 100%;
    border-radius: 2em;
    background-color: #D9D9D9;
    display: flex;
    align-items: center;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.493);

    transition: 1s;
}

.service.right{
    transform: translateX(100px);
}
.service.left{
    transform: translateX(-100px);
}

.service.show{
    transform: translateX(0px);
}

.service .img-wrapper{
    height: 100%;
    width: 18em;
    border-radius: 2em;
    overflow: hidden;
    flex: 2;
}

.img-wrapper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.info{
    text-align: center;
    flex: 3;
    padding: .5em;
}

.info > *{
    margin-top: .5em;
}

.info span{
    color: #7CA031;
    font-size: 1.3em;
}

.info a{
    padding: 0.8em 1.4em;
    border-radius: 2em;
    background-color: #FF450C;
    color: white;
    font-size: 1.4em;
    margin: 1em auto auto auto;
    display: block;
    width: fit-content;
    transition: .4s;
    box-shadow: 0px 5px 4px rgba(0, 0, 0, 0.493);
}

.info a:hover{
    background-color: #dd3c0b;
}

/* FOTOGALERIE */

#fotogalerie{
    margin-bottom: 1em;
    transform: translateX(100px);
    transition: 1s;
}

#fotogalerie.show{
    transform: translateX(0px);
}

.carouselWrapper{
    display: flex;
    justify-content: center;
    gap: 2em;
}

.carousel-inner img {
    max-width: 30%;
    object-fit: contain;
}
.carousel-control-next-icon {
    background-color: black;
}
.carousel-control-prev-icon {
    background-color: black;
}

#site{
    transform: translateX(-50px);
    transition: 1s;
}

#site.show{
    transform: translateX(0px);
}

.post{
    display: grid;
    place-items: center;
}

footer{
    background-image: url("images/background.jpeg");
    background-position: left 40%;
    height: 300px;
    padding: 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footerInfo{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.footerInfo span{
    padding-top: 3em;
}

footer img{
    margin-right: 3em;
}

footer *{
    transform: translateX(50px);
    transition: 1s;
    z-index: 2;
}

footer.show *{
    transform: translateX(0px);
}

footer span{
    font-size: 1.6em;
}

/* MODALS */

.dialog {
    position: fixed;
    max-width: 25em;
    width: 100%;
    max-height: 100vh;
    top: 0;
    bottom: 0;
    border: none;
    background-color: #D9D9D9;
    height: 100%;
    animation: slide 0.4s ease;
}

.dialog::backdrop{
    background-color: rgb(0 0 0 / .4);
}

.dialogWrap{
    padding: 2em 3em;
}

@keyframes slide {
    0% {
        left: -300px; 
        opacity: 0
    }
    100% {
        left: 0; 
        opacity: 1
    }
}

span.close{
    position: absolute;
    top: 1px;
    right: 4px;
    cursor: pointer;
}

.popup{
    position: fixed;
    top: 1em;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border:#D9D9D9 solid 3px;
    padding: 1.5em 2em;
    width: fit-content;
    max-width: 400px;
    border-radius: 0.7em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    animation: dropDown 0.3s ease;
    z-index: 3;
    box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.849);
}

@keyframes dropDown {
    0% {
        top: -100px; 
        opacity: 0
    }
    100% {
        top: 0; 
        opacity: 1
    }
}

.close{
    cursor: pointer;
}

form{
    max-width: 18em;
    width: 100%;
}

.contact .firstPart{
    height: 100px;
    display: flex;
    align-items: center;
    padding-inline: 1.8em;
    background-color: white;
    justify-content: space-between;
    font-size: 1.5em;

}

.contact .secondPart{
    padding: .5em 1em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact p{
    text-align:center;
}

input, textarea{
    background-color: white;
    padding: .2em;
    width: 100%;
    margin-top: 1em;
    border-radius: .5em;
    accent-color: #7CA031;
}

/* input:focus,textarea:focus {
    border: solid #7CA031 2px;
} */

input[type="submit"] {
    padding: .5em 1em;
    margin-top: 3em;
    border: #7CA031 3px solid;
    border-radius: 3em;
    color: black;
    transition: .3s;
}

input[type="submit"]:hover {
    background-color: #7CA031;
    color: white;
}

@media (max-width: 875px) {
    .links{
        display: none;
    }
    h1, .contactInfo h1{
        font-size: 2em;
    }
    .contacts{
        flex-direction: column;
    }
    .contactWrapper{
        margin-left: 0.5em;
    }
    #sluzby{
        margin-inline: 0.5em;
    }
    footer{
        flex-direction: column;
        gap: 2em;
    }
    .footerInfo span{
        padding-top: 1em;
    }
}