body {
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f4f4f4;
    margin: 0;
}

.converter-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

h1 {
    color: #333;
    margin-bottom: 15px;
}

.instructions {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.input-section,
.pool-selection {
    margin-bottom: 20px;
}

.input-section label,
.pool-selection label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.input-section input {
    width: 50px; /* Adjust as needed */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    margin: 0 2px; /* Small spacing between time inputs */
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield; /* Firefox */
}


.pool-selection {
    display: flex;
    justify-content: space-around; /* Space out the two dropdowns */
    align-items: center; /* Align items vertically */
    gap: 15px; /* Add space between the dropdown sections */
}

.pool-selection div {
    flex: 1; /* Allow each dropdown section to take up equal space */
}


.pool-selection select {
    width: 100%; /* Make selects take full width of their container */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width */
}


button {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
    width: 100%; /* Make button full width */
    box-sizing: border-box;
}

button:hover {
    background-color: #0056b3;
}

.result-display {
    margin-top: 25px;
    font-size: 1.2em;
    font-weight: bold;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 4px;
    min-height: 30px; /* Ensure it has some height even when empty */
    line-height: 1.4;
}

.error-display {
    margin-top: 15px;
    color: #dc3545; /* Red color for errors */
    font-weight: bold;
}