* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  min-height: 100vh;
  width: 100%;
  background-color: #0094FF;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.4;
  color: white;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

#app {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  flex: 1 0 auto;
  background: #0094FF;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header {
  margin-bottom: 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 10px;
}

h1 {
  color: white;
  font-size: 1.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-icon {
  width: 36px;
  height: 36px;
  margin-right: 8px;
}

h2 {
  color: white;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
}

h3 {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.group-container {
  margin-bottom: 20px;
}

.group-header {
  margin-bottom: 10px;
  color: white;
  font-size: 1.1rem;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
}

.group-header i {
  margin-right: 8px;
}

.main-display {
  background-color: #0070C0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
  text-align: center;
}

.formula {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  color: white;
  margin-top: 4px;
}

.time-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.time-item {
  padding: 10px;
  background-color: #0082DA; /* Blue tone between #0070C0 and #0094FF */
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.time-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
}

.time-display {
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  padding: 4px 0;
  text-align: center;
}

.large-time {
  font-size: 1.8rem;
  color: white;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}


.github-link {
  text-align: center;
  margin-top: -10px;
  margin-bottom: 15px;
}

.github-link a {
  color: #333;
  text-decoration: none;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

.github-link a:hover {
  color: #0366d6; /* GitHub blue color */
}

.github-link .fa-github {
  font-size: 1.2em;
  vertical-align: middle;
  margin-right: 5px;
}

/* Update to footer styles */
footer {
  margin-top: 20px;
  padding: 10px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.3);  /* Match other separator lines */
}

.footer-content a {
  color: white;  /* Change to white to match the app theme */
  text-decoration: none;
  font-size: 0.9em;
  transition: opacity 0.3s ease;
}

.footer-content a:hover {
  opacity: 0.8;  /* Subtle hover effect for white text */
}

.footer-content .fa-github {
  font-size: 1.2em;
  vertical-align: middle;
  margin-right: 5px;
}

/* Responsive layout */
@media (max-width: 500px) {
  body {
    padding: 0;
  }
  
  #app {
    border-radius: 0;
    box-shadow: none;
    padding: 12px;
    min-height: 100vh;
  }
  
  .time-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .time-item:nth-child(3) {
    grid-column: span 2;
  }
  
  .time-display {
    font-size: 1.1rem;
  }
  
  .large-time {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 0.85rem;
  }

  .github-text {
    display: none; /* Optionally hide text on very small screens */
  }

}