@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
}

body {
    width: 100%;
    max-width: 400px;
    min-height: 600px;
    padding: 1.5rem;
    box-sizing: border-box;
}

.container {
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 100%;
    max-width: 100%;
    transition: all 0.3s ease;
}

.container:hover {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #ff5f6d;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

label {
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: bold;
    color: #333333;
}

input[type="number"],
select {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 2px solid #ff5f6d;
    border-radius: 10px;
    font-size: 1rem;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

input[type="number"]:focus,
select:focus {
    border-color: #ffc371;
    outline: none;
}

select option {
    background-color: #ffffff; 
    color: #333333; 
}

button {
    padding: 0.75rem 1.5rem;
    background: #ff5f6d;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

button:hover {
    background: #e6505c;
}

.results {
    margin-top: 1.5rem;
    display: none;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.results h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #ff5f6d;
}

.results p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #333333;
}

.results p span {
    font-weight: bold;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    label {
        font-size: 0.875rem;
    }

    input[type="number"],
    select {
        font-size: 0.875rem;
    }

    button {
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }
}
