body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f7f7f7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color:#007BFF;
}



html {
    overflow: -moz-hidden-unscrollable;
    height: 100%;
}

body::-webkit-scrollbar {
    display: none;
}

body {
    width: calc(100vw + 18px);
    height: 100%;
    -ms-overflow-style: none;
    overflow: auto;
}

h3 {
    color: #333333;
}

.error {
    width: 40%;
    margin-top: 10px;
    border-radius: 8px;
    padding: 5px;
    color: rgb(255, 255, 255);
    font-size: 12px;
    font-weight: 600;
    font-family: "思源黑体";
    background-color: rgb(255, 162, 162);
    display: none;
}

.output-area {
    resize: vertical;
    border: 2px solid #ccc;
    margin-left: 10px;
    width: 93.5%;
    height: 250px;
    padding: 10px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    font-family: "思源黑体";
    color: rgb(54, 54, 54);
}

.box {
    border-radius: 10px;
    width: 70%;
    background-color: rgb(255, 255, 255);
    border: 4px solid #ccc;
    padding: 10px;
    padding-top: 0px;
    padding-bottom: 20px;
}

.copy-button {
    margin-left: 13px;
    margin-bottom: 20px;
    padding: 10px 20px;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f8f8f8;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.copy-button:not(.disabled):hover {
    background-color: #e0e0e0;
}


.sum-button {
    padding: 10px 20px;
    border: 2px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
    background-color: #f8f8f8;
    transition: background-color 0.3s ease;
}

.sum-button:not(.disabled):hover {
    background-color: #e0e0e0;
}

.run-button {
    margin-top: 0px;
    margin-bottom: 18px;
    padding: 10px 20px;
    width: 100%;
    border: 3px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    background-color: #f8f8f8;
    /*transition: background-color 0.3s ease;*/
}

.run-button:not(.disabled):hover {
    background-color: #e0e0e0;
}

.rule-input {
    width: 53%;
    padding: 5px;
    border: 2px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    vertical-align: middle;
}

.num-input {
    width: 55px;
    height: 38px;
    border: 2px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    vertical-align: middle;
}

.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ddd;
}

.fixed-box {
    width: 0;
    height: 88%;
    position: fixed;
    left: 0;
    background-color: #f9f9f9;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    transition: width 0.3s ease;
    overflow-y: auto;
}

.content-box {
    margin-left: 5%;
    padding-left: 2%;
    transition: margin-left 0.3s ease;
}

.toggle-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    z-index: 60;
}

#box-content,
#box-operation {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#box-operation {
    text-align: left;
    display: block;
}

#box-content {
    text-align: left;
    display: none;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.animated {
    animation-name: slideIn;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    animation-delay: 0.3s;
}

.sum-select {
    height: 44px;
    border: 2px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
    vertical-align: middle;
}