.mixed-number-calculator-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mixed-number-calculator-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.calculator-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 900px;
    overflow: hidden;
}

.calculator-header {
    background-color: #3a4f76;
    color: white;
    padding: 20px;
    text-align: center;
}

.calculator-body {
    padding: 1px;
}

.input-sectionmn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.mixed-numbermn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.whole-partmn {
    width: 60px;
    padding: 12px;
    text-align: center;
    font-size: 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.fraction-partmn {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.fraction-partmn input {
    width: 80px;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s;
	margin: 5px 0;
}

.fraction-linemn {
    width: 100%;
    height: 2px;
    background-color: #3a4f76;
    margin: 0px 0;
}

.fraction-linemn2 {
    width: 50px;
    height: 2px;
    background-color: #3a4f76;
    margin: 0px 0;
}

.whole-part:focus, .fraction-part input:focus {
    border-color: #4CAF50;
    outline: none;
}

.operator-select {
    padding: 10px;
    font-size: 24px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: 70px;
    text-align: center;
}

.equals-sign {
    font-size: 30px;
    font-weight: bold;
    color: #3a4f76;
    margin: 0 10px;
}

.result-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.result-title {
    color: #3a4f76;
    margin-bottom: 15px;
    font-size: 20px;
}

.mixed-result, .improper-result {
    display: flex;
    align-items: center;
    margin: 10px 0;
    font-size: 22px;
}

.result-fraction {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
}

.result-whole {
    font-size: 22px;
    font-weight: bold;
    margin-right: 5px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-mn {
    padding: 12px 25px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-mn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-mn:active {
    transform: translateY(0);
}

.calculate-btnmn {
    background-color: #4CAF50;
    color: white;
}

.clear-btnmn {
    background-color: #9e9e9e;
    color: white;
}

.steps-container {
    background-color: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
}

.steps-title {
    color: #3a4f76;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.steps-content {
    line-height: 1.6;
    font-size: 16px;
}

.step1 {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.step1:before {
    content: ">";
    position: absolute;
    left: 0;
    color: #4CAF50;
}

@media (max-width: 768px) {
    .input-section {
        flex-direction: column;
    }
    
    .operator-select, .equals-sign {
        margin: 15px 0;
    }
}