/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: "Comic Sans MS", "Comic Sans", cursive, sans-serif;
    background: url('images/BlazeitBG.png') no-repeat center center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-color: #b0e8f7; /* Light blue similar to BG image */
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    padding-top: 80px; /* Ensures content is below the navbar */
}
  
  /* Responsive 3-column layout */
  .container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    height: 100%;
    min-height: 100vh;
    padding: 2rem;
    gap: 1rem;
  }
  
  .left-panel, .right-panel {
    flex: 1.6;
    min-width: 360px;
  }  

  .left-panel h3,
  .right-panel h3 {
  text-align: center;
}

  .game-panel {
    flex: 3; /* Increase from 1 to 1.3 for more width */
    text-align: center;
    max-width: none;
    width: 550px;
    margin: 0;
    height: 100%;
  }
  
  .info-panel h3 {
    text-align: center;
  }
  
  .right-panel .wallet-controls,
  .right-panel .stats {
    text-align: center;
  }
  
  #lookupAddress,
  .flip-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  .right-panel .flip-btn {
    display: block;
    margin: 10px auto;
  }
  

  /* Headers and Text */
  .title {
    font-size: 2rem;
    margin-bottom: 5px;
    color: gold;
    text-shadow: 0 0 6px #ff8c00, 0 0 10px #ff4500;
    font-weight: bold;
    letter-spacing: 1px;
  }
  @keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.75; }
    100% { opacity: 2; }
  }

  
  .tagline {
    font-size: 1.2rem;
    color: gold;
    text-shadow: 0 0 6px #ff8c00, 0 0 10px #ff4500;
    font-weight: bold;
    letter-spacing: 1px;
    animation: flicker 1.5s infinite alternate;
  }
  @keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 3; }
  }
  
  
  .stats {
    background-color: rgba(0, 0, 0, 0.7); /* dark semi-transparent background */
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 15px;
    color: white;
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.4);
  }
  
  
  .stats h3 {
    margin: 0 0 10px;
    color: gold;
  }
  
  .wallet-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
  }
  
  .wallet-btn {
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    background-color: orange;
    border: none;
    transition: background-color 0.2s ease;
  }
  
  .wallet-btn.orange {
    background-color: orange;
    color: #000;
  }
  
  .wallet-btn:hover {
    background-color: darkorange;
  }
  
  .flip-btn {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background-color: #ffa500;
    border: none;
    color: #000;
    font-weight: bold;
    cursor: pointer;
  }
  
  input[type="text"], input[type="number"], select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 5px;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-family: 'Comic Sans MS';
  }
  
  /* Flip Modal */
  .flip-result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
  }
  
  .modal-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(255, 69, 0, 0.7);
  }
  
  .modal-content.win {
    border: 2px solid #4caf50;
  }
  
  .modal-content.loss {
    border: 2px solid #e53935;
  }
  
  .modal-content h2 {
    margin-top: 0;
  }
  
  .smoke-cloud {
    border-radius: 50%;
    filter: blur(15px);
    animation: smokeFloat 6s linear forwards;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
  }
  
  @keyframes smokeFloat {
    0% {
      transform: scale(0.5) translateY(20px) rotate(0deg);
    }
    20% {
      opacity: 1;
    }
    50% {
      transform: scale(1.2) translateY(-30px) rotate(15deg);
    }
    80% {
      opacity: 0.8;
      transform: scale(1.8) translateY(-60px) rotate(-10deg);
    }
    100% {
      opacity: 0;
      transform: scale(2.5) translateY(-120px) rotate(30deg);
    }
  }
  
  /* Responsive Design */
  @media screen and (max-width: 980px) {
    .container {
      flex-direction: column;
      align-items: center;
    }
  
    .info-panel, .game-panel {
      max-width: 90%;
    }
  }
  
  /* Footer */
.footer {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    position: relative;
    font-size: 14px;
    margin-top: 40px;
}
  /* === Navbar Styles === */
.navbar {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0px 0px 10px rgba(255, 69, 0, 0.7);
    height: 60px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-left: 0px; /* ✅ Push logo fully left */
}

.navbar-logo {
    height: 105px;
    width: auto;
    margin-right: 20px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-link {
    position: relative;
    text-decoration: none;
    color: white;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    font-size: 20px;
    font-weight: bold;
}

/* 🔥 Hover effect: fire color and dot smoke */
.navbar-link:hover {
    color: #ffcf48;
}

.navbar-link .smoke-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
}

.navbar-link:hover .smoke-container {
    opacity: 1;
    animation: floatUp 1.5s ease-in-out infinite;
}

/* Right side logo */
.navbar-right {
  margin-left: auto;  /* Pushes the logo to the right side */
}

.navbar-logo-right {
  height: 128px;
  width: auto;
  margin-left: 20px;
}

.smoke-dot {
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: puff 5s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes puff {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-10px) scale(1.5);
        opacity: 0;
    }
}

@keyframes floatUp {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
    100% { transform: translateX(-50%) translateY(0); }
}
.flip-btn.round {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    font-size: 1rem;
    padding: 0;
  }
  .money-bill {
    position: fixed;
    top: -40px;
    font-size: 2rem;
    z-index: 9999;
    animation: fall 3s linear forwards;
    pointer-events: none;
  }
  
  @keyframes fall {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
  }
  .choice-img {
    width: 60px; /* 🔁 Adjust size here */
    height: auto;
    transition: transform 0.3s ease;
  }
  
  .choice-img:hover {
    transform: scale(1.1);
  }
  .choice-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0;
  }
  
  .choice-images input[type="radio"] {
    display: none;
  }
  
  .choice-images label {
    width: 80px;
    height: 80px;
    background-color: gold;               /* default background */
    border: 3px solid transparent;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6); /* subtle glow */
  }
  
  .choice-images label img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
  }
  
  /* 🟠 Orange outline when selected */
  .choice-images input[type="radio"]:checked + label {
    border: 3px solid rgb(0, 0, 0);
    box-shadow: 0px 0px 10px rgba(255, 69, 0, 0.7);
    transform: scale(1.05);
  }
  
  /* 💫 Hover effect */
  .choice-images label:hover {
    transform: scale(1.1);
  }
  
 /* Coin container */
.flip-coin-button {
  width: 120px;
  height: 120px;
  margin: 20px auto;
  perspective: 800px;
  cursor: pointer;
}

/* Inner coin that spins */
.flip-coin-button .coin {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
}

/* Coin face (front/back) */
.flip-coin-button .face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  background: gold; /* base coin color */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

/* Rotate back face */
.flip-coin-button .back {
  transform: rotateY(180deg);
}

/* Image inside the coin */
.flip-coin-button .face img {
  width: 75%;
  height: 75%;
  object-fit: contain;
}

/* Hover flip */
.flip-coin-button:hover .coin {
  transform: rotateY(180deg);
}

.coin.flipping {
  animation: spin 1.4s ease-in-out forwards;
}


#flipBtn.flipping:hover .coin {
  transform: none !important;
}

@keyframes spin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(1440deg); }
}

/* Add glowing effect to the result box */
.result-display {
  border-radius: 25px; /* Increase roundness for a more pill-like shape */
  box-shadow: 0px 0px 10px rgba(255, 69, 0, 0.7);
  transition: all 0.3s ease;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
  color: white;
}

.result-display.win {
  border: 3px solid #32cd32; /* Green border for winning */
  box-shadow: 0 0 10px 5px rgba(50, 205, 50, 0.7), 0 0 20px 5px rgba(50, 205, 50, 0.5); /* Green glowing effect */
}

.result-display.loss {
  border: 3px solid #ff4500; /* Red border for losing */
  box-shadow: 0 0 10px 5px rgba(255, 69, 0, 0.7), 0 0 20px 5px rgba(255, 69, 0, 0.5); /* Red glowing effect */
}

.result-display.bonus {
  border: 3px solid #8a2be2; /* Purple border for bonus */
  box-shadow: 0 0 10px 5px rgba(138, 43, 226, 0.7), 0 0 20px 5px rgba(138, 43, 226, 0.5); /* Purple glowing effect */
}

.bet-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bet-controls button {
  background: gold;
  color: black;
  font-weight: bold;
  padding: 6px 12px;
  border: 2px solid black;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.bet-controls button:hover {
  transform: scale(1.1);
  background-color: orange;
}

.result-box {
  margin-top: 1rem;
  font-weight: bold;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.left-panel, .right-panel, .game-panel {
  background-color: rgba(0, 0, 0, 0.7); /* dark translucent background */
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0px 0px 10px rgba(255, 69, 0, 0.7);
}

button.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}
.center-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}
a.gold-link {
  color: gold;
  text-decoration: none;
  transition: color 0.3s ease;
}

a.gold-link:hover {
  color: orange;
}
#gameStatus.on {
  color: #00ff99;
  font-weight: bold;
  animation: pulseGreen 1.2s infinite alternate;
}

#gameStatus.off {
  color: #ff4c4c;
  font-weight: bold;
  animation: pulseRed 1.2s infinite alternate;
}

@keyframes pulseGreen {
  from { text-shadow: 0 0 6px #00ff99; }
  to   { text-shadow: 0 0 12px #00ff99; }
}

@keyframes pulseRed {
  from { text-shadow: 0 0 6px #ff4c4c; }
  to   { text-shadow: 0 0 12px #ff4c4c; }
}
/* 🔄 Coin Flip 3D Hover + Spin Setup */

.casino-box {
  margin: 15px 0;
  background: rgba(0, 0, 0, 0.6);
  border: 2px gold;
  border-radius: 15px;
  padding: 12px;
  text-align: center;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  color: #fff;
  box-shadow: 0px 0px 10px rgba(255, 69, 0, 0.7);
  transition: box-shadow 0.3s ease-in-out;
}

.guess-stats-header {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: bold;
  color: #ffd700;
}

.guess-bar {
  display: flex;
  height: 30px;
  width: 100%;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
  font-weight: bold;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  white-space: nowrap;
}

.blaze-bar {
  background: #ffae42;
  transition: width 0.5s ease-in-out;
}

.sonic-bar {
  background: #00bfff;
  transition: width 0.5s ease-in-out;
}
.bar img {
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
  filter: drop-shadow(0 0 2px rgba(0,0,0,0.4));
}
#leaderboardList {
  font-size: 12px;
  line-height: 1.4em;
}