/* Reset margins and paddings for the entire document */
body {
    margin: 0;
    /* Remove default margin */
    padding: 0;
    /* Remove default padding */
}

/* Apply box-sizing and font-family to all elements */
* {
    box-sizing: border-box;
    /* Includes padding and border in element's total width and height */
    font-family: Arial;
    /* Set default font to Arial */
}

/* Styling for the navigation bar */
nav {
    display: flex;
    /* Use flexbox for layout */
    width: 100%;
    /* Full width of the container */
    height: 60px;
    /* Fixed height for navigation bar */
    z-index: 500;
    /* Ensure navigation bar is on top of other elements */
}

/* Style list items in the navigation */
.nav-con>li {
    margin-left: 20px;
    /* Space between list items */
    list-style-type: none;
    /* Remove default list styling */
    color: white;
    /* Text color */
    font-size: 18px;
    /* Font size */
    font-weight: bold;
    /* Bold text */
    cursor: pointer;
    /* Pointer cursor on hover */
}

/* Style links within list items */
.nav-con>li>a {
    color: white;
    /* Text color */
    text-decoration: none;
    /* Remove underline from links */
}

/* Container for navigation bar content */
.nav-bar-content {
    width: 60%;
    /* Width of the content container */
    margin: auto;
    /* Center container horizontally */
    display: flex;
    /* Use flexbox for layout */
    align-items: center;
    /* Center items vertically */
    height: 60px;
    /* Height of the container */
}

.nav-con {
    display: flex;
}

.nav-con-mobile {
    display: none;
}

.nav-mobile {
    display: none;
}
/* Styling for the logo */
.logo {
    margin-right: auto; /* Push logo to the left */
    color: #fff; /* Text color */
    font-size: 18px; /* Font size */
    font-weight: bold; /* Bold text */
    /* width: 150px; Fixed width for logo */
}

/* Styling for selected navigation item */
.selected {
    color: #E45353 !important; /* Highlight color for the selected item */
    font-weight: bold; /* Bold text */
}               

/* Style for the hero section on the homepage */
.hero-section {
    background: black;
    height: 600px;
    background-image: url("img/hero_background_home.png");
    display: flex;
    align-items: center;
    margin-top: -60px;
    justify-content: center;
}

/* Style for the image within the hero section */
.hero-section-img {
    width: 100%;
    height: 600px;
}

/* Style for the content container within the hero section */
.hero-section-content {
    width: 60%;
}

/* Style for the heading in the hero section */
.hero-section-content>h2 {
    font-size: 50px;
    color: white;
    margin-bottom: 15px;
}

/* Style for the paragraph in the hero section */
.hero-section-content>p {
    font-size: 18px;
    color: white;
    line-height: 30px;
    margin-top: 0;
}

/* Style for the button in the hero section */
.hero-section-content>button {
    width: 160px;
    height: 60px;
    font-size: 18px;
    border-radius: 5px;
    background: #E45353;
    border: none;
    color: white;
    margin-top: 5px;
    cursor: pointer;
}

/* Hover effect for the button in the hero section */
.hero-section-content>button:hover {
    background: #E66060;
}

/* Container for the search bar and button */
.machines-search-con {
    width: 100%;
    margin: 0 auto;
    display: flex;
    height: 50px;
}

/* Style for the search input field */
.machines-search-con>input {
    width: 100%;
    border-radius: 5px 0 0 5px;
    border: none;
    outline: none;
    padding-left: 15px;
    font-size: 18px;
}

/* Style for the search button */
.machines-search-con>button {
    width: 80px;
    border-radius: 0 5px 5px 0;
    border: none;
    background: #E45353;
}

/* Style for the search icon */
.search-img {
    width: 28px;
    height: 28px;
}

/* Style for the machines section */
.machines-section {
    width: 60%;
}

/* Style for the swiper container */
.swiper {
    height: 430px;
}

/* Specific style for machine swiper */
.machineSwiper {
    height: 250px;
}

/* Style for content inside the machines section */
.machines-section-content {
    width: 60%;
    margin: 0 auto;
}

/* Style for the machines section background */
.machines-section {
    width: 100%;
    background: #3B3B3B;
    padding: 30px 0 60px 0;
}

/* Style for the heading container in machines section */
.machines-con-headings {
    display: flex;
    align-items: center;
}

/* Style for the heading text in machines section */
.machines-con-headings>h2 {
    margin-right: auto;
    color: white;
    font-size: 30px;
}

/* Style for the paragraph in machines section */
.machines-con-headings>p {
    color: white;
    font-weight: bold;
}

/* Grid layout for machine cards */
.machines-card-con {
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

/* Style for individual machine cards */
.machines-card {
    width: 100%;
    flex-direction: column;
    display: flex !important;
    border-radius: 5px;
    background: #D7D7D7;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

/* Style for images inside machine cards */
.machines-card>img {
    width: 100%;
    height: 200px;
    border-radius: 5px 5px 0 0;
}

/* Style for the name text inside machine cards */
.machines-card-name {
    text-align: center;
    margin: 15px 0;
    font-weight: bold;
}

/* Style for the "View All" button */
.view-all-btn {
    cursor: pointer;
}

/* Style for the modal */
.modal {
    display: none;
    position: fixed;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.8);
}

/* Style for the video inside machine cards */
.machine-video {
    width: 180px !important;
    height: 320px; /* This will make the video take up the full height of the container */
    object-fit: contain; /* Ensures the video covers the container without distortion */
    border-radius: 3px;
}

/* Style for individual machine slides */
.machine-slide {
    display: flex !important;
    width: 100%;
    height: 315px !important;
}

/* Style for the container inside machine slides */
.machineSlideCon {
    margin-top: 20px;
    width: 500px;
    margin-right: 35px;
}

/* Style for the modal content */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 45%;
    height: 60vh; /* Adjust to 80% of the viewport height */
    justify-content: center;
    align-items: center;
}

/* Style for the exercise video */
.exercise-video {
    width: 100%;
    height: 100%; /* This will make the video take up the full height of the container */
    object-fit: cover; /* Ensures the video covers the container without distortion */
    border-radius: 3px;
}

/* Style for the close button on the modal */
.close {
    color: #aaa;
    z-index: 2000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    margin-left: 0px;
}

/* Hover and focus styles for the close button */
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style for the exercise images */
.exercise-img {
    width: 100%;
    height: auto;
}

/* Style for individual exercise slides */
.exercise-slide {
    height: 500px !important;
}

/* Style for the exercise description text */
.exercise-description {
    margin-top: 20px;
    font-size: 16px;
}

/* Style for the footer */
footer {
    background: #2D2D2D;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style for the text inside the footer */
footer>span {
    color: white;
}

@media screen and (max-width: 500px) {
    .modal-content {
        background-color: #fefefe;
        margin: 5% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 95% !important;
        height: 60vh;
        /* Adjust to 80% of the viewport height */
        justify-content: center;
        align-items: center;
    }
}
@media all and (min-width: 320px) and (max-width: 700px) {
    .nav-con {
        display: none;
    }

    .modal-content {
        height: 240px !important;
    }

    .nav-mobile {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgb(39, 39, 39);
        flex-direction: column;
        list-style-type: none;
        justify-content: center;
        align-items: center;
    }

    .nav-con-mobile>li>a {
        color: white;
    }

    .nav-mobile>li>a {
        color: white;
        text-decoration: none;
    }

    .nav-mobile>li {
        margin: 10px;
        font-size: 20px;
    }

    #exit_button {
        position: absolute;
        right: 10px;
        top: 10px;
        background: none;
        border: none;
        color: white;
    }

    .nav-con-mobile {
        display: block;
    }

    .nav-bar-content {
        width: 90%;
    }

    .hero-section-content {
        width: 90% !important;
    }

    .hero-section-content>h2 {
        font-size: 35px;
    }

    .who-we-are-section {
        align-items: unset;
        padding: 60px 10px;
        width: 100%;
    }

    video {
        width: 100% !important;
        height: 200px !important;
    }

    .navigation-sub-img {
        display: none;
    }

    .navigation-sub-con {
        width: 100%;
        border-bottom: 1px solid black;
    }

    .navigation-sub-con:nth-child(1) {
        background: #235c88;
    }

    .navigation-sub-con:nth-child(2) {
        background: #018758;
    }

    .navigation-sub-con>span {
        text-align: center;
        color: white;
    }

    .navigation-container {
        display: block;
    }

    footer>span {
        font-size: 15px;
        text-align: center;
        margin: 10px;
    }

    .machines-section-content {
        display: flex;
        width: 85%;
        flex-direction: column !important;
    }

    .about-us-img {
        margin-bottom: 20px;
    }

    .about-us-content>p {
        order: 2;
    }

    .about-us-content>img {
        order: 2;
    }
        .modal-box {
            width: 100%;
            height: 35vh;
        }
    
        
        .machineSlideCon>p,
        .machineSlideCon>h2 {
            font-size: 10px;
        }


}

@media all and (min-width: 800px) and (max-width: 1000px) {
    .modal-content {
            height: 360px !important;
            width: 60%;
    }
}

@media all and (min-width: 300px) and (max-width: 799px) {
    .modal-content {
        height: 55vh;
        width: 85%;
    }

                .machineSlideCon>p {
                    height: 130px;
                    overflow: auto;
                }
}