/* File: css/rules.css */
.rules-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.rules-header-container {
    text-align: center;
    margin-bottom: 20px;
}

.rules-header-container h1 {
    font-size: 2.5em;
    color: #333;
    letter-spacing: 1.5px;
    text-decoration: underline;
    margin-bottom: 10px;
}

.last-updated-below {
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 1em;
    display: inline-block;
    margin-top: 10px;
}

p {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}

.rule-box {
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.rule-header {
    padding: 15px;
    background-color: #fbc2de;
    color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    border: 2px solid #ff69b4;
    transition: background-color 0.3s ease, border 0.3s ease;
}

.rule-header h2 {
    margin: 0;
    font-weight: bold;
}

.rule-header .arrow {
    font-size: 1.5em;
    transition: transform 0.3s ease; /* Smooth transition for rotation */
}

.rule-content {
    background-color: #ffffff;
    border-radius: 0 0 10px 10px; /* Bottom rounded corners */
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* Smooth transition */
}

.rule-content ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.rule-content ul li {
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #333;
}
