body {
    font-family: Arial, sans-serif;
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    color: #f4f4f9;
}

.container {
    max-width: 600px;
    margin: 50px auto;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background for contrast */
    padding: 20px;
    padding-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.container:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

h1 {
    text-align: center;
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Adding text shadow for better visibility */
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin: 10px 0 5px;
    color: #dddddd;
    font-size: 18px;
}

input[type="number"],
select {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

input[type="number"]:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}

select option {
    background-color: rgba(255, 255, 255, 0.8); /* Set default background color */
    color: #333333; /* Set default text color */
}

select option:hover {
    background-color: #007bff; /* Change background color on hover */
    color: #ffffff; /* Change text color on hover */
}

button {
    padding: 12px 20px;
    background: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

button:hover {
    background: #0056b3;
}

.results {
    margin-top: 20px;
    display: none;
    padding: 15px;
    border-top: 1px solid #dddddd;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.results h2 {
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Adding text shadow for better visibility */
}

.results p {
    margin: 5px 0;
    color: #dddddd;
    font-size: 16px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    label {
        font-size: 16px;
    }
    
    input[type="number"],
    select {
        font-size: 14px;
    }
    
    button {
        font-size: 16px;
        padding: 10px 15px;
    }
}
