@import url("https://fonts.googleapis.com/css?family=Montserrat&display=swap");

/* Colors
 * fresh #dd5522
 * link #f4a460
 * idk #cd853f
 * important #ffd800
 * schedule hover #fff0cc
 * schedule normal #fadfa4
 * details #fffaf0
 * background1 #ecf5ff
 * background2 #ffffde
 * blue #191970
 * blue2 #00bfff
 * stuf #fafad2
 * linky #113377
 */

:root {
  font-family: "Montserrat", sans-serif;
  font-size: 14pt;
  line-height: 1.5em;
  word-wrap: break-word;
  hyphens: auto;
  background-color: #ffffde;
}

body {
  max-width: 42em;
  margin: 0 auto;
  padding: 0.7em;
}

h1 {
  color: #900090;
  font-size: 20pt;
}
h2 {
  color: #000088;
  font-size: 16pt;
}
h3,
h4,
h5 {
  color: #000088;
  font-size: 14pt;
}

h5 {
  color: black;
  font-size: 14pt;
  margin: 12px 0px 12px 0px;
}

input,
textarea {
  background-color: white;
  border-style: thin groove;
}

pre,
tt,
code {
  font-family: "Courier New", Courier, monospace;
}

a, a:visited {
  color: #000088;
  text-decoration: none;
}

.schedule .item .header {
  display: flex;
  cursor: pointer;
  width: auto;
  padding: 5px 10px;
  margin: 0px;
  background-color: #fadfa4;
  align-items: left;
  text-align: left;
}

@media screen and (max-width: 800px) {
  .schedule .item .header {
    flex-direction: column;
  }
  .schedule .item .header .note {
    margin-left: 0 !important;
  }
  .schedule .item .header .date {
    margin-left: 0 !important;
  }
}

.schedule .item .header h4 {
  margin: 0;
}

.schedule .item .header .title {
  font-weight: bold;
}

.schedule .item .header .note {
  margin-left: 0.3em;
}

.schedule .item .header .date {
  margin-left: auto;
  color: #666666;
}

.details,
.details_embedded {
  background-color: #fffaf0;
  padding: 5px;
}

.details p {
  margin: 10px 5px;
}

.details_embedded p {
  margin: 10px 5px;
}

.menu {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  background: #fadfa4;
  align-items: left;
  text-align: left;
}

@media screen and (max-width: 530px) {
  .menu {
    flex-direction: column;
  }
}

.menu a {
  display: block;
  color: 000088;
  padding: 8px 10px;
  text-decoration: none;
}

.results {
  width: 100%; 
  margin: 20px 0; 
  border-collapse: collapse;
  border: 1px solid #ccc; /* Light gray border */
}

.results th, .results td {
  padding: 5px 10px;
  border: 1px solid #ddd; /* Lighter gray for cell borders */
}

.results th {
  /*background-color: #f9f4e8; /* Light beige, similar to the website's theme */
  text-transform: uppercase;
  font-weight: 600;
  color: #000088; /* Slightly darker gray for headers */
}

.results tr:nth-child(even) {
  background-color: #fdfcf8; /* Alternate beige-white color for rows for better readability */
}

/* Center-align contents of the first two columns */
.results td:first-child, .results td:nth-child(2), .results th:first-child, .results th:nth-child(2) {
  text-align: center;
}

@media (max-width: 768px) { /* Adjust breakpoint as needed */
  .results {
    border: none;
  }

  /* Hide original headers */
  .results th {
    display: none; /* Hide original table headers on mobile */
  }

  /* Convert table rows to block for stacking */
  .results tr {
    display: block;
    border: 1px solid #ddd;
    padding: 5px;
  }

  .results tr:nth-child(1) {
    border: none;
    display: none;
  }

  .results tr:nth-child(1) {
    border: none;
  }

  /* Display the table data cells as blocks */
  .results td {
    display: block;
    border: none; /* Remove border for cleaner appearance */
    padding: 0px;
  }

  /* Reset alternate color for readability in single-column format */
  .results tr:nth-child(odd) {
    background-color: #fdfcf8;
  }
  .results tr:nth-child(even) {
    background-color: #fffaf0;
  }

  /* Create a header from the data-mobile-header attribute */
  .results td[data-mobile-header]::before {
    content: attr(data-mobile-header);
    font-weight: bold;
    color: #000088;
    display: block;
    margin-bottom: 10px; /* Space between the header and members' names */
  }

  /* Hide original content of 1st and 2nd columns */
  .results td:nth-child(1), .results td:nth-child(2) {
    display: none;
  }
}



.contest-images {
  width: 100%;
}

.contest-images td {
  width: 33%;
  text-align: center;
  vertical-align: middle;
}

.thumbnail {
  width: 100%;
  cursor: pointer;
}

@media (max-width: 512px) { /* Adjust the breakpoint as needed */
  .contest-images {
    border: none;
  }

  .contest-images td {
    /* Display the table data cells as blocks for stacking */
    display: block;
    width: 100%; /* Take full width */
    border: none; /* Optionally remove border for cleaner appearance */
  }

  .contest-images tr {
    /* Convert table rows to block for stacking */
    display: block;
    border: none; /* Optionally remove border for cleaner appearance */
  }

  .thumbnail {
    max-width: 100%; /* Ensure images don't exceed their container's width */
  }
}


/* Style the modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
