main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 80vw;
  margin: 0 auto;
  /* padding: 20px 0; */
  padding-bottom: 5vh;
  min-height: calc(100vh - 5vh);
}
body{
  background-color: rgb(235, 235, 235);
}

.main-home{
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  /* gap:2px; */
  height: 900px;
}



/* Score & Results Section ********************************************************/

#scores .score-list {
  overflow-y: auto;
  flex: 1; /* Fill the remaining height below the h2 */
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

#scores p{
  background-color: #cccfcf;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  font-size: .8em;
  color: #000000;
  text-align: center;
}

#scores p strong{
  display:block;
  font-size: .95em;
  color: #ff0000;
  margin-bottom: 3px;
}

#scores{
  background-color: rgb(245, 245, 245);
  width: 20%;
  /* height: 100vh; */
  display:flex;
  flex-direction: column;       /* lay out children vertically */
  align-items: center;          /* center them horizontally */
  justify-content: flex-start;  /* align children to the top */
  padding: 10px;
  box-sizing: border-box;
}

.last-updated {
  background-color: transparent !important;
  padding: 0 !important;
  font-size: 0.7em !important;
  font-weight: bold;
  color: black;
  padding: 2px !important;
  text-align: center;
}

/* strong {
  font-size: 1.5em; 
} */



/* Whats New Section ********************************************************/

#home-news{
  background-color: rgb(245, 245, 245);
  width: 60%;
  /* height: 100vh; */
  display:flex;
  flex-direction: column;       /* lay out children vertically */
  /* align-items: center;          center them horizontally */
  justify-content: flex-start;  /* align children to the top */
  padding: 10px;
  box-sizing: border-box;
  border-left: 2px solid #ccc;
  border-right: 2px solid #ccc;
}

.article-card{
  display: flex;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.card-img{
  margin-left: 20px; /* or any distance you want */
  flex-shrink: 0; /* prevent shrinking if needed */
  width: 30%; /* fixed width so image size is predictable */
  height: auto;
  /* border: 2px solid black; */
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.article-content {
  margin-left: 70px; /* start further from image */
  font-size: 1.25em;
}

.article-content h3 {
  font-weight: bold;
}

.article-content h3 a {
  text-decoration: none;
  color: #000; /* or a color of your choice */
}

.article-content h3 a:hover {
  opacity: 0.6;
}

.article-date {
  font-size: 0.9rem;
  color: rgb(102, 102, 102);
  margin-top: 4px;
}

.article-snippet {
  font-size: .8em;
  color: rgb(102, 102, 102);
  margin-top: 10px;
  line-height: 1.4;
}

.article-separator {
  width: 100%;
  border: none;
  border-top: 1px solid #ccc;
  margin:  0;
}

.article-separator-mobile-only{
  display: none;
}

.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 0 15px;
    padding: 8px 12px;
    background-color: #ddd;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.pagination a:hover {
    background-color: #bbb;
}


#main-div-titles {
  font-size: 1.8em;
  margin-bottom: 15px;
  color:#000000;
  border-bottom: 2px solid #000000;
  padding-bottom: 5px;
  /* width: 100%; */
  text-align: center;
  font-family: "Permanent Marker", cursive;
  font-weight: 400;
  font-style: normal;
}

/* Upcoming Events Section ********************************************************/

#upcoming-events{
  background-color: rgb(245, 245, 245);
  width: 20%;
  /* height: 100vh; */
  display:flex;
  flex-direction: column;       /* lay out children vertically */
  align-items: center;          /* center them horizontally */
  justify-content: flex-start;  /* align children to the top */
  padding: 10px;
  box-sizing: border-box;
}

.event-entry{
  margin-bottom: 25px;
  text-align: center;
}

.event-name{
  font-weight: bold;
  margin: 0;
  font-size: 1em;
}

.event-datetime {
  font-size: 0.9em;
  color: #333;
  margin: 0;
}


/* Media Query for screens smaller than 650px */
@media screen and (max-width: 650px) {
    
  .main-home {
    flex-direction: column;
    height: auto; /* override the fixed height for mobile */
  }

  #home-news, #scores, #upcoming-events {
    width: 100%;
    height: auto;
  }
  
  #home-news{
    border-left: none;
    border-right: none;
  }

  #scores p {
    font-size: .80em;
  }

  #scores h2 {
    font-size: 1.5em;
  }

  #scores .score-list {
    max-height: 400px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-separator-mobile-only{
    display:block;
    width: 100%;
    border: none;
    border-top: 1px solid #ccc;
    margin-bottom:  3px;
  }
    
  #main-div-titles {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .card-img{
    margin-left: 20px; /* or any distance you want */
    flex-shrink: 0; /* prevent shrinking if needed */
    width: 35%; /* fixed width so image size is predictable */
    height: auto;
    /* border: 2px solid black; */
  }

  .article-content {
    margin-left: 20px;     /* remove left margin for narrow screens */
  }
  .article-content h3 {
    font-size: .6rem;  /* smaller heading */
  }
  .article-content .article-date {
    font-size: 0.55rem; /* smaller date */
  }
  .article-snippet{
    font-size: .50rem;
  }
}

@media screen and (min-width: 651px) and (max-width: 1024px) {
  .main-home {
    flex-direction: column;
    height: auto;
  }

  #scores,
  #home-news,
  #upcoming-events {
    width: 100%;
    margin-bottom: 20px;
  }

  #home-news{
    border-left: none;
    border-right: none;
  }

  #scores .score-list {
    max-height: 600px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .card-img {
    width: 30%;
  }

  .article-content {
    font-size: 0.9rem;  /* smaller base font */
    margin-left: 20px;     /* remove left margin for narrow screens */
  }
  .article-content h3 {
    font-size: 1.1rem;  /* smaller heading */
  }
  .article-content .article-date {
    font-size: 0.75rem; /* smaller date */
  }
  .article-content .article-snippet {
    font-size: 0.7rem;  /* smaller snippet */
  }
  
}