html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #2d2d2d;
  font-family: "Roboto Condensed", serif;
}

#top-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 5px;
  color: #fff;
}

#top-controls button,
#top-controls input {
  margin: 5px 2px;
  padding: 5px;
}

#incomingData {
  margin-top: 5px;
  font-weight: bold;
}

#bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: #14F195;
  z-index: 2;
}

#infected-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: #e74c3c;
  z-index: 2;
  transition: width 1s ease-in-out;
}

#bar-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #000;
  font-weight: bold;
  line-height: 30px;
  z-index: 3;
}

.mc {
  text-align: center;
  margin: 5px 0;
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
  font-size: 16px;
  font-weight: 600;
  font-family: 'Roboto Condensed', sans-serif;
  letter-spacing: 0.5px;
}

#buy-animations-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
  contain: strict;
}

.buy-animation {
  position: absolute;
  font-weight: bold;
  color: #48BB78;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  will-change: transform, opacity;
  text-align: center;
  opacity: 0;
  line-height: 1.2;
}

.buy-animation .sol-value {
  display: block;
  font-size: 60%;
  color: #f0c674;
  opacity: 0.9;
  font-weight: normal;
}

.buy-animation.from-left {
  animation: buyMoveFromLeft 2.5s ease-in-out forwards;
}

.buy-animation.from-right {
  animation: buyMoveFromRight 2.5s ease-in-out forwards;
}

.buy-animation.small {
  color: #73e673;
}

.buy-animation.medium {
  color: #4dff4d;
}

.buy-animation.large {
  color: #00ff00;
  text-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
}

.buy-animation.huge {
  color: #00ffff;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.buy-animation.huge .sol-value {
  font-size: 65%;
  color: #66ffff;
}

@keyframes buyMoveFromLeft {
  0% {
    opacity: 0;
    transform: translate(-10%, -50%);
  }
  5% {
    opacity: 1;
    transform: translate(-5%, -50%);
  }
  70% {
    opacity: 1;
    transform: translate(40%, -50%);
  }
  80% {
    opacity: 1;
    transform: translate(40%, -50%);
  }
  90% {
    opacity: 0.7;
    transform: translate(40%, -50%);
  }
  100% {
    opacity: 0;
    transform: translate(40%, -50%);
  }
}

@keyframes buyMoveFromRight {
  0% {
    opacity: 0;
    transform: translate(110%, -50%);
  }
  5% {
    opacity: 1;
    transform: translate(105%, -50%);
  }
  70% {
    opacity: 1;
    transform: translate(60%, -50%);
  }
  80% {
    opacity: 1;
    transform: translate(60%, -50%);
  }
  90% {
    opacity: 0.7;
    transform: translate(60%, -50%);
  }
  100% {
    opacity: 0;
    transform: translate(60%, -50%);
  }
}

#mapid {
  width: 100%;
  height: 100%;
  background: #262626;
  position: relative;
  z-index: 1;
}

#continentStatus {
  position: absolute;
  bottom: 40px;
  right: 10px;
  z-index: 2;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 5, 5, 0.85) 100%);
  padding: 12px 16px;
  color: #fff;
  font-size: 13px;
  line-height: 1.6em;
  border: 1px solid rgba(255, 0, 64, 0.4);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(255, 0, 64, 0.25);
  backdrop-filter: blur(6px);
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 500;
  max-width: 260px;
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.status-infected {
  color: #ff3131;
}

.status-partial {
  color: #ffaa55;
}

.status-notinfected {
  color: #14F195;
}

.continent-label {
  color: white;
  opacity: 0.8;
  font-size: 25px;
  font-weight: bold;
  text-align: center;
  padding: 0 20px;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.info {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.info p{
  margin: 5px 0 0 0;
  padding: 0;
}
.info .note{
  font-weight: bold;
  margin: 10px 0 10px 0;
  font-size: 11px;
  text-decoration: underline;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-image {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.logo {
  font-size: 28px;
  margin: 0;
  padding: 0;
  color: #ff0040;
  text-shadow: 0 0 12px rgba(255, 0, 64, 0.8), 0 0 20px rgba(255, 0, 64, 0.4);
  font-weight: bold;
  letter-spacing: 2px;
  font-family: 'Roboto Condensed', sans-serif;
}

.info__content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 320px;
  max-width: 90vw;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(20, 0, 0, 0.85) 100%);
  padding: 18px 22px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  gap: 10px;
}

.info p {
  color: #fff;
  text-shadow: 0 0 5px #000;
  font-size: 13px;
  text-align: center;
}

.buy-button {
  background: linear-gradient(135deg, #ff0040 0%, #cc0033 100%);
  color: #fff;
  text-decoration: none;
  padding: 8px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 12px;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 15px rgba(255, 0, 64, 0.4);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 0, 64, 0.5);
  font-family: 'Roboto Condensed', sans-serif;
  letter-spacing: 0.5px;
}

.buy-button:hover {
  background: linear-gradient(135deg, #ff1a55 0%, #e6003d 100%);
  box-shadow: 0 0 25px rgba(255, 0, 64, 0.6);
  transform: translateY(-2px);
}

.info .buttons ul {
  margin: 0;
  padding: 0;
}

.info .buttons ul li {
  display: inline-block;
  list-style: none;
}

.info .buttons ul li a {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-color: #fff;
  border: solid 2px #000;
  border-radius: 5px;
  padding: 5px;
}

.info .buttons img {
  width: 100%;
  height: 100%;
  float: left;
}
.leaflet-top.leaflet-left{
  display: none;
}
.leaflet-left{
  margin-bottom: 30px;
}

.hide_content a{
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  padding: 5px 10px;
  margin: 10px 0 0 0;
  display: inline-block;
  background-color: #494949;
}
.info.hidden .logo-section,
.info.hidden p,
.info.hidden .buy-button,
.info.hidden .buttons{
  display: none;
}
.info.hidden .mc{
  font-size: 50px;
  font-weight: bold;
}
.info.hidden .info__content {
  display: flex;
  padding: 0;
  background-color: transparent;
}
.info.hidden .info__content .hide_content a{
  margin: 20px;
  font-weight: bold;
}

.connection__status{
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  margin: 5px 0;
  padding: 6px 12px;
  border-radius: 15px;
  background: rgba(255, 0, 64, 0.15);
  border: 1px solid rgba(255, 0, 64, 0.3);
  font-family: 'Roboto Condensed', sans-serif;
  margin:0 20px;
}

@media (max-width: 991px) {
  .info.hidden .mc{
    font-size: 30px;
  }
  #top-controls, #continentStatus{
    display: none;
  }
  #bar-label{
    font-size: 11px;
    width: 100%;
    text-align: center;
    font-weight: normal;
  }
  .info .contract{
    word-break: break-all;
    font-size: 12px;
  }
  .info__content{
    width: 300px;
    max-width: 95vw;
    padding: 15px 18px;
  }
  .info p{
    font-size: 11px;
    padding: 0 20px;
  }
  .logo{
    font-size: 24px;
    letter-spacing: 1px;
  }
  .logo-image {
    width: 28px;
    height: 28px;
  }
  .buy-button {
    padding: 8px 20px;
    font-size: 13px;
  }
  .continent-label{
    font-size: 12px;
  }
  .info .note{
    font-size: 9px;
  }
}