/***********************************
  Layout (Block, Flex, Spacing, etc.)
***********************************/

/* 1) Base Layout: margins, padding, sizing */
html {
  margin: 0;
  padding: 0;
}

body{
  margin: 0;
  padding: 0;
  /* overflow-x: hidden; */
}

/* 2) Header/Layout */
body > header {
  width: 100%;
  max-height: 200px; /* Structural constraint */
}

/* 3) Logo Layout */
img#logo {
  display: block;
  margin: 0 auto;
  max-height: 200px;
  max-width: 100%;
  height: auto;
  width: auto;
}

/* 4) Title Layout */
div#title {
  display: block;
  height: 30px;
  padding: 0;
  margin: 0;
}

/* 5) Navigation Layout */
nav {
  text-align: center; /* Centers nav items horizontally */
}

nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  /* white-space: nowrap;   <— if you want them never to wrap, re-enable here */
}

nav ul li {
  display: inline-block;
  height: 30px;
  line-height: 30px;
  vertical-align: middle;
  margin: 0;
  padding: 0 10px;
  transition: all 0.3s ease; /* Structural? Could also remain in theme.css, but transitions can be a style or layout call. */
}

/* 6) Container & Main Layout */
.container {
  display: flex;
  flex-direction: row;
  margin: 20px;
}

.sidebar {
  width: 25%;
  padding: 15px;
  border-radius: 8px;
}

.sidebar h3 {
  padding: 5px;
}

/* Remove bullets from all lists */
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* TEAM LINKS SECTION */
/* Space evenly between official team links */
.sidebar .team-links ul {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Even spacing between team links */
}

/* UPCOMING GAMES SECTION */
/* Space Between Each List Item */
.sidebar .upcoming-games li {
  padding: 0 10px;
  margin-bottom: 15px; /* Adds space between each game */
  border-radius: 5px;
}

/* Background Colors for Matches */
/* Common styling for all matches */
.sidebar .upcoming-games .match {
  padding: 5px;
  border-radius: 4px;
}

/* Styling for Time and Venue */
.sidebar .upcoming-games .game-time {
  display: block;
}

.sidebar .upcoming-games .game-venue {
  display: block;
}

/* MAIN SECTION */
main {
  width: 75%;
  padding: 20px;
}

main article {
  overflow: hidden;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  opacity: 0;           /* Animation/transition might be “style” but we can keep or move. */
  transform: translateY(20px);
  animation: fadeIn 0.5s ease forwards; /* If you consider animations more “style,” put in theme.css */
}

main img {
  width: 20%;
  float: right;
  margin-left: 10px;
}
main h2 {
  padding: 10px 10px;
  margin-bottom: 10px;
}

/* Article Headers (h3) - Larger with a Colored Bottom Border */
main h3 {
  margin-bottom: 10px;
  padding-bottom: 5px;
}

main p {
  overflow: hidden;
  padding: 10px;
}

/* Hyperlink Styling - No Underline Until Hover */
main a {
  display: inline-block;
  margin-top: 5px;
}

/* MEDIA STYLIZING */
.responsive-media {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px;
  transition: transform 0.3s ease;
}

.responsive-media:hover {
  transform: scale(1.02);
}

/* 7) Footer Layout */
footer {
  position: relative;
  bottom: 0;
  text-align: center;
  margin-top: 20px;
}

footer p {
  display: block;
  padding: 10px;
  margin: 0;
}

/* 8) Responsive Layout */
@media (max-width: 768px) {
  nav ul li {
    display: block;
    padding: 5px;
  }
  .container {
    flex-direction: column;
  }
  .sidebar{
    display: none;
  }
  main {
    width: 100%;
    padding: 10px;
  }
}

@media (min-width: 501px) {
  .sidebar {
    min-width: 250px;
  }
  main article {
    padding: 20px;
  }
}

/* 9) Keyframe (Alternatively, you can put this in theme.css if you treat animation as styling) */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
