@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@400;700&display=swap');
:root{
  --background: #fff8f0;
  --text-color: #160e00;
  --soft-text-color: #494745;
  --accent-color: #a84933;
}
.darkmode{
  --background: #1e1e1e;
  --text-color: #fff3e8;
  --soft-text-color: #b9b0a7;
  --accent-color: #ea7358;
}

body {
  font-family: 'Ubuntu Mono', ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
  font-size: 1.2rem;
  background-color: var(--background);
  color: var(--text-color);

  min-height: 100vh;
  margin: 0;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  opacity: 0;
  transition: opacity 0.4s;
}
body.loaded {
  opacity: 1;
}

.page{
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

a:link, a:visited {
  display: inline-block;
  color: var(--text-color);
  text-decoration: none;
  transition: transform 0.2s;
}
a:hover {
  color: var(--accent-color);
  transform: scale(1.05);
}

.inicio {
  position: absolute;
  top: 10px;
}

#theme-switch{
  background: transparent;
  border: none;
  position: absolute;
  top: 18px;
  right: 10px;
}
#theme-switch svg{ fill: var(--text-color); }
#theme-switch:hover svg{ fill: var(--accent-color); }
#theme-switch svg:last-child{ display: none; }


h2 { margin-bottom: 10px; }
.emoji {
  font-size: 60%;
  filter: grayscale(100%);
}
hr {
  color: var(--text-color);
  border-bottom: none;
}

#searchBar {
  color: var(--text-color);
  width: 100%;
  border: 1px solid var(--text-color);
  background: transparent;
  font-size: 1rem;
  box-sizing: border-box;
  padding: 7px;
  transition: transform 0.2s;
}
#searchBar:hover { transform: scale(1.015); }

#links {
  font-size: 1.6rem;
  list-style: none;
  padding: 0;
}
#links li { margin-bottom: 15px; }

.soft {
  color: var(--soft-text-color);
  font-size: 1.3rem;
}

footer a:link, footer a:visited { color: var(--accent-color); }
footer {
  text-align: center;
  display: table;
  margin: 0 auto;
  font-size: 0.8rem;
}

button {
  color: var(--text-color);
  background: var(--background);
  border: none;
  cursor: pointer;
  transition: transform 0.2s;
}
button:hover { transform: scale(1.2); }

.info {
  color: var(--soft-text-color);
  display: flex;
  justify-content: space-between;
}


#subir, #bajar {
  font-size: 1.2rem;
  padding: 0px 5px;
}
#subir { float: left; }
#bajar { float: right; }

.chords-scroll {
  display: flex;
  justify-content: center;
  overflow-x: auto;
}
.chords {
  font-weight: bold;
  white-space: pre;
  margin: 0 auto;
}
.nota { font-weight: normal; }

.lyrics {
  white-space: pre-line;
  font-family: 'Arial', sans-serif;
  line-height: 1.4;
}

.player {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem;
}
#play {
  padding: 2px 2px;
  font-size: 1.1rem;
}
#bar {
  flex: 1;
  accent-color: var(--text-color);
  cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background: transparent;
}
#bar::-webkit-slider-runnable-track {
  width: 100%;
  height: 1px;
  background: var(--text-color);
}
#bar::-moz-range-track {
  width: 100%;
  height: 1px;
  background: var(--text-color);
}
#bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  background: var(--text-color);
  margin-top: -5px;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.2s;
}
#bar::-webkit-slider-thumb:hover { transform: scale(1.2); }
#bar::-moz-range-thumb {
  height: 12px;
  width: 12px;
  background: var(--text-color);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.2s;
}
#bar::-moz-range-thumb:hover { transform: scale(1.2); }
