@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

body {
    background-color: #333;
    position: relative;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/pozadi.jpg') no-repeat center center/cover;
    filter: blur(10px) brightness(20%);
    z-index: -1;
}

.content {
    position: relative;
    z-index: 1;
}

p {
    padding: 0;
    color: #fff;
}

h1 {
    color: #fff;
    margin-top: 50px;
}

h2 {
    color: #fff;
}

/* Navbar */
.navbar {
    height: 8vh;
    padding: 0.5rem;
}

.navbar-brand img {
    width: 50px;
}

.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: 500;
    position: relative;
    font-family: "Montserrat", serif;
    font-size: 1.5rem;
}

.nav-link:hover, 
.nav-link.active {
    color: #000000;
}

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

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

/* Offcanvas menu styles */
.offcanvas {
    background-color: black;
}

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

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

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

/* Hero Section with Slider */
.hero {
    height: 100vh;
    user-select: none;
}

/* Single Image Section */
.single-image-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5px; 
    gap: 5px; 
}

.text-section-2 {
    width: 50%;
    padding-right: 7px; 
    text-align: center;
}

.text-section-2 h2 {
    font-family: "Montserrat", serif;
    font-size: 2rem;
    margin-bottom: 10px;;
}

.text-section-2 p {
    font-family: "Montserrat", serif;
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.image-container {
    width: 45%; 
    display: flex;
    justify-content: center;
}

.image-container img {
    position: relative;
    width: 80%;
    height: 60%;
    overflow: hidden;
    border-radius: 10px;
    margin-left: 30px;
    margin-bottom: 50px;
    border: 2px solid #ffffff;
    box-shadow: 0.5rem 7px #ffffff;
}

.single-image {
    max-width: 90%; 
    height: auto;
    border-radius: 10px;
}

/* New Section with Slider and Text */
button {
    width: 150px;
    height: 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 20px;
}

.text-section {
    text-align: center;
    margin-right: 30px;
}

.text-section h2 {
    font-family: "Montserrat", serif;
    font-size: 3rem;
    margin-bottom: 10px;
}

.line-image {
    margin: 0 auto 20px;
    display: flex;
    width: 80%;
}

.text-section p {
    font-family: "Montserrat", serif;
    font-size: 1.2rem;
}

.image-comparison {
    position: relative;
    width: 90%;
    height: 70%;
    overflow: hidden;
    border-radius: 10px;
    margin-left: 30px;
    border: 2px solid #ffffff;
    box-shadow: 0.5rem 7px #ffffff;
}

.image-wrapper {
    position: absolute;
    height: 100%;
    width: 100%;
}

.image-wrapper img {
    height: 100%;
    width: 100%;
}

.first {
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.second {
    z-index: 0;
}

.slider {
    position: absolute;
    z-index: 2;
    width: 4px;
    height: 100%;
    left: 100%;
    transform: translateX(-50%);
    cursor: ew-resize;
    background: white;
}

.slider-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.slider-circle {
    position: relative;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrows {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.arrow {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

/* Footer Section */
footer {
    background-color: #ffffff;
}

footer h5 {
    font-size: 1.8rem;
    font-weight: 200;
    font-family: "Montserrat", serif;
}

footer p {
    padding: 0;
    color: #838282;
    font-size: 1.1rem;
    transition: 0.5s;
    font-family: "Montserrat", serif;
}

footer p:hover {
    color: black;
    transform: scale(1.1);
    transition: 0.5s;
}

footer a {
    text-decoration: none;
    padding: 10px;
    transform: 0.5s;
}

.video-responsive {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; 
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Tour Packages Grid */
.tour-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.card-img-top-1,
.card-img-top-2,
.card-img-top-3 {
    width: 100%;
    height: 100%; /* Změněno z pevné výšky na auto */
    object-fit: cover;
    transition: 0.5s;
}

.card-img-top-1:hover,
.card-img-top-2:hover,
.card-img-top-3:hover {
    transform: scale(1.2);
    transition: 0.5s;
}

.card-body {
    padding: 15px;
    text-align: left;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
}

button {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 25px;
    margin-top: 10px; /* Přidáno pro zajištění mezery mezi obrázkem a tlačítkem */
}

.text-obrazek {
    margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 1200px) and (min-width: 901px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .text-section {
        margin-right: 0;
        order: 1;
    }

    .image-comparison {
        top: 30%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50%;
        height: 100%;
        order: 2;
        margin-bottom: 50px;
    }

    .image-container img {
        width: 100%;
        height: auto;
        margin-right: 30px;
        margin-bottom: 50px;
    }

    .navbar-expand-lg .navbar-nav .nav-link {
        font-size: 1.2rem;
    }

    .card-img-top-3 {
        display: none;
    }

    .card{
        aspect-ratio: 0;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .tour-packages-grid {
        grid-template-columns: 1fr;
    }

    .card-img-top {
        height: auto; /* Změněno z pevné výšky na auto */
    }

    .hero-grid {
        display: flex;
        flex-direction: column-reverse;
    }

    .image-comparison {
        margin-bottom: 50px;
        width: 50%;
        height: 30%;
    }

    .text-section {
        text-align: center;
        margin-bottom: 20px;
    }

    .card{
        aspect-ratio: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 0.5rem 1rem;
    }

    .navbar-brand img {
        width: 40px;
    }

    .offcanvas-body .nav-link {
        font-size: 1.2rem;
        padding: 10px 0;
    }

    .navbar-toggler {
        font-size: 1.5rem;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
    }

    .image-comparison {
        width: 90%;
        height: 300px;
        margin-left: 0;
        order: 2;
    }

    .text-section {
        margin-right: 0;
        text-align: center;
        order: 1;
    }

    .text-section h2 {
        font-size: 2rem;
    }

    .text-section p {
        font-size: 1rem;
        padding: 20px;
    }

    .single-image-section {
        flex-direction: column;
    }

    .text-section-2 {
        width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .image-container {
        width: 100%;
        margin-top: 20px;
        margin-right: 30px;
    }

    .tour-packages-grid {
        grid-template-columns: 1fr;
    }

    .card-img-top {
        height: auto; /* Změněno z pevné výšky na auto */
    }

    footer h5 {
        font-size: 1.5rem;
    }

    footer p {
        font-size: 1rem;
    }

    .video-responsive iframe {
        height: 200px;
    }

    .card{
        aspect-ratio: 0;
    }
    .hero{
        height: 90vh;
    }
}

@media (max-width: 600px) {
    .text-section-2 h2{
        margin-top: 0;
    }

    .hero{
        height: 80vh;
    }

    .image-container{
        margin-right: 0;
    }
}




@media (max-width: 390px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .text-section p, .text-section-2 p {
        font-size: 0.9rem;
        padding: 30px;
        padding-bottom: 0;
    }

    .image-container img {
        width: 100%;
        margin-left: 0;
    }

    .card{
        aspect-ratio: 0;
    }

    .text-section-2 h2{
        margin-top: 50px;
    }
}