#ToggleSection a {
    display: inline-block;
    padding: 2px 11px;
    font-size: 1.1rem; 
    color: #ffffff; 
    text-decoration: none;
    background: linear-gradient(135deg, #4abedb, #9f9c9c);
    border-radius: 8px; 
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
    position: relative;
    z-index: 3;
} 
    #ToggleSection a:hover {
        background: linear-gradient(135deg, #c77138, #9f9c9c);
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0px 6px 18px rgba(0,0,0,0.45);
    }
.rules-header {
    width: 25px;
    text-align-last: center;
    height: 80px;
    align-content: center;
    z-index: 6;
    cursor: pointer;
    align-items: center;
    font-size: 18px;
    color: white;
    position: fixed;
    right: 0px;
    top: 50px;
    background: linear-gradient(135deg, #ff3c00, #bda840d9);
    border-bottom-left-radius: 10px;
    border-top-left-radius: 10px;
}
#ToggleSection {
    border-top: 2px solid #FF8C1A;
    border-bottom: 2px solid #FF8C1A;
    transform: translateX(100%);
    transition: transform 1s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

    #ToggleSection.show {
        transform: translateX(0); /* slide into view */
    }
.rules-content {
    overflow-y: scroll;
    z-index: 5;
    position: fixed;
    top: 60px;
    bottom: 60px;
    right: 0px;
    max-width: 500px;
    margin: 20px auto;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.toggle-btn {
    font-size: 20px;
    font-weight: bold;
    user-select: none;
    transition: transform 0.3s ease;
}

/* Stylish list */
.rules-content ul {
    list-style: none; /* remove default bullets */
    padding: 0;
    margin: 0;
}

.rules-content li {
    position: relative;
    padding: 10px 15px 10px 35px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-left: 4px solid #4abedb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .rules-content li:hover {
        background: #e0f7ff;
        border-left-color: #1a9ad6;
    }

    /* Add custom counter for numbering */
    .rules-content li::before {
        content: counter(li);
        counter-increment: li;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: #4abedb;
        color: white;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        text-align: center;
        line-height: 20px;
        font-size: 12px;
        font-weight: bold;
    }

.rules-content ul {
    counter-reset: li;
}
/* Danger list item */
.rules-content li.danger-li {
    background: #ffe6e6; /* soft red/pink background */
    border-left-color: #ff4d4f; /* bold red border */
    color: #a80000; /* dark red text for contrast */
}

    .rules-content li.danger-li:hover {
        background: #ffcccc; /* slightly brighter on hover */
        border-left-color: #ff1a1a;
    }

    /* Optional: override the counter circle color for danger */
    .rules-content li.danger-li::before {
        background: #ff4d4f;
        color: #fff;
    }


