/* Grundlegende Reset-Stile */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Stile für den gesamten Körper der Seite */
body {
  font-family: Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  padding: 50px;
}

html, body {
  height: 100%;
  overflow-x: hidden; /* horizontales Scrollen verhindern */
}

/* Stile für die Kopfzeile */
header {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

header h1 {
  font-size: 2.5em;
}

/* Hauptinhalt */
main {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

main {
  min-height: calc(100vh - 140px); /* 100vh minus Header + Footer grob */
}

section {
  background-color: white;
  padding: 20px;
  width: 48%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section h2 {
  font-size: 1.8em;
  color: #333;
}

#header {
    text-align: center;
}

/* section p {
  margin-top: 10px;
  font-size: 1em;
  color: #666;
} */


.loginElements {
  display: flex;              /* Flexbox */
  justify-content: center;    /* Horizontal zentrieren */
  align-items: center;        /* Vertikal zentrieren */
  flex-direction: column;     /* Elemente untereinander */
  gap: 15px;                  /* Abstand zwischen Text und Button */
  width: 100%;                /* Ganze Breite nutzen */
  height: 100vh;              /* Vollbildhöhe */
  text-align: center;         /* Text zentrieren */
}


.loginElements button {
  width: 80%;           /* fast volle Breite */
  height: 20%;
  max-width: 600px;     /* optional: nicht zu breit auf Desktop */
  max-height: 100px;
  padding: 15px;        /* Höhe/Innenabstand */
  font-size: 20px;      /* größere Schrift */
  border-radius: 8px;
  cursor: pointer;
}





/* select Playlist */
.playlist {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5%;
  /* padding: 20px; */
  text-align: center;      
  justify-content: center;
  text-align: center;
  text-justify: center;
  column-gap: 6%;
  row-gap: 15px; 
  width: 100%;

}
.playlistSelection {
  display: grid;
  flex: 0 1 30%;
  /* width: 30%; */
  min-width: 250px;
  background-color: #8f8f8f;  
  border-radius: 8px;    
  padding: 3px;
}
.playlistSelection label {
  color: white;           
}
.playlistSelection select {
  text-align: center;      
  text-decoration: none;     
  font-size: 16px;          
  cursor: pointer;         
  transition: background-color 0.3s ease; 
  padding: 2px;            
  font-size: 16px;
  width: 100%;
       
}

.playlist .kategorie {
  display: flex;
  flex: 0 1 30%;
  min-width: 250px;
  /* width: 30%; */
  gap: 1%;
}
.playlist .kategorie .kasten {
  display: flex;
  border-radius: 8px;       
  width: 60%;
  border: 2px solid black;
  padding: 20px 40px;  
}
.playlist .kategorie button {
  background-color: #8f8f8f;  
  color: white;              
  text-align: center;  
  text-justify: center;    
  text-decoration: none;     
  display: inline-block;    
  font-size: 16px;          
  margin: 0 auto;
  cursor: pointer;         
  border-radius: 8px;       
  transition: background-color 0.3s ease; 
  width: 40%;
  padding: 0;
}

/* ----------- */


button {
  background-color: #8f8f8f;  
  color: white;              
  border: none;           
  padding: 15px 32px;        
  text-align: center;      
  text-decoration: none;     
  display: inline-block;    
  font-size: 16px;          
  margin: 4px 2px;        
  cursor: pointer;         
  border-radius: 8px;       
  transition: background-color 0.3s ease; 
}

/* Focus-Effekt */
button:focus {
  outline: none;  
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);  
}

button:active {
  background-color: #6d6d6d;
}


/*Slider*/
.slider {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  align-items: center;  
}
#seekSlider {
  -webkit-appearance: none;
  /* width: 100%;               */
  flex: 0 1 80%;
  min-width: 300px;
  height: 10px;             
  background: #ccc;           
  border-radius: 5px;        
  cursor: pointer;          
}
#seekSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 20px;
  background: transparent;
  border: none;
}
.slider span {
  margin-left: 2%;
  flex: 0 1 80px;
  justify-content: center;
  text-align: center;
}


/*Play Button*/
.play-buttons {
    display: grid;
    grid-template-columns: repeat(3, max(10%, 70px));    
    gap: 1%;
    justify-content: center;
    margin-bottom: 3%;
}
.play-box button {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: none;
    background-color: #8f8f8f;
    font-size: 26px;
    padding: 0;
}

.trackInfoButtonClass {
    display: flex;
    justify-content: center;
    align-items: center;    
    width: 100%;
} 
.trackInfoButtonClass button {
    justify-content: center;
    align-items: center;    
    width: 60%;
} 




#trackInfo {
  display: none;  /* Anfangs unsichtbar */
  width: 60%;      /* 60% der Bildschirmbreite */
  margin: 0 auto;  /* Zentriert den Container horizontal */
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 20px; /* Abstand nach oben */
}

.trackInfoWrapper {
  display: flex;                 /* Flexbox für nebeneinander */
  justify-content: center; /* Gleicher Abstand zwischen den Kategorien */
  /* flex: 1 0 30%; */
}

.trackArtistClass, .trackTitleClass, .trackDateClass {
  display: flex;
  flex-direction: column;  /* Text übereinander */
  align-items: center;     /* Zentriert die Texte */
  width: 30%;               /* Damit jede Kategorie die gleiche Breite hat */
}

.trackArtistClass p, .trackTitleClass p, .trackDateClass p {
  font-size: 16px;
  color: #333;
  margin: 5px 0; /* Abstand zwischen den Zeilen */
  text-align: center
}

/* Sichtbarkeit des Divs nach Knopfdruck */
#trackInfo[hidden] {
  display: block;
}


@media (hover: hover) {
  /* Hover-Effekte nur auf Geräten, die Hover wirklich unterstützen (PC) */
  button:hover {
    background-color: #6d6d6d;
  }
}

/* Beispiel: Layout für Handys */
@media (max-width: 600px) {
  body {
    padding: 10px; /* oder sogar 0 */
  }

  main {
    flex-direction: column;
  }

  section {
    width: 100%;
    margin-bottom: 20px;
  }

}

@media (max-width: 600px) {
  .trackInfoWrapper {
    flex-direction: column; /* Spalten untereinander */
    align-items: center;    /* Zentriert alles horizontal */
  }

  .trackArtistClass, .trackTitleClass, .trackDateClass {
    width: 80%; /* Breite anpassen für mobile Geräte */
    margin-bottom: 15px; /* Abstand zwischen den Items */
  }
}

/* Fußzeile immer unten */
footer {
  width: 100%;
  background-color: #333;
  color: white;
  text-align: center;
  padding: 10px 0;
  position: fixed;  /* fixiert unten */
  bottom: 0;
  left: 0;
  font-size: 14px;
  z-index: 1000;

  /* Flexbox für horizontale Ausrichtung */
  display: flex;           /* Flexbox aktivieren */
  justify-content: center; /* Zentrieren der Inhalte */
  align-items: center;     /* Vertikal zentrieren */
  gap: 10px;               /* Abstand zwischen den Elementen */
}

#footer p {
  margin: 0;               /* Entfernt den Standardabstand um den Text */
  display: flex;           /* Flexbox für p-Tag aktivieren */
  gap: 10px;               /* Abstand zwischen den beiden Fußzeilen-Elementen */
}

#logoutButton {
  color: #ff5252;
  text-decoration: none;
  margin-left: 10px;
  font-weight: bold;
}

#logoutButton:hover {
  text-decoration: underline;
  cursor: pointer;
}

#footer #bingoLink {
  color: #ff5252;
  text-decoration: none;
  margin-left: 10px;
  font-weight: bold;
}

#footer #bingoLink:hover {
  text-decoration: underline;
  cursor: pointer;
}