/* 🔹 Importação de estilos globais */
@import url('menu.css');

/* 🔹 Estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Remove o scroll da página */
    height: 100vh;
}

/* 🔹 Cores para destaques */
span {
    color: #ff0000a6;
    font-weight: bold;
}

em {
    color: #00da88;
    font-style: normal;
}

/* ==================== MENU LATERAL (Compactado) ==================== */
#menu-lateral-anchors {
    position: fixed;
    left: 2%;
    top: 20%;
    width: 15%;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 218, 136, 0.5);
    max-height: 70vh;
    overflow-y: auto;
}

/* 🔹 Scroll personalizado para o menu lateral */
#menu-lateral-anchors::-webkit-scrollbar {
    width: 8px;
}

#menu-lateral-anchors::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

#menu-lateral-anchors::-webkit-scrollbar-thumb {
    background: #00da88;
    border-radius: 5px;
}

#menu-lateral-anchors a {
    display: block;
    color: #00da88;
    font-size: 0.84vw;
    padding: 6px;
    text-decoration: none;
    transition: color 0.3s, background 0.3s;
    border-radius: 8px;
}

#menu-lateral-anchors a:hover,
#menu-lateral-anchors a.active {
    background: #00da86;
    color: black;
    font-weight: bold;
}

#menu-toggle-anchors {
  display: none;
}

/* ==================== CONTEÚDO PRINCIPAL ==================== */
#regras-content {
    position: absolute;
    top: 18%;
    left: 20%;
    width: 75%;
    text-align: center;
    color: white;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 218, 136, 0.5);
}

/* 🔹 Estilização do título principal */
.page-title {
    font-size: 1.8vw;
    font-weight: bold;
    color: #00da88;
    text-shadow: 0px 0px 8px rgba(0, 218, 136, 0.8);
}

.page-title-white {
    color: white;
}

.page-subtitle {
    font-size: 0.9vw;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
    font-weight: 500;
    line-height: 1.5;
}

/* ==================== CONTEÚDO DAS REGRAS ==================== */
#regras-container {
    position: absolute;
    top: 36%;
    left: 20%;
    width: 75%;
    height: 54.6vh;
    overflow-y: auto;
    padding-bottom: 20px;
    border-radius: 10px;
}

/* 🔹 Scroll personalizado para o container de regras */
#regras-container::-webkit-scrollbar {
    width: 10px;
}

#regras-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
}

#regras-container::-webkit-scrollbar-thumb {
    background: #00da88;
    border-radius: 5px;
}

#regras-container::-webkit-scrollbar-thumb:hover {
    background: #009e60;
}

/* 🔹 Exibe apenas a seção ativa */
.regra-section {
    display: none;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    margin-bottom: 20px;
    box-shadow: 0px 0px 10px rgba(0, 218, 136, 0.4);
}

.regra-section.active {
    display: block;
}

/* 🔹 Subcategorias dentro de uma seção */
.regra-subsection {
    display: none; /* Todas começam escondidas */
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    margin-bottom: 20px;
    box-shadow: 0px 0px 10px rgba(0, 218, 136, 0.4);
}

.regra-subsection.active {
    display: block; /* Apenas a ativa é mostrada */
}

/* 🔹 Melhorias nos títulos */
h2 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #1db954;
}

h3 {
    font-size: 1.5em;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #fff;
}

h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #bbb;
}

/* 🔹 Estilização dos Quotes (Regras Importantes) */
blockquote {
    background: #262626;
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #1db954;
    font-size: 1.1em;
    color: #e0e0e0;
}

/* 🔹 Estilização das Tabelas */
.tabela-regras {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tabela-regras th {
    background: #1db954;
    color: white;
    font-weight: bold;
    padding: 10px;
    text-align: left;
}

.tabela-regras td {
    padding: 10px;
    border: 1px solid #444;
    background: #292929;
}

.tabela-regras tr:nth-child(even) {
    background: #222;
}

#menu-lateral.active {
    display: block;
}

@media (max-width: 768px) {
    #regras-content {
        position: relative;  /* ou ajuste conforme necessário */
        top: 14%;
        left: 2%;
        width: 80%;
        height: 20%;
        padding: 15px;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 218, 136, 0.5);
        text-align: center;
    }
      
      
      .page-title {
        font-size: 5vw; 
    }
      
      .page-title-white {
        font-size: 5vw;
    }
      
      .page-subtitle {
        font-size: 2.60vw;
        margin-top: 10px;
    }
      
      /* Ajusta o container das regras */
      #regras-container {
        position: relative;
        top: 160px;        /* Espaçamento abaixo do título */
        left: 2%;
        width: 90%;
        height: 57%;     /* Ou defina uma altura fixa, ex.: 50vh */
        padding-bottom: 20px;
        border-radius: 10px;
    }
    
    #menu-lateral-anchors {
      position: fixed;
      top: 30;
      left: 0;
      width: 60%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      padding: 20px;
      overflow-y: auto;
      transform: translateX(-100%); 
      transition: transform 0.3s ease;
      z-index: 1000;
    }

    #menu-lateral-anchors a {
        display: block;
        padding: 15px;
        color: #00da88;
        text-align: left;
        font-size: 12px;
        border-bottom: 1px solid #00da88;
        text-decoration: none;
    }
  
    #menu-lateral-anchors.active {
      transform: translateX(0);
    }
  
    #menu-toggle-anchors {
      display: block;
      position: absolute;
      top: 5%;
      left: 5%;
      font-size: 28px;
      color: #00da88;
      cursor: pointer;
      z-index: 999;
    }
  
    body {
      overflow-y: auto;
    }
  }