/* General Styles */
html {
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 20px;
  background: #000000;
  background: radial-gradient(circle, #1a1a1a 0%, #000000 100%);
}

/* Loading screen styles */
#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-circle {
  position: relative;
  width: 150px;
  height: 150px;
  border: 6px solid rgba(255, 0, 0, 0.5);
  border-top: 6px solid #ff0000;
  border-radius: 50%;
  animation: spin 2s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-circle:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 80%);
  border-radius: 50%;
  animation: pulse 3s infinite;
}

.loading-text {
  position: absolute;
  font-size: 1.2em;
  color: #ff0000;
  text-align: center;
  animation: fadeText 1.5s infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0.3; }
}

/* Main Content Styles */
section {
  background: #1a1a1a;
  color: white;
  border: 2px solid #ff0000;
  border-radius: 1em;
  padding: 2em;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 700px;
  box-shadow: 0px 0px 30px rgba(255, 0, 0, 0.7);
  transition: all 0.3s ease-in-out;
  display: none; /* Hide the main content initially */
}

section.show {
  display: block; /* Show main content after loading */
}

/* Button and Input Styles */
p, td {
  color: #ff0000;
  margin: 0.5em 0;
}

.styled-button {
  background: linear-gradient(45deg, #ff0000, #770000);
  border: none;
  color: white;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.styled-button:hover {
  background: linear-gradient(45deg, #ff3333, #990000);
  transform: scale(1.05);
}

.styled-input {
  padding: 10px;
  border: 2px solid #ff0000;
  border-radius: 5px;
  background-color: #1a1a1a;
  color: white;
  outline: none;
  width: 300px;
  transition: border 0.3s ease;
}

.styled-input:focus {
  border-color: #ff3333;
}

#result, #statusMessage, #balanceDisplay {
  margin-top: 10px;
}

table {
  width: 100%;
  margin-top: 20px;
}

td {
  text-align: center;
  padding: 10px;
}

td:first-child {
  text-align: left;
}
