body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: #5A6E41; /* Chalet Green background color */
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  overflow: hidden; /* Prevent scrolling due to animations */
}

.main-layout {
  display: grid;
  grid-template-columns: 1fr 4fr; /* 1:4 ratio */
  height: 100vh;
  width: 100vw;
}

.left-column {
  background-color: #4A5B37; /* Slightly darker green for the menu */
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
  color: white;
}

.menu-header {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.league-selection {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.league-button {
  color: white;
  border: none;
  padding: 10px 15px;
  text-align: left;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s;
  display: flex; /* Use flex to align text and small tag */
  flex-direction: column;
  align-items: flex-start;
}

.league-button:hover {
  transform: translateX(5px);
}

/* English League (EPL) - Red and White */
.league-button[data-league="english"] {
  background-color: #C8102E; /* Red */
  border: 1px solid #FFFFFF; /* White border */
}

.league-button[data-league="english"].active {
  background-color: #012169; /* Dark blue for active */
  font-weight: bold;
}

/* Spanish League (La Liga) - Red and Yellow */
.league-button[data-league="spanish"] {
  background-color: #AA151B; /* Red */
  border: 1px solid #F1BF00; /* Yellow border */
}

.league-button[data-league="spanish"].active {
  background-color: #F1BF00; /* Yellow for active */
  color: #AA151B; /* Red text on yellow */
  font-weight: bold;
}

/* Italian League (Serie A) - Green, White, and Red */
.league-button[data-league="italian"] {
  background-color: #008C45; /* Green */
  border: 1px solid #FFFFFF; /* White border */
}

.league-button[data-league="italian"].active {
  background-color: #CD212A; /* Red for active */
  font-weight: bold;
}

.league-button small {
  font-size: 0.7em;
  opacity: 0.8;
}

.right-column {
  position: relative; /* For absolute positioning of toggle button */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Default (Day Mode) Variables */
body[data-theme="day"] {
  --background-color: #f0f0f0;
  --text-color: #333;
  --button-background: #007bff;
  --button-text: #fff;
  --card-background: #fff;
  --card-border: #ccc;
}

/* Night Mode Variables */
body[data-theme="night"] {
  --background-color: #333;
  --text-color: #f0f0f0;
  --button-background: #6f42c1;
  --button-text: #fff;
  --card-background: #444;
  --card-border: #555;
}

.theme-toggle-button {
  position: absolute; /* Position relative to .right-column */
  top: 20px;
  right: 20px;
  width: 40px; /* Adjust size as needed */
  height: 40px; /* Adjust size as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--button-background);
  border-radius: 5px;
  background-color: var(--button-background);
  color: var(--text-color); /* Use text-color for icon color */
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.theme-toggle-button svg {
  width: 24px; /* Size of the SVG icon */
  height: 24px; /* Size of the SVG icon */
}

.theme-toggle-button:hover {
  opacity: 0.8;
}

/* Styles for the custom element - these will be overridden by shadow DOM styles but provide a fallback */
epl-predictor {
  display: block;
  text-align: center;
  margin-top: 50px;
}

/* Running dog animation */
.running-dog {
  position: fixed;
  white-space: nowrap;
  animation-name: runAcrossScreen;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  z-index: 9999;
}

@keyframes runAcrossScreen {
  from {
    right: -10vw; /* Start off-screen to the right */
  }
  to {
    right: 100vw; /* End off-screen to the left */
  }
}

/* Feedback Button */
.feedback-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  font-size: 1em;
  cursor: pointer;
  border: 1px solid var(--button-background);
  border-radius: 5px;
  background-color: var(--button-background);
  color: var(--button-text);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  z-index: 10;
}

.feedback-button:hover {
  opacity: 0.8;
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--card-background);
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid var(--card-border);
  width: 80%; /* Could be more or less, depending on screen size */
  max-width: 500px;
  border-radius: 8px;
  position: relative;
  color: var(--text-color);
}

.close-button {
  color: var(--text-color);
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.modal-content h2 {
  text-align: center;
  margin-top: 0;
  color: var(--text-color);
}

.modal-content form {
  display: flex;
  flex-direction: column;
}

.modal-content label {
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--text-color);
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content textarea {
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--card-border);
  border-radius: 4px;
  background-color: var(--card-background);
  color: var(--text-color);
}

.modal-content textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-content button[type="submit"] {
  background-color: var(--button-background);
  color: var(--button-text);
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  margin-top: 10px;
}

.modal-content button[type="submit"]:hover {
  opacity: 0.8;
}

#form-status {
  margin-top: 15px;
  text-align: center;
  font-weight: bold;
}

