/* Quick Menu */
.quick-menu {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: aqua;
}

.quick-menu ul {
  position: absolute;
  top: 8%;
  /* top: 5%; */
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  background: #fff;
  display: flex;
}

.quick-menu ul li {
  list-style: none;
  text-align: center;
  display: block;
  border-right: 1px solid rgba(0, 0, 0, 0.2);
   margin-bottom:1.5rem !important;
}

.quick-menu ul li:last-child {
  border-right: none;
}

.quick-menu ul li a {
  margin-top: 20px;
  margin-bottom: 10px;
  text-decoration: none;
  width: auto;
  min-width: 120px;
  display: block;
}

.quick-menu ul li a .icon {
   width: 48px;
  height: 35px;
  text-align: center;
  align-items: center;
  overflow: hidden;
  margin: 0 auto 10px;
}

.quick-menu ul li a .icon .fa {
  width: 100%;
  height: 140%;
  line-height: 40px;
  font-size: 34px;
  transition: 0.5s;
  align-items: center;
  text-align: center;
  color: #000;
}

.quick-menu ul li a .icon .fa:last-child {
  color: rgb(47, 0, 255);
}

.quick-menu ul li a:hover .icon .fa {
  transform: translateY(-100%);
}

.quick-menu ul li a .name {
  position: relative;
  align-items: center;
  text-align: center;
  /* height: 40px; */
  width: 100%;
  display: block;
  overflow: hidden;
}

.quick-menu ul li a .name span {
  display: block;
  position: relative;
  color: #000000b3;
  font-size: 17px;
  line-height: 20px;
  transition: 0.5s;
  padding:2px;
}

span::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: -0.5rem;
  right: -0.5rem;
  height: 1em;
  z-index: -1;
  font-weight: 100 !important;
  background-image: url(../img/giphy (1).gif);
  background-repeat: no-repeat;
  animation: 5s linear 0s infinite sail;
  background-size: cover;
}

.quick-menu ul li a .name span:before {
  content: attr(data-text);
  position: absolute;
  top: -100%;
  width: 100%;
  left: 0;
  height: 100%;
  color: rgb(47, 0, 255);
}

.quick-menu ul li a:hover .name span {
  transform: translateY(20px);
}

.name {
            overflow: hidden;
            transition: 0.5s;
            text-align: center;
        }

        .name span {
            font-size: 1em;
            color: #000000ca;
            line-height: 20px;
            transition: 0.5s;
        }

  .quick-menu ul li a .name span {
            display: block;
            /* line-height: 34px; */
            color: #000000ca;
            transform: translateY(0);
            transition: transform .4s;
            font-size: 1em;
        }

        .quick-menu ul li a .name span::after {
            content: attr(data-text);
            position: absolute;
            left: 0;
            right: 0;
            top: 100%;
            line-height: 20px;
            text-align: center;
            color: rgb(47, 0, 255);
            transform: translateY(0);
            transition: transform .4s;
        }

        .quick-menu ul li a:hover .name span {
            transform: translateY(-100%);
        }

        .quick-menu ul li a:hover .name::after {
            transform: translateY(-100%);
        }

        .quick-menu ul li a:hover .icon .fa {
            transform: translateY(-100%);
        }



/* Mobile Version */
#quick {
  display: none;
}

.meniu-ham-rapid {
  z-index: 100;
  position: relative;
}

.ham-rapid {
  position: fixed;
  z-index: 100;
  top: 1rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
}

.xIcon-rapid {
  display: none;
}

.burger-rapid {
  width: 3rem;
  height: 3rem;
}

.mobile-quick-menu .quickmenu {
  display: none;
  list-style-type: none;
  padding-left: 0;
}

.mobile-quick-menu .quickmenu.active {
  display: block;
}

.menuIcon-rapid img {
  cursor: pointer;
}

@media all and (max-width: 1254px) {
  .quick-menu {
    display: none;
  }
  .mobile-quick-menu {
    display: block;
  }
}

@media all and (min-width: 1562px) {
  #logo p {
    font-size: 20px;
    line-height: 20px;
  }
}

/* Styles for Mobile Navigation */
@media (max-width: 768px) {
  .quick-menu {
    display: none; /* Ensure menu is hidden */
  }

  .topnav {
    position: fixed;
    top: 25px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align items to the start (left) */
    background: #1a73e8;
    color: #1308083b;
    padding: 5px 25px;
    height: 50px; /* Adjust height as needed */
    z-index: 1000;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
  }

  .topnav .mobile-icon {
    display: block;
    font-size: 30px; /* Increase size for better touch targets */
    margin-right: 10px; /* Space between the icon and the menu */
  }

  .topnav a.mobile-icon {
    color: #fff;
    padding: 5px;
    text-decoration: none;
    border-radius: 10px;
    cursor: pointer;
  }

  .topnav a.mobile-icon:hover {
    background-color: #555454be; /* Darker shade for hover effect */
  }

  .topnav #quick {
    display: none; /* Ensure quick menu is hidden by default */
    position: absolute;
    top: 50px; /* Position below the topnav */
    right: 0; /* Align with the left side of the screen */
    width: 250px; /* Width of the quick menu */
    background: #555454be;
    /* box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3); Shadow on the right side */
    z-index: 999; /* Ensure it is above other content */
    padding: 10px;
    border-right: 1px solid #ddd; /* Border on the right */
  }

  .topnav #quick.show {
    display: block; /* Display the menu when toggled */
    background-color: #1a73e8;
    color: #ffffffd0;
    width: 100%;
  }

  .topnav #quick a {
    display: block;
    padding: 10px;
    color: #ffffffd1;
    border-bottom: 1px solid #ddd;
  }

  .topnav #quick a:hover {
    background-color: #f5f5f576; /* Light grey background on hover */
    border-radius: 10px;
  }
}

@media (min-width: 769px) {
  .quick-menu {
    display: block; /* Display menu on larger screens */
  }

  .topnav {
    display: none; /* Hide topnav on larger screens */
  }
}
