:root {
  --primary-color: #0b0b0b;
  --secondary-color: #dfbf6f;
}


#error-message{
    position: fixed;
    top: 0;
    width:100%;
    right:0;
    z-index: 100;
    border: 1px solid blue;
    color: red;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: inherit;
}
  /* Basic styling */
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body, html { font-family: 'Almarai', sans-serif; overflow-x: hidden; }

        /* Full-screen intro overlay */
       .intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: black; /* Black background for the overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

        /* Sidebar styling */
        .sidebar {
            position: fixed;
            right: -250px;
            top: 0;
            width: 250px;
            height: 100%;
            background-color: #333;
            color: #fff;
            padding: 20px;
            transition: 0.3s;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .sidebar.active {
            right: 0;
        }

        .sidebar a {
            color: #dfbf6f;
            text-decoration: none;
            font-size: 18px;
            margin-bottom: 10px;
            transition: 0.3s;
        }

        .sidebar a:hover {
            color: #ffcc00;
        }

        /* Burger menu styling */
        .burger-menu {
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 999;
            cursor: pointer;
            font-size: 24px;
            color: #dfbf6f;
        }

        /* Social links styling in the sidebar */
        .social-links {
            margin-top: auto;
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .social-links a {
            color: #dfbf6f;
            font-size: 24px;
            transition: color 0.3s;
        }

        .social-links a:hover {
            color: #ffcc00;
        }

        /* Content container styling */
        .main-content {
            padding-top: 50px;
            flex-grow: 1;
            max-width: 760px;
        }
        .intro-logo{
            height:100vh;
        }

body {
  background-color: var(--primary-color);
  display: flex;
  justify-content: center;
}

html {
  box-sizing: border-box;
  font-family: "Almarai", sans-serif;
}

.navbar{
  display: flex;
  justify-content: space-between;
  padding: 10px 10px 10px 10px;
  background-color: var(--primary-color);
  font-size: 18px;
  color: var(--secondary-color);
  position: fixed;
  width: 100%;
  bottom: 0;
  max-width: 760px;
  border: 1px solid var(--secondary-color);
  border-radius: 5px;
  height: 50px;
}

#favs{
  margin-top: 5px;

}

#searchbar {
  padding: 2px 10px;
  color: var(--secondary-color);
  border: 0;
  outline: none;
  flex-basis: 95%;
  flex-shrink: 1;
  font-size: 18px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  height: 25px;
  background-color: var(--primary-color);
  font-family: "Almarai";
}

#searchbar:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 5px var(--secondary-color);
}

#searchbar::placeholder {
  color: #aaa;
  font-style: italic;
}


#searchbar-container{
  width: 100%;
  align-items: center;
  gap: 7px;
  display: flex;
  margin-top: 5px;
  background-color: var(--primary-color);
  height: 100%;
  padding: 0;
}

#exit-search{
  flex-basis: 5%;
  font-size: 18px;
  border: 2px solid var(--secondary-color);
  padding: 2px 6px;
  cursor: pointer;
  background-color: var(--primary-color);
}

#menu-bar{
  margin-bottom: 10px;
  display: flex;
  justify-content: space-around;
  background-color: var(--primary-color);
  border: 1px solid var(--secondary-color);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

.menu-item {
  cursor: pointer;
  text-align: center;
  flex-basis: 50%;
  color: var(--secondary-color);
}

.menu-item p {
    margin: 8px;
}

#toggleAlbums{
    color: var(--primary-color);
    background-color: var(--secondary-color);
}
#menu-bar p {
  font-size: 18px;
  padding: 5px 0px;
}

.menu-item:first-child {
  border-left: 2px solid var(--secondary-color);
}

#search-btn {
  cursor: pointer;
  margin-top: 5px;

}

.player {
  /*! position: relative; */
  /*! max-width: 480px; */
  /*! margin: 0 auto; */
}

.player .icon-pause {
  display: none;
}

.player.playing .icon-pause {
  display: inline-block;
}

.player.playing .icon-play {
  display: none;
}

.dashboard {
  padding: 16px 16px 14px;
  background-color: var(--primary-color);
  /*! position: fixed; */
  /*! top: 0; */
  width: 100%;
  /*! max-width: 480px; */
  margin-top: 30px;
  border-bottom: 1px solid #ebebeb;
}

/* HEADER */
header {
  text-align: center;
  margin: 10px 0px;
}

header h4 {
  color: var(--secondary-color);
  font-size: 12px;
}

header h2 {
  color: var(--secondary-color);
  font-size: 20px;
}

/* CD */
.cd {
  display: flex;
  margin: auto;
  width: 200px;
}

.cd-thumb {
  width: 100%;
  padding-top: 100%;
  border-radius: 50%;
  background-color: #ff0000;
  background-size: cover;
  margin: auto;
  border: 3px solid var(--secondary-color);
}

.control {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 18px 0 8px 0;
}

.control .btn {
  color: #666;
  padding: 18px;
  font-size: 18px;
}

.control .btn.active {
  color: var(--secondary-color);
}

.control .btn-toggle-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
}

.progress {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;
}

.progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 6px;
  background-color: var(--secondary-color);
  cursor: pointer;
}

.playlist {
  margin-bottom: 40px;
}

.song, .album {
  display: flex;
  align-items: center;
  background-color: var(--primary-color);
  padding: 8px 16px;
  border: 1px var(--secondary-color) solid;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
  color: var(--secondary-color);
}

.song.active {
  background-color: var(--secondary-color);
}
.song.active.option {
  color: white !important;
}

.song:active {
  opacity: 0.8;
}

.song.active .option,
.song.active .author,
.song.active .title {
  color: #fff;
}

.song .thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  margin: 0 8px;
}

.song .body {
  flex: 1;
  padding: 0 16px;
}

.song .title {
  font-size: 18px;
  color: var(--secondary-color);
}

.song .author {
  font-size: 12px;
  color: #999;
}

.song .option {
  padding: 16px 8px;
  color: #999;
  font-size: 18px;
}

.album .thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  margin: 0 8px;
}

.album .body {
  flex: 1;
  padding: 0 16px;
}

.album .title {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 3px;
}

.album .author {
  font-size: 12px;
  color: #999;
}

.album .option {
  padding: 16px 8px;
  color: #999;
  font-size: 18px;
}

.slide-in {
  animation: slideIn 0.5s forwards;
}

.slide-out {
  animation: slideOut 0.5s forwards;
}

.hidden {
  display: none !important;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
