body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: auto;
    background: #fff;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

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

.footer {
    text-align: center;
    color: #444;
}
.explanation {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.variable, .result, .solve-for {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="number"], select {
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type="checkbox"] {
    margin-right: 5px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    margin-right: 10px;
}

button:hover {
    background-color: #45a049;
}

#reset-button {
    background-color: #f44336;
}

#reset-button:hover {
    background-color: #d32f2f;
}

#message-container {
    margin-top: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

#message-container.error {
    background-color: #ffebee;
    color: #c62828;
}

#message-container.success {
    background-color: #e8f5e9;
    color: #388e3c;
}

.drake-equation {
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

.equation-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.variable-group {
    display: flex;
    align-items: center;
    margin: 0 5px;
}

.variable-group label {
    font-weight: bold;
    margin-right: 5px;
    cursor: help;
}

.variable-group input[type="number"] {
    width: 80px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.variable-group input[type="checkbox"] {
    margin-left: 5px;
    transition: opacity 0.3s ease;
}

.variable-group input[type="checkbox"][style="display: none;"] {
    opacity: 0;
}

.operator {
    margin: 0 5px;
    font-weight: bold;
}

.result input {
    background-color: rgba(20,200,20, 0.2);
    font-weight: bold;
}

/* Tooltip styles */
.variable-group label {
    position: relative;
}

.variable-group label:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 1;
    font-weight: normal;
}

.deq-mathtml {
    color: #fff;
}

h1:hover + .deq-mathtml {
    color: #000
}    
