/*
2️⃣ css/styles.css
*/
body {
    margin: 0;
    font-family: sans-serif;
    background: #f0f0f0;
    text-align: center;
  }
  /* Overlay background covers full viewport */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
 
  .stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.95rem 5.25rem; /* row/column spacing */
    text-align: center;
    justify-content: center;
  }
  .stats > span { white-space: nowrap; }
   

  /* Landing page content */
  .landing-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 1080px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow-y: auto;
    max-height: 100vh;
  }
 /* Logo styling on landing page */
.landing-content .logo {
  display: block;
  max-width: 200px;
  margin: 0 auto 1rem;
}

 /* Logo styling on landing page */
 .election-header .logo {
  display: block;
  max-width: 200px;
  margin: 0 auto 1rem;
}
 /* Watermark pseudo-element */
.login-form::before,
#vote-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('../assets/logo.jpeg') center/contain no-repeat;
  opacity: 0.05;             /* very faint */
  pointer-events: none;      /* clicks pass through */
  z-index: 0;
}

/* Push actual form/content above the watermark */
.login-form > *,
#vote-container > * {
  position: relative;
  z-index: 1;
}
  .login-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }
  .login-form label {
    display: block;
    margin: 1rem 0;
  }
  .login-form input {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
  }
  .login-form button {
    padding: 0.5rem 1rem;
    margin-top: 1rem;
  }

/* Logo styling on landing page */
.login-form .logo {
  display: block;
  max-width: 200px;
  margin: 0 auto 1rem;
}
  .candidates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    
  }
  .candidate {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    width: 150px;
    overflow:hidden;
    position: relative;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);

  }
  .candidate img {
    display: block;        /* removes any whitespace below the image */
    width: 100%;           /* stretch to the full width of its parent card */
    height: 150px;         /* pick a fixed height that fits your design */
    object-fit: cover;     /* scale & crop the image to cover the box cleanly */
    border-radius: 4px;    /* optional—softens the corners */
  }
   .candidate7 img {

   width: 100%;
    border-radius: 24px;
    width: 150px;
    height: 150px;
    object-fit: cover;    
  }

.candidate1 img {
width: 100%;
 border-radius: 24px;
 width: 150px;
 height: 150px;
 object-fit: cover;    
}
  .candidate2 img {
    width: 100%;
     border-radius: 24px;
     width: 150px;
     height: 150px;
     object-fit: cover;
  }

  .candidate3 img {
    width: 100%;
     border-radius: 24px;
     width: 150px;
     height: 150px;
     object-fit: cover;
  }

  .candidate4 img {
    width: 100%;
     border-radius: 24px;
     width: 150px;
     height: 150px;
     object-fit: cover;
  }
  .candidate5 img {
    width: 100%;
     border-radius: 24px;
     width: 150px;
     height: 150px;
     object-fit: cover;
  }
  .candidate6 img {
    width: 100%;
     border-radius: 24px;
     width: 150px;
     height: 150px;
     object-fit: cover;
  }
  .candidate p {
    font-size: 0.9rem;
    margin: 0.5rem 0;
  }
  .vote-btn {
    background: #0070f3;
    color: #fff;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
  }
  .vote-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
  }
  .count {
    display: block;
    margin-top: 0.5rem;
    font-weight: bold;
  }.election-header {
    font-size: 28px;
    font-weight: bold;
    color: #004080;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .election-description {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 15px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: justify;
  }
  .candidate9 img {
    width: 100%;
     border-radius: 24px;
     width: 300px;
     height: 700px;
     object-fit: scale-down;
  }
  .candidate p {
    font-size: 0.9rem;
    margin: 0.5rem 0;
  } 
  .candidate10 img {
    width: 100%;
     border-radius: 24px;
     width: 200x;
     height: 500px;
     object-fit: scale-down;
  }

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

.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.image-section img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
}

.description-section {
  max-width: 800px;
  text-align: left;
}

.description-section h1 {
  margin-bottom: 20px;
  font-size: 2em;
  color: #222;
}

.person {
  margin-bottom: 20px;
}

.person h2 {
  font-size: 1.2em;
  color: #444;
}

.person p {
  font-size: 1em;
  color: #666;
}
.action-buttons {
    margin: 1rem 0;
  }
  .primary-btn, .secondary-btn, .vote-btn { background:#0070f3; color:#fff; border:none; padding:0.75rem 1rem; margin:0.5rem; border-radius:4px; cursor:pointer; }
  .hidden { display:none !important; }
  .admin-link { position:absolute; top:1rem; right:1rem; text-decoration:none; color:#0070f3; }
  #results-table { width:80%; margin:1rem auto; border-collapse:collapse; }
  #results-table th, #results-table td { border:1px solid #ccc; padding:0.5rem; }
/* Responsive tweaks */
@media (min-width: 1080px) {
  .landing-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .image-section,
  .description-section {
    flex: 1;
    margin: 10px;
  }

  .description-section {
    padding-left: 20px;
  }
}
