* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  background: #f7f9fc;
  min-height: 100vh;
  margin: 0;
}
input,
select {
  background-color: white;
  color: green;
  border: 2px solid green;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 1rem;
  transition: all 0.25s ease;
  outline: none;
}

input:hover,
select:hover {
  background-color: #f0fff0; /* subtle green-tinted white */
  border-color: #228b22; /* darker green border */
  cursor: pointer;
}
input:focus,
select:focus {
  background-color: white;
  border-color: #006400; /* deep green */
  box-shadow: 0 0 6px rgba(0, 128, 0, 0.4); /* glowing green outline */
}
input:active,
select:active {
  background-color: #e6ffe6; /* light green pressed effect */
  border-color: #004d00;
  transform: scale(0.98); /* slight press-down animation */
}
.navbar {
  position: fixed; /* Makes the navbar fixed */
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f9f9f9;
  padding: 10px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  height: 70px;
}
.nav-list {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
}

.nav-list li {
  margin: 0 15px;
}

.nav-list a {
  display: block;
  padding: 10px 20px;
  color: #0c492b;
  font-size: 16px;
  font-weight: bold;
  position: relative;
  text-decoration: none;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: orange;
  transition: width 0.3s ease;
}

.nav-list a:hover::after {
  width: 100%;
}

@media (max-width: 899px) {
  .nav-list {
    display: none; /* Hide the nav links initially on smaller screens */
    flex-direction: column;
    background-color: #f3f7f4;
    position: absolute;
    top: 60px;
    right: 10px;
    width: 200px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
  }
  .nav-list a {
    font-size: 15px;
  }
  /* Show nav list when toggle is active */
  .nav-list.active {
    display: flex;
  }

  /* Hamburger menu button */
  .menu-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    color: #0c492b;
    cursor: pointer;
  }
}

/* Hide the hamburger button on larger screens */
@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}
/* Logo and text container */
.logo-text-container {
  display: flex;
  align-items: center;
}

/* Logo styling */
.logo-container {
  display: flex;
  align-items: center;
  margin-right: 15px;
}

.logo {
  width: 60px;
  height: 60px;
}

/* Text next to the logo */
.brand-name {
  font-size: 24px;
  font-weight: bold;
  color: #0c492b;
}
.search-button {
  background-color: white;
  color: green;
  border: 2px solid green;
  border-radius: 0 6px 6px 0; /* rounded only on the right side */
  padding: 8px 8px;
  font-size: 1rem;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-block;
}
.search-button i {
  margin-left: -2px;
}
.search-button:hover {
  background-color: #f0fff0; /* subtle green-tinted white */
  border-color: #228b22;
}

.search-button:focus {
  outline: none;
  border-color: #006400;
  box-shadow: 0 0 6px rgba(0, 128, 0, 0.4);
}

.search-button:active {
  background-color: #e6ffe6;
  border-color: #004d00;
  transform: scale(0.97);
}

.container {
  max-width: 900px;
  width: 95%;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 50px;
}
.section-heading {
  margin-top: 100px;
  text-align: center;
}
.section-heading h2 {
  font-size: 36px;
  color: #0c492b;
  margin-bottom: 5px;
}
@media (max-width: 550px) {
  .section-heading h2 {
    font-size: 28px;
  }
  .section-heading p {
    font-size: 12px;
  }
}
@media (max-width: 550px) {
  .section-heading h2 {
    font-size: 20px;
  }
  .section-heading p {
    font-size: 9px;
  }
}
.result-table {
  display: flex;
  align-items: center;
  justify-content: center;
}
.tableControls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 2fr;
  margin: 20px auto;
  column-gap: 10px;
}
@media (max-width: 640px) {
  .tableControls {
    display: grid;
    grid-template-columns: 1fr; /* single column */
    grid-template-rows: auto; /* let rows size naturally */
    row-gap: 10px;
  }

  .tableControls > :nth-child(1) {
    order: 1;
  } /* row 1 col 1 */
  .tableControls > :nth-child(4) {
    order: 2;
  } /* row 2 col 1 */

  .tableControls > :nth-child(2) {
    order: 3;
  } /* row 1 col 2 */
  .tableControls > :nth-child(5) {
    order: 4;
  } /* row 2 col 2 */

  .tableControls > :nth-child(3) {
    order: 5;
  } /* row 1 col 3 */
  .tableControls > :nth-child(6) {
    order: 6;
  } /* row 2 col 3 */
}

.eventList {
  justify-self: flex-start;
  width: 90%;
  height: 100%;
  font-size: 1em;
}
.year {
  width: 90%;
}
.searchByName {
  width: 90%;
  height: 100%;
}
.searchByName input {
  width: 85%;
  height: 100%;
  font-size: 1em;
  background-color: white;
  color: darkgreen;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.searchByName button {
  width: 15%;
  height: 100%;
  font-size: 1em;
  border-radius: 0;
  border-width: 1px;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.year {
  font-size: 1em;
}
h1 {
  text-align: center;
  color: #222;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

th {
  background: #f3f4f6;
  font-weight: 600;
}

tr:hover {
  background: #f9fafb;
}

.gold {
  background: linear-gradient(135deg, #ffd700, #ffc107);
  font-weight: bold;
}
.silver {
  background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
  font-weight: bold;
}
.bronze {
  background: linear-gradient(135deg, #cd7f32, #d2691e);
  font-weight: bold;
  color: #fff;
}
hr {
  width: 10%;
  height: 4px;
  background-color: orange;
  border: 0;
  margin: 20px auto 5px auto;
  color: orange;
}
.select-wrapper {
  width: 100%;
  display: flex;
  justify-content: end;
}
.select-wrapper select {
  width: 30%;
  text-align: center;
  position: relative;
}
.select-wrapper select:hover {
  border-color: #0c492b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.select-wrapper select:focus {
  outline: none;
  border-color: #0c492b;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.select-wrapper select option {
  color: #095c22;
  background-color: #fff;
}
