#root {
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}


@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 1em;
  min-height: 30em;
  min-width: 10em;
}

.card:hover {
  background-color: blue;
  color: white; /* Changing the text color to white for better visibility on blue background */
  transition: background-color .5s ease; /* Smooth transition effect */
}

.titleimage {
  display: flex;
  flex-direction: column;
}

.items li {
  text-align: left;
  font-size: .8em;
}

.items li input[type="checkbox"] {
  margin-right: 0.5em;
}

.barchart {
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontally centered */
  justify-content: center; /* vertically centered */
  min-height: 100vh; /* or adjust as previously suggested */
  margin-top: 3em;
}

.dropdowns-container {
  display: flex;
  justify-content: center; /* centers the dropdowns horizontally */
  gap: 10px; /* provides spacing between dropdowns */
}

.tablechart {
  padding-top: 3em;
}
.custom-card-size {
  max-width: 15em;
  /* optionally, you can also set a max-height if needed */
  /* max-height: 400px; */
}

/* Changes the color of the link on hover */
.nav-link:hover {
  color: #007BFF;  /* Blue color, can be replaced with any other color */
  text-decoration: none;  /* Removes the underline which is usually there by default on hover */
  transition: color 0.5s ease;  /* Smooth transition effect */
}

/* Adds an underline effect on hover */
.nav-item:hover .nav-link::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: #007BFF;  /* Blue color, can be replaced with any other color */
  transition: width 0.3s ease;
}

/* Changes the background color on hover */
.nav-item:hover {
  background-color: #f8f9fa;  /* Light grey, can be replaced with any other color */
  transition: background-color 0.3s ease;
}

@keyframes spin {
  from {
    transform: rotate(0deg) scale(.7);
  }
  to {
    transform: rotate(360deg) scale(.7);
  }
}

.rotating {
  animation: spin 2s linear infinite;
}

.description {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em;
}

.main-content {
  margin-top: 90px; /* Adjust this value based on your navbar's height */
}
