/* Base Layout */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Times New Roman", serif;
  background-color: #a4a4a4;
  color: black;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #282b28;
  color: white;
  padding: 8px 20px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
}

.contact a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.contact a:hover {
  text-decoration: underline;
}

/* Navigation */
nav {
  background-color: #282b28;
  padding: 10px 0;
}

nav p {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 10px;
  transition: all 0.3s ease;
}

nav a:hover {
  color: gold;
}

.banner {
  width: 100%;
  min-height: 160px;
  background-image: url("../img/got.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 2px 2px 5px black;
  padding: 20px;
  text-align: center;
}

.banner h1 {
  font-size: 32px;
  margin-bottom: 5px;
}

.banner p {
  font-size: 18px;
}

/* Main Content */
.mainbackground {
  background-image: url("../img/goof.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  flex: 1;
}

main {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Club Boxes */
.club {
  position: relative;
  width: 16%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 10px;
}

.club img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.3s ease-in-out;
}

.club:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}

.club-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  opacity: 0;
  transition: 0.3s ease-in-out;
}

.club:hover .club-text {
  opacity: 1;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #222;
  color: white;
  width: 100%;
}

footer a {
  color: #ffcc00;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .club {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .club {
    width: 90%;
  }

  nav p {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    display: block;
    padding: 5px;
  }

  .banner h1 {
    font-size: 24px;
  }

  .banner p {
    font-size: 14px;
  }
}

/* --- Media Queries --- */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  main {
    justify-content: space-around;
  }

  .desktop-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  header {
    background: linear-gradient(90deg, #1e1e1e, #3c3c3c);
  }

  nav a:hover {
    background-color: #444;
    color: gold;
  }
}

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
  .club {
    width: 12%;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  nav,
  footer {
    display: none;
  }

  .club img {
    border: 1px solid black;
  }
}

/* --- Breakpoints Used ---
List the three breakpoints you chose and explain why.
   1. 768px – Tablet
   2. 1024px – Desktop
   3. 1440px – Large desktop
*/
