body {
    font-family: Arial, sans-serif;
    margin: 20px;
    text-align: center;
}

.container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 20px;
}

.test-tube-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

select {
    width: 200px;
    margin: 10px 0;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

button {
    margin: 10px 0;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

button#reset {
    background-color: #f44336;
}

button:hover {
    background-color: #45a049;
}

button#reset:hover {
    background-color: #d32f2f;
}

#output {
    margin-top: 20px;
    font-size: 18px;
    color: blue;
    white-space: pre-wrap;
}

.chemical {
    transition: height 1s ease-in-out, y 1s ease-in-out;
}

.filled .chemical {
    height: 65px; /* Half of 130px test tube height */
    y: 75; /* Move up to fill halfway */
}

/* Responsive styles for WordPress (mobile-first) */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 20px;
    }

    select {
        width: 100%; /* Full width on small screens */
    }

    .test-tube-container {
        width: 100%;
    }

    svg {
        width: 80px; /* Smaller SVGs on mobile */
        height: 120px;
    }

    .button-container {
        flex-direction: column;
        gap: 10px;
    }

    button {
        width: 100%; /* Full-width buttons on mobile */
    }
}