/** Hide on large devices **/
@media (min-width: 769px) {
  #custom-sticky-footer {
    display: none;
  }
}

/** Styles for screens up to 600px **/
@media only screen and (max-width: 600px) {
  html {
    scroll-behavior: smooth;
}
    
    #custom-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f8f8;
    justify-content: space-around;
    padding: 5px 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: flex;
  }

  #custom-sticky-footer .footer-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
    box-sizing: border-box;
  }

  #custom-sticky-footer .footer-icon img {
    max-width: 24px;
    max-height: 24px;
  }

  #custom-sticky-footer .footer-icon span {
    display: block;
    font-size: 12px;
    margin-top: 0;
    color: #333 !important;
  }

  #custom-sticky-footer .footer-icon a {
    color: inherit;
    text-decoration: none;
  }    
}

/** Safari specific fix **/
@media not all and (min-resolution: .001dpcm) and (min-width: 0px) {
  @supports (-webkit-appearance: none) {
    
  }
}

/** Firefox Mobile specific fix **/
@-moz-document url-prefix() {
  @media only screen and (max-width: 600px) {
    #custom-sticky-footer {
      display: flex;
      justify-content: space-around;
      align-items: center; /* Center icons vertically */
      height: 50px; /* Adjust as needed */
      overflow: visible; /* Ensure icons are not clipped */
    }

    #custom-sticky-footer .footer-icon {
      flex: 1; /* Distribute space equally among icons */
    }

    #custom-sticky-footer .footer-icon img {
      max-width: 24px;
      max-height: 24px;
      width: 24px;  /* Set explicit width */
      height: 24px; /* Set explicit height */
      visibility: visible; /* Ensure image visibility */
      opacity: 1; /* Ensure full opacity */
    }
  }
}

/** Admin Page CSS **/
.custom-footer-admin .form-table td {
  padding: 0 !important;
}

/*Icon Managment Page*/
.icon-management-item {
  display: inline-block;
  text-align: center;
  width: 100px;
  height: 100px;
  margin: 10px;
  position: relative;
}

.icon-management-item a {
  position: absolute;
  top: 5px;
  right: 5px;
  color: red;
  text-decoration: none;
  font-size: 20px;
}

.icon-management-item img {
  max-width: 100%;
  max-height: 100%;
}