﻿body {
  font-family: 'Poppins', sans-serif;
  background-image: url('Bilder/Fireflycdbakgrunn.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
}

#alphabet {
  text-align: center;
  margin-bottom: 20px;
}

#alphabet a {
  margin: 0 5px;
  padding: 10px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 16px;
  background-color: white;
  border-radius: 5px;
  display: inline-block;
}

#alphabet a:hover {
  text-decoration: underline;
  color: #333;
}

.artist-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.column {
  flex: 1 1 30%;
  margin: 5px;
  text-align: center;
  background-color: white;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.column a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
}

.column a:hover {
  text-decoration: underline;
}
/* Felles stil for tabeller */
.common-table {
  width: 80%;
  margin: 0 auto;
  border-collapse: collapse;
  font-family: 'Poppins', sans-serif;
}

.common-table th, .common-table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.common-table th {
  background-color: #f2f2f2;
  text-align: left;
}

.common-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.common-table tr:hover {
  background-color: #ddd;
}

#results {
  margin-top: 20px;
}

#totalTitles {
  text-align: center;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  line-height: 20px;
  font-size: 16px;
  position: absolute;
  right: 20px;
  top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.center-boxes {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

#searchForm {
  max-width: 700px;
  min-width: 400px;
  margin: 10px auto;
  text-align: center;
}

#searchQuery {
  background-image: url('searchicon.png');
  background-position: 15px 12px;
  background-repeat: no-repeat;
  width: calc(70% - 22px);
  padding: 12px 20px 12px 40px;
  font-size: 14px;
  border: 1px solid #ddd;
  margin-bottom: 20px;
}

button {
  padding: 12px 10px;
  font-size: 14px;
}

.search-results-table {
  width: calc(100% - 22px);
  font-size: 11px;
  border-collapse: collapse;
  background-color: white;
  margin-top: 10px;
}

.search-results-table th,
.search-results-table td {
  border: 1px solid #ddd;
  padding: 8px;
}

.search-results-table th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #312f2f;
  color: rgb(239, 230, 230);
  cursor: pointer;
}

.info-box {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  margin: 10px;
  font-family: 'Poppins', sans-serif;
  flex: 1 1 30%;
}

#latestAlbums, #mostalbumsby, #randomTitle, #mostlabelsby {
  width: 25%;
  min-width: 300px;
}

#artistFilter {
  width: 30%;
  height: 38px;
  margin: 20px auto;
  display: block;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
}

@media (max-width: 768px) {
  .center-boxes {
      flex-direction: column;
      align-items: center;
  }

  #totalTitles {
      position: static;
      margin-bottom: 20px;
  }

  #alphabet {
      margin-top: 20px;
  }

  .info-box {
      width: 100%;
      min-width: auto;
  }
}
