/* Filter and Search Section Styles */
#filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
}

#searchInput {
    padding: 10px;
    margin-right: 10px;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#searchInput:focus {
    outline: none;
    border-color: #333;
}

.filter-btn {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    background-color: #f0f0f0;
    cursor: pointer;
}

.filter-btn.active {
    background-color: #333;
    color: #fff;
}

.filter-btn:hover {
    background-color: #ddd;
}


/* Reset and General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3)), url('images/header-bg.jpg') center/cover no-repeat;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header nav {
    margin-top: 10px;
}

header nav ul {
    list-style: none;
}

header nav ul li {
    display: inline-block;
    margin-right: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #ffc107;
}

/* Main Content Styles */
main {
    padding: 20px 0;
}

section {
    padding: 40px 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

section p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffc107;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ffca3a;
}

/* Exercise Gallery Styles */
.exercise-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.exercise-item {
    width: 300px;
    margin: 20px;
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.exercise-item:hover {
    transform: translateY(-10px);
}

.exercise-item img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 10px;
}

.exercise-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.exercise-item p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.exercise-item button {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.exercise-item button:hover {
    background-color: #555;
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* Adjusted width for smaller screens */
    max-width: 600px; /* Max width for larger screens */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto; /* Enable vertical scrolling if content exceeds height */
}

.popup.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.popup-content {
    position: relative;
}

.image-container {
    position: relative;
    width: 100%;
    height: 350px; /* Fixed height for the image container */
    overflow: hidden; /* Hide overflow to maintain layout */
    margin-bottom: 0px; /* Add some space between image container and text */
}

.popup-description {
    margin-top: 0px; /* Add some space above the description */
    text-align: left; /* Align text to the left for readability */
}

.popup-description h3 {
    margin-bottom: 10px; /* Add spacing below heading */
    font-size: 1.2em; /* Adjust font size as needed */
}

.popup-description p {
    line-height: 1.6; /* Increase line height for better readability */
    margin-bottom: 15px; /* Add spacing between paragraphs */
}

.popup-description ul {
    list-style-type: disc; /* Use bullet points for lists */
    margin-left: 20px; /* Add indentation for list items */
    padding-left: 0; /* Remove default padding */
}


.popup-svg {
    max-width: 100%;
    height: auto;
    display: block;
    position: absolute; /* Absolute positioning */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto; /* Center the images */
}

.close {
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff0000;
}

.popup-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    header nav ul li a {
        font-size: 1rem;
    }

    .exercise-item {
        width: 100%;
        max-width: 400px;
    }

    .popup {
        width: 90%;
        padding: 15px;
    }
}

@media (min-width: 1200px) {
    /* Larger screens */
    .container {
        max-width: 1400px; /* Increase max-width for larger screens */
    }

    header h1 {
        font-size: 3rem; /* Increase font size for larger screens */
    }

    header nav ul li a {
        font-size: 1.4rem; /* Increase font size for larger screens */
    }

    .exercise-item {
        width: 350px; /* Increase width for larger screens */
    }

    .popup {
        width: 70%; /* Decrease width percentage for larger screens */
        max-width: 800px; /* Increase max-width for larger screens */
    }
}


