/* tools.css */
.tools-intro {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #e8f4fa;
}

.tools-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.calculator-section {
    padding: 2rem;
    margin-bottom: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.calculator-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.calculator {
    display: grid;
    grid-template-columns: 1fr; /* Stack elements vertically */
    gap: 1rem;
    margin-top: 1rem;
}

.calculator label {
    font-weight: bold;
}

.calculator input[type="number"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%; /* Take full width */
    box-sizing: border-box; /* Include padding and border in width */
}

.calculator button {
    background-color: #3498db;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%; /* Take full width */
}

.calculator button:hover {
    background-color: #2980b9;
}

.result {
    font-weight: bold;
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #27ae60; /* Green color for result */
}

@media (min-width: 768px) {
    .calculator {
      grid-template-columns: 1fr 1fr; /* Two columns for larger screens */
      align-items: center; /* Vertically center items */
    }
    .calculator input, .calculator button{
        width: auto;
    }
}