.header-detail {
  width: 100%;
  height: 70px;
  background-color: #fff59d; /* comic yellow */
  color: #000;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 1000;
  border-bottom: 5px solid #000;
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 12px 12px;

 /*  box-shadow: 6px 6px 0px #000; */
}



.header-logo {
  height: 50px;
  transition: height 0.2s ease-in-out;
}
.item-logo {
  max-height: 130px;
  height: auto;
  width: auto;
  flex-shrink: 0;
}

/* Back button comic style */
.detail-back-button {
  background: #06d6a0; /* comic green */
  color: #fff;
  border: 3px solid #000;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-family: "Luckiest Guy", cursive;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 4px 4px 0px #000;
}

.detail-back-button:hover {
  background: #ff1e56; /* red comic hover */
  transform: translateY(-3px) scale(1.05);
}

/* Language button comic style */
.lang-icon-button {
  background: #e63946; /* bold red */
  border: 3px solid #000;
  border-radius: 8px;
  color: #fff;
  padding: 8px;
  font-size: 22px;
  cursor: pointer;
  filter: drop-shadow(3px 3px 0px #000);
  transition: transform 0.2s ease-in-out, background 0.2s;
}

.lang-icon-button:hover {
  background: #06d6a0; /* switch to green */
  transform: scale(1.1) rotate(-3deg);
}

/* Dropdown comic popup */
.lang-dropdown-list {
  position: absolute;
  right: 0;
  top: 70px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 150px;
  box-shadow: 5px 5px 0px #000;
  z-index: 9999;
  font-family: "Luckiest Guy", cursive;
  font-size: 16px;
}

.lang-dropdown-list li {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
  color: #000;
}

.lang-dropdown-list li:hover {
  background: #ffeb3b;
}

/* Titles comic style */
.detail-page-title-english,
.detail-page-title-arabic {
  font-family: "Luckiest Guy", "Bangers", cursive;
  text-align: center;
  font-size: 2rem;
  color: #ffeb3b;
  margin-top: 20px;
  margin-bottom: 10px;
  -webkit-text-stroke: 2px #000;
  text-shadow: 4px 4px 0px #000;
  text-transform: uppercase;
}

@media (max-width: 599px) {
  .lang-dropdown-list {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 200px;
    padding: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 9999;
  }

  .lang-dropdown-list li {
    border-bottom: 1px solid #eee;
    text-align: center;
  }

  .lang-dropdown-list li:last-child {
    border-bottom: none;
  }

  .language-icon-dropdown {
    position: static; 
  }
   .lang-backdrop {
    display: block;
  }
}


@media (max-width: 576px) {
  .detail-page-title-english {
    font-size: 1.3rem;
    margin: 15px 0;
  }
  .detail-page-title-arabic {
    font-size: 1.2rem;
    margin: 15px 0;
  }
}
/* iphone SE */
@media screen and (min-width: 375px) and (max-width: 375px) and (min-height: 667px) and (max-height: 667px) {
  .detail-page-title-english {
    font-size: 1.3rem;
    margin: 15px 0;
  }

  .detail-page-title-arabic {
    font-size: 1.2rem;
    margin: 15px 0;
  }

  .item-logo {
    padding-left: 10px;
    max-height: 120px;
  }
}

/* iphone xr */
@media screen and (min-width: 414px) and (max-width: 414px) and (min-height: 896px) and (max-height: 896px) {
  .detail-page-title-english {
    font-size: 1.3rem;
    margin: 15px 0;
  }
  .detail-page-title-arabic {
    font-size: 1.2rem;
    margin: 15px 0;
  }
  .item-logo {
    padding-left: 15px;
    max-height: 130px;
  }
}

/* iphone 12 pro */
@media screen and (min-width: 390px) and (max-width: 390px) and (min-height: 844px) and (max-height: 844px) {
  .detail-page-title-english {
    font-size: 1.3rem;
    margin: 15px 0;
  }
  .detail-page-title-arabic {
    font-size: 1.2rem;
    margin: 15px 0;
  }

  .item-logo {
    padding-left: 15px;
    max-height: 130px;
  }
}

/* iphone 14 pro max */
@media screen and (min-width: 430px) and (max-width: 430px) and (min-height: 932px) and (max-height: 932px) {
  .detail-page-title-english {
    font-size: 1.3rem;
    margin: 15px 0;
  }
  .detail-page-title-arabic {
    font-size: 1.2rem;
    margin: 15px 0;
  }
  .dropdown-container {
    left: 13px;
  }
  .item-logo {
    padding-left: 15px;
    max-height: 130px;
  }
}

/* pixel 7 */
@media screen and (min-width: 412px) and (max-width: 412px) and (min-height: 915px) and (max-height: 915px) {
  .detail-page-title-english {
    font-size: 1.3rem;
    margin: 15px 0;
  }
  .detail-page-title-arabic {
    font-size: 1.2rem;
    margin: 15px 0;
  }
  .item-logo {
    padding-left: 15px;
    max-height: 130px;
  }
}

/* Galaxy S8+ */
@media screen and (min-width: 360px) and (max-width: 360px) and (min-height: 740px) and (max-height: 740px) {
  .detail-page-title-english {
    font-size: 1.3rem;
    margin: 15px 0;
  }
  .detail-page-title-arabic {
    font-size: 1.2rem;
    margin: 15px 0;
  }
  .item-logo {
    padding-left: 15px;
    max-height: 130px;
  }
}

/* Galaxy Tab A9 */
@media screen and (min-width: 600px) and (max-width: 900px) and (min-height: 800px) and (max-height: 1400px) {
  .detail-page-title-english {
    font-size: 1.5rem;
    margin: 15px 0;
  }
  .detail-page-title-arabic {
    font-size: 1.5rem;
    margin: 15px 0;
  }
}

/* iphone x */
@media screen and (min-width: 375px) and (max-width: 375px) and (min-height: 812px) and (max-height: 812px) {
  .detail-page-title-english {
    font-size: 1.3rem;
    margin: 15px 0;
  }
  .detail-page-title-arabic {
    font-size: 1.2rem;
    margin: 15px 0;
  }
}

/* iphone 6/7/8 */
@media screen and (min-width: 414px) and (max-width: 414px) and (min-height: 736px) and (max-height: 736px) {
  .detail-page-title-english {
    font-size: 1.3rem;
    margin: 15px 0;
  }
  .detail-page-title-arabic {
    font-size: 1.2rem;
    margin: 15px 0;
  }
}

/* Galaxy s9+ */
@media screen and (min-width: 320px) and (max-width: 320px) and (min-height: 658px) and (max-height: 658px) {
  .detail-page-title-english {
    font-size: 1.3rem;
    margin: 15px 0;
  }
  .detail-page-title-arabic {
    font-size: 1.2rem;
    margin: 15px 0;
  }
}