* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

body {
  width: 100%;
  background-color: #b1c7de;
  font-family: "Cossette Titre", sans-serif;
  background-color: #B83928;
  height: 100%;
}

/*--- TYPOGRAPHY ---*/

h1 {
  font-size: 36px;
  line-height: 38px;
}

h2 {
  font-size: 24px;
  line-height: 26px;
}

p {
  font-size: 20px;
  line-height: 22px;
}

/*--- MOBILE ---*/

@media only screen and (max-width: 600px) {

  #main {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 20px !important;
    height: 90dvh !important;
  }

  

  #main-2 {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 20px !important;
    min-height: 90dvh !important;
  }

  #main-3 {
    flex-direction: column !important;
    padding: 20px !important;
    min-height: 90dvh !important;
  }

  #main-4 {
    flex-direction: column !important;
    padding-bottom: 20px !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
    min-height: 90dvh !important;
  }

  h1 {
    font-size: 32px !important;
    line-height: 34px !important;
  }

  h2 {
    font-size: 20px !important;
    line-height: 22px !important;
  }

  p {
    font-size: 16px !important;
    line-height: 18px !important;
  }

  #header {
    padding-top: 20px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 20px !important;
    height: 10vh !important;
  }

  #sidebar {
    width: 100% !important;
    height: 30% !important;
  }


  #header-admin {
    height: 10vh !important;
    gap: 10px !important;
  }

  .logo-container {
    width: 100% !important;
  }

  .logo-link {
    width: 50% !important;
  }

  .submit-venue {
    width: 100% !important;
  }

  .venues-list {
    width: 100% !important;
  }

  .content-section {
    flex-direction: column !important;
  }

  .venue-name-block {
    width: 100% !important;
  }

  .content-title {
    width: 100% !important;
  }

  .content-content {
    width: 100% !important;
  }

  .venue-name-bottom {
    display: none !important;

  }

  .music-block {
    flex-direction: column !important;
    width: 80% !important;
  }

  .grid-gallery {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  .gallery {
    grid-template-columns: 1fr !important;
    max-height: 85vh !important;
  }

  #sidebar {
  width: 25%;
  height: 100%;
  background-color: #B83928;
  color: black;
  overflow-y: auto;
}

#sidebar::-webkit-scrollbar {
  width: 20px !important;
}

#sidebar::-webkit-scrollbar-track {
  background: #B83928 !important;
  border: black 5px solid;
}

#sidebar::-webkit-scrollbar-thumb {
  background: black !important;
  border: 5px solid black;
}

}

/*--- SECTIONS ---*/
.header-container {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
}

#header {
  display: flex;
  width: 100%;
  background: #B83928;
  height: 25vh;
  padding-top: 40px;
  padding-left: 40px;
  padding-right: 40px;
}

#header-admin {
  display: flex;
  width: 100%;
  height: 25vh;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 40px;
  padding-left: 40px;
  padding-right: 40px;
}

#map {
  flex: 3;
}

#main {
  display: flex;
  flex-direction: row;
  gap: 40px;
  height: 75vh;
  padding: 40px;
}

#main-2 {
  display: flex;
  flex-direction: row;
  gap: 40px;
  min-height: 75vh;
  padding: 40px;
}

#main-3 {
  display: flex;
  flex-direction: column;
  min-height: 75vh;
  padding: 40px;
}

#main-4 {
  display: flex;
  flex-direction: column;
  min-height: 75vh;
  padding-bottom: 40px;
  padding-left: 40px;
  padding-right: 40px;
}


.content-section {
  display: flex;
  width: 100%;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  border-top: 5px solid black;
  padding-top: 10px;
  padding-bottom: 20px;
}

.venue-name-block {
  width: 20%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.venue-name-top {
  align-content: flex-start;
}

.venue-name-bottom {
  text-align: right;
}

/* --- LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80vh;
  border: 5px solid white;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox .close:hover {
  color: #ccc;
}


/*--- ACCORDION ---*/

.accordion {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.accordion-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #000;

  color: #fff;
  cursor: pointer;
  padding: 10px;
  font-size: 36px;
  border: none;
  text-align: left;
  transition: background 0.3s;
  position: relative;
}

.accordion-header:hover {
  background-color: #333;
}

.accordion-header::after {
  content: "+";
  right: 10px;
  font-size: 22px;
  transition: transform 0.3s;
}

.accordion-header.active::after {
  content: "â€“";
}

.accordion-header.active {
  background-color: #444;
}

.accordion-content {
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
  padding: 0 10px;
}

.accordion-content p {
  font-size: 16px;
  padding: 10px 0;
}



/*--- GENERAL ---*/


.logo-container {
  width: 100%;
  height: 100%;
  background-image: url(../images/logo.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
}

.logo-link {
  display: block;
  width: 35%;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.5;
}

.logo:hover {
  opacity: 0.6;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: flex-end;
}

.nav-menu-admin {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.nav-item {
  color: black;
  text-decoration: none;
  transition: 0.3s ease;
  font-size: 36px;
}

.nav-item:hover {
  opacity: 0.6;
}

.active {
  opacity: 0.6;
}

.venues-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 50%;
}

.submit-venue {
  width: 50%;
}

#venue-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input {
  min-height: 40px;
  border: none;
  background-color: rgba(0, 0, 0, 0.164);
  padding: 10px;
  color: white;
  font-family: "Cossette Titre", sans-serif;
  font-size: 24px;
}

textarea {
  min-height: 40px;
  border: none;
  background-color: rgba(0, 0, 0, 0.164);
  padding: 10px;
  color: white;
  font-family: "Cossette Titre", sans-serif;
  font-size: 24px;
}

::placeholder {
  color: rgba(0, 0, 0, 0.39);
  font-family: "Cossette Titre", sans-serif;
  font-size: 24px;
}

.boundary {
  display: block;
  border-top: 5px solid black;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 10px;
}

button {
  display: block;
  border: none;
  background-color: black;
  color: white;
  padding: 10px;
  font-family: "Cossette Titre", sans-serif;
  font-size: 24px;
  transition: 0.3s;
}

button:hover {
  opacity: 0.8;
  cursor: pointer;
}

.venue-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
}

.venue-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.venue-card-admin {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 5px solid black;
  margin-bottom: 10px;
}

#sidebar {
  width: 25%;
  height: 100%;
  background-color: #B83928;
  color: black;
  overflow-y: auto;
}

#sidebar::-webkit-scrollbar {
  width: 20px !important;
}

#sidebar::-webkit-scrollbar-track {
  background: #B83928 !important;
  border: black 5px solid;
}

#sidebar::-webkit-scrollbar-thumb {
  background: black !important;
  border: 5px solid black;
}

.content {
  display: flex;
  position: absolute;
  top: 80px;
  left: 20px;
  right: 20px;
  bottom: 20px;
}

.venue-item.active {
  padding-left: 20px;
}

.venue-item.active h1 {
  font-weight: 700;
}



#sidebar h2 {
  margin-top: 0;
  font-size: 20px;
}

.venue-item {
  margin-bottom: 10px;
  cursor: pointer;
  transition: padding-left 0.3s ease;
  padding-left: 0;
}

.venue-item-block {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.venue-number {
  opacity: 0.5 !important;
}

.venue-item:hover {
  opacity: 0.5;
}

#sidebar::-webkit-scrollbar {
  width: 12px;
}

#sidebar::-webkit-scrollbar-track {
  background: #222;
}

#sidebar::-webkit-scrollbar-thumb {
  background: #444;
  border: 5px solid black;
}

.venue-popup {
  position: absolute;
  background: white;
  border: 5px solid black;
  padding: 10px 15px;
  font-family: "Cossette Titre", sans-serif;
  font-size: 18px;
  white-space: nowrap;
  z-index: 10;
}

.venue-popup-link {
  color: black;
  text-decoration: none;
}

.venue-popup-link:hover {
  text-decoration: underline;
}

.content-title {
  width: 30%;
}

.content-content {
  width: 70%;
}

.artist-color {
  opacity: 0.5 !important;
}

.music-block {
  border-bottom: 5px solid black;
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

/*--- SPLASH SCREEN ---*/

#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #B83928;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease;
}

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

#splash-venue-name {
  font-size: 36px;
  color: black;
  margin-bottom: 20px;
}

.loading-line {
  width: 200px;
  height: 5px;
  background: black;
  margin: 0 auto;
  animation: loadingAnim 2s infinite;
}

@keyframes loadingAnim {
  0% {
    width: 0;
  }

  50% {
    width: 200px;
  }

  100% {
    width: 0;
  }
}

#splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.map-link {
  color: black !important;
  text-decoration: underline;
  transition: 0.3s ease;
}

.map-link:hover {
  text-decoration: none;
}


.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  overflow-y: auto;
  max-height: 70vh;
  padding-right: 10px;
}

.gallery::-webkit-scrollbar {
  width: 20px;
}

.gallery::-webkit-scrollbar-track {
  background: #B83928;
  border: 5px solid black;
}

.gallery::-webkit-scrollbar-thumb {
  background: black;
  border: 5px solid black;
}

.gallery a {
  display: block;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery a:hover img {
  opacity: 0.5;
}