/* Estilos para o site de cifras - Baseado no maisdeus.com */
:root {
  --primary-color: #8B0000;
  --secondary-color: #333;
  --background-color: #fff;
  --text-color: #333;
  --link-color: #8B0000;
  --border-color: #ddd;
  --menu-bg: #f8f8f8;
  --menu-hover: #e8e8e8;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

header {
  background-color: var(--background-color);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 50px;
  margin-right: 10px;
}

.logo-container h1 {
  color: var(--primary-color);
  margin: 0;
  font-size: 24px;
}

.main-menu {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.main-menu a {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 5px;
  color: var(--text-color);
  text-decoration: none;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  background-color: var(--menu-bg);
  transition: background-color 0.3s;
}

.main-menu a:hover {
  background-color: var(--menu-hover);
}

.main-menu a.active {
  background-color: var(--primary-color);
  color: white;
}

.main-content {
  padding: 20px 0;
}

h2 {
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
  padding-bottom: 10px;
  margin-top: 30px;
}

.indice-cifras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .indice-cifras {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .indice-cifras {
    grid-template-columns: 1fr;
  }
}

.indice-cifras a {
  display: block;
  padding: 8px;
  text-decoration: none;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  transition: background-color 0.3s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.indice-cifras a:nth-child(3n+1) {
  background-color: rgba(139, 0, 0, 0.1);
}

.indice-cifras a:nth-child(3n+2) {
  background-color: rgba(0, 0, 139, 0.1);
}

.indice-cifras a:nth-child(3n+3) {
  background-color: rgba(0, 139, 0, 0.1);
}

.indice-cifras a:hover {
  background-color: var(--menu-hover);
}

.musica {
  margin-bottom: 30px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
}

.musica h3 {
  color: var(--primary-color);
  margin-top: 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.musica .cifra {
  font-family: 'Courier New', monospace;
  white-space: pre-wrap;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 3px;
  margin: 10px 0;
  overflow-x: auto;
}

.musica .letra {
  white-space: pre-wrap;
  margin: 10px 0;
}

.voltar {
  display: inline-block;
  margin-top: 10px;
  color: var(--link-color);
  text-decoration: none;
}

.voltar:hover {
  text-decoration: underline;
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.back-to-top:hover {
  opacity: 1;
}

/* Modo escuro */
body.dark-mode {
  --background-color: #222;
  --text-color: #eee;
  --menu-bg: #333;
  --menu-hover: #444;
  --border-color: #555;
}

.dark-mode-toggle {
  bottom: 20px !important;
  left: 0px !important;
  z-index: 1002 !important; /* Garante que esteja acima do menu */
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 20px;
  cursor: pointer;
  position: fixed;
  }
