body {
    background-color: #DDE6ED;
    margin: 0;
}

.background {
    position: absolute;
    top: 0%;
    left: 0%;
    width: 100vw;
    height: 100vh;
    opacity: 20%;
}

.complete-container {
    display: flex;
    width: 100vw;
    height: 96vh;
    justify-content: center;
    gap: 80px;
}

/* Container */
.full-body-container {
    position: absolute;
    margin: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
}

.vertical-bar {
    flex: 0 0 180px;
    /* Flexbox settings: don't grow, don't shrink, initial width is 200px */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* Allows scrolling within the vertical bar if content exceeds the height */
    background-color: #526D82;
    align-items: center;
}

/* Div for Title, Search Box, and Answer Box */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.filter-container {
    width: 950px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-left: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.filter-button {
    display: flex;
    flex-direction: column;
    font-family: 'trebuchet ms', sans-serif;
    align-items: center;
    backdrop-filter: blur(10px);
    color: #526D82;
    border: 2px solid #526D82;
    padding-top: 10px;
    padding-bottom: 10px;
    flex: 1;
}


/* Exercise Engine text */
.name {
    display: flex;
    align-items: center;
    font-size: 65px;
    font-family: 'trebuchet ms', sans-serif;
}

.name h1 {
    color: #27374D;
    margin-bottom: 30px;
}

.top-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-line {
    margin-top: 15px;
    display: flex;
    align-items: center;
}

#ad-hoc::placeholder {
    color: #526D82 !important;
}

#ad-hoc {
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 0;
    height: 44px;
    width: 829px !important;
    border-radius: 4px;
}

input[type=text] {
    color: #27374D !important;
}

/* Search bar */
.dropdown,
.dropdown+.select2-container--default .select2-selection--single {
    border: 3px solid #526D82;
    font-family: 'trebuchet ms', sans-serif;
    font-size: 18px;
    display: flex;
    align-items: center;
    padding-left: 15px;
    width: 850px;
    height: 50px;
    background: inherit;
    backdrop-filter: blur(10px);
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #27374D !important;
}

.select2-selection__placeholder {
    color: #526D82 !important;
}

/* Select2 dropdown*/
.select2-container--default .select2-results>.select2-results__options {
    max-height: 300px;
    min-height: 200px;
    overflow-y: auto;
    border: 2px solid #526D82;
    border-top: none;
}

/* Each result */
#select2-filter-text-val-results {
    font-family: 'trebuchet ms', sans-serif;
    background-color: #DDE6ED;
    border: 1px solid #526D82;
    height: 40px;
    font-size: 18px;
    color: #27374D;
    border: 2px solid #526D82;
}

/* Higlighted (hover) result */
#select2-filter-text-val-results .select2-results__option--highlighted {
    font-family: 'trebuchet ms', sans-serif;
    background-color: #526D82 !important;
    color: #DDE6ED !important;
}

/* Selected option */
#select2-filter-text-val-results .select2-results__option[aria-selected=true] {
    font-family: 'trebuchet ms', sans-serif;
    background-color: #27374D !important;
    color: #DDE6ED !important;
}

/* Around the search field */
.select2-search {
    font-family: 'trebuchet ms', sans-serif;
    height: 40px;
    font-size: 18px;
    border: 2px solid #526D82;
    border-top: none;
    background-color: #DDE6ED;
    color: #27374D !important;
}

/* Search field */
.select2-search input {
    font-family: 'trebuchet ms', sans-serif;
    height: 40px;
    font-size: 18px;
    background-color: #DDE6ED;
    color: #27374D !important;
}

#filter-text-val {
    width: 850px !important;
}

/* Box around dropdown arrow*/
.select2.select2-container .select2-selection .select2-selection__arrow {
    background: #526D82;
    height: 46px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dropdown arrow*/
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    background-image: url(./images/arrow.webp);
    background-color: transparent;
    background-size: contain;
    border: none !important;
    height: 30px !important;
    width: 30px !important;
    margin: auto !important;
    top: auto !important;
    left: auto !important;
    transition: transform 0.3s ease-in-out;
}

.select2-container--open .select2-selection__arrow b {
    transform: rotate(180deg) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0px !important;
    right: 0px !important;
}

/* Scrollbar */
.select2-results__options::-webkit-scrollbar {
    width: 20px;
    background-clip: padding-box;
}

.select2-results__options::-webkit-scrollbar-track {
    background-color: #DDE6ED;
    height: 15px;
    background-clip: padding-box;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background-clip: padding-box;
    background-color: #526D82;
    border: 5px solid #DDE6ED;
    border-radius: 10px;
    height: 80px;
}

.select2-results__options::-webkit-scrollbar-button {
    display: none;
}

/* Dumbbell search icon*/
.search-line img {
    height: 60px;
    width: 60px;
    border: none;
    cursor: pointer;
    appearance: none;
    background-color: inherit;
    padding-left: 30px;
    transition: all 0.3s ease-in-out;
}

.search-line img:hover {
    transform: scale(1.1);
    animation: tilt-shaking 0.25s infinite;
}

@keyframes tilt-shaking {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(5deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

#answer-box {
    margin-top: 20px;
    width: 800px
}

.answer-box {
    display: flex;
    align-items: center;
}

.episode-title {
    color: #27374D;
    font-family: 'Kanit', sans-serif;
}

.episode-desc {
    color: #526D82;
    font-family: 'Montserrat', sans-serif;
}

.episode-rating {
    color: #DDE6ED;
    font-size: 25px;
    margin-left: 50px;
    font-family: 'trebuchet ms', sans-serif;
}

.circle-rating {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: #526D82;
    text-align: center;
}

#search-icon {
    cursor: pointer;
}

.footer {
    height: 5vh;
    width: 100vw;
    background-color: #27374D;
    color: #DDE6ED;
    font-size: 18px;
    text-align: center;
    padding-top: 15px;
    font-family: 'trebuchet ms', sans-serif;
}

.top-buffer {
    width: 180px;
    height: 300px;
    background: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 35px;
    text-align: center;
}

.bottom-buffer {
    width: 100%;
    height: 280px;
    margin-top: auto;
    background: linear-gradient(to bottom, #526D82, #27374D);
}

#bar_2 {
    background: inherit;
}

#filter-title {
    font-family: 'trebuchet ms', sans-serif;
    color: #DDE6ED;
    font-size: 36px;
}

.muscle-groups,
.difficulty,
.equipment {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

#muscle-filter {
    flex: 2;
}

.first-muscle,
.second-muscle {
    flex: 1;
}

.muscle-groups {
    display: flex;
    flex-direction: row;
    gap: 50px;
}

.first-muscle,
.second-muscle {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.filter-header {
    font-size: 20px;
}

.filter-header button {
    background-image: url(./images/arrowDark.webp);
    background-color: transparent;
    background-size: contain;
    border: none !important;
    height: 20px !important;
    width: 20px !important;
    transition: transform 0.3s ease-in-out;
}

.rotated {
    transform: rotate(180deg);
    transition: transform 0.1s ease-in-out;
}

.filter-checkbox {
    width: 100px;
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.filter-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    border: 1px solid #526D82;
    background: inherit;
}

/* On mouse-over, add a grey background color */
.filter-checkbox:hover input~.checkmark {
    background-color: #9DB2BF;
}

/* When the checkbox is checked, add a blue background */
.filter-checkbox input:checked~.checkmark {
    background: inherit;
    ;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.filter-checkbox input:checked~.checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.filter-checkbox .checkmark:after {
    left: 6px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #526D82;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.toggle-container {
    width: 180px !important;
    text-align: center;
    padding-right: 30px;
    display: flex;
    justify-content: center;
}

.toggle-container,
.toggle-switch {
    cursor: pointer;
    /*change the width and height here, the rest will follow! */
    width: 160px;
    height: 45px;
    font-size: 14px;
    margin-bottom: 3px;
}

.toggle-container input[type="checkbox"] {
    display: none;
}

.toggle-container input[type="checkbox"]:checked~label .toggle-switch:before {
    content: attr(data-unchecked);
    left: 0;
}

.toggle-container input[type="checkbox"]:checked~label .toggle-switch:after {
    content: attr(data-checked);
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
}

.toggle-switch {
    position: relative;
    background: inherit;
    backdrop-filter: blur(10px);
    border-radius: 5px;
    box-shadow: 0 0 0px #526D82;
    transition: all 1s ease-in-out;
    border: 2px solid #526D82;
}

.toggle-switch:before,
.toggle-switch:after {
    position: absolute;
    height: calc(100% - 4px);
    width: calc(50% - 2px);
    top: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.toggle-switch:before {
    content: attr(data-checked);
    color: #526D82;
    left: 50%;
    font-family: 'Montserrat', sans-serif;
}

.toggle-switch:after {
    content: attr(data-unchecked);
    left: 2px;
    border-radius: 5px;
    z-index: 1;
    background: #526D82;
    transform: translate3d(0, 0, 0);
    transition: transform 0.3s cubic-bezier(0, 1, 0.5, 1);
    color: #DDE6ED;
    font-family: 'Montserrat', sans-serif;
}

.toggle-switch:hover:after {
    box-shadow: 0 0 7.5px #526D82;
}