@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,700');

@font-face {
    font-family: 'Karv';
    src: url('font/karvwood-bold-font/KarvwoodBold-L7x3.otf') format('truetype');
}

@font-face {
    font-family: 'Mejiko';
    src: url('font/mejiko/Mejiko.ttf') format('truetype');
}

@font-face {
    font-family: 'La-tequila';
    src: url('font/la-tequila/La Tequila.ttf') format('truetype');
}

@font-face {
    font-family: 'La-tequila-out';
    src: url('font/la-tequila/La Tequila Out.ttf') format('truetype');
}

/* Resetting default margins */

body {
    color: rgb(27, 21, 20);
    font-family: Karv, sans-serif;
    background-color: burlywood;
    overflow-x: hidden;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column; /* Set flex layout for stacking content */
}

#container{
    background-image: url('images/zdroje/background-full.png');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
}

/* Verification */
#age-verification {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.age-box {
    background: white;
    padding: clamp(20px, 5vw, 50px);
    border-radius: 10px;
    text-align: center;
    font-family: 'Karv', sans-serif;
    color: #4D1E15;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: clamp(250px, 80%, 400px);
}

.sombrero {
    width: clamp(50px, 20vw, 200px);
    margin-bottom: clamp(10px, 3vw, 20px);
}

.age-box p {
    font-size: clamp(14px, 4vw, 18px);
    font-weight: bold;
    margin-bottom: clamp(15px, 3vw, 25px);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: clamp(5px, 2vw, 15px);
    flex-wrap: wrap;
}

#yes,
#no {
    padding: clamp(8px, 2vw, 12px) clamp(12px, 4vw, 20px);
    font-size: clamp(12px, 3vw, 16px);
    cursor: pointer;
    border: 1px solid #4D1E15;
    background: white;
    color: #4D1E15;
    transition: 0.3s;
    font-weight: bold;
    flex: 1 1 auto;
    min-width: 100px;
}

#yes:hover,
#no:hover {
    background: rgb(210, 121, 20);
    color: black;
}

/* Navbar Styles */
.navbar {
    padding: 10px;
    text-align: right;
    background:transparent;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
  }
  
  .navbar ul {
    list-style-type: none;
    padding: 0;
  }
  
  .navbar ul li {
    display: inline;
    margin-right: 10px;
    font-family: La-tequila, sans-serif;
  }
  
  .navbar ul li a {
    text-decoration: none;
    font-size: clamp(0.1rem, 1vw, 0.7rem); 
    transition: 0.01s ease-in-out;
  }
  
  .navbar ul li a:hover {
    font-family: La-tequila-out, sans-serif;
  }



.bottle-container {
    position: fixed;
    top: calc(3vh + 1vw);
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 2;
}

.bottle {
    height: 90vh;
}

#top-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hat-container {
    position: absolute;
    top: calc(3vh + 1vw);
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 16;
}

.hat {
    width: clamp(350px, 35vw, 2000px);
    height: auto;
    transition: transform 0.2s linear;
}

#mid-section {
    min-height: 100vh; /* Changed to min-height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    flex-direction: column;
}

/* Titles and Text */
.title-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 17rem;
    margin-left: 5rem;
    margin-right: 5rem;
    background-color: #dcb88f;
    border-radius: 30px;
    position: relative;
    padding: 20px; /* Added padding */
    text-align: center; /* Added text alignment */
    flex-wrap: wrap; /* Added flex wrap for smaller screens */
    z-index: 20;
}

.title-section h3{
    font-family: Mejiko;
    font-size: 3rem;
}

.obrazky{
    width: 100%;
}
.agave {
    width: clamp(15vw, 25vw, 40vw);
    
    right: 80%;
}

.cup {
    width: clamp(15vw, 25vw, 40vw);
    
    left: 80%;
}

.title1{
    margin-top: 3rem;
}
.title2{
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}


/* Image Cards */
.image-cards {
    display: flex;
    justify-content: space-around;
    margin-bottom: 7vh;
    margin-top: 7vh;
    flex-wrap: wrap;
}

.card {
    width: 20%;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background-color: #1d1812;
    margin-bottom: 20px;
}

.card-img-top {
    width: 100%;
    height: auto;
    display: block;
}

.card-text {
    position: absolute;
    font-size: clamp(14px, 4vw, 18px);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    
    opacity: 0; /* This makes the text invisible initially */
    transition: opacity 0.3s ease;
}

.card-text h5 {
    font-family: La-tequila, sans-serif;
    margin-top: 30%;
    
}

.card-text p {
    position: absolute;
    margin-top: 20px;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgb(183, 180, 127);
    opacity: 0;
    text-align: center;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card:hover .card-text {
    opacity: 1; /* Makes the text visible on hover */
}
.card:hover .card-text p {
    opacity: 1; /* Makes the text visible on hover */
}


/* Image Slider */
.carousel-item img {
    height: 70vh;
    object-fit: contain;
}




.mexican-container {
    margin-top: 8vh;
    position: relative;
    text-align: center;
}
.mexican {
    width: clamp(5vw, 30vw, 20vw);
    transform-style: preserve-3d;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}


/* Footer */
footer {
    background-image: url('images/zdroje/wood.jpg');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 1rem;
}

/* Media Queries */
@media (max-width: 992px) {
    /* Adjustments for smaller screens */
}

@media (max-width: 768px) {

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

    .title-card {
        width: 80%;
        margin-bottom: 20px;
    }

    .image-cards {
        justify-content: center;
    }

    .card {
        width: 40%;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .card {
        width: 80%;
    }
}

/* Firefox Bug Fix */
.carousel-item {
    transition: -webkit-transform 0.5s ease;
    transition: transform 0.5s ease;
    transition: transform 0.5s ease, -webkit-transform 0.5s ease;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
}

/* Bootstrap Padding Fix */
[class*="col-"] {
    padding: 1rem;
}
