@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
  
  .slideupFast {
    animation: slideup 0.4s forwards;
  }
  .slideup {
    animation: slideup 0.8s ease-in-out forwards;
  }
  .bounce {
    animation: bounce 1.4s ease-in-out infinite;
  }

  /* Continuous scroll animation */
  .marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 20s linear infinite;
  }

  .marquee-wrapper {
    overflow: hidden;
  }

  .text-shadow {
  text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
}

  .newspaper {
    animation: newspaper 0.7s;
  }

}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* scroll half width of track (since duplicated) */
}

@keyframes slideup {
  0%  {
    opacity: 0;
    transform: translateY(20px);
  }
  100%  {
    opacity: 1;
    transform: translateY(0px);
  }
}

@keyframes bounce {
  0%  {
    scale: 1;
  }
  50%  {
    scale: 1.03;
  }
  100%  {
    scale: 1;
  }
}
@keyframes newspaper {
  0% {
    transform: rotate(90deg);
    transform-origin: top left;
  }
  100% {
    transform: rotate(0deg);
    transform-origin: top right;
  }
}

html, body {
    font-family: "onest";
}


.container-bg {
    /* background-color: black; */
    background: url("../images/hero/3.png"), url("../images/hero/1.png"),black;
    background-position: left bottom, right top;
    background-size: contain;
    background-repeat: no-repeat;
}

@media screen and (max-width: 768px) {
  .container-bg {
    /* background-color: black; */
    background: url("../images/hero/1.png"), black;
    background-position:center;
    background-size: cover;
    background-repeat: no-repeat;
}

}

.bg-shipping {
    background: url("../images/pictures/william-william-NndKt2kF1L4-unsplash.jpg"), #FAFAFA;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.bg-man {
    background-color: #f0f8ff;
    background: url("../images/pictures/pngwing.com.png"), linear-gradient(black,#0073cf);
    background-position: right center;
    background-repeat: no-repeat;
}

@media screen and (max-width: 768px) {
    .bg-man {
        background: linear-gradient(black,#0073cf);
    }
}




.parent {
  min-width: 310px;
  width: 310px;
  height: 300px;
  perspective: 1000px;
  flex-shrink: none;
}

.card {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(135deg,white 0%, #0073cf 100%);
  transition: all 0.5s ease-in-out;
  transform-style: preserve-3d;
  box-shadow: rgba(5, 71, 17, 0) 40px 50px 25px -40px, rgba(5, 71, 17, 0.2) 0px 25px 25px -5px;
}

.glass {
  transform-style: preserve-3d;
  position: absolute;
  inset: 8px;
  border-radius: 55px;
  border-top-right-radius: 100%;
  background: linear-gradient(0deg, rgba(241, 234, 234, 0.949) 0%, rgba(224, 238, 247, 0.915) 100%);
  /* -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px); */
  transform: translate3d(0px, 0px, 25px);
  border-left: 1px solid white;
  border-bottom: 1px solid white;
  transition: all 0.5s ease-in-out;
}

.content {
  padding: 40px 30px 0px 30px;
  transform: translate3d(0, 0, 26px);
}

.content .title {
  display: block;
  color: black;
  font-weight: 900;
  font-size: 20px;
}
.content .r-name {
  color: black;
}

.content .text {
  display: block;
  color:black;
  margin-top: 15px;
  margin-bottom:8px;
}

.bottom {
  padding:12px;
  transform-style: preserve-3d;
  position: absolute;
  bottom: 35px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translate3d(0, 0, 26px);
}

.bottom .view-more {
  display: flex;
  align-items: center;
  width: 40%;
  justify-content: flex-end;
  transition: all 0.2s ease-in-out;
}

.bottom .view-more:hover {
  transform: translate3d(0, 0, 10px);
}

.bottom .view-more .view-more-button {
  background: none;
  border: none;
  color:#0073cf;
  font-weight: bolder;
  font-size: 12px;
}

.bottom .view-more .svg {
  fill: none;
  stroke: #0073cf;
  stroke-width: 3px;
  max-height: 15px;
}

.social-buttons-container {
  transform-style: preserve-3d;
}

.social-buttons-container .social-button {
  width: auto;
  aspect-ratio: 1;
  padding: 5px;
  background: rgb(255, 255, 255);
  border-radius: 50%;
  border: none;
  display: grid;
  place-content: center;
  box-shadow: rgba(5, 71, 17, 0.5) 0px 7px 5px -5px;
}

.social-buttons-container .social-button:first-child {
  transition: transform 0.2s ease-in-out 0.4s, box-shadow 0.2s ease-in-out 0.4s;
}

.social-buttons-container .social-button:nth-child(2) {
  transition: transform 0.2s ease-in-out 0.6s, box-shadow 0.2s ease-in-out 0.6s;
}

.social-buttons-container .social-button:nth-child(3) {
  transition: transform 0.2s ease-in-out 0.8s, box-shadow 0.2s ease-in-out 0.8s;
}

.bottom .social-buttons-container .social-button .svg {
  width: 15px;
  fill:#0073cf;
}

.social-buttons-container .social-button:hover {
  background: black;
}

.social-buttons-container .social-button:hover .svg {
  fill: white;
}

.social-buttons-container .social-button:active {
  background: rgb(255, 234, 0);
}

.social-buttons-container .social-button:active .svg {
  fill: black;
}

.logo {
  position: absolute;
  right: 0;
  top: 0;
  transform-style: preserve-3d;
}

.logo .circle {
  display: block;
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  top: 0;
  right: 0;
  box-shadow: rgba(100, 100, 111, 0.2) -10px 10px 20px 0px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: hsla(207, 100%, 64%, 0.2);
  transition: all 0.5s ease-in-out;
}

.logo .circle1 {
  width: 170px;
  transform: translate3d(0, 0, 20px);
  top: 8px;
  right: 8px;
}

.logo .circle2 {
  width: 140px;
  transform: translate3d(0, 0, 40px);
  top: 10px;
  right: 10px;
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  transition-delay: 0.4s;
}

.logo .circle3 {
  width: 110px;
  transform: translate3d(0, 0, 60px);
  top: 17px;
  right: 17px;
  transition-delay: 0.8s;
}

.logo .circle4 {
  width: 80px;
  transform: translate3d(0, 0, 80px);
  top: 23px;
  right: 23px;
  transition-delay: 1.2s;
}

.logo .circle5 {
  width: 50px;
  transform: translate3d(0, 0, 100px);
  top: 30px;
  right: 30px;
  display: grid;
  place-content: center;
  transition-delay: 1.6s;
}

.logo .circle5 .svg {
  width: 20px;
  fill: white;
}

.parent:hover .card {
  transform: rotate3d(1, 1, 0, 30deg);
  box-shadow: rgba(5, 71, 17, 0.3) 30px 50px 25px -40px, rgba(5, 71, 17, 0.1) 0px 25px 30px 0px;
}

.parent:hover .card .bottom .social-buttons-container .social-button {
  transform: translate3d(0, 0, 50px);
  box-shadow: rgba(5, 71, 17, 0.2) -5px 20px 10px 0px;
}

.parent:hover .card .logo .circle2 {
  transform: translate3d(0, 0, 60px);
}

.parent:hover .card .logo .circle3 {
  transform: translate3d(0, 0, 80px);
}

.parent:hover .card .logo .circle4 {
  transform: translate3d(0, 0, 100px);
}

.parent:hover .card .logo .circle5 {
  transform: translate3d(0, 0, 120px);
}

/* Hide Google's top bar */
  .goog-te-banner-frame.skiptranslate,
  .goog-te-gadget-icon,
  .goog-te-spinner-pos {
      display: none !important;
  }
  body { top: 0px !important; }

  .skiptranslate {display: none !important; }
  /* Floating button */
  .translate-btn {
      position: fixed;
      bottom: 20px;
      left: 20px;
      background: #111;
      color: white;
      padding: 12px 20px;
      font-size: 16px;
      border-radius: 25px;
      cursor: pointer;
      z-index: 999999;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  }
  .translate-btn:hover { background: #333; }

  /* Menu */
  #translate-menu {
      position: fixed;
      bottom: 65px;
      left: 20px;
      background: #fff;
      padding: 10px;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      display: none;
      z-index: 999999;
  }
  #translate-menu.open { display: block; }

  #translate-select {
      width: 200px;
      padding: 8px;
  }