body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.calculator, .section, .ads {
    margin-bottom: 30px;
}

h2 {
    color: #333;
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.options {
    margin-bottom: 15px;
}

.options label {
    display: block;
    margin-bottom: 10px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

.result {
    margin-top: 20px;
    font-size: 18px;
}

.result p {
    margin: 10px 0;
}

.ad-placeholder {
    background-color: #e9e9e9;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    color: #555;
}

footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 14px;
}

footer a {
    color: #28a745;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 600px) {
    header h1 {
        font-size: 24px;
    }

    header p {
        font-size: 14px;
    }

    .container {
        padding: 15px;
    }
}