:root {
    --primary: #2c3e50;
    --secondary: #d4b192 ;
    --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;
    font-size: 2.0em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px #2c3e50;
  }
  h2 {
    text-align: center;
    margin: 15px 0;
    font-size: 1.2rem;
    color: #c7a178;
    font-size: 1.8em;
    margin-top: 20px;
  }
  h3 {
    text-align: center;
    margin: 15px 0;
    font-size: 1.0rem;
    color: #c7a178; /* Pantone semelhante */
    font-size: 1.6em;
    margin-top: 20px;
    text-shadow: 1px 1px 2px #2c3e50;
  }
  h4 {
    text-align: center;
    margin: 15px 0;
    font-size: 1.0rem;
    color: #b58c61; /* Pantone mais forte */
    margin-top: 18px;
    text-shadow: 1px 1px 2px #2c3e50;
  }
  
  h5 {
    text-align: center;
    margin: 15px 0;
    color: #d2b28c; /* Pantone mais suave */
    font-size: 0.9em;
    margin-top: 8px;
    text-shadow: 1px 1px 2px #2c3e50;
  }
  /* ========== 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(--secondary);
  }
  .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(--primary);
    border-radius: var(--border-radius);
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--secondary);
    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(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
    border-color: var(--primary);
    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) {
    .runa {
        width: 30px;   /* Ajuste para tamanho legível */
        height: 40px;
        font-size: 1.5em;
    }
}
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 */
}

/* Estilo das Cartas */
.runas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.runa {
    background: var(--secondary);
    border-radius: var(--border-radius);
    width: 80px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    box-shadow: 0 0 15px var(--secondary);
    transition: transform 0.3s;
}

.runa:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--glow-color);
}

/* Botão */
button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: block;
    margin: 20px auto;
    transition: background 0.3s;
}

button:hover {
    background: var(--secondary);
}

/* Resultado */
.result {
    background: linear-gradient(
        145deg,
        rgba(44, 62, 80, 0.95) 30%,
        rgba(76, 92, 110, 0.95)
    );
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 30px auto;
    max-width: 1200px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(212, 177, 146, 0.3) inset;
    border: 1px solid rgba(212, 177, 146, 0.2);
    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,
        rgba(212, 177, 146, 0.1),
        transparent
    );
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.result h2 {
    color: #d4b192;
    font-size: 2em;
    margin-bottom: 25px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.result p {
    color: #e5d5c3;
    line-height: 1.6;
    font-size: 1.1em;
    margin: 15px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.result:hover {
    transform: translateY(-5px);
}

/* Menu (mantido para outros projetos) */

.menu-item {
    color: #d4b192;
}

.menu-item:hover {
    background: var(--primary);
}
