/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #f8f9fa, #e8ecef);
  color: #333;
}

/* Layout Container as Full-Width Row */
.main-container {
  display: flex;
  height: 100%;
  width: 100%;
}

.info-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 100%;
  padding: 30px;
  box-sizing: border-box;
}

/* Ensure chart isn't squeezed */
.chart-card canvas {
  width: 100% !important;
  max-width: 100%;
  height: 260px !important;
}

/* Fix card heights and make alignment clean */
.stats-card,
.chart-card {
  width: 100%;
  margin-bottom: 20px;
  padding: 20px;
  box-sizing: border-box;
}


/* Each Card Takes Half the Width */
.fetcher-card,
.stats-card,
.chart-card {
  width: 50%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 0;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.05);
  padding: 40px;
  text-align: center;
  overflow: auto;
}

/* Header Styling */
h1,
h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #0077cc;
}

/* Input Group */
.input-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

#input {
  padding: 12px 16px;
  border: 2px solid #0077cc;
  border-radius: 8px;
  font-size: 1rem;
  flex: 1;
  min-width: 0;
}

#button {
  padding: 12px 20px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

#button:hover {
  background-color: #005fa3;
}

/* Stats Text */
#stats {
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 20px;
}

/* Image Styling */
#image {
  display: none;
  margin-top: 30px;
  width: 300px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 12px rgba(0, 119, 204, 0.3);
}

/* Chart Styling */
.chart-card {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #ffffff;
}

.chart-card canvas {
  width: 100% !important;
  height: 260px !important;
  display: block;
}