.rules_menu {
    display: flex;
    color: var(--text-custom);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--button);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.rules_block {
    font-size: 18px; /* Đ£Đ²ĐµĐ»Đ¸Ñ‡ĐµĐ½ Đ¾ÑĐ½Đ¾Đ²Đ½Đ¾Đ¹ Ñ€Đ°Đ·Đ¼ĐµÑ€ Ñ‚ĐµĐºÑÑ‚Đ° */
    line-height: 1.8; /* Đ”Đ¾Đ±Đ°Đ²Đ»ĐµĐ½Đ° Đ²Ñ‹ÑĐ¾Ñ‚Đ° ÑÑ‚Ñ€Đ¾ĐºĐ¸ Đ´Đ»Ñ ÑƒĐ´Đ¾Đ±ÑÑ‚Đ²Đ° Ñ‡Ñ‚ĐµĐ½Đ¸Ñ */
    color: var(--text-default);
}

.rules_step {
    margin-bottom: 20px;
}

.rules_step strong {
    font-size: 20px; /* Đ£Đ²ĐµĐ»Đ¸Ñ‡ĐµĐ½ Ñ€Đ°Đ·Đ¼ĐµÑ€ Ñ‚ĐµĐºÑÑ‚Đ° Đ´Đ»Ñ Đ°ĐºÑ†ĐµĐ½Ñ‚Đ¾Đ² */
    color: var(--text-custom);
}

.rules_image {
    width: 100%;
    max-width: 450px; /* ĐĐµĐ¼Đ½Đ¾Đ³Đ¾ ÑƒĐ²ĐµĐ»Đ¸Ñ‡ĐµĐ½Đ° Đ¼Đ°ĐºÑĐ¸Đ¼Đ°Đ»ÑŒĐ½Đ°Ñ ÑˆĐ¸Ñ€Đ¸Đ½Đ° */
    border-radius: 12px;
    margin-top: 12px;
}


.rules_title {
    font-size: 24px; /* ĐÑ€ÑƒĐ¿Đ½Ñ‹Đ¹ Đ·Đ°Đ³Đ¾Đ»Đ¾Đ²Đ¾Đº */
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-custom);
}

a {
    font-size: 18px; /* Đ¡ÑÑ‹Đ»ĐºĐ¸ ÑĐ¾Đ¾Ñ‚Đ²ĐµÑ‚ÑÑ‚Đ²ÑƒÑÑ‚ Đ¾Đ±Ñ‰ĐµĐ¼Ñƒ Ñ€Đ°Đ·Đ¼ĐµÑ€Ñƒ Ñ‚ĐµĐºÑÑ‚Đ° */
    color: var(--link-color, #007BFF);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color, #0056b3);
}

.rules_menu:hover {
    background-color: var(--button-hover, var(--button));
    color: var(--text-hover, var(--text-custom));
}

.rules_block {
    color: var(--text-default);
    font-size: 14px;
    line-height: 1.6;
    padding: 12px 12px 0;
    display: none;
    width: 100%;
}

.rules_block > a {
    display: block;
    color: var(--span);
    font-weight: 600;
    font-size: 17px;
    text-align: center;
    margin: 10px 0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.rules_block > a:hover {
    color: var(--span-hover, var(--span));
}

.rules_block img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    object-fit: cover;
}

.rules_text {
    color: var(--text-default);
    font-size: 15px;
    margin-left: 12px;
    line-height: 1.5;
}

.rules_text_punishment {
    color: var(--red);
    font-size: 16px;
    font-weight: 500;
}

.rules_warning {
    color: var(--span);
    font-size: 15px;
    font-weight: bold;
}

.rules_active {
    background-color: var(--button-active, var(--button));
    color: var(--text-default);
}

.rules_active svg {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.rules_card_header {
    float: left;
    margin: 5px 0 0 10px;
}

.rules_card {
    background-color: var(--card);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.rules_card_block {
    padding-top: 10px;
}

.rules_sticky {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.rules_chapter {
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    color: var(--text-custom);
    margin: 8px 12px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rules_number {
    color: var(--text-custom);
}

.rules_title {
    font-family: "Unbounded", sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.time_short_text,
.time_long_text {
    font-size: 12px;
    color: var(--text-custom);
    position: absolute;
    right: 40px;
    top: 31px;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.rules_chapter svg,
.rules_menu svg,
.time_short_text svg,
.time_long_text svg {
    height: 15px;
    fill: var(--text-custom);
    transition: fill 0.3s ease;
}

.rules_card_left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rules_text a {
    color: var(--link-color, inherit);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.rules_text a:hover {
    color: var(--link-hover-color, var(--span));
}

@media (max-width: 575.98px) {
    .time_short_text,
    .time_long_text {
        display: none;
    }
}

@media (max-width: 768px) {
    .rules_card {
        display: block;
    }
    .rules_choose {
        display: none;
    }
    .rules_card_left {
        padding: 0;
        border: none;
    }
    .rules_sticky {
        position: static;
        top: auto;
    }
}

.rules_margin {
    width: 100%;
}

code {
  white-space: nowrap;
  display: inline;

  padding: 2px 6px;
  border-radius: 4px;
  font-size: 90%;
}
