/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

body {
    background: #f5f5f5;
    color: #1a1a1a;
}

/* Header */
header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    background-color: white;
    top: 0;
    z-index: 10;
    width: 100%;
}

header .logo img {
    height: 100px;  /* increase the height */
    width: auto;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 15px;
}

header nav ul li a {
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid #800000; /* Maroon border */
    background-color: transparent; /* transparent by default */
    color: white; /* white text over slideshow */
    transition: all 0.3s ease;
}

/* Inactive buttons */
header nav ul li a.inactive {
    background-color: white;
    color: #800000;
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;           /* Width of the border */
    height: 4px;           /* Thickness */
    background-color: #800000;
    border-radius: 2px;
}

/* Active page button */
header nav ul li a.active {
    background-color: #800000; /* maroon fill */
    color: white;
}

/* Hover for inactive buttons */
header nav ul li a:hover {
    background-color: #800000;
    color: white;
    transform: scale(1.05);
}

/* Main Page */
.main {
  margin-top: 50px; /* space for fixed header */
  margin-bottom: 50px;
  padding: 80px 20px 150px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #222;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: visible;
  font-smooth: antialiased;
  animation: fadeInUp 1s ease forwards;
}

.main h5 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e1e1e;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  user-select: none;
}

.main p {
  font-size: 1.125rem;
  color: #555;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.center_image {
  max-width: 70%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.center_image:hover,
.center_image:focus {
  transform: scale(1.05);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
  outline: none;
}

/* Subtle fadeInUp animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Stats */
.statistic_container {
  background-color: #f9fafb;
  padding: 80px 20px;
  text-align: center;
  color: #111827;
  position: relative;
  z-index: 1;
}

.statistic_container h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: #4b5563;
}

.statistic_container .box {
  display: inline-block;
  background: white;
  padding: 32px 48px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  min-width: 200px;
}

.statistic_container .box h5 {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 12px;
  font-weight: 500;
}

.statistic_container .box h4 {
  font-size: 2.25rem;
  color: #111827;
  font-weight: 700;
}


/* Footer */
footer {
    background-color: #660000;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin: 0;
}


/* Login Page */
#login-page {
    display: flex;
    height: calc(100vh - 15vh); /* full viewport minus header */
}

.login-form-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* fill the available height */
}

.login-form {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 350px;
}

.login-form h2 {
    color: #800000;
    margin-bottom: 20px;
    text-align: center;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background-color: #800000;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.login-form button:hover {
    background-color: #660000;
}

.login-image {
    flex: 1;
    background: url('/static/media/login_images/prizegiving.jpg') no-repeat center center;
    background-size: contain; /* zoom and crop to fill */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: auto;
}

/* Gradient overlay for softer look */
.login-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Mobile hide */
@media (max-width: 768px) {
    .login-image {
        display: none;
    }
}

/* Register Page */
#register-page {
    min-height: 100vh;
    padding: 80px 50px;
}

/* Responsive */
@media(max-width: 900px) {
    header nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .feature-section {
        flex-direction: column !important;
    }
    #login-page {
        flex-direction: column;
    }
    .login-image {
        height: 250px;
    }
}

/* additional breakpoints for smaller phones */
@media (max-width: 600px) {
    header {
        padding: 8px 20px;
    }
    header .logo img {
        height: 70px;
    }
    .main {
        padding: 40px 12px 120px;
    }
    .main h5 {
        font-size: 2rem;
    }
    .statistic_container {
        padding: 60px 12px;
    }
}
