@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  .translate-y-[-100%] {
    transform: translateY(-100%);
  }

  .translate-y-0 {
    transform: translateY(0);
  }
}


html {
  scroll-behavior: smooth;
}

.black_gradient_5 , .bg-gray-700 {
/* //background: linear-gradient(85.17deg, #000 -0.5%, #031c11 98.72%); */
background: linear-gradient(85.17deg, #000000 -0.5%, #212529 98.72%);
}
.bg-green-600, .bg-green-500 {
  /* //background: linear-gradient(85.17deg, #000 -0.5%, #031c11 98.72%); */
  background: linear-gradient(134deg, #22c55e -0.5%, #141719 67.72%);
  }

 /* Loader styling */
 .loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .loader {
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-left-color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
  }
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  /* Sliding Mobile Nav */
  .mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }
  .mobile-menu.show {
    transform: translateX(0);
  }







.carousel-indicators li {
    width: 10px; /* Make indicators slightly larger for better visibility */
    height: 10px;
    border-radius: 50%;
    background-color: gray; /* Default gray background */
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.carousel-indicators li.active {
    background-color: #069e6d; /* Active indicator color */
}


.intro-txt {
  font-size: 41px !important;
}


.anuphan-2 {
font-family: 'anuphan';
font-weight: 500;
}





.crypto-section {
  overflow-x: hidden; 
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
text-align: center;
padding: 20px;
}

.crypto-section h1 {
font-size: 2rem;
color: #333;
}

.crypto-section p {
font-size: 1rem;
color: #666;
}

.crypto-ticker {
overflow: hidden;
margin: 20px auto;
display: flex;
flex-direction: column;
gap: 15px;
}

.crypto-row {
display: flex;
gap: 15px;
animation: scroll-horizontal 20s linear infinite;
}

.crypto-card {
width: 200px;
background: #fff;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
padding: 15px;
text-align: left;
flex-shrink: 0; /* Prevent cards from shrinking */
transition: transform 0.2s ease-in-out;
}

.crypto-card:hover {
transform: translateY(-5px);
}

.crypto-logo {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
}

.crypto-logo img {
width: 30px;
height: 30px;
}

.crypto-name {
font-size: 1rem;
font-weight: bold;
color: #333;
}

.crypto-price {
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 10px;
color: #000;
}

.crypto-stats {
font-size: 0.9rem;
color: #666;
}

.crypto-stats span {
display: block;
margin-top: 5px;
}

.change-positive {
color: #27ae60;
font-weight: bold;
}

.change-negative {
color: #e74c3c;
font-weight: bold;
}

/* Animation for scrolling */
@keyframes scroll-horizontal {
0% {
    transform: translateX(0);
}
100% {
    transform: translateX(-300%);
}
}



