* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #e6f7ff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

/* header: stronger contrast so logo stands out */
header {
  background: linear-gradient(90deg, #003366 0%, #002744 100%);
  color: white;
  padding: 20px 0;
  width: 100%;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
  position: relative;
  z-index: 10;
}

header h1 {
  font-size: 2.2rem;
  margin: 0;
}

header h1 a {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* logo image pill so it keeps high contrast regardless of page background */
/* increased size for stronger emphasis */
header h1 a img {
   background: #ffffff;
  padding:1px;
  border-radius: 6px;   /* reduced radius */
  width: 110px;         /* increased from 92px → 110px */
  height: auto;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  border: 1px solid rgba(0,0,0,0.06);
  object-fit: cover;
}

/* Navbar: slightly darker + semi-opaque so it reads over images on most pages */
.navbar {
  display: flex;
  justify-content: center;
  background-color: rgba(0,80,158,0.92); /* stronger opacity for legibility */
  width: 100%;
  padding: 10px 0;
  position: relative;
  z-index: 11;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* navbar link contrast + subtle text-shadow for visibility on images */
.navbar a {
  color: #ffffff;
  text-decoration: none;
  padding: 12px 16px;
  font-size: 1rem;
  margin: 0 12px;
  transition: background-color 0.3s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* hover applies highlight to individual link only */
.navbar a:hover {
  background-color: rgba(0,61,128,0.95);
  border-radius: 5px;
  text-decoration: underline;
  font-weight: bold;
}

/* active nav style (individual link) */
.nav-active {
  background-color: rgba(0,43,85,0.98) !important;
  border-radius: 5px;
  padding: 10px 14px;
}

.main-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  padding: 28px 26px;
  max-width: 820px;
  width: 100%;
  text-align: center;
}

.logo img {
  width: 110px;
  height: 110px;
  margin-bottom: 16px;
}

.main-container h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.main-container p {
  font-size: 0.98rem;
  color: #444;
  margin-bottom: 12px;
}

.btn-start {
  padding: 12px 24px;
  background-color: #4CAF50;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-start:hover {
  background-color: #3e8e41;
}

/* styled register-like button on index */
.btn-start-like {
  padding: 10px 14px;
  background: #2ecc71;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-start-like:hover { opacity: 0.95; }

/* helpers */
#fa_toast { transition: opacity .25s ease; opacity: 0; }
.status-present { color: #8ff0a1; font-weight:600; }
.status-failed { color: #ff9a9a; font-weight:600; }

@media (max-width: 768px) {
  .main-container { padding: 18px 14px; }
  .navbar a { font-size: 0.9rem; padding: 8px 10px; }
}
