/* Resetting default margin and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #222; /* Dark background */
  color: #f0f0f0; /* Light text color */
}

header {
  position: relative;
  padding: 5px 0;
  text-align: center;
  background-image: url('images/headerpicture.png');
  background-size: cover;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5%;
  height: 5%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
  z-index: -1; /* Ensure the overlay is behind the text */
}

header h1 {
  font-size: 16px; /* Increased font size */
  font-weight: bold; /* Make the text bold */
  color: #fff; /* White text */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow */
  position: relative; /* Ensure the text is layered above the overlay */
  z-index: 1; /* Ensure the text is layered above the overlay */
}

.box1 {
  background-color: #292929; /* Background color */
  width: auto; /* Auto width */
  padding: 0px; /* Reduced padding */
  display: flex;
  justify-content: center; /* Center items horizontally */
}

/* Style for the arena links */
.arena-links,
.main-links,
.cooldown-timers {
  display: flex;
  justify-content: center; /* Center items horizontally */
}

.arena-links a,
.main-links a,
.cooldown-timers span,
.custom-button,
.custom-button1 .logout-link1 {
  background-color: #8B4513; /* Teak Brown */
  color: #fff; /* White text color */
  padding: 2px 20px; /* Padding */
  margin: 4px; /* Margin */
  border-radius: 5px; /* Rounded corners */
  text-decoration: none; /* Remove default underline */
  transition: background-color 0.3s, color 0.3s, border-color 0.3s; /* Smooth transition */
}

.custom-button:hover {
  background-color: #A0522D; /* Darker shade on hover */
}

/* Styling for cooldown timers */
.cooldown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4px; /* Add bottom margin */
    margin-top: 4px; /* Add bottom margin */
}

.cooldown-timers {
  font-family: Tahoma, Verdana, sans-serif; /* Use Tahoma or Verdana for better readability */
  font-size: 14px; /* Adjusted font size */
  font-weight: bold; /* Increase font weight for bold appearance */
  color: white; /* White text color */
  padding: 0 1px; /* Add padding */
}

.cooldown-timers:not(:last-child) {
  margin-right: 20px; /* Add right margin between cooldown timers */
}

.cooldown-timers span {
  background-color: #757575; /* Grey */
  border: 1px solid #4e342e; /* Dark brown border */
  padding: 10px 20px; /* Adjusted padding */
  border-radius: 5px;
}

.cooldown-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #3498db;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
}

.cooldown-text {
  font-size: inherit; /* Inherit font size from parent (.cooldown-timers) */
}

.progress-container {
  width: 100%;
  border-radius: 0px;
  margin-top: 5px; /* Adjusted margin top */
  margin-bottom: 2px; /* Adjusted margin top */
  border: 1px solid black; /* Thin black border */
  height: 12px; /* Matching height with .progress-bar */
  background-color: rgba(255, 0, 0, 0.3); /* Faint red color */
}

.progress-text {
  padding: 1px;
  text-align: center;
}

.progress-bar {
  background-color: #4caf50;
  height: 10px;
}

/* Button styles for aesthetic */
.shop-links a,
.highscore-links a {
  background-color: #8B4513; /* Teak Brown */
  border: none;
  color: white;
  padding: 10px 20px; /* Padding */
  margin: 10px; /* Margin */
  border-radius: 5px; /* Rounded corners */
  text-decoration: none;
}

.shop-links a:hover,
.highscore-links a:hover,
.arena-links a:hover,
.main-links a:hover {
  background-color: #4CAF50; /* Green hover background */
}

.upper-container {
  display: flex;
  justify-content: space-between; /* To evenly space the panels */
}

.statpanel-container {
  display: flex;
  width: 100%; /* Full width of the parent container */
  max-width: 1200px; /* Example max width for responsiveness */
  margin: 0 auto; /* Center the container horizontally */
  text-align: left;
}

.statpanel-board1,
.statpanel-board2 {
flex: 1 1 0; /* Each panel grows and shrinks equally */
  max-width: calc(50% - 10px); /* Adjust based on margins and borders */
  min-width: 200px; /* Example minimum width for each panel */
  min-height: 150px; /* Example minimum height for each panel */
  background-color: #8B4513; /* Teak Brown */
  border-radius: 5px;
  margin: 5px; /* Margin */
  border: 1px solid black; /* Thin black border */
}

/* Additional styling for the "old money" aesthetic */
h2 {
  color: #ffd700; /* Gold color for headings */
  text-align: center;
  margin-bottom: 20px; /* Added space below headings */
}

.centered-paragraph {
  max-width: 800px; /* Limiting width for better readability */
  margin: 0 auto 20px; /* Add some space between statpanel and centered paragraph */
}

.container {
  display: flex; /* Use flexbox */
}

.parent-container {
  position: relative; /* Establishes a positioning context for absolute positioning */
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px; /* Set the height of your footer */
  background-color: #222; /* Dark background for footer */
  color: #ffd700; /* Gold text */
  box-shadow: 0px -5px 15px rgba(0,0,0,0.75); /* Adding shadow */
  text-align: center; /* Center aligning content */
}

footer p {
  font-size: 12px;
  letter-spacing:2px; /* Adding space between letters */
  margin: 0; /* Remove default margins */
}

.town {
  font-family: Verdana, sans-serif; /* Verdana font */
  font-size: 28px; /* Decreased font size */
  color: #fff; /* White text color */
  font-weight: bold; /* Bold font weight */
  letter-spacing: 2px; /* Letter spacing */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Nice-looking shadow */
  margin: 0 auto; /* Center the block horizontally with auto margin */
  padding: 3px; /* Add padding */
  border: 2px solid #8B4513; /* Golden mahogany border */
  border-radius: 25px; /* Rounded corners */
  background-color: #3e2723; /* Dark mahogany background color */
  text-align: center; /* Center the text */
  max-width: 1100px;
  text-transform: uppercase;
}
This C

.echo-paragraphstats {
  font-family: Tahoma, Verdana, sans-serif; /* Use Tahoma or Verdana for better readability */
  font-size: 16px; /* Adjust font size as needed */
  font-weight: bold; /* Increase font weight for bold appearance */
  text-transform: uppercase; /* Convert text to all caps */
  line-height: 1.5; /* Adjust line height as needed */
  color: #fff; /* White text color */
  text-align: center; /* Center align text */
  margin-bottom: 0px; /* Add bottom margin */
  padding: 0 20px; /* Add padding */
  letter-spacing: 2px; /* Increase letter spacing for a more classic look */
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* Add shadow effect with increased blur */
}

.line {
  width: 100%; /* Full width */
  border-bottom: 1px solid #ddd; /* Light gray line */
  margin: 0; /* Remove bottom margin */
}

/* Hover effect for both .main-links and .arena-links */
.main-links a:hover,
.arena-links a:hover {
  background-color: #4CAF50; /* Green hover background */
}

.logoutbuttonstyle {
  background-color: #C04000; /* Mahogany red */
  color: #fff; /* White text color */
  padding: 0px 5px; /* Increased padding for a better button feel */
  margin: 0px; /* Keep original margin */
  border-radius: 10px; /* Added rounded corners */
  text-decoration: none; /* Remove default underline */
  display: inline-block; /* Make the link a block-level element */
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; /* Smooth transition */
  font-family: Tahoma, Verdana, sans-serif; /* Use Tahoma or Verdana for better readability */
  font-size: 16px; /* Keep original font size */
  text-align: center; /* Center align text */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Add subtle shadow for depth */
  cursor: pointer; /* Change cursor to pointer on hover */
}

.logoutbuttonstyle:hover {
  background-color: #8B0000; /* Darker mahogany red */
  color: #ffcccb; /* Light pink text color on hover for contrast */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
}

.logged-in-message {
  display: flex; /* Use flexbox */
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the content vertically */
}

.html-content {
  background-color: #3e2723; /* Dark mahogany background color */
  color: #ffd700; /* Gold text color */
  border-radius: 10px; /* Rounded corners */
  padding: 20px; /* Padding */
  max-width: 1000px; /* Limiting width */
  margin: 0px auto; /* Centering horizontally with top margin */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* Shadow effect */
   overflow: hidden; /* Clearfix */
  

}
.echo-paragraphstats2 {
  font-family: Tahoma, Verdana, sans-serif; /* Use Tahoma or Verdana for better readability */
  font-size: 16px; /* Adjust font size as needed */
  font-weight: bold; /* Increase font weight for bold appearance */
  text-transform: uppercase; /* Convert text to all caps */
  line-height: 1.5; /* Adjust line height as needed */
  color: #fff; /* White text color */
  text-align: center; /* Center align text */
  margin-bottom: 0px; /* Add bottom margin */
  padding: 0 20px; /* Add padding */
  letter-spacing: 2px; /* Increase letter spacing for a more classic look */
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* Add shadow effect with increased blur */
}
.cooldowntimestyle1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin: auto;
    text-align: center;
    padding: 8px;
    background-color: rgba(226, 215, 167, 0.58);
    border: 1px solid white;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Added text shadow */
}

.cooldownstyle2 {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin: auto;
    padding: 8px;
    background-color: rgba(245, 11, 11, 0.58);
    border: 1px solid white;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Added text shadow */
}

.victoryGreenStyle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin: auto;
    text-align: center;
    padding: 8px;
    background-color: rgba(0, 255, 0, 0.58); /* Bright Green */
    border: 1px solid white;
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Added text shadow */
}
.styled-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin: auto;
    text-align: center;
    padding: 8px;
    background-color: rgba(0, 255, 0, 0.58); /* Bright Green */
    border: 1px solid white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Added text shadow */
}
.error-message {
  position: fixed; /* Fixed positioning */
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Centering trick */
  background-color: #4CAF50; /* Green background */
  color: #fff; /* White text color */
  padding: 20px; /* Padding */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add shadow */
  z-index: 9999; /* Ensure it's on top of other content */
  animation: fadeOut 10s forwards; /* Animation to fade out */
}

@keyframes fadeOut {
  0% { opacity: 1; } /* Full opacity */
  100% { opacity: 0; } /* Completely transparent */
}
.event_button {
  background-color: #00205b; /* Dark blue for America */
  color: #ffffff; /* White text color */
  padding: 1px 20px; /* Original padding */
  margin: 4px; /* Original margin */
  border-radius: 10px; /* Rounded corners */
  text-decoration: none; /* Remove default underline */
  border: 2px solid transparent; /* Transparent border for animation */
  transition: background-color 0.3s, color 0.3s, border-color 0.3s; /* Smooth transition */
  position: relative; /* Position for the flower animation */
  overflow: hidden; /* Hide overflow for the animation effect */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
  text-shadow: 1px 1px 2px #000000;
  animation: backgroundFade 5s infinite alternate; /* Background color animation */
}

.event_button:hover {
  background-color: #ff0000; /* Red for Canada on hover */
  border-color: #ffffff; /* White border on hover */
  color: #00205b; /* Dark blue text on hover */
}

@keyframes backgroundFade {
  0% {
    background-color: #00205b; /* Dark blue for America */
  }
  50% {
    background-color: #bf0a30; /* Red for Canada */
  }
  100% {
    background-color: #00205b; /* Back to dark blue */
  }
}

.event_button:before,
.event_button:after {
  content: '';
  position: absolute;
  width: 80px; /* Original size */
  height: 80px; /* Original size */
  background: radial-gradient(circle, #ffffff 20%, transparent 20%),
              radial-gradient(circle, transparent 20%, #ffffff 20%, transparent 30%),
              radial-gradient(circle, #ffffff 20%, transparent 20%);
  background-size: 10px 10px, 10px 10px, 5px 5px;
  background-position: 0 0, 5px 5px, 10px 10px;
  border-radius: 50%;
  animation: float 4s infinite ease-in-out, fade 4s infinite alternate ease-in-out;
  opacity: 0.4; /* Semi-transparent */
  z-index: -1;
}

.event_button:before {
  top: -40px; /* Original position */
  left: -40px; /* Original position */
}

.event_button:after {
  bottom: -40px; /* Original position */
  right: -40px; /* Original position */
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-10px) translateX(10px);
  }
}

@keyframes fade {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.4;
  }
}
