*,
*:before,
*:after {
  box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #d1a875;
  margin-left: 10%;
  margin-right: 10%;
  background-image: url(../images/woodpanel.jpg);
  background-attachment: fixed;
  font-size: clamp(0.9rem, 1.207vw + 0.614rem, 1.2rem);
  line-height: 1.7rem;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
  text-align: left;
}

h1 {
  color: #800000;
  font-size: clamp(1.5rem, 1.143rem + 0.952vw, 2rem);
  font-weight: 700;
}

h2 {
  color: #800000;
  font-size: clamp(1.2rem, 0.986rem + 0.571vw, 1.5rem);
  font-weight: 600;
}

h3 {
  color: #800000;
  font-size: clamp(1.1rem, 0.957rem + 0.381vw, 1.3rem);
  font-weight: 500;
}

h4 {
  font-style: italic;
  font-weight: 500;
}

hr {
  height: 4px;
  border-top: 1px solid black;
  margin: 0;
  padding: 0;
}

img {
  display: inline-block;
  max-inline-size: 100%;
}

/*Style the header*/
.head__container {
  display: flex;
  justify-content: space-evenly;
  /* align horizontal */
  align-items: center;
  /* align vertical */
  background-color: rgba(217, 217, 217, 0.8);
  box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.4);
}

/*Style the header logo*/
.head__text {
  text-align: center;
}

/*Style the header image*/
.head__image {
  width: 10%;
  height: auto;
}

/*Style the members notice board*/
.members-header {
  text-align: center;
  padding: 15px;
  background: #8b4513;
  color: white;
}

.members-img {
  padding-top: 5px;
  width: 100%;
  max-width: 100px;
  object-fit: cover;
  vertical-align: middle;
}

.members-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 5rem;
}

.members-intro {
  flex: 1;
}

.members-container {
  padding: 5px;
}

/*Style the footer*/
footer {
  display: inline-block;
  width: 100%;
  padding: 5px 30px 5px 30px;
  background-color: rgba(217, 217, 217, 0.9);
  box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.4);
  font-size: clamp(0.8rem, 0.657rem + 0.381vw, 1rem);
  text-align: center;
}

/*Style to center images*/
.center {
  display: block;
  margin: 0 auto;
}

/*Style the links inside the pill navigation menu*/
.pill-nav a {
  height: 45px;
  width: 120px;
  line-height: 45px;
  font-size: clamp(0.7rem, 1.207vw + 0.614rem, 1rem);
  color: maroon;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 15px 2px;
  box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.4);
}

/*Add a color to the active/current link*/
.pill-nav a.active {
  background-color: grey;
  color: white;
}

/*Add a color to the inactive links*/
.pill-nav a.inactive {
  background-color: #d1a875;
  color: maroon;
}

/*Change the color of links on mouse-over*/
.pill-nav a:hover {
  background-color: #ddd;
  color: maroon;
}

/*Style url links*/
ul {
  list-style-type: none;
  color: white;
  padding: 0;
  line-height: 1.4;
  margin: 0;
}

/*Style lists*/
ol.a {
  list-style-type: none;
  text-align: left;
}

ol.b {
  list-style-type: square;
  text-align: left;
}

ol.c {
  list-style-type: upper-roman;
  text-align: left;
}

/*Style the page hyperlinks*/
a:link {
  background-color: transparent;
  padding: 0;
  font-weight: 450;
  font-style: italic;
}

a:hover {
  color: brown;
  background: transparent;
}

/*Style the go to top button*/
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 15px;
  z-index: 99;
  font-size: 0.7rem;
  border: none;
  outline: none;
  background-color: brown;
  color: white;
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

#myBtn:hover {
  background-color: #555;
}

/*Style the sponsor logos*/
.brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1rem;
}

.brands__item {
  border-radius: 5px;
  box-shadow: 5px 5px 12px rgba(0, 0, 0, 0.7);
}

.brands__item img {
  /*Make sure max-width is added*/
  object-fit: contain;
  max-width: 200px;
  height: 140px;
}

.brands__item a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/*Style the index page notice box*/
.callout-header {
  padding: 10px 15px;
  text-align: center;
  background: green;
  font-size: 20px;
  color: #ccc;
}

.callout-container {
  text-align: center;
  padding: 16px;
  background-color: darkred;
  background-image: url(../images/xmas.jpg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-style: none solid solid solid;
  border-color: black;
  border-width: 1px;
  color: black;
}

/*Style the slide show box*/
.mySlides {
  display: none;
  width: 100%;
  height: auto;
  max-width: 600px;
}

/*Style the slide show button*/
.buttons {
  border: none;
  color: white;
  text-align: center;
  text-decoration: none;
  padding: 5px;
  display: inline-block;
  margin: 15px;
  cursor: pointer;
  background-color: #555;
  border-radius: 4px;
}

.buttons:hover {
  background-color: brown;
  color: white;
}

/*Style document table*/
#documents {
  width: 90%;
  border-collapse: collapse;
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
}

#documents td,
#documents th {
  border: 1.5px solid;
  padding: 5px 5px 5px 15px;
  text-align: left;
}

#documents th {
  background-color: #d1a875;
}

/*Style committee table*/
#committee {
  width: 50%;
  border-collapse: collapse;
  margin-top: 15px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 15px;
  word-break: break-word;
}

#committee td,
#committee th {
  border: 1.5px solid;
  padding: 5px 5px 5px 15px;
}

#committee th {
  background-color: #d1a875;
}

/*Style page columns*/
[class*="col-"] {
  float: left;
}

.col-1 {
  width: 8.33%;
}

.col-2 {
  width: 16.66%;
}

.col-3 {
  width: 25%;
}

.col-4 {
  width: 33.33%;
}

.col-5 {
  width: 41.66%;
}

.col-6 {
  width: 50%;
  padding: 10px;
}

.col-7 {
  width: 58.33%;
}

.col-8 {
  width: 66.66%;
}

.col-9 {
  width: 75%;
}

.col-10 {
  width: 83.33%;
}

.col-11 {
  width: 91.66%;
}

.col-12 {
  width: 100%;
  background: rgba(217, 217, 217, 0.8);
  box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.4);
  padding: 30px 30px;
}

.col-13 {
  width: 100%;
  padding: 10px;
}

/* Style the responsive screen size */
/* Smartphones */
/*@media only screen and (max-width: 760px),
(min-device-width : 760px) and (max-device-width : 1024px)*/

@media only screen and (max-width: 760px) {
  [class*="col-"] {
    width: 100%;
  }

  body {
    margin-left: 0;
    margin-right: 0;
    line-height: 1.5rem;
  }

  #documents {
    width: 100%;
  }

  #committee {
    width: 100%;
  }

  /*remove the header logo on small screens*/
  .head__image {
    display: none;
  }

  /*remove the members notice board images on small screens*/
  .members-img {
    display: none;
  }
}
