/* CSS Styling for Net Worth Doubles Calculator */

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

.calculator-container {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 350px;
}

.calculator-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    text-align: right; /* Align numbers to the right */
}

.calculate-btn {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.calculate-btn:hover {
    background-color: #218838;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 5px;
    color: #333;
}

.error {
    color: #dc3545;
    margin-top: 10px;
    text-align: center;
}

/* New Styles for Image Display */

/* Container for the image */
.images-container {
    margin-top: 15px;
    display: flex;
    justify-content: center; /* Center the image horizontally */
    align-items: center;
}

/* Updated image styling */
.double-image {
    width: 333px; /* Set to approximately 333px as requested */
    height: auto; /* Maintain aspect ratio */
    margin: 10px 0; /* Add vertical spacing */
    object-fit: contain;
    display: block; /* Center the image within the container */
    margin-left: auto;
    margin-right: auto;
    cursor: pointer; /* Change cursor to pointer to indicate interactivity on desktop */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Smooth transitions */
}

.double-image:hover {
    opacity: 0.8; /* Slightly fade the image on hover */
    transform: scale(1.05); /* Slightly enlarge the image on hover */
}