body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  display: flex;
  justify-content: center;
  padding: 20px;
  height: 100vh;
}
#pageContent {
  transition: filter 0.3s ease;
  overflow-y: auto;
}
.blur {
  filter: blur(5px);
}

#leaderBoard div {
    margin: 10px;
}

div.profit {
    font-size: 30px;
    width: 200px;
    text-align: right;
    display: inline-block;
}

h1 {
  color: #ffffff;
  text-transform: capitalise;
  letter-spacing: 2px;
  text-align: center;
}
button {
  background-color: #1f7a8c;
  color: #ffffff;
  border: none;
  padding: 15px 20px;
  margin: 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 10px;
  transition: transform 0.3s, background-color 0.3s;
  width: 250px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
button:hover {
  background-color: #146370;
  transform: scale(1.05);
}
button:disabled {
  background-color: #555;
  cursor: not-allowed;
}

div.you {
  color: #00e676;
}

#status {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  font-weight: bold;
  transition: opacity 0.5s ease-in-out;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
#status.loading::after {
  content: '';
  display: block;
  height: 4px;
  width: 0;
  background-color: #00e676;
  animation: loadingBar 3s linear forwards;
}
@keyframes loadingBar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
#stateTable {
  width: 100%;
  color: #ffffff;
  margin: 20px auto;
  height: 120px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.1);
  font-size: 18px;
  color: #ffffff;
  backdrop-filter: blur(5px);
}
table, th, td {
  border: 1px solid #444;
}
th {
  background-color: #1f7a8c;
  color: #ffffff;
  padding: 15px;
  text-align: left;
}
td {
  padding: 15px;
  text-align: left;
}
#loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;

}
#spinner, #spinner_2 {
  width: 100px;
  height: 100px;
  border: 16px solid #f3f3f3;
  border-top: 16px solid #3498db;
  border-radius: 50%;
  animation: spin 2s linear infinite;
  margin-bottom: 15px;
}
.hidden {
  display: none !important;
}

#contractsLinks {
  text-align: center;
  margin-top: 30px;
  position: absolute;
  bottom: 50px;
  margin: 0 auto;
  left:0;
  right:0;
}
#contractsLinks a {
  color: #3498db;
  text-decoration: none;
  font-size: 16px;
}
#contractsLinks a:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  #pageContent {
    text-align: center;
  }

  h1 {
    font-size: 24px;
  }

  button {
    font-size: 14px;
    padding: 10px;
  }

  th, td {
    padding: 8px;
  }

  #contractsLinks a {
    font-size: 14px;
  }

  #status {
    padding: 8px;
    font-size: 14px;
  }

  #spinner, #spinner_2 {
    width: 60px;
    height: 60px;
    border-width: 8px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 20px;
    margin: 10px 0;
  }

  button {
    font-size: 12px;
    padding: 8px;
    max-width: 200px;
  }

  th, td {
    padding: 6px;
    font-size: 12px;
  }

  #status {
    top: 5px;
    font-size: 12px;
    padding: 6px;
  }

  #spinner, #spinner_2 {
    width: 50px;
    height: 50px;
    border-width: 6px;
  }
}
