body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}

.container {
  flex: 1;
  padding: 1rem 0;
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: .5em 0;
  width: 100%;
}

.alert.alert-info {
  display: flex;
  justify-content: center; 
  align-items: center;
  background: transparent;
  border: none;
  color: inherit;             
  transition: color 0.3s;
  font-weight: bold;
  padding: 0;
  position: relative;
}

#index, #pastFiveMinute {
  width: 100%;
  min-height: 300px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: .25rem;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.card {
  background-color: #fff;
  border: 1px solid #dee2e6;
  color: #000;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.card .card-header {
  font-weight: bold;
}

.card .list-group-item {
  background-color: inherit;
  color: inherit;
  border-left: none;
  border-right: none;
  border-top: 1px solid #dee2e6;
}

.VPSwitch {
  position: absolute;
  right: 1rem;              
  top: 50%;             
  transform: translateY(-50%);
  width: 40px;
  height: 22px;
  border-radius: 11px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}

.VPSwitch:hover { border-color: #007bff; }

.check {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: none;
}


.VPSwitch::before, .VPSwitch::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-size: contain;
  background-repeat: no-repeat;
}

.VPSwitch::before {
  left: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E");
}

.VPSwitch::after {
  right: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z'/%3E%3C/svg%3E");
}

body.dark {
  background-color: #222;
  color: #eee;
}

body.dark #index,
body.dark #pastFiveMinute {
  background: #333;
  border-color: #555;
  color: #eee;
}

body.dark .card {
  background-color: #333;
  border-color: #555;
  color: #eee;
}

body.dark .card .list-group-item {
  border-top: 1px solid #555;
}
