body {
    background-color: #202020;
    color: white;
    min-height: calc(100vh - 20px);
    margin: 0;/* Rule Sections Layout */
    padding: 10px;
    font-family: "Roboto", sans-serif;
}

/* Centering Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
}

.rules-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Styling for Rule Sections */
.rule-section {
    width: 100%;
    max-width: 900px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid #cc3333;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

/* Section Headers */
.rule-section h2 {
    color: #cc3333;
    margin-bottom: 10px;
}

/* Rules List */
.rule-section ul {
    padding-left: 20px;
    list-style: none;
}

/* Rules Styling */
.rule-section li {
    position: relative;
    padding-left: 3em;
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

/* Hover Effect for Rules */
.rule-section li:hover {
    background-color: rgba(204, 51, 51, 0.2); /* Light red highlight */
    border-radius: 4px;
    cursor: pointer;
}

/* Ensure Hover Does Not Affect Section Links */
.rule-section li:hover a.section-link {
    background-color: transparent;
    text-decoration: underline;
}

/* Rule Numbering */
.rule-section li::before {
    content: "[" attr(id) "]:";
    position: absolute;
    left: 0;
    width: 3em;
    text-align: right;
    font-style: italic;
    font-weight: bold;
    color: #cc3333;
}

/* Rule Text */
.rule-text {
    display: inline-block;
    padding-left: 1em;
    flex-grow: 1;
}

/* Restore Hover Effect for Section Links */
.section-link {
    color: #cc3333;
    text-decoration: none;
    font-weight: bold;
    font-size: inherit;  /* Matches surrounding text size */
    line-height: inherit; /* Keeps spacing natural */
    display: inline-block;  /* Forces it to behave properly inside flex containers */
    vertical-align: middle; /* Ensures alignment with text */
    padding: 0; /* Avoid browser default padding issues */
    margin: 0; /* Prevent margin inconsistencies */
}

.section-link:hover {
    text-decoration: underline;
    color: #ff6666; /* Slightly lighter red for better visibility */
}

/* Avoid Underline Affecting Whole Rule */
.section-link a {
    text-decoration: none;
}

.section-link a:hover {
    text-decoration: underline;
}

/* Fix Issue Where Whole Rule is Underlined When Hovering Section Link */
.rule-section li a.section-link {
    text-decoration: none;
}

.rule-section li a.section-link:hover {
    text-decoration: underline;
}

/* Highlighting on Navigation */
.highlighted {
    background-color: rgba(204, 51, 51, 0.2);
    transition: background-color 0.5s ease-in-out;
}

.rule-section.highlighted {
    border-left: 6px solid #cc3333;
    background-color: rgba(204, 51, 51, 0.1);
}

.rule-section li.highlighted {
    background-color: rgba(204, 51, 51, 0.3);
    border-radius: 4px;
}

.rule-disclaimer {
    margin-top: 30px;
    padding: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    font-style: italic;
    font-size: 0.9em;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Copy Message */
#copyMessage {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #cc3333;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
    z-index: 1000;
}

#warning-banner {
    background-color: #ffcc00;
    color: #000;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

#warning-banner span {
    flex: 1;
    margin-right: 10px;
}

.close-warning {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #000;
}