body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family:'Times New Roman', Times, serif;
    background-color: #000000;
}

h1 {
    text-align: center;
    color: #ffffff;
}

.section {
    display: flex;
    flex-direction: row; /* Horizontal alignment on desktop */
    gap: 20px; /* Space between the divs */
    flex-wrap: wrap; /* Allow wrapping to handle smaller screens */
}

.card {
    border: 1px solid #ddd;
    border-radius: 55px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1; /* Ensure cards grow to fill available space */
    min-width: 250px; /* Minimum width for cards */
    background-color: #ffffff;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.buttons button {
    background-color: rgb(238, 238, 232); /* Changed to royal blue */
    border:1px  solid rgba(160, 156, 156, 0.5);
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 20px;
    color: rgb(0, 0, 0); /* Ensure text color is white for better contrast */
    font-family: 'Times New Roman', Times, serif;
}

.buttons button.selected {
    background-color: #a60d7d; /* Darker shade of royal blue for selected button */
    color: white;
}

input[type="number"] {
    display: block;
    margin: 10px auto;
    padding: 8px;
    width: 80%;
}

.result {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.scale-wrapper {
    position: relative;
    margin: 20px 0;
}

.scale {
    background-color: #eee;
    border-radius: 5px;
    height: 30px;
    width: 100%;
    position: relative;
}

.progress-bar {
    background-color: #a60d7d;
    height: 100%;
    width: 0%;
    border-radius: 5px;
}

.scale-readings {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
}

.scale-reading {
    font-size: 12px;
}

.error-message {
    color: red;
    font-weight: bold;
    display: none; /* Hidden by default */
}
#peptide-dose {
    color: #124151; /* You can change 'red' to any color you like */
}
#syringe-units {
    color: #124151; /* You can change 'red' to any color you like */
}
#concentration {
    color: #124151; /* You can change 'red' to any color you like */
}
#vial-doses {
    color: #124151; /* You can change 'red' to any color you like */
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        flex-direction: column; /* Stack divs vertically on mobile */
        gap: 20px; /* Space between stacked divs */
    }
}
