body {
    background: linear-gradient(135deg, #74ebd5 0%, #acb6e5 100%);
    font-family: "Arial", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

#calculator-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.calculator-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    padding: 30px 20px;
    width: 350px;
    text-align: center;
    transition: transform 0.3s;
}

.calculator-card:hover {
    transform: scale(1.05);
}

.calculator-card h2 {
    color: #333333;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.calculator-card p {
    color: #666666;
    margin-bottom: 20px;
    font-size: 14px;
}

.fraction-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fraction {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

input[type="text"] {
    width: 100px;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
    background: linear-gradient(135deg, #f3f3f3 0%, #eaeaea 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
    outline: none;
}

input[readonly] {
    background-color: #f1f1f1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.operator {
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 16px;
    background: linear-gradient(135deg, #f3f3f3 0%, #eaeaea 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 60px;
}

.operator:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
    outline: none;
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

button:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.reduce-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.reduce-checkbox label {
    color: #333333;
    font-size: 14px;
}

.reduce-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.reduce-checkbox input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.15) 50%,
            rgba(0, 0, 0, 0) 100%);
    margin: 20px 0;
}
