.septic-tank {
    width: 70%;
    height: 38.75rem;
    position: relative;
    animation: dayNightAnimation 180s infinite;
    border: 0.125rem solid #aaa;
    margin: 3.125rem auto;
    border-radius: 0.5rem;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    overflow: visible;
    max-width: 62.5rem;
}

.tank {
    width: 50%;
    height: 32.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(to bottom, #ccdae0, #767d81);
    border: 0.125rem solid #aaa;
    border-radius: 0.375rem;
    overflow: visible;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    z-index: 1
}

.scum-layer {
    width: 100%;
    height: 1.875rem;
    position: absolute;
    background: linear-gradient(to bottom, #e8f2f4, #f5c100, #f5c100, #f5c100, #f5c100, #f5c100, #f5c100);
    border-radius: 0.375rem 0.375rem 0 0;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.liquid-layer {
    width: 100%;
    height: 10rem;
    position: absolute;
    top: 3.75rem;
    background: linear-gradient(to bottom, #e8f2f4, #7bb9d3, #6ca8c9, #5989a9, #3f6e86);
    border-bottom: 0.0625rem solid #fff;
    animation: waveAnimation 2s linear infinite alternate;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.sludge-layer {
    width: 100%;
    height: 5rem;
    position: absolute;
    top: 16.25rem;
    background-color: #575757;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.divider {
    width: 50%;
    height: 0.75rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000;
    border-radius: 0.375rem;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.inlet-pipe {
    width: 2.5rem;
    height: 7.5rem;
    position: absolute;
    top: 50%;
    left: -3.75rem;
    transform: translate(0, -50%);
    background: linear-gradient(to bottom, #ccc, #999);
    border-radius: 0.375rem;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.outlet-pipe {
    width: 2.5rem;
    height: 7.5rem;
    position: absolute;
    top: 50%;
    right: -3.75rem;
    transform: translate(0, -50%);
    background: linear-gradient(to bottom, #ccc, #999);
    border-radius: 0.375rem;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.pipe-connector {
    width: 1.25rem;
    height: 1.875rem;
    position: absolute;
    bottom: -1.25rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #999;
    border-radius: 50%;
}


.dirty {
    height: 90%;
    width: 100%;
    animation: moveRightDirty 10s linear infinite;
    background-color: #8f5004;
}

.clean {
    background-color: #6ca8c9;
    animation: moveRightClean 10s linear infinite;
    height: 90%;
    width: 100%;

}

@keyframes moveRightClean {
    0% {
        width: 0;
        margin-left: 0;
    }

    20% {
        width: 20%;
        margin-left: 5%;
    }

    90% {
        margin-left: 80%;
        width: 20%;
    }

    100% {
        margin-left: 100%;
        width: 0;
    }
}

@keyframes moveRightDirty {
    0% {
        width: 0;
        margin-left: 0;
    }

    20% {
        width: 20%;
        margin-left: 2%;
    }


    100% {
        margin-left: 100%;
        width: 20%;
    }
}


.pipe1 {
    width: 30vw;
    height: 0.625rem;
    position: absolute;
    bottom: -0.875rem;
    left: 16vw;
    transform: translateX(-50%);
    background-color: #999;
    z-index: -1;

}

.pipe2 {
    width: 30vw;
    height: 0.625rem;
    position: absolute;
    bottom: -0.875rem;
    left: -14vw;
    transform: translateX(-50%);
    background-color: #999;
    z-index: -1;
}



.overflow-pipe {
    width: 5rem;
    height: 7.5rem;
    position: absolute;
    bottom: -7.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #ccc, #999);
    border-radius: 0.375rem;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.ground {
    width: 100%;
    height: 7.5rem;
    position: absolute;
    bottom: 0;
    background: linear-gradient(to bottom, #6e3d00, #361e00);
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.label.inlet-label {
    top: 12.5rem;
    left: -6.25rem;
    color: black;
    background-color: #ccc;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.label.outlet-label {
    top: 12.5rem;
    right: -7.5rem;
    background-color: #ccc;
    color: black;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.label.overflow-label {
    bottom: -5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ccc;
    color: black;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.grass {
    width: 100%;
    height: 1.875rem;
    position: absolute;
    bottom: 7.5rem;
    background: linear-gradient(to bottom, #01ff01, #004b00);
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.label {
    position: absolute;
    font-size: 0.875rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
    padding: 0.3125rem;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border-radius: 0.3125rem;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    transition: all 0.5s;
    z-index: 1;
}

.label * {
    cursor: default;
}

.label:hover {
    padding: 0.5rem;
}





.overflow-label {
    bottom: -5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ccc;
    color: black;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.scum-label {
    top: 1.875rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f5c100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.liquid-label {
    top: 9.375rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #7bb9d3;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.sludge-label {
    top: 20rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: #575757;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.septic-tank:before {
    content: '';
    position: absolute;
    top: -1.25rem;
    left: -1.25rem;
    width: 100%;
    height: 100%;
    border: 1.25rem solid rgba(0, 0, 0, 0.1);
    border-radius: 0.625rem;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.septic-tank:after {
    content: '';
    position: absolute;
    bottom: -1.25rem;
    left: -1.25rem;
    width: 100%;
    height: 100%;
    border: 1.25rem solid rgba(0, 0, 0, 0.1);
    border-radius: 0.625rem;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}


.bubble-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    width: 0.375rem;
    height: 0.375rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: absolute;
    animation: bubbleAnimation 3s ease-in-out infinite;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

@keyframes bubbleAnimation {
    0% {
        top: 100%;
        opacity: 1;
    }

    50% {
        top: 0;
        opacity: 0.6;
    }

    100% {
        top: -100%;
        opacity: 0;
    }
}

@keyframes waveAnimation {
    0% {
        top: 3.75rem;
        height: 10rem;
    }

    50% {
        top: 3.125rem;
        height: 10.625rem;
    }

    100% {
        top: 3.75rem;
        height: 10rem;
    }
}


.scum-layer {
    background: linear-gradient(to bottom, #e8f2f4, #f5c100, #f5c100, #f5c100, #f5c100, #f5c100, #f5c100, #f5c100, #f5c100);
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.sludge-layer {
    background: linear-gradient(to bottom, #575757, #3d3d3d, #292929, #212121, #1a1a1a);
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.liquid-layer {
    background: linear-gradient(to bottom, #e8f2f4, #7bb9d3, #6ca8c9, #5989a9, #3f6e86, #2d4f63);
    animation-duration: 6s;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.bubble {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    position: absolute;
    animation: bubbleAnimation 6s ease-in-out infinite;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.bubble.bubble1 {
    width: 0.25rem;
    height: 0.25rem;
    background-color: rgba(255, 255, 255, 0.6);
    animation-delay: 0s;
    top: 1.875rem;
    left: 0.625rem;
}

.bubble.bubble2 {
    width: 0.5rem;
    height: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    animation-delay: 1s;
    top: 5rem;
    left: 5.625rem;
}

.bubble.bubble3 {
    width: 0.375rem;
    height: 0.375rem;
    background-color: rgba(255, 255, 255, 0.7);
    animation-delay: 2s;
    top: 8.125rem;
    left: 12.5rem;
}

.bubble.bubble4 {
    width: 0.625rem;
    height: 0.625rem;
    background-color: rgba(255, 255, 255, 1);
    animation-delay: 3s;
    top: 12.5rem;
    left: 9.375rem;
}

.bubble.bubble5 {
    width: 0.75rem;
    height: 0.75rem;
    background-color: rgba(255, 255, 255, 0.8);
    animation-delay: 4s;
    top: 15.625rem;
    left: 18.75rem;
}

.bubble.bubble6 {
    width: 0.375rem;
    height: 0.375rem;
    background-color: rgba(255, 255, 255, 0.6);
    animation-delay: 5s;
    top: 17.5rem;
    left: 25rem;
}

.bubble.bubble7 {
    width: 0.5rem;
    height: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    animation-delay: 2.5s;
    top: 20rem;
    left: 3.125rem;
}

.bubble.bubble8 {
    width: 0.625rem;
    height: 0.625rem;
    background-color: rgba(255, 255, 255, 0.7);
    animation-delay: 3.5s;
    top: 21.875rem;
    left: 21.875rem;
}

.bubble.bubble9 {
    width: 0.75rem;
    height: 0.75rem;
    background-color: rgba(255, 255, 255, 0.8);
    animation-delay: 4.5s;
    top: 23.75rem;
    left: 12.5rem;
}

.bubble.bubble10 {
    width: 0.375rem;
    height: 0.375rem;
    background-color: rgba(255, 255, 255, 0.6);
    animation-delay: 5.5s;
    top: 26.875rem;
    left: 6.25rem;
}

.bubble.bubble11 {
    width: 0.5rem;
    height: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    animation-delay: 6s;
    top: 30rem;
    left: 18.75rem;
}


@keyframes dayNightAnimation {
    0% {
        background-color: #c3e3f1;
    }

    50% {
        background-color: #102b3e;
    }

    100% {
        background-color: #c3e3f1;
    }
}


.sun {
    width: 5rem;
    height: 5rem;
    background-color: #f7dd46;
    border-radius: 50%;
    position: absolute;
    animation: rotateSun 120s linear infinite;
}

.moon {
    width: 5rem;
    height: 5rem;
    background-color: #f0f0f0;
    border-radius: 50%;
    position: absolute;
    animation: rotateMoon 120s linear infinite;
}



@keyframes rotateSun {
    0% {
        transform: rotate(0deg);
        top: 0;
    }

    50% {
        transform: rotate(180deg);
        top: 80%;
    }

    100% {
        transform: rotate(360deg);
        top: 0;
    }
}

@keyframes rotateMoon {
    0% {
        transform: rotate(0deg);
        right: 0;
        top: 80%;
    }

    50% {
        transform: rotate(180deg);
        right: 0;
        top: 0;
    }

    100% {
        transform: rotate(360deg);
        right: 0;
        top: 80%;
    }
}

.sun,
.moon {
    animation-timing-function: linear;
}

.septic-tank {
    animation-duration: 120s;
}

.title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.title-line::before,
.title-line::after {
    content: "";
    flex-grow: 1;
    height: 0.0625rem;
    background-color: #333;
}

.title-line::before {
    margin-right: 0.625rem;
}

.title-line::after {
    margin-left: 0.625rem;
}

.title-text {
    font-size: 2.25rem;
    font-weight: bold;
    color: #333;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    text-align: center;
}

.card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    padding: 1.25rem;
    max-width: 50%;
    margin: auto;
    margin-top: 9.375rem;
}

.description {
    text-align: justify;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.875rem;
}

.description p:first-child {
    margin-top: 0;
}

.description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 68.75rem) {
    .pipe1 {
        width: 30vw;
        height: 0.625rem;
        position: absolute;
        bottom: -0.875rem;
        left: 17vw;
        transform: translateX(-50%);
        background-color: #999;
        z-index: -1;
    }

    .pipe2 {
        width: 30vw;
        height: 0.625rem;
        position: absolute;
        bottom: -0.875rem;
        left: -13vw;
        transform: translateX(-50%);
        background-color: #999;
        z-index: -1;
    }

    .label.outlet-label {
        top: 12.5rem;
        right: -3.75rem;
        background-color: #ccc;
        color: black;
        box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    }

    .label.inlet-label {
        top: 12.5rem;
        left: -3.75rem;
        color: black;
        background-color: #ccc;
        box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
    }

    .label {
        position: absolute;
        font-size: 0.625rem;
        font-weight: bold;
        text-align: center;
        margin: 0;
        padding: 0.3125rem;
        width: auto;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        border-radius: 0.3125rem;
        box-shadow: 0rem 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
        transition: all 0.5s;
        z-index: 1;
    }
}

@media (max-width: 34.375rem) {
    .pipe1 {
        width: 30vw;
        height: 0.625rem;
        position: absolute;
        bottom: -0.875rem;
        left: 18vw;
        transform: translateX(-50%);
        background-color: #999;
        z-index: -1;
    }

    .pipe2 {
        width: 30vw;
        height: 0.625rem;
        position: absolute;
        bottom: -0.875rem;
        left: -12vw;
        transform: translateX(-50%);
        background-color: #999;
        z-index: -1;
    }
}

@media (min-width: 162.5rem) {
    .pipe1 {
        left: 25.625rem;
        max-width: 50rem;
    }

    .pipe2 {
        left: -23.75rem;
        max-width: 50rem;
    }
}

@media (max-width: 23.125rem) {
    .pipe1 {
        width: 30vw;
        height: 0.625rem;
        position: absolute;
        bottom: -0.875rem;
        left: 19vw;
        background-color: #999;
        z-index: -1;
    }

    .pipe2 {
        width: 30vw;
        height: 0.625rem;
        position: absolute;
        bottom: -0.875rem;
        left: -11vw;
        transform: translateX(-50%);
        background-color: #999;
        z-index: -1;
    }
}