body {
  font-family: "Google Sans", Arial, sans-serif;
  background: #f8f9fa;
  color: #202124;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  background-color: #1a73e8;
  color: white;
  padding: 1rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav {
  margin-top: 1rem;
}

nav button {
  background: white;
  border: none;
  color: #1a73e8;
  padding: 0.5rem 1rem;
  margin: 0 0.3rem;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 500;
  transition: 0.3s;
}

nav button.active {
  background: #e8f0fe;
}

.tab-content {
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 2rem;

  /* Replace display:none with */
  visibility: hidden;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tab-content.active {
  visibility: visible;
  position: relative;
  opacity: 1;
}


.hidden {
  display: none !important;
}

.summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.summary-card {
  flex: 1;
  background: #e8f0fe;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.summary-card h3 {
  margin: 0.2rem 0;
  font-size: 1.1rem;
}

.summary-card p {
  font-weight: bold;
  font-size: 1.2rem;
}

.chart-container {
  width: 100%;
  height: 450px;
  max-height: 500px;
  position: relative;
}
canvas {
  width: 100% !important;
  height: 100% !important;
}

footer {
  background: #f1f3f4;
  width: 100%;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  font-size: 0.9rem;
  color: #555;
}

.country-selection {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  text-align: center;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.country-card {
  width: 220px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.country-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.country-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.country-card h3 {
  margin: 0.5rem 0 0.2rem 0;
  font-size: 1.2rem;
}

.country-card p {
  font-size: 0.9rem;
  color: #555;
}

.home-button {
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  margin-left: 1rem;
  transition: background 0.2s, transform 0.2s;
}

.home-button:hover {
  background-color: #1665c1;
  transform: translateY(-2px);
}
