#toggle-content {
    cursor: pointer;
    transition: all 0.3s ease;
}

.inactiveMixin {
    content: "";
    position: absolute;
    display: block;
}

.beforeAnimation {
    -moz-transition: .2s cubic-bezier(.24, 0, .5, 1);
    -o-transition: .2s cubic-bezier(.24, 0, .5, 1);
    -webkit-transition: .2s cubic-bezier(.24, 0, .5, 1);
    transition: .2s cubic-bezier(.24, 0, .5, 1);
}

.afterAnimation {
    box-shadow: 0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 0px 0 hsla(0, 0%, 0%, .04), 0 4px 9px hsla(0, 0%, 0%, .13), 0 3px 3px hsla(0, 0%, 0%, .05);
    -moz-transition: .35s cubic-bezier(.54, 1.60, .5, 1);
    -o-transition: .35s cubic-bezier(.54, 1.60, .5, 1);
    -webkit-transition: .35s cubic-bezier(.54, 1.60, .5, 1);
    transition: .35s cubic-bezier(.54, 1.60, .5, 1);
}

.toggleWrapper {
    margin-top: 0;
    top: 0;
}

.toggleWrapper  input:disabled, .toggleWrapper  input:disabled + label {
    cursor: default !important;
}

.toggleWrapper input.mobileToggle {
    opacity: 0;
    position: absolute;
}

.toggleWrapper input.mobileToggle+label {
    position: relative;
    display: inline-block;
    user-select: none;
    transition: .4s ease;
    -webkit-tap-highlight-color: transparent;
    height: 30px;
    width: 50px;
    border: 1px solid #e4e4e4;
    border-radius: 60px;
}

.toggleWrapper input.mobileToggle+label:before,
.toggleWrapper input.mobileToggle+label:after {
    content: "";
    position: absolute;
    transition: .4s ease;
}

.toggleWrapper input.mobileToggle+label:before {
    background: var(--lightgray);
    /* Assuming .inactiveMixin and .beforeAnimation represent initial styles */
    height: 30px;
    width: 51px;
    top: 0;
    left: 0;
    border-radius: 30px;
}

.toggleWrapper input.mobileToggle+label:after {
    background: var(--background);
    /* Assuming .inactiveMixin and .afterAnimation represent initial styles */
    height: 28px;
    width: 28px;
    top: 1px;
    left: 0;
    border-radius: 60px;
}

.toggleWrapper input.mobileToggle:checked+label:before {
    background: var(--green);
    transition: width .2s cubic-bezier(0, 0, 0, .1);
}

.toggleWrapper input.mobileToggle:checked+label:after {
    left: 24px;
    /* Adjusted for a 50px wide container minus 28px circle diameter */
}

#card-content {
    /* Initial visibility handled by JavaScript */
    transition: opacity 0.5s ease;
    /* Smooth transition for opacity changes */
}


/* When the toggle is checked, fade in the content */

#toggle1:checked~#card-content {
    animation: fadeIn 0.5s forwards;
    /* 'forwards' makes the element remain visible after the animation */
}


/* Optional: If you want to fade out when unchecked, you'll need JavaScript to add a class */

.fadeOut {
    animation: fadeOut 0.5s forwards;
}