.story-script-regular {
  font-family: "Story Script", sans-serif;
  font-weight: 400;
  font-style: normal;
}
.caveat-fon {
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
#as {
    font-family: "Caveat", cursive;
    color: #f0e0c0;
    font-size: 30px; /* Default font size for larger screens */
    text-align: center;
}
/* General styles for body and layout */
body {
    background: #6e4023;
    background: linear-gradient(90deg, #6e4023 0%, #964f29 50%, #6e4023 100%);
    margin: 0;
    font-family: "Caveat", cursive;
    display: flex;
    flex-direction: column;
    height: 100%;
}
main {
    flex: 1; /* Push the footer to the bottom */
}
/* Navbar styles */
.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #4A2B18;
    background: linear-gradient(180deg, rgba(74, 43, 24, 1) 0%, rgba(110, 64, 35, 1) 93%);
    color: #f0e0c0;
    flex-wrap: wrap;
}
.nav-left img.logo {
    height: 70px;
}
.nav-right {
    display: flex;
    gap: 20px;
}
.nav-right a {
    text-decoration: none;
    color: #f0e0c0;
    font-size: 1rem;
}
.nav-right a:visited {
    color: #c2c5aa;
}
/* Therapy sections */
.therapy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 20px auto; /* Center the therapy section horizontally */
    padding: 10px 20px; /* Reduce padding for the "brown thing" */
    background: #4A2B18;
    border-radius: 8px;
    color: #F2D3B9;
    max-width: 1200px; /* Limit the width for larger screens */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Add a subtle shadow for better appearance */
    border-bottom: 2px solid #ffffff; /* Add a white line between sections */
}

.therapy:nth-child(even) {
    flex-direction: row-reverse;
}

/* Therapy text */
.therapy-text {
    flex: 1;
    padding: 20px;
    text-align: justify;
    font-size: 28px; /* Increased text size for better readability */
    line-height: 1.8; /* Add more spacing between lines */
    color: #F2D3B9;
}

.therapy-image {
    flex: 1;
    text-align: center;
}

.therapy-image img {
    max-width: 100%; /* Ensure images take up the full width of their container */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px;
}

/* Ensure the clickable area is styled properly */
.therapy-image a {
    display: inline-block;
    text-decoration: none;
}

.therapy-image a:hover img {
    transform: scale(1.05); /* Slight zoom effect on hover */
    transition: transform 0.3s ease;
}

/* Footer styles */
footer {
    text-align: center;
    padding: 20px;
    background: #4A2B18;
    background: linear-gradient(0deg, rgba(74, 43, 24, 1) 0%, rgba(110, 64, 35, 1) 93%);
    color: #f0e0c0;
    width: 100%;
    position: relative; /* Ensure the footer stays at the bottom of the content */
    bottom: 0;
    margin-left: 0;
}
/* Responsive styles */
@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-right {
        flex-direction: column;
        gap: 10px;
    }
    .opis-lewo, .opis-prawo {
        width: 100%;
        float: none;
    }
    .opis-lewo {
        margin-bottom: 20px;
    }
    .fb-page {
        width: 100% !important;
    }
    .zdj1, .zdj2, .zdj3 {
        max-width: 500px; /* Adjusted maximum width for medium screens */
        width: 100%;
        height: auto;
    }
    .za1, .za2, .za3 {
        width: 100%;
        margin-left: 0;
    }
    .therapy {
        flex-direction: column;
    }
    .therapy-text, .therapy-image {
        flex: none;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .nav-right a {
        font-size: 0.9rem;
    }
    .opis-lewo, .opis-prawo {
        padding: 10px;
    }
    footer {
        font-size: 0.9rem;
    }
    .therapy {
        padding: 10px;
    }
    .zdj1, .zdj2, .zdj3 {
        max-width: 400px; /* Adjusted maximum width for smaller screens */
    }
    #as {
        font-size: 24px; /* Smaller font size for tablets */
    }
    .za1, .za2, .za3 {
        font-size: 16px; /* Smaller font size for tablets */
        width: 100%; /* Make the text container full width */
        margin-left: 0; /* Remove left margin */
    }
}
@media (max-width: 480px) {
    .navbar {
        padding: 10px;
    }
    .nav-left img.logo {
        height: 50px;
    }
    .nav-right a {
        font-size: 0.8rem;
    }
    .opis-lewo, .opis-prawo {
        padding: 5px;
    }
    footer {
        font-size: 0.8rem;
    }
    .zdj1, .zdj2, .zdj3 {
        width: 100%;
        height: auto;
        max-width: 350px; /* Further adjusted maximum width for very small screens */
    }
    .za1, .za2, .za3 {
        font-size: 14px; /* Even smaller font size for phones */
        padding: 10px; /* Adjust padding for smaller screens */
    }
    .therapy {
        padding: 5px;
    }
    #as {
        font-size: 18px; /* Even smaller font size for phones */
    }
}
.logo{
  height: 70px;
}
.pliki{
  padding-left: 100px;
  position: absolute;
}
.za1, .za2, .za3 {
    font-size: 19.5px; /* Default font size for larger screens */
    color: #F2D3B9;
    padding-top: 1%;
    padding-left: 2%;
    padding-right: 2%;
    padding-bottom: 1.6%;
    margin-left: 10%;
    float: left;
    width: 35%;
    border-radius: 0% 8% 8% 0%;
    background: #4A2B18;
    background: linear-gradient(90deg, #4A2B18 0%, #692912 50%, #7a3015 100%);
}
#tekst1{
  font-size: 1.6.5vh;
}
.zd1{
  float: left;
  position: absolute;
  max-width: 50%;
  left: 50%;
  padding-top: 1%;
  padding-bottom: 1%;
  padding-left: 0%;
  margin-right: 10px;
  width: 45%;
  border-radius: 0% 8% 8% 0%;
  background: #4A2B18;
  background: linear-gradient(90deg, #7a3015 0%, #692912 50%, #4A2B18 100%);
}
.zdj1{
  height: 200%;
  width: 95%;
}
.name{
  text-align: center;
  text-transform: uppercase;
}
.zd2{

  color:#F2D3B9;
  border-radius: 8% 0% 0% 8%;
  background: #4A2B18;
  background: linear-gradient(90deg, #4A2B18 0%, #692912 50%, #7a3015 100%);
  padding-top: 1%;
  padding-left: 2%;
  padding-right: 2%;
  padding-bottom: 1.6%;
  margin-left: 10%;
  float: left;
  width: 35%;
}
.za2{
  font-size: 19.5px;
  float: left;
  padding-top: 1%;
  padding-left: 2%;
  padding-right: 2%;
  padding-bottom: 1.6%;
  color:#F2D3B9;
  margin-left: 0;

  width: 35%;
  border-radius: 0% 8% 8% 0%;
  background: #4A2B18;
  background: linear-gradient(90deg, #7a3015 0%, #692912 50%, #4A2B18 100%);
}
.zdj2{
  height: 100%;
  width: 100%;
}
.za3{
  color:#F2D3B9;
  border-radius: 8% 0% 0% 8%;
  background: #4A2B18;
  background: linear-gradient(90deg, #4A2B18 0%, #692912 50%, #7a3015 100%);
  padding-top: 1%;
  padding-left: 2%;
  padding-right: 2%;
  padding-bottom: 1.6%;
  margin-left: 10%;
  float: left;
  width: 35%;
}
.zd3{
  float: left;
  padding-top: 1%;
  padding-bottom: 1%;
  padding-left: 0%;
  margin-right: 10px;
  width: 43%;
  border-radius: 0% 8% 8% 0%;
  background: #4A2B18;
  background: linear-gradient(90deg, #7a3015 0%, #692912 50%, #4A2B18 100%);
}
.zdj3{
  height: 410px;
  width: 95%;
}
footer{
  font-size: 17px;
  background: #4A2B18;
  background: linear-gradient(0deg, rgba(74, 43, 24, 1) 0%, rgba(110, 64, 35, 1) 93%, rgba(110, 64, 35, 1) 100%);
  color: #f0e0c0;
  width: 100%;
  padding-left: 2.4%;
  margin-left: -2%;
  padding-bottom: 1%;

  bottom: 0;
}
.kontakt{
  padding-top: 1%;
  text-align: center;
}
.odkryj{
  color: #F2D3B9;
  font-family: Story Script;
  font-size: 200%;
  float: left;
  padding-left: 11%;
}
.l1{
  color: #F2D3B9;
  padding-top: 2%;
  margin-left: -2%;
  width: 35%;
  float: left;
}
.l2{
  padding-top: 2%;
  width: 35%;
  float: right;
}
/* General image styling for uniform size */
.zdj1, .zdj2, .zdj3 {
    width: 100%; /* Ensures images take up the full width of their container */
    max-width: 800px; /* Increased maximum width for larger images */
    height: auto; /* Maintains the aspect ratio of the images */
    display: block; /* Ensures images do not have inline spacing */
    margin: 0 auto; /* Centers the images horizontally */
    border-radius: 8px; /* Optional: Adds rounded corners for consistency */
}

/* Default navbar styles */
.nav-right {
    display: flex;
    gap: 20px;
}

/* Dropdown menu styles */
.dropdown {
    display: none; /* Hidden by default */
    position: relative;
}

.dropdown-btn {
    background-color: #4A2B18; /* Lighter brown for the button */
    color: #f0e0c0; /* Cream text color */
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    width: 100%;
    border-radius: 5px; /* Optional: Add rounded corners */
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #8a5635; /* Slightly lighter brown for the dropdown */
    width: 100%;
    z-index: 1;
    flex-direction: column;
    border-radius: 5px; /* Optional: Add rounded corners */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

.dropdown-content a {
    color: #f0e0c0; /* Cream text color */
    padding: 10px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #a46b4a; /* Even lighter brown for hover */
    color: #ffffff; /* White text on hover */
}

/* Show dropdown menu on button click */
.dropdown.open .dropdown-content {
    display: flex;
}

/* Text above images */
.popup-trigger {
    text-align: center;
    font-size: 30px;
    color: #F2D3B9;
    cursor: pointer; /* Ensure the text is clickable */
    margin-bottom: 0px;
    position: relative; /* Position for the arrow */
}

/* Arrow styling */
.popup-trigger::before {
    content: '';
    position: absolute;
    bottom: -10px; /* Position the arrow below the text */
    left: 50%; /* Center the arrow */
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #F2D3B9; /* Arrow color */
}

/* Popup styles */
.popup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #4A2B18;
    color: #f0e0c0;
    padding: 40px; /* Space inside the popup */
    border-radius: 8px;
    text-align: center;
    max-width: 800px; /* Maximum width for PCs */
    width: 90%; /* Default width */
    font-size: 20px; /* Font size for PCs */
    line-height: 1.8; /* Line spacing for readability */
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: #f0e0c0;
    cursor: pointer;
}

/* Responsive styles for phones */
@media (max-width: 768px) {
    .popup-trigger {
        display: block; /* Show text above images on phones */
    }
    .popup-content {
        max-width: 600px; /* Smaller width for tablets */
        font-size: 18px; /* Slightly smaller font size */
        padding: 30px; /* Adjust padding for smaller screens */
    }
}

@media (min-width: 769px) {
    .popup-trigger {
        display: block; /* Ensure text is visible and clickable on PCs */
    }
}

/* Responsive styles for phones */
@media (max-width: 768px) {
    .nav-right {
        display: none; /* Hide default menu on phones */
    }

    .dropdown {
        display: block; /* Show dropdown menu on phones */
    }
}

@media (max-width: 480px) {
    .popup-content {
        max-width: 90%; /* Use most of the screen width */
        font-size: 16px; /* Smaller font size for phones */
        padding: 20px; /* Reduce padding for smaller screens */
    }
}

/* Adjustments for larger screens */
@media (min-width: 1024px) {
    .therapy {
        padding: 10px 20px; /* Add more horizontal padding for larger screens */
    }

    .therapy-text {
        font-size: 32px; /* Larger text for PCs */
    }

    .therapy-image img {
        max-width: 900px; /* Increase image size for PCs */
    }
}

/* Adjustments for smaller screens */
@media (max-width: 1024px) {
    .therapy {
        padding: 15px 20px;
    }

    .therapy-text {
        font-size: 26px; /* Slightly smaller text for tablets */
    }

    .therapy-image img {
        max-width: 700px; /* Adjust image size for tablets */
    }
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .therapy {
        flex-direction: column; /* Stack text and image vertically */
        padding: 10px;
    }

    .therapy-text, .therapy-image {
        flex: none;
        width: 100%;
    }

    .therapy-text {
        font-size: 22px; /* Smaller text for phones */
    }

    .therapy-image img {
        max-width: 500px; /* Adjust image size for phones */
    }
}

@media (max-width: 480px) {
    .therapy {
        padding: 5px;
    }

    .therapy-text {
        font-size: 20px; /* Even smaller text for very small phones */
    }

    .therapy-image img {
        max-width: 350px; /* Adjust image size for very small phones */
    }
}

/* Ensure padding and borders are included in the element's width */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Ensure images fit within their containers */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Adjust negative margins */
footer, .za2 {
    margin-left: 0;
}

/* Ensure flex containers wrap properly */
.navbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

/* Style for clickable descriptions */
.description-link {
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit the text color */
    display: block; /* Make the entire description clickable */
    transition: color 0.3s ease; /* Add a smooth transition for hover effects */
}

.description-link:hover {
    color: #f0e0c0; /* Change text color on hover */
}
