@import url('https://fonts.googleapis.com/css2?family=Margarine&display=swap');

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Margarine', cursive;
}

.background {
  background-color: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
}

.header {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 0 20px;
  box-sizing: border-box;
}

.logo img {
  max-width: 100%;
  height: auto;
  width: 250px;
}

#audioplayer {
  display: none;
  width: 100%;
  max-width: 500px;
  margin: 0;
}

.player img {
  max-width: 100%;
  height: auto;
  width: 250px;
  cursor: pointer;
}

.conteneur {
  width: 100%;
  max-width: 1200px;
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 10px 0;
  min-height: 0;
  background-color: #000;
  position: relative;
}

#twitch-chat-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  border-radius: 0;
  background-color: #000;
  flex: 1;
  overflow: hidden;
}

#twitch-chat-container iframe {
  flex: 1;
  width: 100%;
  border: none;
  min-height: 0;
}

.offline-message {
  color: #FFD700;
  font-weight: 700;
  font-size: 1.5em;
  text-align: center;
  padding: 20px;
  background-color: transparent;
  border-radius: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}

.equalizer-wrapper {
  position: relative;
  height: 100px;
  margin-top: -30px;
  pointer-events: none;
}

.equalizer-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: flex-end;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 0;
}

.equalizer-bars {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2px;
}

.equalizer-bar {
  width: 40px !important;
  min-height: 0 !important;
  border-radius: 2px 2px 0 0;
  transition: height 0.1s linear;
}

#twitch-chat-container iframe ~ .equalizer-wrapper {
  display: none;
}

.footer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  margin-top: auto;
  border-top: none;
  background-color: #000;
}

.footer img {
  max-width: 100%;
  height: auto;
  width: 200px;
}

@media (max-width: 768px) {
  .header {
    padding: 0 10px;
    flex-wrap: nowrap;
    margin-top: 5px;
  }
  .logo img, .player img {
    width: 180px;
  }
  .footer img {
    width: 150px;
  }
  .offline-message {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .background {
    padding: 5px;
  }
  .conteneur {
    max-height: 70vh;
    margin: 5px 0;
  }
  .footer {
    margin-top: 5px;
    padding: 5px 0;
  }
  .footer img {
    width: 120px;
  }
}
