body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: url('resources/img/rug_bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: #333;
}

h1 {
    margin: 1rem 0 0 0;
    color: #fff;
    cursor: pointer;
    user-select: none;
    text-shadow: 0 0 10px #fff, 0 0 20px #ff00ff, 0 0 30px #ff00ff, 
                 0 0 40px #ff00ff, 0 0 50px #ff00ff, 0 0 60px #ff00ff, 0 0 70px #ff00ff;
    animation: glow 1.5s infinite;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 15px #ff00ff, 
                     0 0 20px #ff00ff, 0 0 25px #ff00ff, 0 0 30px #ff00ff, 0 0 35px #ff00ff;
    }
    50% {
        text-shadow: 0 0 10px #ff69b4, 0 0 20px #ff69b4, 0 0 30px #ff69b4, 
                     0 0 40px #ff69b4, 0 0 50px #ff69b4, 0 0 60px #ff69b4, 0 0 70px #ff69b4;
    }
    100% {
        text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 15px #ff00ff, 
                     0 0 20px #ff00ff, 0 0 25px #ff00ff, 0 0 30px #ff00ff, 0 0 35px #ff00ff;
    }
}
@keyframes fountain {
    0% {
      transform: translate(0, 0) scale(0.5) rotate(0deg); /* Start at title's position */
      opacity: 1;
    }
    30% {
      transform: translate(calc(var(--randomX) / 2), calc(var(--randomY) / 2)) scale(1) rotate(calc(var(--randomRotation) / 2)); /* Rotate halfway */
      opacity: 1;
    }
    70% {
      transform: translate(var(--randomX), var(--randomY)) scale(1) rotate(var(--randomRotation)); /* Full rotation */
      opacity: 1;
    }
    100% {
      transform: translate(calc(var(--randomX) * 1.5), calc(var(--randomY) + 50px)) scale(0.5) rotate(calc(var(--randomRotation) * 2)); /* Final rotation */
      opacity: 0;
    }
  }

#chat-container {
    position: fixed;
    z-index: 100;
    bottom: 20px;
    left: 20px;
    width: 250px;
    height:250px;
    background: silver;
    border: 2px solid #808080;
    box-shadow: inset -1px -1px 0px white, inset 1px 1px 0px #404040;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 12px;
    width: 300px;
    height: min-content
}

.hero-banner {
    font-size: 16px;
            font-weight: bold;
            color: #B8860B;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            padding: 10px 20px;
       
            transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-banner:hover {
    transform: scale(1.4);

}

.info-button {
    top: 0.5rem;
    right: 0.5rem;

    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    position:absolute;
}
.info-modal {
    display: none;
    position: absolute;
    top: 4rem;
    right: 0.5rem;
    padding: 1rem;
    border-radius: 10px;
    background-color: #fee695;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    max-width: 300px;
    text-align: left;
}
.info-modal p {
    margin: 0;
}
.info-modal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.info-button.active {
    background-color: #fee695;
}
.info-modal li {
    margin: 0.5rem 0;
}
.info-modal.active {
    display: block;
}


#chat-header {
  background: navy;
  color: white;
  padding: 4px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: default;
}

#chat-header button {
  background: silver;
  border: 1px solid #404040;
  color: black;
  padding: 0 6px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 2px;
}

#chat-header button:hover {
  background: #dcdcdc;
}

#chat-box {
  height: 150px;
  overflow-y: auto;
  background: white;
  padding: 5px;
  border-top: 2px solid #808080;
  border-bottom: 2px solid #808080;
}

#chat-input-container {
  display: flex;
  padding: 5px;
  gap: 5px;
  background: #e0e0e0;
}

#chat-input {
  flex: 1;
  padding: 3px;
  border: 2px inset #808080;
}
#send-message {
    background: silver;
    border: 2px outset #808080;
    padding: 3px;
    cursor: pointer;
    font-size: 12px;
}
.fountain-image {
    position: absolute;
    width: 60px; 
    height: 60px;
    opacity: 0; 
    animation: fountain 2s ease-out forwards;
    --randomX: 0px; 
    --randomY: 0px; 
    --randomRotation: 0deg; /* Rotation angle (set dynamically) */

  }
.container {
    display: flex;
    position: relative;
    align-items: center;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 10;
}
.connect-wallet-btn {
    margin: 1rem 0 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.connect-wallet-btn:hover {
    background: linear-gradient(90deg, #0056b3, #007bff);
    transform: translateY(-2px);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}

.connect-wallet-btn:active {
    transform: translateY(0);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.connect-wallet-btn span {
    margin-left: 8px; /* Space between the icon and text */
}

.connect-wallet-btn div {
    width: 18px; /* Adjust icon size */
}
.connect-wallet-btn.connected {
    background: linear-gradient(90deg, #28a745, #218838); /* Green for connected */
}
.tabs-container {
    margin-bottom: 1rem;
}

.tabs {
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
    max-width: 400px;
    border-bottom: 2px solid #ddd;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem 2rem;
    display: none;
    font-size: 1rem;
    color: #555;
    background-color: transparent;
    transition: color 0.2s ease-in-out, border-bottom 0.2s ease-in-out;
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    color: #0e0e0e;
    border-bottom: 3px solid #000000;
}
.tab.active {
    display: block;
}

.tab-button:hover {
    background-color: #fdc3ff;
}
.tab-button{
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}
.tab-button, .button {
    border: none;
    
    
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s ease;
}
.button {
    border-radius: 5px;
    font-size: 1.6rem;
    padding: 1.5rem 3.5rem;
}
.place-bet-btn {
    background-color: #4CAF50; /* Green */
    color: white;
}

.withdraw-btn, .claim-rewards-btn {
    background-color: #f44336; /* Red */
    color: white;
    margin-left: 10px;
}
.button:hover {
    background: #45a049;
}
.button:disabled, .button.disabled {
    background-color: #cccccc; /* Light gray */
    color: #666666; /* Darker gray */
    cursor: not-allowed; /* Changes cursor to a disabled icon */
    pointer-events: none; /* Disables hover effects */
}

input[type="number"],
input[type="text"] {
    padding: 0.75rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
.bet-input{
    display: flex;
    flex-direction: column;
}
.bet-input-container {
    display: flex;
    align-items: center;
    border-radius: 5px;
    padding: 0 .8rem 0 0;
    margin-bottom: 0.4rem;
    background-color: #f485f4db;
}
.betGroup{
    display: flex;
    gap: 1rem;
}
.bet-input-container input {
    flex: 1;
    margin: 0;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    margin: 0;
}

.bet-input-container input::placeholder {
    color: #aaa;
}

.bet-unit {
    color: #ffffff;
    font-style:italic;
    font-size: 0.9rem;
}
label {
    font-size: 1rem;
    margin-top: 0.5rem;
    display: block;
    text-align: left;
    color: #333;
}
.token-title{
    font-size: 1.2rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 5px;

}
.token-info{
    display: flex;
    align-items: baseline;;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    transition: transform 0.2s ease-in-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: glow 1.5s infinite;

}
.token-info:hover {
    transform: scale(1.05);
}

.token-display {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    margin: 5px auto;
    padding: 2rem 2rem;
    background: #ffffffb8;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgb(151 86 86 / 61%);
}
.currency{
    display: none;
}
/* Styling the token icon */
.token-icon {
    font-size: 2rem;
}

/* Styling the token amount */
.token-amount {
    font-size: 36px;
    font-weight: bold;
    color:white;  /* Green color for tokens */
}

#notificationBanner {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);

    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#notificationBanner.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#notificationBanner.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(-50px);
}
.success {
    background-color: rgba(0, 128, 0, 1); /* Green */
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 128, 0, 0.5);
}
.info {
    background-color: #007bff; /* Green */
    color: #fff;
    box-shadow: 0 4px 8px rgba(11, 66, 161, 0.5);
}

.error {
    background-color: rgba(255, 0, 0, 1); /* Red */
    color: #fff;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.5);
}
#transactionDetails {
    position: fixed;
    bottom: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    display: none;
    z-index: 1000;
}

#transactionDetails.visible {
    display: block;
}
/* Background bouncing images */
.bouncing-image {
    position: absolute;
    width: 150px; 
}
#im1{
    animation: bounce1 10s infinite;
}
#im2{
    animation: bounce2 8s infinite;
}
#im3{
    animation: bounce3 12s infinite;
}
.matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.matrix-canvas {
    display: block;
}
#textOverlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    display: none; /* Initially hidden */
}

.fade-text {
    display: block;
    font-family: "Arial", sans-serif;
    opacity: 0;
    transform: scale(0.5);
    animation-timing-function: ease-out;

}

.fade-text.small {
    font-size: 50px;
    animation: fade-in-scale 1.5s forwards, glow 1.5s infinite;
}

.fade-text.medium {
    font-size: 80px;
    animation: fade-in-scale 1.5s 1s forwards, glow 1.5s infinite;
}

.fade-text.large {
    font-size: 120px;
    animation: fade-in-scale 1.5s 2s forwards, glow 1.5s infinite;
}
#status-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); 
    padding: 8px 12px; 
    background: rgba(0, 0, 0, 0.8); 
    >div{
        display: flex;
        justify-content: space-between;
        gap: 0.6rem
    }

  }
  #player-count, #status{
    font-weight: bold;
  }
  .lightContainer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }
  .pulsating-light {
    display: inline-flex;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: red; 
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    animation: pulse 1.5s infinite ease-in-out;
  }
 
  @keyframes pulse {
    0% {
      transform: scale(1);
      box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    }
    50% {
      transform: scale(1.2);
      box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    }
  }
  
  #remaining-time {
    font-weight: bold;
    font-size: 16px;
  }
/* Fade and scale animation */
@keyframes fade-in-scale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes bounce1 {
    0% {
        transform: translate(0vw, 0vh) scale(1);
    }
    25% {
        transform: translate(calc(10vw - 50%), calc(25vh - 50%)) scale(1.2);
    }
    50% {
        transform: translate(calc(30vw - 50%), calc(40vh - 50%)) scale(1.5);
    }
    75% {
        transform: translate(calc(50vw - 50%), calc(20vh - 50%)) scale(1.8);
    }
    100% {
        transform: translate(0vw, 0vh) scale(1);
    }
}
@keyframes bounce2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(40vw, -10vh) scale(1.2);
    }
    50% {
        transform: translate(0vw, 40vh) scale(1.8);
    }
    75% {
        transform: translate(-40vw, -10vh) scale(1);
    }
}
@keyframes bounce3 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10vw, -50vh) scale(0.9);
    }
    50% {
        transform: translate(-10vw, 50vh) scale(1.7);
    }
    75% {
        transform: translate(-40vw, -44vh) scale(1.1);
    }
}
/* Notification Container */
#notificationContainer {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

/* Notification Card */
.notification-card {
    background-color: #222;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
    font-family: Arial, sans-serif;
    width: 300px;
}

/* Close Button */
.notification-card .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.notification-card .close-btn:hover {
    transform: scale(1.2);
    color: #ff5c5c;
}
.notification-card.success {
    background-color: #4caf50; /* Green */
}

/* Error Notification */

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-out animation */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}
@keyframes fadeInImg {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.random-path-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevent interaction with the images */
  }
  @keyframes move {
    0% { transform: translate(var(--start-x), var(--start-y)); }
    100% { transform: translate(var(--end-x), var(--end-y)); }
  }
  

  .random-image {
    position: absolute;
    height: auto;
    animation: move linear infinite;
    pointer-events: none;
  }
  #subtitle{
    display: none;
    margin: 0
  }
  .bet-quick-select {
    display: flex;
    justify-content: flex-start;
    gap: 1.7rem;
    margin-bottom: 1rem;
  
}

.quick-bet-btn {
    background-color: #8999a4;
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.quick-bet-btn:hover {
    background-color: #008ecc;
}

.quick-bet-btn:focus {
    background-color: #333;
}
/* Celebration Effect */
.celebrate {
    color: gold;
    transition: color 0.5s;
}

/* Flash screen for 500 clicks */

@keyframes flash {
    0% { background: white; }
    50% { background: none; }
}

.crazy-bg {
    animation: crazy-bg 5s infinite alternate;
}

@keyframes crazy-bg {
    0% { background: red; }
    25% { background: blue; }
    50% { background: green; }
    75% { background: yellow; }
    100% { background: purple; }
}

/* Shake screen for 1000 clicks */
.shake1 {
    animation: shake 0.5s infinite, flash 0.75s infinite;
}
.shake2 {
    animation: shake2 0.2s infinite, crazy-bg 0.5s infinite;
}


@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-5px, 5px); }
    50% { transform: translate(5px, -5px); }
    75% { transform: translate(-5px, 5px); }
    100% { transform: translate(0, 0); }
}
@keyframes shake2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-25px, 25px); }
    50% { transform: translate(25px, -25px); }
    75% { transform: translate(-25px, 25px); }
    100% { transform: translate(0, 0); }
}

.confetti {
    position: fixed;
    top: 0;
    width: 10px;
    height: 10px;
    opacity: 0.8;
    animation: fall linear infinite;
    z-index: 10000;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}
.falling-number {
    position: absolute;
    font-size: 30rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    color: white;
    text-shadow: 2px 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 10;
    transition: top 0.2s ease-in-out;
}

#falling-number1 {
    left: 10%;
}

#falling-number2 {
    right: 10%;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes flash {
    0% {
        color: red;
    }
    50% {
        color: yellow;
    }
    100% {
        color: red;
    }
}

.flashing {
    animation: flash 1s infinite;
}
.play-button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .play-ruggar {
    position: relative;
    display: inline-block;
    padding: 16px 36px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #00d2ff, #3a47d5);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
  }
  
  .play-ruggar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 10%, transparent 10.01%);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease;
    pointer-events: none;
  }
  
  .play-ruggar:hover::before {
    transform: translate(-50%, -50%) scale(4);
  }
  
  .play-ruggar:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.6);
  }
  
  .play-ruggar:active {
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(0, 210, 255, 0.3);
  }
