body {
  font-family: "Lato", sans-serif;
  background-color: #f4f7fc;
  color: #333;
  margin: 0;
  padding: 20px;
}

body.dark-mode {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #2c3e50;
  cursor: pointer;
  padding: 10px;
  border-radius: 12px;
  transition: background-color 0.3s ease, font-size 0.3s ease;
}

h1:hover {
  background-color: #ecf0f1;
  font-size: 38px;
}

h1.dark-mode {
  color: #eaeaea;
}

h1.dark-mode:hover {
  background-color: #34495e;
  color: #ffffff;
}

.member-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.card {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.5s ease forwards;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card.dark-mode {
  background-color: #2c2c2c;
  border: 1px solid #444;
  color: #eaeaea;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

.card.dark-mode:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px rgba(255, 255, 255, 0.1);
}

h3 {
  font-size: 24px;
  margin: 0;
  color: #34495e;
}

h3.dark-mode {
  color: #f0f0f0;
}

p {
  font-size: 16px;
  color: #7f8c8d;
}

p.dark-mode {
  color: #b3b3b3;
}

a {
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

a.dark-mode {
  color: #66b2ff;
}

a.dark-mode:hover {
  color: #3399ff;
}


.joke-response {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  margin-top: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.joke-response.dark-mode {
  background-color: #34495e;
  border-color: #2c3e50;
}

.show-joke {
  opacity: 1;
  transform: translateY(-10px);
}


#dark-mode-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #3498db;
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

#dark-mode-toggle:hover {
  background-color: #2980b9;
}

#dark-mode-toggle.dark-mode {
  background-color: #1abc9c;
}

#dark-mode-toggle.dark-mode:hover {
  background-color: #16a085;
}

#dark-mode-toggle img {
  width: 30px;
  height: 30px;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 30px;
  }

  .card {
    padding: 15px;
  }
}

#add_member{
  background-color: #3498db;
  border: none;
  padding: 10px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}