@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.mt-5 {
    margin-top: 5px;
}

.mb-5 {
    margin-bottom: 5px;
}

.filter-heading {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-family: Montserrat;
}

.filter-wrapper {
    margin: 4rem 0 2rem 0;
}

.switch-group {
    /* max-height: 36px; */
    display: flex;
    gap: 5px;
    justify-content: start;

    /* align-items: center; */
    span {
        color: #000;
        transition: all 0.4s ease-in;
        font-family: "Montserrat";
        font-weight: 500;
    }

    &.active {
        >span {
            color: #017C89;
        }
    }
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    min-width: 42px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 2px;
    bottom: 0;
    background-color: #A0C5C5;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: #E0ECEC;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked+.slider {
    background-color: #017C89;
}

input:focus+.slider {
    box-shadow: 0 0 1px #017c89;
}

input:checked+.slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 100px;
}

.slider.round:before {
    border-radius: 50%;
}

.election-wrapper {
    overflow: hidden;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        max-height 0.4s ease,
        margin 0.35s ease,
        padding-top 0.4s ease-in-out,
        padding-bottom 0.4s ease-in-out;
    max-height: 2000px;
    margin: 0 0 2rem 0;
}

.election-wrapper.is-hidden {
    opacity: 0;
    transform: translateY(10px);
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    pointer-events: none;
    padding-top: 0;
    padding-bottom: 0;
}

.election-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
    /* pointer-events: auto; */
}