/* Publisher Features Styles */

/* Phone container styles */
.phone-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  margin-top: -50px;
  overflow: hidden; /* Changed from overflow-x: auto to hide scroll line */
  display: flex;
  justify-content: center;
}

.phone-image {
  width: 600px;
  min-width: 600px;
  max-width: 600px;
  margin: 0 auto;
  display: block;
}

.game-icons-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-icon {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  z-index: 10;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  opacity: 0;
  /* Animation is applied via JavaScript */
}

.game-icon-big {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  z-index: 10;
  transform-origin: center center;
  will-change: transform;
  backface-visibility: hidden;
  opacity: 0;
  /* Animation is applied via JavaScript */
}

.game-icon:hover {
  transform: scale(1.1);
  animation-play-state: paused;
}

@keyframes appear-from-center {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


/* Accordion styles */
.publisher-accordion .accordion-item {
  background-color: transparent;
  border-radius: 8px;
  margin-bottom: 20px; /* Increased margin for floating effect */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* Stronger shadow for floating effect */
  transition: all 0.3s ease;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publisher-accordion .accordion-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

.publisher-accordion .accordion-header {
  padding: 12px 16px 12px 60px; /* Increased vertical padding for more height */
  background-color: #fff;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  min-height: 60px; /* Increased height */
}

.publisher-accordion .accordion-header h3 {
  font-size: 1.2rem; /* 20% smaller font size */
  color: #333;
  margin-bottom: 0;
  font-family: 'Dylan-Light', sans-serif; /* Use Dylan-Light font */
}

.publisher-accordion .accordion-icon {
  width: 72px; /* Make icons bigger */
  height: 72px;
  position: absolute;
  left: -25px; /* Position icon to overflow from left */
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.publisher-accordion .plus-icon {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.publisher-accordion .accordion-button {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  width: auto;
  min-width: 28px;
  min-height: 28px;
}

.publisher-accordion .accordion-button:not(.collapsed) .plus-icon {
  transform: rotate(45deg);
}

/* Add JavaScript to make the entire header clickable */
.publisher-accordion .accordion-header {
  cursor: pointer;
}

.publisher-accordion .accordion-button::after {
  display: none !important;
}

.publisher-accordion .accordion-body {
  padding: 12px; /* 20% smaller padding */
  background-color: #f8f9fa;
  border-bottom-left-radius: 12px; /* 20% smaller radius */
  border-bottom-right-radius: 12px;
  font-family: 'Dylan-Light', sans-serif; /* Use Dylan-Light font */
}


@media (max-width: 1399.98px) {
  .game-icon {
    width: 115px;
    height: 115px;
  }

  .game-icon-big {
    width: 130px;
    height: 130px;
  }
 
}

@media (max-width: 1199.98px) {
  .game-icon {
    width: 100px;
    height: 100px;
  }
  .game-icon-big {
    width: 110px;
    height: 110px;
  }
  
}

@media (max-width: 991.98px) {
  .phone-container {
    overflow-x: auto;
    padding-bottom: 20px;
  }

  .game-icon {
    width: 125px;
    height: 125px;
  }

  .game-icon-big {
    width: 130px;
    height: 130px;
  }
 
  
  @keyframes appear-from-center {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes float-and-pulse {
    0% {
      transform: translateY(0) scale(1);
    }
    50% {
      transform: translateY(-7px) scale(1.05);
    }
    100% {
      transform: translateY(0) scale(1);
    }
  }
}

@media (max-width: 767.98px) {

  .phone-image {
    width: 500px;
    min-width: 500px;
    max-width: 500px;

  }
  .game-icon {
    width: 105px;
    height: 105px;
  }

  .game-icon-big {
    width: 115px;
    height: 115px;
  }
  
  .publisher-accordion .accordion-header h3 {
    font-size: 1rem;
  }
  
  @keyframes appear-from-center {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes float-and-pulse {
    0% {
      transform: translateY(0) scale(1);
    }
    50% {
      transform: translateY(-5px) scale(1.05);
    }
    100% {
      transform: translateY(0) scale(1);
    }
  }
}

@media (max-width: 575.98px) {

  .phone-image {
    width: 400px;
    min-width: 400px;
    max-width: 400px;

  }
  .game-icon {
    width: 90px;
    height: 90px;
  }

  .game-icon-big {
    width: 90px;
    height: 90px;
  } 

  
  @keyframes appear-from-center {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes float-and-pulse {
    0% {
      transform: translateY(0) scale(1);
    }
    50% {
      transform: translateY(-3px) scale(1.05);
    }
    100% {
      transform: translateY(0) scale(1);
    }
  }
}
