:root {
  --chord-color: red;
  --chord-separator-color: #ffcdcc;
  --editor-section-color: blue;
  --section-header-color: #777;
  --section-header-bg-color: #eee;
  --chord-line-color: ;
  --primary-button-color: #888;
  --secondary-button-color: #888;
  --secondary-button-bg-color: #EEE;
  --secondary-button-bg-hover-color: #CCC;
  --default-color: #444;
  --default-bg-color: white;
  --default-font-size: 14px;
  --default-font-family: 'Roboto' sans-serif;
  --default-border: 1px solid #ddd;
}
html {
  background-color: var(--default-bg-color);
  color: var(--default-color);
  font-family: var(--default-font-family);
  font-size: var(--default-font-size);
}
body {
  margin: 0;
  padding: 0;
}
.container {
  width: 80%;
  min-width: 400px;
  margin: 20px auto;
}
.song-column {
  border-left: var(--default-border);
  padding-left: 1rem;
  padding-right: 0.5rem;
}
.song-column:first-child {
  border-left: 0px;
  padding-left: 0;
}
span.song-section, .cm-header {
  background: var(--section-header-bg-color);
  color: var(--section-header-color);
  padding: 0.2rem;
  font-size: 1.3rem;
  font-weight: 400 !important;
}
span.lyrics {
  color: var(--default-color);
  white-space: pre;
}
span.chords {
  color: var(--chord-color);
  font-weight: 600;
  padding-right: 1em;
  flex: 1; /* Grow to fill available space */
}
div.lyrics-part {
  white-space:nowrap;
  display:flex;
  justify-content: space-between;
}
.card-bottom-right {
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  width: 320px;
  z-index: 1050;
  display: none;
}
.CodeMirror {
  height: 30em !important;
  overflow: auto;
  font-family: var(--primary-font-family) !important;
}
.cm-chord {
  color: var(--chord-color);
  font-weight: bold !important;
  padding: 0 0.1em;
}
.cm-song-column {
  color: var(--editor-section-color);
}
table.spaced {
  height:fit-content;
}
.chordified {
  font-family: var(--default-font-family);
}
.nav-item {
  font-size: 1.2rem;
}
.left-line {
  border-left: 1px solid var(--chord-separator-color);
}
td.left-line:first-child.left-line {
  border-left: 0px;
}
.drop-container {
  border: var(--default-border);
  height: 30rem !important;
  margin: 0 auto;
}
.styled-textarea {
  border: var(--default-border);
  outline: none;
  resize: none;
  display:block;
}
.user-avatar {
  width: 2rem;
  height: 2rem;
}
@media print {
  body {
    background-color:#fff;
  }
  body * {
    visibility: hidden;
  }
  .printable, .printable * {
    visibility: visible;
  }
  .printable {
    position: absolute;
    left: 0;
    top: 0;
  }
  .container {
    width:100%;
  }
}
/* Responsive layout */
@media (max-width:900px) {
  .container {
    width: 98%;
  }
  .navbar .navbar-nav {
    display: inline-block;
    float: none;
  }
  .navbar .navbar-collapse {
      text-align: center;
  }
}
@media (max-width: 600px) {
  .item {
    flex-basis: calc(50% - 20px);
  }
}
@media (max-width: 400px) {
  .item {
    flex-basis: calc(100% - 20px);
  }
  .navbar {
    width:400px !important;
  }
  .container {
    width:400px !important;
  }
}
.flash-messages {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    min-width: 200px;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.alert {
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    animation: fadeInOut 3s ease-in-out forwards;
    white-space: nowrap;
    display: inline-block;
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-20px); }
    10% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); }
}
