::-webkit-scrollbar{
    width: 1px;
    height: 9px;
    position: relative; 
    top: 10rem;
    border-radius: 5px;
  }
  ::-webkit-scrollbar-thumb{
    background: #444;
    border-radius: 5px;
  }
  element::-webkit-scrollbar{
    width: 0px;
  }
  body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #121212;
    font-family: 'Open Sans', sans-serif;
    color: #fff;
}

.Scrollulogo {
  font-size: 28px; /* Adjust for better scaling */
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap; /* Prevents wrapping */
}
  
  p{
   color: #444;
   position: relative;
   font-size: 1.5rem;
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #1a1a1a;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
  
.search-container {
  display: flex;
  justify-content: center; /* Centers the search container */
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.search-bar {
  flex-grow: 1;
  max-width: 400px;
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 16px;
  text-align: center; /* Centers text inside the input */
  position: relative;
  left: -20rem;
}
  
.search-bar input {
  width: 100%;
  background: transparent;
  color: #fff;
  border: 0;
  outline: 0;
  padding: 4px 15px;
  font-size: 18px;
  border-color: #222;
  border-radius: 5px;
}
 
button {
  margin-left: 10px; /* Adds spacing between search bar and button */
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  position: relative;
  top: -2.7rem;
  left: -2rem;
}

button:hover {
  background: transparent;
}


main {
  margin-top: 100px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

article {
  background: #222;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
}

article img {
  max-width: 100%;
  border-radius: 5px;
  margin-bottom: 10px;
}

  
  main article {
    width: 95%;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 25px;
    background: #141414;
    color: #fff;
  }

  main article h4 {
    margin: 10px 0;
    font-size: 18px;
    font-weight: bold;
}

main article p {
  font-size: 16px;
  color: #bbb;
}

main article audio {
  width: 100%;
  margin-top: 10px;
}
  
  main article audio {
    width: 100%;
    color: #fff;
    background-color: #0d5dac;
    border-radius: 5px;
}

main article audio::-webkit-media-controls-panel {
    background-color: #0d5dac; /* Control bar background */
    color: #fff;
    border-radius: 5px;
}

main article audio::-webkit-media-controls-play-button,
main article audio::-webkit-media-controls-pause-button,
main article audio::-webkit-media-controls-volume-slider,
main article audio::-webkit-media-controls-mute-button,
main article audio::-webkit-media-controls-timeline {
    color: #fff; /* Set controls to white */
}

main article audio::-webkit-media-controls-current-time-display,
main article audio::-webkit-media-controls-time-remaining-display {
    color: #fff; /* Set time displays to white */
}

main article audio::-webkit-scrollbar {
    height: 8px;
    border-radius: 5px;
    background-color: #fff;
}

main article audio::-webkit-scrollbar-thumb {
    background-color: #fff;
    border-radius: 5px;
}



  /* Medium Devices (Tablets and Small Laptops) */
@media only screen and (max-width: 768px) {
  nav {
      padding: 20px;
  }

  .search-container {
    max-width: 100%;
}

  .Scrollulogo {
    font-size: 24px;
}

  .search-bar {
      width: 100%;
  }

  main {
      flex-direction: column;
  }

  main article {
      width: 100%;
  }

  button {
    position: relative;
    left: 0;
    top: 0;
}
}

/* Small Devices (Phones) */
@media only screen and (max-width: 480px) {
  nav {
      padding: 10px;
  }

  .Scrollulogo {
      font-size: 28px;
  }

  .search-bar {
      width: 100%;
      padding: 5px;
  }

  .search-bar input {
      font-size: 14px;
  }

  button {
      font-size: 14px;
      padding: 8px;
  }

  main article img {
      height: 150px;
  }
}