@import url("/app/modules/module_page_help/assets/css/editor/tui-color-picker.min.css");
@import url("/app/modules/module_page_help/assets/css/editor/toastui-editor.min.css");
@import url("/app/modules/module_page_help/assets/css/editor/toastui-editor-dark.min.css");
@import url("/app/modules/module_page_help/assets/css/editor/toastui-editor-plugin-color-syntax.min.css");
@import url("/app/modules/module_page_help/assets/css/editor/toastui-editor-viewer.min.css");

.rules_menu {
  display: flex;
  color: var(--text-custom);
  padding: 0 7px 0 15px;
  height: 45px;
  border-radius: var(--br-8);
  font-size: var(--font-size-m);
  font-weight: var(--font-weight-6);
  background: var(--button);
  cursor: pointer;
  transition: all 0.2s;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  position: relative;
  justify-content: space-between;
  overflow: hidden;
}

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

.rules_menu:hover svg {
  fill: currentColor;
}

.rules_block {
  color: var(--text-default);
  font-weight: var(--font-weight-4);
  font-size: var(--font-size-m);
  padding: 10px 10px 0;
  width: 100%;
  position: relative;
}

.rules_block > a {
  display: flex;
  color: var(--span);
  font-weight: var(--font-weight-6);
  font-size: var(--font-size-default);
  text-align: center;
  justify-content: center;
}

.rules_block img {
  border-radius: var(--br-16);
  width: auto;
  height: auto;
  margin-bottom: 20px;
}

.rules_text {
  color: var(--text-default);
  font-weight: var(--font-weight-4);
  font-size: var(--font-size-m);
  margin-left: 10px;
  white-space: pre-wrap;
}

.rules_text_punishment {
  color: var(--red);
  font-weight: var(--font-weight-4);
  font-size: var(--font-size-m);
}

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

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

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

.rules_card_block {
  padding: 10px 0 0 0;
}

.rules_sticky {
  position: sticky;
  height: fit-content;
  top: .6rem;
}

.rules_chapter {
display: flex;
    padding-block: 0.5rem 1rem;
    padding-inline: 0.5rem;
    color: var(--text-custom);
    font-size: var(--font-size-default);
    font-weight: var(--font-weight-6);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    align-items: center;
    border-bottom: 1px solid var(--transparent-5-w);
    gap: 0.5rem;
}

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

.rules_title {
  font-weight: var(--font-weight-7);
  font-family: var(--font-family-1);
}

.time_short_text,
.time_long_text {
  font-weight: var(--font-weight-4);
  font-size: var(--font-size-s);
  color: var(--text-custom);
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.5;
  justify-content: flex-end;
}

.rules_chapter svg {
  height: 15px;
  fill: var(--text-custom);
}

.rules_menu .svg {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
}

.rules_menu svg {
  fill: var(--text-custom);
  transition: all 0.25s;
}

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

.time_short_text svg,
.time_long_text svg {
  height: 13px;
  fill: var(--text-custom);
}

@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;
    min-width: auto;
  }

  .rules_sticky {
    position: static;
    height: auto;
    top: 25px;
  }
}

.rules_margin {
  width: 100%;
}

.rules_text a {
  text-decoration: underline;
}

#help_content p {
  color: var(--text-custom);
  font-size: var(--font-size-m);
}

#help_content h2 {
  font-weight: var(--font-weight-7);
  font-family: var(--font-family-2);
  border-bottom: 0;
  color: var(--text-default);
  margin: 14px 0;
}

.help_buttons {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  align-items: center;
}

.help_buttons-2 {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-13px);
  transition: all 0.25s;
  visibility: hidden;
}

.help_accetp_buttons {
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#content_form {
  width: 100% !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
}

.add_content {
  position: absolute;
  right: 20px;
  display: flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  background: var(--button);
  border-radius: var(--br-8);
}

.edit_content,
.delete_content {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  background: var(--button);
  border: 1px solid var(--transparent-10-w);
  border-radius: var(--br-8);
  cursor: pointer;
  transition: all 0.25s;
}

.rules_menu:hover .delete_content svg,
.help_active:hover .delete_content svg,
.rules_menu .delete_content svg,
.help_active .delete_content svg {
  fill: var(--red);
}

.rules_menu:hover .edit_content svg,
.help_active:hover .edit_content svg,
.rules_menu .edit_content svg,
.help_active .edit_content svg {
  fill: var(--text-custom);
}

.add_content svg {
  display: flex;
  width: 9px;
  height: auto;
  fill: var(--red);
  transition: var(--transition-duration);
}

.delete_content svg {
  display: flex;
  width: 9px;
  height: auto;
  fill: var(--red);
  transition: var(--transition-duration);
}

.edit_content svg {
  display: flex;
  width: 9px;
  height: auto;
  fill: var(--text-custom);
  transition: var(--transition-duration);
}

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

.rules_menu_cat {
  display: flex;
  color: var(--text-custom);
  padding: 7px 18px;
  border-radius: var(--br-6);
  font-size: var(--font-size-m);
  cursor: pointer;
  transition: var(--transition-duration);
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: var(--transparent-2-w);
  opacity: 0.5;
  border: 1px solid var(--transparent-5-w);
}

.rules_menu_cat:hover {
  color: var(--text-default);
  opacity: 1;
}

.rules_menu_cat:hover svg {
  fill: var(--text-default);
  opacity: 1;
}

.rules_menu_cat .svg {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.rules_menu_cat svg {
  height: 13px;
  fill: var(--text-custom);
  transition: 0.25s;
}

.add_category {
  margin-top: 8px;
}

.help_menu-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.help_menu-block .help_svg {
  height: 13px;
  width: auto;
  fill: var(--text-custom);
}

.help_menu-block:hover .help_svg {
  opacity: 0.2;
}

.help_svg {
  margin-left: 16px;
  margin-top: -5px;
  fill: var(--text-default) !important;
  opacity: 0.05;
  transition: 0.25s;
}

.help_active {
  background: var(--button-hover);
  color: var(--text-default);
  opacity: 1;
}

.help_active_small {
  border: 1px solid rgb(152 158 202 / 10%);
  color: var(--text-default);
  background: var(--span);
  opacity: 1;
}

.help_active svg {
  opacity: 1 !important;
  transition: var(--transition-duration);
  fill: currentColor;
}

.help_active_small svg {
  opacity: 1 !important;
  transition: var(--transition-duration);
  fill: var(--text-default);
}

.help_dropdown {
  display: none;
  flex-direction: column;
  gap: 3px;
}

.toastui-editor-contents {
  font-family: var(--font-family-2);
  font-size: var(--font-size-m);
  margin: 0;
  padding: 0;
  z-index: 20;
}

.toastui-editor-contents ul > li:before {
  background-color: var(--text-custom);
  margin-left: -20px;
  margin-top: 9px;
}

.toastui-editor-contents code {
  background-color: rgb(48 36 35);
  color: #e2645e;
  padding: 3px 6px;
  border-radius: var(--br-4);
  font-family: inherit;
  font-weight: var(--font-weight-4);
  font-size: var(--font-size-m);
}

.toastui-editor-contents a {
  color: var(--span);
  text-decoration: none;
  transition: 0.25s;
}

.toastui-editor-contents a:hover {
  color: var(--span);
  text-decoration: underline;
}

.toastui-editor-contents dir,
.toastui-editor-contents menu,
.toastui-editor-contents ol,
.toastui-editor-contents ul {
  color: #222;
  display: block;
  list-style-type: none;
  margin: 0 0 10px 0;
  padding-left: 24px;
}

.toastui-editor-contents h1 {
  border-bottom: none;
  font-size: var(--font-size-5xl);
  line-height: 28px;
  margin: 15px 0;
  padding-bottom: 7px;
}

.toastui-editor-contents h1,
.toastui-editor-contents h2,
.toastui-editor-contents h3,
.toastui-editor-contents h4,
.toastui-editor-contents h5,
.toastui-editor-contents h6 {
  color: var(--text-default);
  font-weight: var(--font-weight-7);
}

.rules_menu:hover .help_buttons-2 {
  pointer-events: all;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.toastui-editor-defaultUI {
  border: 1px solid var(--transparent-5-w);
  border-radius: var(--br-12);
  position: relative;
}

.toastui-editor-dark.toastui-editor-defaultUI {
  border-color: var(--transparent-5-w);
  color: var(--text-default);
}

.toastui-editor-dark .toastui-editor-defaultUI-toolbar {
  background-color: var(--transparent-2-w);
  border-bottom-color: var(--transparent-5-w);
}

.toastui-editor-dark .toastui-editor-md-container,
.toastui-editor-dark .toastui-editor-ww-container {
  background-color: var(--input-form);
}

.toastui-editor-contents blockquote {
  border-left: 3px solid var(--transparent-5-w);
  margin: 14px 0;
  padding: 8px 16px;
  background: linear-gradient(89deg, rgb(255 255 255 / 5%), var(--transparent-2-w));
  border-radius: var(--br-3) 8px 8px 3px;
}

.toastui-editor-contents blockquote p {
  color: var(--text-custom) !important;
}

.toastui-editor-contents hr {
  border-top: 1px solid var(--transparent-5-w);
  margin: 16px 0;
}

.toastui-editor-contents table td,
.toastui-editor-contents table th {
  border: 1px solid var(--transparent-2-w);
  background: var(--input-form);
}

.toastui-editor-contents table th {
  background-color: var(--transparent-5-w);
  font-weight: var(--font-weight-4);
}

.toastui-editor-contents table {
  border: 1px solid var(--grey);
  border-radius: var(--br-8);
  overflow: hidden;
  width: 100%;
}

.toastui-editor-contents ol > li:before {
  color: var(--text-custom);
  opacity: 0.5;
}

.toastui-editor-defaultUI-toolbar {
  border-radius: var(--br-12) 12px 0 0;
}

@media (min-width: 769px) {
  .popup_modal_content {
    overflow: visible;
  }
}

.help_access_buttons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
  position: absolute;
  right: 30px;
  margin-top: -40px;
}

.access_list:hover .help_access_buttons {
  pointer-events: all;
}

.delete_access {
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--bg-table);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
}

.delete_access svg {
  display: flex;
  width: 9px;
  height: auto;
  fill: var(--red);
  transition: 0.3s;
}

.h3_help {
  color: var(--text-default);
  font-size: 16px;
  font-weight: 700;
}

.access_list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

:root {
    --swiper-image-ratio: 33.3%;
    --swiper-width: 50%;
    --swiper-inactive-scale: .85;
    --swiper-mobile-width: 90%;
    --swiper-mobile-inactive-scale: .95;
}

/* ---------- HEADER ---------- */

.help__header {
    padding-block: 3rem;
    background-color: var(--card);
    border: 1px solid var(--transparent-5-w);
    margin: 1rem;
    border-radius: var(--br-12);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-direction: column;
}

.help__h2 {
    font-size: var(--font-size-5xl);
    font-family: var(--font-family-1);
    font-weight: var(--font-weight-6);
    text-align: center;
    color: var(--text-default);
    z-index: 1;
}

@media (max-width:768px) {
    .help__h2 {
        font-size: var(--font-size-xxl);
    }
}

.help__header svg {
    position: absolute;
    width: 25rem;
    height: 30rem;
    opacity: .05;
    fill: var(--span);
}

.help__header:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center,
            var(--span) 0%,
            transparent 70%);
    inset: 0;
    opacity: .1;
    animation: 2.5s pulseCircle infinite ease-in-out;
}

@keyframes pulseCircle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.15;
    }
}

.help__description {
    margin: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            transparent 5%,
            #fff 15%,
            #fff 35%,
            transparent 45%,
            transparent 100%);
    background-size: 200% 100%;
    background-color: rgb(255 255 255 / 50%);
    background-position: 150% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 2s infinite linear;
    z-index: 1;
    font-weight: var(--font-weight-6);
    text-align: center;
}

@keyframes shine {
    0% { background-position: 150% 0; }
    100% { background-position: -50% 0; }
}

/* ---------- SLIDER ---------- */

.help__slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.help__slider:before,
.help__slider:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 35%;
    z-index: 2;
    pointer-events: none;
}

.help__slider:before {
    background-image: linear-gradient(90deg, transparent, var(--card));
    right: 0;
}

.help__slider:after {
    left: 0;
    background-image: linear-gradient(90deg, var(--card), transparent);
}

.swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
    width: var(--swiper-width);
    opacity: .5;
    transform: scale(.84);
    transition: all .3s ease-in-out;
    overflow: hidden;
    border-radius: var(--br-16);
}

.swiper-slide.swiper-slide-active {
    transform: scale(1) !important;
    opacity: 1 !important;
}

.swiper-image {
    position: relative;
    width: 100%;
    height: 15rem;
}

.swiper-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- BUTTONS ---------- */

.swiper-button-next,
.swiper-button-prev {
    padding: 8px;
    width: 3rem;
    height: 3rem;
    margin-top: 0;
    background-color: var(--transparent-20-w);
    border-radius: var(--br-50);
    border: 2px solid var(--transparent-10-w);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px 0 rgb(0 0 0 / 25%);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    color: var(--text-default);
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-6);
    text-shadow: 0px 1px 3px rgb(0 0 0 / 30%);
}

.swiper-button-next {
    transform: translate(50%, -50%);
    right: calc((100% - var(--swiper-width)) / 2);
}

.swiper-button-prev {
    transform: translate(-50%, -50%);
    left: calc((100% - var(--swiper-width)) / 2);
}

@media only screen and (max-width: 768px) {
    .swiper-slide {
        width: var(--swiper-mobile-width);
        transform: scale(var(--swiper-mobile-inactive-scale));
    }

    .swiper-button-next {
        right: calc((100% - var(--swiper-mobile-width)) / 2);
    }

    .swiper-button-prev {
        left: calc((100% - var(--swiper-mobile-width)) / 2);
    }
}
