:root {
    --primary: #d4b192;
    --secondary: #2c3e50;
    --glow-color: #7a6048;
    --border-radius: 8px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Times New Roman', serif;
    padding: 20px;
    margin-top: 60px; /* Espaço para o header fixo */
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    min-height: 100vh;
  }
  h1 {
    text-align: center;
    margin: 15px 0;
    font-size: 1.4rem;
    color: #2c3e50;
  }
  h2 {
    text-align: center;
    margin: 15px 0;
    font-size: 1.2rem;
    color: #2c3e50;
  }
  h3 {
    text-align: center;
    margin: 35px 0;
    font-size: 1.0rem;
    color: #d4b192;
  }
  
  /* ========== NOVO HEADER ========== */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--primary);
  }
  .menu {
    display: none; /* Esconde completamente */
    position: absolute;
    top: -1500px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 350px;
    background: rgba(44, 62, 80, 0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px #d4b192;
    padding: 15px 0;
    opacity: 0;
  }
  .menu-item {
    background: var(--secondary);
    border-radius: var(--border-radius);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary);
    font-size: 0.95em;
    padding: 0 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }
  
  .menu-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    transition: transform 0.3s;
  }
  
  .menu-item:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-2px);
    border-color: var(--secondary);
    box-shadow: 0 3px 8px rgba(122, 96, 72, 0.4);
  }
  
  .menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    background: radial-gradient(circle at center, 
               rgba(212, 177, 146, 0.2) 0%, 
               transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .menu-item:hover::before {
    opacity: 1;
  }
  
  .menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
  }
  
  .menu-icon.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-icon.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-icon.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .menu.active {
    display: block; /* Mostra quando ativo */
    top: 65px;
    opacity: 1;
  }
  
  .menu ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 15px;
    list-style: none;
    max-height: 80vh; /* Melhor ajuste para telas menores */
    overflow-y: auto; /* Scroll apenas quando necessário */
  }
  
  /* Ajustes responsivos */
  @media (max-width: 768px) {
  .menu-item {
      height: 25px; /* Reduz altura */
      font-size: 0.8em; /* Fonte menor */
      padding: 0 6px; /* Padding reduzido */
  }
  }
  
  @media (max-width: 480px) {
  .menu-list {
      flex-direction: row; /* Empilha os itens */
      gap: 2px; /* Espaçamento menor */
  }
  
  .menu-item {
      height: 20px; /* Altura mais compacta */
      font-size: 0.55em; /* Fonte menor */
      padding: 0 3px; /* Padding ainda menor */
  }
  }
  
    /* Estilo das Runas */
    .runas-container {
        flex-direction: row;
        align-items: center; /* Centraliza horizontalmente */
        justify-content: center; /* (Opcional) Centraliza verticalmente */
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
        margin-top: 20px;
      }
  
      .runa {
        background: linear-gradient(135deg, #2c3e50, #d4b192);
        border-radius: 5px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        width: 30px;
        height: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
        font-size: 2.5em;
        color: #2c3e50;
        text-align: center;
      }
  
      .runa:hover {
        transform: scale(1.1);
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
        background: linear-gradient(135deg, #bdc3c7, #ecf0f1);
      }
  
      .runa-title {
        position: static;
        bottom: 10px;
        left: 0;
        right: 0;
        background-color: rgba(44, 62, 80, 0.8);
        color: #d4b192;
        font-size: 1em;
        padding: 5px;
        text-align: center;
        border-radius: 5px;
      }
      select {
        background-color: var(--secondary);
        color: var(--primary);
        font-size: 0.8em;
        padding: 5px;
        text-align: center;
        border-radius: 5px;
        display: block;
        margin: 10px auto; /* Auto centraliza quando o display é block */
        width: fit-content; /* Mantém o tamanho necessário */
    }
  
/* Resultado */
.result {
  background: linear-gradient(
      145deg,
      var(--secondary) 30%,
      rgba(76, 92, 110, 0.95)
  );
  padding: 30px;
  margin: 30px auto;
  max-width: 1200px;
  box-shadow: 
      0 8px 32px var(--secondary),
      0 0 15px var(--primary) inset;
  border: 1px solid var(--secondary);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.result::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
      90deg,
      transparent,
      var(--secondary),
      transparent
  );
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.result h2 {
  color: var(--primary);
  font-size: 2em;
  margin-bottom: 25px;
  position: relative;
  text-shadow: 2px 2px 4px var(--secondary);
}

.result p {
  color: var(--primary);
  line-height: 1.2;
  font-size: 1.1em;
  margin: 15px 0;
  text-shadow: 1px 1px 2px var(--secondary);
}

.result:hover {
  transform: translateY(-5px);
}
    
  
      footer {
        margin-top: 20px;
        color: #2c3e50;
        font-size: 0.9em;
      }
  
      button {
        display: block;
        margin: 10px auto; /* Auto centraliza quando o display é block */
        width: fit-content; /* Mantém o tamanho necessário */
        background-color: #2c3e50;
        color: #d4b192;
        border: none;
        padding: 10px 20px;
        font-size: 1.2em;
        border-radius: 5px;
        cursor: pointer;
        transition: background-color 0.3s;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
      }
  
      button:hover {
        background-color: #34495e;
      }
  
      /* Estilo Responsivo */
      /* Estilo padrão para todas as telas */
  .menu {
    display: flex;
    flex-direction: row;  /* Itens dispostos horizontalmente por padrão */
    gap: 10px;  /* Espaçamento padrão */
  }
        .runas-container {
          gap: 10px;
        }
  
        .runa {
          width: 40px;
          height: 60px;
          font-size: 1.5em;
        }
  
        h1 {
          font-size: 2em;
        }
  
      @media (max-width: 480px) {
        .runa {
          width: 10px;
          height: 15px;
          font-size: 1.0em;
        }
  
        button {
          font-size: 0.8em;
          padding: 4px 8px;
        }
  
        .result {
          font-size: 0.8em;
        }
      }
      .instrucoes-box {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        text-align: center;
        background: var(--secondary);
        border: 1px solid var(--primary);
        padding: 15px;
        margin: 20px auto;
        border-radius: 8px;
        color: var(--primary);
        max-width: 500px;
        text-align: left;
        box-shadow: 0 0 15px var(--secondary);
    }
