/* style.css */
body {
    font-family: Arial, sans-serif;
    background-color:#ffffff;
    color: white;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}


.header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
}

.brand {
    font-size: 24px;
    font-weight: bold;
    color: #fcdb5a;
    line-height: 1;
}
.navbar {
    background-color: #008000;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fcdb5a;
}

.navbar a {
    color: #fcdb5a;
    text-decoration: none;
    margin-left: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background-color: #05a005;
    color: #FFFFFF;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


.details {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background:#f34949;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative; /* Add this */
    padding-bottom: 70px; /* Add space for the button */
}

h2 {
    grid-column: 1 / -1;
    color:#000000;
    padding: 15px;
    background:#fcdb5a;
    border-radius: 10px;
    text-align: center;
}

.carousel {
    position: relative;
    background:#fcdb5a;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 415px;
    transition: all 0.3s ease;
}

.carousel img {
    width: 580px;
    height: 410px;
    border-radius: 10px;
    display: none;
    transition: all 0.3s ease;
}

.carousel:hover{
    transform: scale(1.05);
}

.details p {
    background: #fcdb5a;
    padding: 10px;
    border-radius: 10px;
    color:#000000;
 margin-left: -10px;
    margin-bottom: 20px;

}



.controls {
    position: absolute;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
    width: 95%;
    display: flex;
    justify-content: space-between;
    padding: 1px 15px;
    pointer-events: none;
}

.control {
    background:#fcdb5a;
    color:#000000;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.control:hover {
    background: #ffe789;
    transform: scale(1.1);
}

.button {
    display: inline-block;
    background:#fcdb5a;
    color: #000000;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 0px solid rgba(59, 106, 77, 0.9);
    /* New positioning styles */
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    margin-top: auto;
    
}

.zaglavie_na_paragraf b{
    font-size: 25px;
}
.button:hover {
    background: #ffe789;
    transform: translateY(-2px) translateX(-50%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

footer {
    background-color: #008000;
    color: #fcdb5a;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

/* Carousel functionality */
input[type="radio"] {
    display: none;
}

#slide1:checked ~ .slides .slide1,
#slide2:checked ~ .slides .slide2 {
    display: block;
}

#slide1:checked ~ .controls .prevact,
#slide2:checked ~ .controls .nextact {
    display: none;
}


/* stylisation for different screens */
@media (max-width: 1200px) {
    .details {
        gap: 20px;
        padding: 15px;
    }
}

@media (max-width: 992px) {
    .carousel img {
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .details {
        grid-template-columns: 1fr;
        padding-bottom: 90px; /* More space for button */
    }

    .carousel {
        order: -1;
        margin-bottom: 20px;
    }

    .carousel img {
        max-height: 300px;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .navbar a {
        margin: 5px;
        font-size: 14px;
    }

    .brand {
        font-size: 20px;
    }

    .logo {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .carousel{
 height: 260px;
 width: auto;
    }
    .carousel img {
     width: auto;
        height: auto;
  
    }

    .details {
        padding-bottom: 100px;
    }

    .button {
        width: 90%;
        text-align: center;
        padding: 10px 15px;
    }

    .controls {
        width: 90%;
        padding: 1px 20px;
    }

    .control {
        width: 30px;
        height: 30px;
    }
}
@media (max-width: 410px) {
    .carousel{
  
        width: 340px;
    height: 240px;
    }
    .carousel img {

        max-width: 340px;
        max-height: 250px;
  
    }
   
    .details {
       
        max-width: 360px;
        padding-bottom: 100px;
    }
    .details p{
        margin-left: 2px;
        max-width: 340px;
    }
    .button {
        width: 80%;
        text-align: center;
        padding: 10px 15px;
    }

    .controls {
        width: 90%;
        padding: 1px 20px;
    }

    .control {
        width: 30px;
        height: 30px;
    }
    
 .details h2{
    margin-top: -10px;
    margin-bottom: -10px;
    max-width: 340px;
  
 }
}

/* Touch-friendly hover states */
@media (hover: hover) {
    .navbar a:hover {
        background-color: #05a005;
        color: #FFFFFF;
        padding: 10px 15px;
        border-radius: 5px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}