body {
    font-family: 'Arial', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: white;
    margin: 0;
}

.container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 500px;
}

h1 {
    margin-bottom: 20px;
    color: #333;
}

.input-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

#stepContainer {
    margin: 20px 0;
}

textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

input, button {
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

button:hover {
    background: #ddd;
}

#countButton {
    background: #28a745;
    color: white;
}

#deleteLastButton {
    background: #ffc107;
    color: white;
}

#resetButton {
    background: #dc3545;
    color: white;
}

#countDisplay p {
    margin: 10px 0;
    color: #555;
}

.records {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    background: #fff;
    display: none;
}

#stepRecords {
    max-height: 200px; /* 设置最大高度限制 */
    overflow-y: auto; /* 当内容超过最大高度时显示滚动条 */
}

#loopRecords {
    max-height: 90px; /* 设置最大高度限制 */
    overflow-y: auto; /* 当内容超过最大高度时显示滚动条 */
}


#countButtonContainer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    animation: fadeOut 2s ease-out forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.delete-button {
    background-color: #dc3545;
    color: white;
}

#stepButton {
    background-color: #dc3545; /* 红色背景 */
    color: white;            /* 白色文字 */
    border: none;            /* 去掉边框 */
    border-radius: 5px;      /* 圆角边框 */
    padding: 10px;           /* 内边距 */
    cursor: pointer;         /* 鼠标悬停显示手型 */
    transition: all 0.2s ease-in-out; /* 平滑过渡效果 */
}

#stepButton:hover {
    background-color: #c82333; /* 更深的红色，用于悬停效果 */
}


.confirmation-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
    width: 300px;
    font-family: Arial, sans-serif;
}

.confirmation-box p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.button-container {
    display: flex;
    justify-content: space-around;
}

.confirm-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.confirm-button:hover {
    background-color: #218838;
}

.cancel-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cancel-button:hover {
    background-color: #c82333;
}


