/* Android 2.3 :checked fix */
@keyframes fake {
    from {
        opacity: 1;
    }
    to {
        opacity: 1;
    }
}

body {
    animation: fake 1s infinite;
}

.worko-tabs {
    margin: 0 auto; /* Center the tabs container */
    max-width: 100%; /* Ensure the container fills the available space */
    box-sizing: border-box; /* Ensure that padding and borders are included in the element's width and height */
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #E5DFD1; /* Optional: Background color */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add some shadow */
}

.worko-tabs .state {
    position: absolute;
    left: -10000px;
}

.worko-tabs .flex-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%; /* Make sure tabs take up the full width of the container */
}

.worko-tabs .flex-tabs .tab {
    flex-grow: 1;
    max-height: 40px;
    text-align: center; /* Center the text within each tab */
    background-color: #eee;
    border-radius: 5px; /* Optional: Rounded corners */
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition for hover effects */
}

.worko-tabs .flex-tabs .panel {
    background-color: #fff;
    display: none;
    width: 100%;
    padding: 10px;
    flex-basis: auto;
    border-radius: 5px; /* Optional: Rounded corners */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add some shadow */
}

.worko-tabs .tab {
    font-weight: bolder;
    display: inline-block;
    padding: 10px;
    vertical-align: top;
    background-color: #eee;
    cursor: pointer;
    border-left: 10px solid #ccc;
    transition: background-color 0.3s ease; /* Smooth transition for hover effects */
}

.worko-tabs .tab:hover {
    background-color: #fff;
}

#tab-one:checked ~ .tabs #tab-one-label,
#tab-two:checked ~ .tabs #tab-two-label,
#tab-three:checked ~ .tabs #tab-three-label,
#tab-four:checked ~ .tabs #tab-four-label {
    background-color: #fff;
    cursor: default;
    border-left-color: #fe5102;
}

#tab-one:checked ~ .tabs #tab-one-panel,
#tab-two:checked ~ .tabs #tab-two-panel,
#tab-three:checked ~ .tabs #tab-three-panel,
#tab-four:checked ~ .tabs #tab-four-panel {
    display: block;
}

@media (max-width: 600px) {
    .worko-tabs .flex-tabs {
        flex-direction: column;
        margin-right: 20px;
    }

    .worko-tabs .flex-tabs .tab {
        background: #fff;
        border-bottom: 1px solid #ccc;
    }

    .worko-tabs .flex-tabs .tab:last-of-type {
        border-bottom: none;
    }

    #tab-one-label { order: 1; }
    #tab-two-label { order: 3; }
    #tab-three-label { order: 5; }
    #tab-four-label { order: 7; }

    #tab-one-panel { order: 2; }
    #tab-two-panel { order: 4; }
    #tab-three-panel { order: 6; }
    #tab-four-panel { order: 8; }

    #tab-one:checked ~ .tabs #tab-one-label,
    #tab-two:checked ~ .tabs #tab-two-label,
    #tab-three:checked ~ .tabs #tab-three-label,
    #tab-four:checked ~ .tabs #tab-four-label {
        border-bottom: none;
    }

    #tab-one:checked ~ .tabs #tab-one-panel,
    #tab-two:checked ~ .tabs #tab-two-panel,
    #tab-three:checked ~ .tabs #tab-three-panel,
    #tab-four:checked ~ .tabs #tab-four-panel {
        border-bottom: 1px solid #ccc;
    }
}

.disclaimer {
    margin-top: 20px; /* Adds space between the tabs and the disclaimer */
    padding: 15px;
    background-color: #f8f8f8; /* Light background to match the tabs */
    border-left: 5px solid #fe5102; /* A left border to add emphasis */
    border-radius: 5px; /* Optional: Rounded corners */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add some shadow */
    font-size: 0.9em; /* Slightly smaller text */
    color: #333; /* Darker text for readability */
    text-align: center; /* Center the text */
    max-width: 100%; /* Ensure it aligns well on all screen sizes */
    box-sizing: border-box;
}

/* Quick Link Menu Container */
.quick-link-menu {
    list-style: none;
    padding: 0;
    margin: 0 -10px 0 -10px;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff 0%, #f4f4f4 70%); /* Gradient from white to light gray */
    border-bottom: 2px solid #ccc;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Quick Link Menu Items */
.quick-link-menu li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    position: relative;
    height: 30px; /* Fixed height for all items */
    min-width: 120px; /* Minimum width for each item */
}

/* Link Styling */
.quick-link-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 20px; /* Adjust padding as needed */
    display: inline-block;
    border-radius: 4px; /* Slightly rounded corners */
    transition: background 0.3s ease, color 0.3s ease;
    box-sizing: border-box; /* Ensure padding and border are included in the width and height */
    width: 225px; /* Make the link fill the menu item */
    height: 100%; /* Make the link fill the menu item */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hover and Active Link Styling */
.quick-link-menu a:hover {
    color: #fe5102; /* Hover color */
}

/* Gradient Effect for Active Tab Background */
.quick-link-menu li.active a {
    background: linear-gradient(to bottom, #fe5102, #f4f4f4); /* Gradient from active color to background */
    color: #ffffff; /* Text color for active tab */
}

html {
    scroll-padding-top: 80px; /* Adjust this value to match the height of your fixed header */
}