/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ===== Header ===== */
header {
  background-color: #ffffff;
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.home-button {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.home-button:hover {
  background: #0056b3;
}

/* ===== Layout ===== */
main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1rem;
}

/* Left column: gifs stacked vertically */
.gif-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.gif-box {
  width: 180px;
  text-align: center;
}
.gif-box img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Chart containers: square */
.chart-container {
  width: 320px;
  height: 320px;
  text-align: center;
}
.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}
.chart-container h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

/* ===== Responsive (stack vertically on small screens) ===== */
@media (max-width: 900px) {
  main {
    flex-direction: column;
    align-items: center;
  }
  .chart-container {
    width: 90%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}
