/* Importování Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mouse+Memoirs&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html, body {
    overflow-x: hidden; /* Zabrání posouvání stránky do stran */
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: #1e1e1e;
    color: white;
    text-align: center;
    margin: 0; /* Zajistí, že nebudou žádné mezery kolem stránky */
    padding: 0; /* Zajistí, že nebudou žádné mezery kolem stránky */
    width: 100%; /* Zajistí, že šířka stránky bude vždy 100% šířky viewportu */
    box-sizing: border-box; /* Zajistí, že padding a border budou zahrnuty do šířky a výšky elementu */
    position: relative;
}

h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 30px;
}

p {
    font-size: 1.2rem;
    padding: 30px;
}

.py-5{
    
    padding-top: 0!important;
    padding-bottom: 0!important;

}

.row>*{
    padding-left: 0!important;
    padding-right: 0!important;
}

/* ========================= */
/* NAVBAR                    */
/* ========================= */

.navbar {
    height: 8vh;
    padding: 0.5rem;
    position: absolute;
}

.navbar-brand img {
  margin-left: 30px;
  margin-top: 20px;
  width: 70px;
}

.navbar-toggler {
    border: none;
    font-size: 1.25rem;
    color: #fff;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-toggler:focus, 
.btn-close:focus {
    box-shadow: none;
    outline: none;
}

.nav-link {
    color: #fff;
    font-weight: 300;
    position: relative;
    font-family: "Montserrat", serif;
    font-size: 1.5rem;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #f08c09;
    visibility: hidden;
    transition: 0.1s ease-in-out;
}

.nav-link:hover::before, 
.nav-link.active::before {
    width: 100%;
    visibility: visible;
}

.offcanvas-body .nav-link {
    color: #fff !important;
    display: flex;
    justify-content: center;
}

.offcanvas-header {
    background-color: gray;
}

.offcanvas-header .btn-close {
    color: white !important;
}

/* ========================= */
/* NAVBAR                    */
/* ========================= */

.overlay {
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.navbar-brand {
    font-weight: bold;
}

.line2 {
    width: 90%;
}

.hr-line {
    display: none;
}

.hero {
    padding: 60px 0;
}

.hero h1 {
    font-size: 40px;
    font-weight: bold;
    padding-top: 30px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    border: 3px solid transparent;
    transition: border-color 0.5s, box-shadow 0.5s;
    transition: 0.5s;
}

.gallery-img {
    width: 350px;
    height: 470px;
    object-fit: cover;
    filter: grayscale(100%); /* Výchozí černobílý efekt */
    transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out; /* Plynulý přechod pro zvětšení a barevnost */
}



.gallery-img:hover {
    transform: scale(1.05);
    filter: brightness(90%);
    border-color: #fff;
    transition: 0.5s;
    filter: grayscale(0%); /* Barevný efekt při najetí kurzorem */
    transform: scale(1.05); /* Jemné zvětšení obrázku */
}

.gallery-item:hover {
    transition: filter 0.5s ease-in-out; /* Plynulý přechod na barevný */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    filter: grayscale(0%); /* Zrušení černobílého efektu při najetí kurzorem */

}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s, transform 0.5s;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/pozadi.jpg'); /* Změňte na cestu k vašemu obrázku */
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(30%);
    z-index: -1;
}

.btn-custom {
    background-color: #333;
    color: white;
    padding: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    width: 150px;
    height: 60px;
    transition: 0.5s;
}

.btn-custom:hover {
    background-color: #555;
}

.hero {
    padding: 50px 0;
}

.comparison-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    user-select: none;
}

.first-image, .second-image {
    width: 100%; 
    display: block;
    float: left; 
}

.comparison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%;
    overflow: hidden;
    clip-path: inset(0 50% 0 0); 
}

.comparison-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider */
.slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: white;
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
}

.slider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(0, 0, 0);
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    transition: 0.5s;
}

.slider-circle:hover {
    transition: 0.5s;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background-color: #ff4500;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-circle i {
    font-size: 1.5rem;
}

/* ========================= */
/* FOOTER SECTION            */
/* ========================= */

footer {
    background-color: #fff;
    color: #000;
    padding: 20px;
  }
  
  footer h5 {
    font-size: 1.8rem;
    font-weight: 400;
    font-family: "Montserrat", serif;
    margin-bottom: 20px;
    text-align: center;
    color: #f08c09;
    text-shadow: #f08c09 0px 0px 20px;
  }
  
  footer p {
    padding: 0;
    color: #838282;
    font-size: 1.1rem;
    transition: 0.5s;
    font-family: "Montserrat", serif;
    text-align: center;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    margin: 0 auto; /* Zarovnání na střed */
  
  }
  
  footer p:hover {
    color: black;
    transform: scale(1.1);
    transition: 0.5s;
    text-decoration: none;
    text-align: center;
    margin: 0 auto; /* Zarovnání na střed */
    text-shadow: #f08c09 0px 0px 20px;
  }
  
  footer a {
    text-decoration: none;
    padding: 10px;
    transform: 0.5s;
  }

.btn-primary{
    background-color: #dfdddd;
    color: black;
    border: none;
    transition: 0.5s;
    width: 100px;
    height: 40px;
    font-weight: 500;
  }
  
  .btn-primary:hover{
    transition: 0.5s;
    background-color: #f08c09;
    color: white;
  }


/* Hodnocení */

.rating {
    color: #ffcc00;
    font-size: 1.5rem;
}

.rating .fa-star-half-alt {
    color: #ffcc00;
}

.rating .fa-star {
    color: #ffcc00;
}

.card {
    border: none;
    background-color: #f8f9fa;
    margin: 20px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.card-text {
    font-size: 1rem;
    color: #6c757d;
}

.rounded-circle{
    margin-top: 20px;
}

/* Hodnocení */

/* Video sekce */
.video-section {
    position: relative;
}

.video-section video {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    position: relative;
    margin-top: 40px;
    margin-bottom: 40px;
}


/* Media Queries */
@media (max-width: 768px) {
    .gallery-img {
        width: 100%;
        height: auto;
        margin-bottom: 15px;
    }
    .comparison-container{
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* ========================= */
/* FOOTER SECTION            */
/* ========================= */


@media (max-width: 1200px) {
    .gallery-img:hover {
        transform: none;
        filter: none;
    }

    .hr-line {
        display: block;
        width: 100%;
    }
    .line2 {
        display: none;
    }

    .nadpis-obrazky {
        order: 1;
    }

    .comparison-container {
        order: 2;
    }

    .row>* {
        margin-top: 20px;
    }
    .order-md-2{
        order: 2;
    }
}

@media (max-width: 1125px ){
    .nav-link{
      font-size: 1.2rem;
    }
  }

@media(max-width: 991px){
    .offcanvas-body .nav-link{
        color: #000 !important;
      }
}

@media (max-width: 600px) {
    .gallery-img{
        padding-left: 15px;
        padding-right: 15px;
    }
}