html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;     
}

body {
  margin-bottom: 60px;
}

/* Waffle Chart Styles */
.waffle-chart-container {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  max-width: 200px;
}

.waffle-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 400px;
  padding: 0;
  font-size: 11px;
  color: #333;
  font-weight: 500;
  line-height: 1;
}

.waffle-scale-item {
  display: flex;
  align-items: center;
  height: 0;
  position: relative;
}

.waffle-scale-item::after {
  content: '';
  position: absolute;
  right: -5px;
  width: 5px;
  height: 1px;
  background-color: #000;
}

.waffle-grid {
  display: grid;
  grid-template-columns: repeat(5, 20px);
  grid-template-rows: repeat(20, 20px);
  gap: 0;
  padding: 0;
  background-color: transparent;
  width: fit-content;
  border: 1px solid #000;
}

.waffle-box {
  width: 20px;
  height: 20px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  transition: opacity 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.waffle-box:nth-child(5n) {
  border-right: none;
}

.waffle-box:nth-child(n+96) {
  border-bottom: none;
}

.waffle-box:hover {
  opacity: 0.8;
}

.waffle-survived {
  background-color: #4285f4;
}

.waffle-dead {
  background-color: #ea4335;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .waffle-chart-container {
    max-width: 180px;
  }
  
  .waffle-grid {
    grid-template-columns: repeat(5, 16px);
    grid-template-rows: repeat(20, 16px);
  }
  
  .waffle-box {
    width: 16px;
    height: 16px;
  }
  
  .waffle-scale {
    height: 320px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .waffle-chart-container {
    max-width: 160px;
  }
  
  .waffle-grid {
    grid-template-columns: repeat(5, 14px);
    grid-template-rows: repeat(20, 14px);
  }
  
  .waffle-box {
    width: 14px;
    height: 14px;
  }
  
  .waffle-scale {
    height: 280px;
    font-size: 9px;
  }
}