/* Box sizing reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Remove default margin and padding */
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  margin: 1em 0 0.2em;
  line-height: 1.2em;
}

/* Set default body styles */
body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: system-ui, sans-serif;
  background-color: #fff;
  color: #000;
}

/* Remove list styles on ul, ol elements with a class */
ul[class], ol[class] {
  list-style: none;
  padding: 0;
}

/* Remove link underline and set inherit color */
a {
  text-decoration: none;
  color: inherit;
}

/* Remove image border and max-width */
img, picture {
  max-width: 100%;
  display: block;
}

/* Form element resets */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Ensure buttons have pointer cursor */
button {
  cursor: pointer;
}

/* Prevent text overflow issues */
textarea {
  resize: vertical;
}

/* Remove animations/transitions for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}


html{
  display: flex;
  flex-direction: column;
  align-items: center;
}

body{
  font-family: "Ubuntu", sans-serif;
  font-weight: 300;
  font-style: normal;

  --primary-color: black;
  --accent-color:  #f7941c;
  --gray-accent: #6f6f6f;

  width: 900px;
}

a{
  border-bottom: 1px solid #d6d6d6;
  transition: 0.8s ease-out border;
  color: var(--accent-color);
}

a:hover {
border-color: var(--accent-color);
}

p{
margin-bottom: 0.6em;
}

pre{
  text-wrap: auto; /* wrap longer lines */
}

.top-menu {
display: flex;
align-items: center;
justify-content: space-between;
/* position: relative; */
height: 53px;
background: #fff;
}

.top-menu a{
  border-bottom: none;
  /* margin: 0 0.4em; */
}


.top-menu .menu-items {
display: flex;
list-style: none;
gap: 1em;
margin: 0;
padding: 0;
}

.top-menu .menu-items li a {
text-decoration: none;
color: #000;
}

.hamburger {
display: none;
background: none;
font-size: 1.5em;
border: none;
cursor: pointer;
z-index: 1010;
}
.hamburger::before{
content: '☰';
}

.open .hamburger::before{
content: '×';
}

.top-menu .mobile-menu {
display: none;
position: absolute;
top: 0;
left: 0;
background: rgba(255, 255, 255, 0.8);
list-style: none;
padding: 0.5em 1em;
width: 100%;
height: 100%;
margin: 0;
z-index: 1000;
box-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.mobile-menu li {
margin-bottom: 0.5em;
}

.mobile-menu li:last-child {
margin-bottom: 0;
}
.mobile-menu li:first-child {
margin-top: 3em;
}

.mobile-menu li a {
text-decoration: none;
display: block;
background-color: var(--accent-color);
color: white;
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
font-size: 1.3em;
}




.authors-list li{
  padding-bottom: 0.2em;
  margin-bottom: 0.2em;
  border-bottom: 3px dotted #eee;
}

.authors-list li a, .songs-list li a, .song-list li a   {
  color: var(--gray-accent);
}

.author-description table, .author-description img {
  display: none;
}

.author-description s{
  text-decoration: none;
}

.pagination ul {
  list-style: none;
  display: flex;
  padding: 0;
}

.pagination ul li a, .pagination ul li > strong {
  font-size: 0.8em;
  text-decoration: none;
  padding: 0.5em;
  background-color: #f7941c;
  color: white;
  margin: 0.1em;
  border-radius: 0.2em;
  display: flex;
  min-width: 2.2em;
  align-items: center;
  justify-content: center;
}

.pagination ul li > strong {
  background-color: black;
  color: #f7941c;
}

form.search-box {
  border: 1px solid #eee;
  display: flex;
  padding: 0.1em;
  border-radius: 0.2em;
  align-items: center;
  flex-direction: row;
}

form.search-box input{
  flex-grow: 1;
}

.song-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;  
  max-width: 100%;  
  border-bottom: 3px dotted #eee;
  padding-bottom: 0.2em;
  margin-bottom: 0.2em;
}

.result-subtitle{
  font-size: 0.9em;
  font-weight: 500;
}

.top-margin-2em{
  margin-top: 2em;
}

body.offline #main{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
transform: translate(-50%, -50%);
position: absolute;
top: 50%;
left: 50%;
text-align: center;
}

.jumbo {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1; /* default aspect ratio */
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: flex-end; /* push content to bottom */
  justify-content: center;
  padding: 1rem;
  margin: 1em 0 0.2em;
  font-size: 2.8em;
  box-sizing: border-box;
}
.jumbo a{
  text-decoration: none;
  border: none;
  color: white;
}
.jumbo.r3-2{
  aspect-ratio: 3 / 2;
}

.big-text{
  font-size: 1.8em;
}

.align-center{
  text-align: center;
}


/* Responsive behavior */

@media (max-width: 930px) {
  body{
    width: calc(100% - 1em);
    padding: 0 0.5em;
  }
  }
  
  
  @media (max-width: 768px) {
  .top-menu .menu-items {
      display: none;
  }
  
  .hamburger {
      display: block;
  }
  
  .open .mobile-menu {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      text-align: center;
  }
  
  .jumbo{
    font-size: 2em;
  }
  
  .big-text{
    font-size: 1.2em;
  }
  
  
  }