body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.header {
  width: 100%;
  background: #181d45;
  color: white;
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  margin-bottom: 0; /* Ensure there's no extra margin */
}

.navbar {
  width: 100%;
  max-width: 1225px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 1.5rem;
  cursor: pointer;
  display: block;
}

.navbar-menu {
  display: flex;
}

.navbar-item {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  cursor: pointer;
}

.navbar-item:hover {
  background-color: #0a0e37;
}

.content {
  width: calc(100% - 40px);
  padding-top: 20px; /* Remove the padding */
  box-sizing: border-box;
  margin-top: 0; /* Remove any extra margin */
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.user-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 0px;
}

.user-button {
  background: #181d45;
  color: white;
  border: none;
  padding: 20px;
  border-radius: 5px;
  font-size: 2.5rem;
  cursor: pointer;
  transition: background 0.3s;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.balance {
  font-size: 1.2rem;
  margin-top: 5px;
  text-align: center;
  width: 100%;
}

.balance.positive {
  color: green; /* Positive balances */
}

.balance.high {
  color: red; /* Negative balances lower than -10€ */
}

.balance.zero {
  color: black; /* Zero balance and negative balances up to -10€ */
}

@media (max-width: 768px) {
  .user-list {
    overflow-x: auto;
  }
}

@media (max-width: 1000px) {
  .navbar-menu {
    display: none;
  }

  .navbar-brand {
    justify-content: center;
    height: 60px;
    align-items: center;
  }

  .navbar-brand a.navbar-brand-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    font-size: 1.5rem;
  }

  .navbar-brand {
    display: block;
  }
}

@media (max-width: 768px) {
  .user-card {
    width: calc(50% - 40px);
  }
}

@media (max-width: 480px) {
  .user-card {
    width: calc(100% - 40px);
  }
}
