/*variable declaration*/
:root {
  --padding_width: 10px;
  --padding_height: 10px;
  --background-color: #ffffcc;

  --nb2_padding_width: 10px;
  --nb2_padding_height: 10px;

  --titleheader_font_size: 100px;
  --titlefooter_font_size: 50px;

  --newsbox_text_font_size: 10px;
}

/*========================background of page========================*/
body {
  background-color: var(--background-color);
}

a {
  color: purple;
}

a:hover {
  color: maroon;
}

/* formatting for browsers with a width larger than 600 === DESKTOP FORMATTING */
@media screen and (min-width: 600px) {
  /*start uppermost navbar */
  nb {
    position: absolute;
    list-style-type: none;
    margin: 0px;
    background-color: #174d35;
    height: 4.5%;
    /* fixes the bar so when you scroll it stays */
    /*position: fixed;*/

    /*maxes it fixed at the top*/
    top: 0;
    left: 0;

    /*makes bar go all the way across*/
    width: 100%;

    /* sticks to the top of the page once it hits */
    /*position: sticky;*/

    /*fixes the annoying horizontal scroll bar)*/
    overflow: hidden;

    /*flexbox directions*/
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    z-index: 2;
  }

  /*navbar box*/
  li {
    float: right;
    overflow: hidden;
  }

  /*navbar text*/
  li a {
    display: block;
    color: black;
    font-weight: bold;
    text-align: center;
    padding: var(--padding_height) var(--padding_width);
    margin: 0px 0px;
    text-decoration: none;
    overflow: hidden;
  }

  /* Change the link color on hover */
  li a:hover {
    background-color: #042014;
    overflow: hidden;
  }

  /*colors the active page */
  .active {
    background-color: #7506d6;
  }

  .goback {
    float: left;
    overflow: hidden;
  }

  /*========================end uppermost navbar========================*/
  /*========================start second navbar========================*/

  ul {
    position: absolute;
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    overflow: hidden;
    background-color: #32825f;

    /*makes the very top of this element 4.5% down from the top of the screen (makes it touch the top navbar on any screen dimensions)*/
    top: 4.5%;
    left: 0;
    height: 9%;

    /*makes bar go all the way across*/
    width: 100%;

    overflow: hidden;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0px 0px 20px 2px black;
    z-index: 1;
  }

  navbox {
    float: left;
    overflow: hidden;
    margin: 0;
  }

  /* for putting a logo into the navbar === does not work at the moment need to fix formatting*/
  navbox img {
    float: left;
    overflow: hidden;
  }
  navbox a {
    display: block;
    color: black;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    padding: var(--nb2_padding_height) var(--nb2_padding_width);
    margin: 0px 0px;
    text-decoration: none;
  }

  filler {
    float: left;
    width: 7%;
    overflow: hidden;
  }

  navbox a:hover,
  .dropdown:hover .dropbtn,
  navbox a:focus,
  .dropdown:focus .dropbtn {
    background-color: #285a43;
  }

  /*the navbox for dropdown navbox*/
  navbox .dropbtn {
    display: block;
    color: black;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    padding: var(--nb2_padding_height) var(--nb2_padding_width);
    margin: 0px 0px;
    text-decoration: none;
  }

  navbox.dropdown {
    display: block;
  }

  .dropdown-content {
    display: none;
    position: fixed;
    background-color: #32825f;
    margin: 0px;
    padding: 0px;
    min-width: 10px;
    /*box-shadow: 0px 2px 2px 0px rgb(32, 32, 32);*/
    z-index: 100;
    border-radius: 1px;
    border-color: black;
    border-style: solid;
  }

  .dropdown:hover .dropdown-content,
  .dropdown:focus .dropdown-content {
    display: block;
    position: fixed;
    top: 13.5%;
  }

  /*========================end second navbar========================*/
  /*========================start main image========================*/

  mainimg {
    top: 13.5%;
    position: absolute;
    float: left;
    margin: 0px;
    left: 0px;
    /* this width/height controls the height of the box that the image is in*/
    width: 100%;
    height: 86.5%;
    overflow: hidden;
    z-index: 0;
  }

  .mimg {
    /* this width/height controls the amount of the mainimg box that the img takes up */
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /*========================end main image========================*/
  /*========================start main title========================*/

  div.maintitle {
    position: absolute;
    top: 18%;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
  }

  .titleheader {
    font-size: var(--titleheader_font_size);
    margin: 0px;
    padding-left: 2%;
    font-weight: bold;
    color: white;
    text-shadow: -1px 1px 0 #000, 1px 1px 0 #000, 1px -1px 0 #000,
      -1px -1px 0 #000;
    overflow: hidden;
  }

  .titlefooter {
    margin-top: 1%;
    padding-left: 5%;
    font-size: var(--titlefooter_font_size);
    color: white;
    text-shadow: -1px 1px 0 #000, 1px 1px 0 #000, 1px -1px 0 #000,
      -1px -1px 0 #000;
    overflow: hidden;
  }

  /*========================end main title========================*/

  /*========================start news and updates========================*/

  div.newsbox_shadow {
    position: absolute;
    top: 18%;
    width: 70%;
    height: 72%;
    margin-left: 15%;
    box-shadow: 0 4px 8px 8px rgba(0, 0, 0, 0.2),
      0 4px 8px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    overflow: hidden;
  }

  div.newsbox {
    position: absolute;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    overflow: hidden;
    background-color: #32825f;
    top: 0px;
    width: 100%;
    height: 100%;
  }
  .newsbox_header {
    font-size: var(--titleheader_font_size);
    color: black;
  }

  .newsbox_text {
    font-size: var(--newsbox_text_font_size);
    color: black;
    padding-left: 3%;
    padding-right: 3%;
  }

  /*========================end news and updates========================*/
  /*========================start last updated footer========================*/
  /* footer bar */
  div.footer {
    position: fixed;
    left: 0px;
    bottom: 0px;
    height: 50px;
    width: 100%;
    background: #333;

    /*flexbox directions*/
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    box-shadow: 0px 0px 20px 2px black;
  }

  /*footer text (last updated .......)*/
  .footer_text {
    text-align: center;
    color: white;
    font-style: italic;
    font-size: 20px;
    padding: var(--padding_height) var(--padding_width);
  }
  /*========================end last updated footer========================*/

  /*========================start image gallery========================*/

  div.image_gallery_grid {
    position: absolute;
    top: 17%;
    width: 95%;
    margin-left: 2.5%;
    height: 100%;

    display: grid;
    justify-content: flex-start;
    column-gap: 1%;
    row-gap: 3%;

    /*grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));*/
    --n: 4; /* The maximum number of columns */
    grid-template-columns: repeat(
      auto-fill,
      minmax(max(25%, (100% - (var(--n) - 1) * 10px) / var(--n)), 1fr)
    );
    grid-template-rows: 40% 40% 40%;
  }

  div.gallery_entry_container {
    top: 0%;
    width: 100%;
    height: 100%;
  }

  div.gallery_entry {
    top: 0%;
    width: 100%;
    height: 85%;
  }

  div.gallery_entry img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
  }
  div.gallery_test img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
  }

  div.gallery_desc {
    height: 15%;
    padding: 3%;
    color: white;
    text-align: center;
    bottom: 0%;
    border: 1px solid black;
    background-color: #174d35;
  }

  .gallery_entry img:hover {
    filter: brightness(75%);
    overflow: hidden;
    object-fit: cover;
    border: 1px solid black;
  }

  /*========================end image gallery========================*/
}
/*========================end desktop formatting========================*/
/*================================================MOBILE================================================*/
/*================================================MOBILE================================================*/
/*================================================MOBILE================================================*/
/*========================start mobile formatting========================*/
@media screen and (max-width: 600px) {
  /*========================start uppermost navbar========================*/
  nb {
    position: absolute;
    list-style-type: none;
    margin: 0px;
    background-color: #174d35;
    height: 5%;
    /* fixes the bar so when you scroll it stays */
    /*position: fixed;*/

    /*maxes it fixed at the top*/
    top: 0;
    left: 0;

    /*makes bar go all the way across*/
    width: 100%;

    /* sticks to the top of the page once it hits */
    /*position: sticky;*/

    /*fixes the annoying horizontal scroll bar)*/
    overflow: hidden;

    /*flexbox directions*/
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    z-index: 2;
  }

  /*navbar box*/
  li {
    margin-right: 2%;
    float: right;
    overflow: hidden;
  }

  /*navbar text*/
  li a {
    display: block;
    color: black;
    font-weight: bold;
    text-align: center;
    padding: var(--padding_height) var(--padding_width);
    margin: 0px 0px;
    text-decoration: none;
    overflow: hidden;
  }

  /* Change the link color on hover */
  li a:hover {
    background-color: #042014;
    overflow: hidden;
  }

  /*colors the active page */
  .active {
    background-color: #7506d6;
  }

  .goback {
    float: left;
    overflow: hidden;
  }

  /*========================end uppermost navbar========================*/
  /*========================start second navbar========================*/

  ul {
    position: absolute;
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    overflow: hidden;
    background-color: #32825f;

    /*makes the very top of this element 4.5% down from the top of the screen (makes it touch the top navbar on any screen dimensions)*/
    top: 5%;
    left: 0;
    height: 9%;

    /*makes bar go all the way across*/
    width: 100%;

    overflow: hidden;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;

    box-shadow: 0px 0px 20px 2px black;
    z-index: 1;
  }

  navbox {
    float: left;
    overflow: hidden;
    margin-left: 3%;
  }

  /* for putting a logo into the navbar === does not work at the moment need to fix formatting*/
  navbox img {
    float: left;
    overflow: hidden;
  }
  navbox a {
    display: block;
    color: black;
    font-weight: bold;
    text-align: center;
    padding: var(--nb2_padding_height) var(--nb2_padding_width);
    margin: 0px 0px;
    text-decoration: none;
  }

  filler {
    float: left;
    width: 0%;
    overflow: hidden;
  }

  navbox a:hover,
  .dropdown:hover .dropbtn {
    background-color: #285a43;
  }

  /*the navbox for dropdown navbox*/
  navbox .dropbtn {
    display: block;
    color: black;
    font-weight: bold;
    text-align: center;
    padding: var(--nb2_padding_height) var(--nb2_padding_width);
    margin: 0px 0px;
    text-decoration: none;
  }

  navbox.dropdown {
    display: block;
  }

  .dropdown-content {
    display: none;
    position: fixed;
    background-color: #32825f;
    margin: 0px;
    padding: 0px;
    min-width: 10px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border-radius: 1px;
    border-color: black;
    border-style: solid;
  }

  .dropdown:hover .dropdown-content {
    display: block;
    position: fixed;
    top: 13.5%;
  }

  /*========================end second navbar========================*/
  /*========================start main image========================*/

  mainimg {
    top: 13.5%;
    position: absolute;
    float: left;
    margin: 0px;
    left: 0px;
    /* this width/height controls the height of the box that the image is in*/
    width: 100%;
    height: 86.5%;
    overflow: hidden;
    z-index: 0;
  }

  .mimg {
    /* this width/height controls the amount of the mainimg box that the img takes up */
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /*========================end main image========================*/
  /*========================start main title========================*/

  div.maintitle {
    position: absolute;
    top: 18%;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
  }

  .titleheader {
    font-size: var(--titleheader_font_size);
    margin: 0px;
    padding-left: 2%;
    font-weight: bold;
    color: white;
    text-shadow: -1px 1px 0 #000, 1px 1px 0 #000, 1px -1px 0 #000,
      -1px -1px 0 #000;
    overflow: hidden;
  }

  .titlefooter {
    margin-top: 1%;
    padding-left: 5%;
    font-size: var(--titlefooter_font_size);
    color: white;
    text-shadow: -1px 1px 0 #000, 1px 1px 0 #000, 1px -1px 0 #000,
      -1px -1px 0 #000;
    overflow: hidden;
  }

  /*========================end main title========================*/

  /*========================start news and updates========================*/
  div.newsbox {
    position: absolute;
    align-items: center;
    top: 23%;
    display: flex;
    width: 70%;
    height: 70%;
    margin-left: 15%;
    flex-wrap: wrap;
    flex-direction: column;
    overflow: hidden;
    background-color: #174d35;
    z-index: 0;
  }

  div.news_shadow {
    position: absolute;
    background-color: #10301d;
    top: 18%;
    width: 70%;
    height: 70%;
    margin-left: 18%;
    z-index: 1;
  }
  div.news_flavor {
    position: absolute;
    background-color: #218147;
    top: 26%;
    width: 70%;
    height: 70%;
    margin-left: 14%;
    z-index: 0;
  }

  .newsbox_header {
    font-size: var(--titleheader_font_size);
    color: black;
  }

  .newsbox_text {
    font-size: var(--newsbox_text_font_size);
    color: black;
  }

  /*========================end second navbar========================*/
  /*========================start main image========================*/

  mainimg {
    top: 14%;
    position: absolute;
    float: left;
    margin: 0px;
    left: 0px;
    /*this width/height controls the height of the box that the image is in*/
    width: 100%;
    height: 86%;
    overflow: hidden;
  }

  .mimg {
    /*this width/height controls the amount of the mainimg box that the img takes up */
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /*========================end main image========================*/
  /*========================start main title========================*/

  div.maintitle {
    position: absolute;
    top: 18%;
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
  }

  .titleheader {
    font-size: 30px;
    margin: 0px;
    padding-left: 2%;
    font-weight: bold;
    color: white;
    text-shadow: -2px 2px 0 #000, 2px 2px 0 #000, 2px -2px 0 #000,
      -2px -2px 0 #000;
    overflow: hidden;
  }

  .titlefooter {
    margin-top: 1%;
    padding-left: 5%;
    font-size: 20px;
    color: white;
    text-shadow: -1px 1px 0 #000, 1px 1px 0 #000, 1px -1px 0 #000,
      -1px -1px 0 #000;
    overflow: hidden;
  }

  /*========================end main title========================*/

  /*========================start news and updates========================*/
  div.newsbox {
    position: absolute;
    align-items: center;
    top: 23%;
    display: flex;
    width: 100%;
    height: 70%;
    margin-left: 0%;
    flex-wrap: wrap;
    flex-direction: column;
    overflow: hidden;
    background-color: #174d35;
    z-index: 0;
  }

  div.news_shadow {
    position: absolute;
    background-color: #10301d;
    top: 18%;
    width: 70%;
    height: 70%;
    margin-left: 18%;
    z-index: 1;
  }
  div.news_flavor {
    position: absolute;
    background-color: #218147;
    top: 26%;
    width: 70%;
    height: 70%;
    margin-left: 14%;
    z-index: 0;
  }

  .newsbox_header {
    font-size: var(--titleheader_font_size);
    color: black;
  }

  .newsbox_text {
    font-size: var(--newsbox_text_font_size);
    color: black;
  }

  /*========================end news and updates========================*/

  /*========================start news and updates========================*/
  div.newsbox_shadow {
    position: absolute;
    top: 18%;
    width: 90%;
    height: 72%;
    margin-left: 5%;
    box-shadow: 0 4px 8px 8px rgba(0, 0, 0, 0.2),
      0 4px 8px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    overflow: hidden;
  }

  div.newsbox {
    position: absolute;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    overflow: hidden;
    background-color: #32825f;
    top: 0px;
    width: 100%;
    height: 100%;
  }

  .newsbox_header {
    font-size: 35px;
    color: black;
    text-decoration-line: underline;
  }

  .newsbox_text {
    font-size: 20px;
    color: black;
    padding-left: 3%;
    padding-right: 3%;
  }

  /*========================end news and updates========================*/
  /*========================start last updated footer========================*/
  /* footer bar */
  div.footer {
    position: fixed;
    left: 0px;
    bottom: 0px;
    height: 30px;
    width: 100%;
    background: #333;

    /*flexbox directions*/
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;

    box-shadow: 0px 0px 20px 2px black;
  }
  .footer_text {
    text-align: center;
    color: white;
    font-style: italic;
    font-size: 12px;
    padding: var(--padding_height) var(--padding_width);
  }
  /*========================end last updated footer========================*/
}

/*========================start image gallery========================*/
div.image_gallery_grid {
  position: absolute;
  top: 17%;
  width: 95%;
  margin-left: 2.5%;
  height: 100%;

  display: grid;
  justify-content: flex-start;
  column-gap: 1%;
  row-gap: 3%;

  /*grid-template-columns: repeat(auto-fit, minmax(25%, 1fr));*/
  --n_mobile: 1; /* The maximum number of columns */
  grid-template-columns: repeat(
    auto-fill,
    minmax(max(25%, (100% - (var(--n_mobile) - 1) * 10px) / var(--n)), 1fr)
  );
  grid-template-rows: repeat(10, 60%);
}

div.gallery_entry_container {
  top: 0%;
  width: 100%;
  height: 100%;
}

div.gallery_entry {
  top: 0%;
  width: 100%;
  height: 85%;
}

div.gallery_entry img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
}
div.gallery_test img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
}

div.gallery_desc {
  height: 15%;
  padding: 3%;
  color: white;
  text-align: center;
  bottom: 0%;
  border: 1px solid black;
  background-color: #174d35;
}

.gallery_entry img:hover {
  filter: brightness(75%);
  overflow: hidden;
  object-fit: cover;
  border: 1px solid black;
}

/*========================end image gallery========================*/
/* end mobile formatting*/
