@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Roboto&display=swap');

body {
  zoom: 80%;
  margin: 0; padding: 0;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  font-family: 'Orbitron', sans-serif;
  color: #eee;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem;
}

h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  color: #00ffea;
  text-shadow: 0 0 8px #00ffea;
  user-select: none;
}

h2{
    color: #00ffea;
    text-shadow: 0 0 8px #00ffea;
    user-select: none;
    font-family: 'Orbitron', monospace;
}
.form-container {
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  padding: 2rem;
  /*width: 100%;*/
  /*max-width: 600px;*/
  box-shadow: 0 0 25px #00ffeaaa;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: #00ffea;
  text-shadow: 0 0 4px #00ffea;
}

input[type="text"] {
  width: -webkit-fill-available;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 1.2rem;
  box-shadow: inset 0 0 8px #00ffea88;
  background: #022d3f;
  color: #00ffea;
  outline: none;
  transition: box-shadow 0.3s ease;
  font-family: 'Orbitron', monospace;
}

input[type="text"]:focus {
  box-shadow: 0 0 15px #00ffea;
}

button {
  margin-top: 1rem;
  width: 100%;
  padding: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
  background: #00ffea;
  color: #022d3f;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.05em;
  transition: background 0.3s ease;
  user-select: none;
}

button:hover {
  background: #00e6cc;
}

.results {
  margin-top: 2rem;
  background: rgba(0,0,0,0.7);
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 0 25px #00ffeaaa;
  
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: #b3faff;
  user-select: text;
}

.signal-good {
  color: #00ff6a;
  font-weight: 700;
  text-shadow: 0 0 10px #00ff6a;
}

.signal-bad {
  color: #ff3e3e;
  font-weight: 700;
  text-shadow: 0 0 10px #ff3e3e;
}

/* Autocomplete style */

.autocomplete-items {
  position: absolute;
  border: 1px solid #555;
  border-top: none;
  z-index: 9999; /* Plus haut que tout */
  top: 100%;
  left: 0;
  right: 0;
  background-color: #1e1e2f;
  max-height: 200px;
  overflow-y: auto;
}

.autocomplete-items div {
  padding: 10px 20px;
  cursor: pointer;
  color: #00ffea;
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  border-bottom: 1px solid #00ffea44;
  transition: background 0.2s ease;
  user-select: none;
}

.autocomplete-items div:hover,
.autocomplete-active {
  background-color: #00ffea22;
}

/* Responsive */
@media (max-width: 600px) {
  h1 { font-size: 2.4rem; }
  .form-container, .results { padding: 1rem; }
}

.coin-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.coin-info {
    flex: 1;
    min-width: 250px;
}

.coin-img {
    flex-shrink: 0;
    text-align: center;
    margin-top: -53PX;
}

.image-coin {
    width: 80px;
    height: 80px;
    border-radius: 150px;
    box-shadow: 0 0 25px #00ffeaaa;
}

.coin-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.coin-info {
    flex: 1;
    min-width: 250px;
}

.coin-img {
    flex-shrink: 0;
}

.image-coin {
    width: 150px;
    height: 150px;
    margin-top: 50px;
}

/* Responsive: mobile */
@media (max-width: 768px) {
    .coin-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .coin-img {
        align-self: center;
        margin-bottom: 10px;
        width: 80px;
        height: 80px;
    }
    .image-coin {
        width: 80px;
        height: 80px;
    }
   .top-crypto-item {
    flex: 1 1 calc(50% - 1rem) !important; /* 2 par ligne */
  }
  #tbl-desktop{
      display:none;
  }
  #tbl-mobile{
    display:block !important;
    }
}
#tbl-mobile{
    display:none;
}
.top-crypto-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.top-crypto-item {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 1rem 0;
  color: #00ffea;
  box-shadow: 0 0 10px #00ffea88;
  text-align: center;
  min-width: 120px;
  flex: 1 1 calc(20% - 1rem); /* 5 par ligne */
  /*max-width: 180px;*/
  font-family: 'Orbitron', monospace;
}

@media (max-width: 768px) {
  .top-crypto-item {
    flex: 1 1 calc(50% - 1rem); /* 2 par ligne */
  }
  body{
      padding: 2rem 0;
  }
}

.badge {
  display: inline-block;
  background: #00ffea22;
  padding: 0.4rem 0.7rem;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  box-shadow: 0 0 5px #00ffeaaa;
}

.wallet-menu-container {
  position: relative;
  display: inline-block;
}

.wallet-button {
      background-color: white;
    color: black;
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    border: none;
}

.wallet-dropdown {
    position: absolute;
    right: 6px;
    background-color: #111;
    border-radius: 10px;
    box-shadow: 0 0 25px #00ffeaaa;
    display: flex;
    flex-direction: column;
    min-width: 100px;
    padding: 10px;
    z-index: 1000;
    margin-top: 52px;
}

.wallet-dropdown a {
  color: white;
  padding: 8px 10px;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
}

.wallet-dropdown a:hover {
  background-color: #222;
  border-radius: 6px;
}

.hidden {
  display: none;
}

.blinking-link {
 color: #00ffea;
  text-decoration: none;
  font-weight: bold;
  animation: colorBlink 1s infinite;
  transition: color 0.5s ease-in-out;
}

@keyframes colorBlink {
  0%   { color: #00ffea; }
  50%  { color: #ff00aa; }
  100% { color: #00ffea; }
}

#customAlert {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #f8d7da; /* rouge clair */
    color: #842029; /* texte rouge foncé */
    border: 1px solid #f5c2c7;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-size: 16px;
     /*display: none; caché par défaut */
    z-index: 1000;
    max-width: 300px;
  }
  #customAlert button {
    background: none;
    border: none;
    color: #842029;
    font-weight: bold;
    font-size: 18px;
    float: right;
    cursor: pointer;
    line-height: 1;
    text-align: right;
    margin-top: -12px;
    margin-right: -20px;
  }
  #customAlert button:hover {
    color: #00ffea;
  }