
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 15px;
    text-align: center;
    box-sizing: border-box;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}
.platforms-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}
table {
    border-collapse: collapse;
    margin: 10px auto;
    width: 100%;
    max-width: 950px;
}
th, td {
    border: 1px solid #ddd;
    padding: 5px;
    text-align: center;
}
th.month-header {
    width: 50px;
    min-width: 30px;
    padding: 5px 2px;
}
th {
    background-color: #f2f2f2;
}
input {
    width: 70px;
    height: 25px;
    text-align: center;
    -moz-appearance: textfield;
    box-sizing: border-box;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
button {
    padding: 8px 16px;
    color: white;
    border: none;
    cursor: pointer;
    margin: 0 5px;
    white-space: nowrap;
}
.btn-group {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 950px;
    margin: 20px 0;
    flex-wrap: nowrap;
}
.left-buttons {
    display: flex;
    flex: 1;
    justify-content: flex-start;
}
.right-buttons {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}
.reset-btn {
    background-color: #f44336;
}
.add-btn {
    background-color: #2196F3;
}
.calc-btn {
    background-color: #4CAF50;
    font-weight: bold;
    padding: 8px 16px;
}
.platform-container {
    position: relative;
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}
.remove-platform {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #f44336;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
}
#resultContainer {
    width: 100%;
    margin: 20px auto;
    text-align: center;
    max-width: 950px;
}
#resultTable {
    margin: 0 auto;
    width: 100%;
    max-width: 950px;
}
.thhidde{
    display:none;
}
.formula-explanation {
    background-color: #f9f9f9;
    padding: 15px;
    margin: 30px auto;
    border-radius: 5px;
    text-align: left;
    width: calc(100% - 10px);
    max-width: 950px;
    box-sizing: border-box;
}
.formula-explanation h3 {
    margin-top: 0;
    color: #333;
}
.formula-explanation p {
    margin-bottom: 10px;
    line-height: 1.5;
    word-break: break-word;
}

@media (max-width: 768px) {
    table {
        width: 100%;
        display: table;
    }
    th.month-header {
        width: 20px;
        min-width: 20px;
        max-width: 20px;
        font-size: 12px;
        padding: 5px 1px;
    }
    input {
        width: 60px;
        font-size: 12px;
    }
    #resultTable {
        display: none;
    }
    .mobile-result {
        display: block;
        width: 100%;
    }
    .result-card {
        border: 1px solid #ddd;
        border-radius: 5px;
        padding: 10px;
        margin-bottom: 15px;
        background-color: #f9f9f9;
    }
    .result-card h3 {
        margin-top: 0;
        color: #2196F3;
    }
    .result-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 5px;
    }
    .result-label {
        font-weight: bold;
        color: #555;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px 5px;
    }
    input {
        width: 50px;
        height: 20px;
    }
    button {
        padding: 6px 12px;
        font-size: 14px;
    }
    /* .add-btn {
        display: none;
    } */
    .btn-group {
        flex-wrap: nowrap;
    }
    .left-buttons, .right-buttons {
        flex: none;
    }
}


.footer {
    margin-top: 30px;
    padding: 15px 0;
    font-size: 12px;
    color: #666;
    text-align: center;
    border-top: 1px solid #eee;
}

#plc
{
    line-height:12px ;
}