* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-shadow: 3px 4px 7px rgba(0, 0, 0, 0.187);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  overflow-x: hidden;
}

header {
  background-color: rgba(255, 255, 255, 0.968);
  height: 7.5em;
  margin-top: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  margin-top: 5em;
}

#main-header-container {
  width: 75%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid;
  border-image: linear-gradient(to right, rgb(52 142 77), rgb(235 32 38)) 1;
}

.header-section {
  display: flex;
  align-items: center;
  height: 8em;
}

#header-logo {
  width: 20em;
  height: auto;
}

#header-logo-primary {
  width: 15em;
  height: auto;
}

#contacts-header {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 15em;
}

.social-media-links {
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 1em;
  padding-bottom: 5px;
  margin-bottom: 3em;
  margin-right: 1.5em;
}

.social-media-links > a > img {
  width: 25px;
  height: auto;
  transition: 0.3s ease-in-out;
}

.social-media-links > a > img:hover {
  scale: 1.2;
}

.title-data {
  width: 104.4px;
  text-align: left;
}

tr.spaceUnder > td {
  padding-bottom: 8px;
}

#header-menu-icon {
  width: 50px;
  height: auto;
}

#cover-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5em;
  width: 100%;
  height: 38em;
  overflow: hidden;
  position: relative;
}

#cover-img-container > img {
  width: 100%;
  height: auto;
  position: absolute;
  bottom: -130px;
}

nav {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.842);
  z-index: 99999;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 5.5em;
  font-family: 'Lato', sans-serif;
  border-bottom: 1px solid rgba(0, 0, 0, 0.032);
  line-height: 1.2;
  backdrop-filter: blur(5px);
}

#nav-logo-container {
  position: absolute;
  left: -60px;
  height: 3.5em;
  transition: left 200ms ease-out;
}

#nav-logo-container.slideLeft {
  left: 50px;
}

#nav-logo {
  width: auto;
  height: 100%;
}

#hide-slide-nl {
  position: absolute;
  left: -100%;
  background-color: white;
  height: 100%;
  width: 100%;
}

#nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  font-size: 1.6em;
  height: 2.7em;
}

#nav-links > a {
  transition: 0.25s ease-in-out;
  text-decoration: none;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.721);
  text-shadow: 3px 4px 7px rgba(0, 0, 0, 0.267);
  border: 2px solid transparent;
}

#nav-links > a:hover {
  color: rgb(52 142 77);
}

#nav-phone-container {
  position: absolute;
  right: -60px;
  height: 3.5em;
  transition: right 200ms ease-out;
}

#nav-phone-container.slideRight {
  right: 50px;
}

#nav-phone {
  height: 100%;
  width: auto;
}

#hide-slide-np {
  position: absolute;
  right: -100%;
  background-color: white;
  height: 100%;
  width: 100%;
}

main {
  width: 100%;
  margin: auto;
  line-height: 1.6;
}

section {
  margin: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin-bottom: 11.5em;
  margin-top: 11.5em;
}

.section-desc-container,
.section-img-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section-desc-container {
  justify-content: flex-start;
  width: 40%;
  gap: 30px;
  padding-left: 3.5em;
  padding-right: 3em;
}

.section-desc-container > h2 {
  font-size: 1.8em;
}

.section-desc-container > p {
  font-size: 1.1em;
}

.div-foundation {
  width: 100%;
  height: 1px;
  border-bottom: 3px solid;
  border-image: linear-gradient(to right, rgb(52 142 77), rgb(235 32 38)) 1;
}

.section-img-container {
  gap: 1em;
  padding-right: 3.5em;
  padding-left: 3.5em;
  width: 60%;
}

.stag-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: auto;
  width: 100%;
}

.stag-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: auto;
  width: 100%;
}

.stag-left > img,
.stag-right > img {
  width: auto;
  height: 19em;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

#midway-links-section {
  width: 100%;
  margin-bottom: 11em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* #midway-title-container {
  margin-bottom: 0em;
} */

#midway-title-container > h2 {
  font-size: 1.8em;
  padding: 0.4em;
}

#midway-img-container {
  display: flex;
  flex-direction: row;
  gap: 3em;
  margin-top: 2em;
}

.midway-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 25em;
  height: auto;
  overflow: hidden;
  padding: 1em;
  margin-bottom: 0px;
  text-align: justify;
}

.midway-img > img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 2em;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.midway-img > p {
  padding: 5px;
  font-size: 1.1em;
  margin-bottom: 0.8em;
}

footer {
  width: 100%;
  min-height: 41.7em;
  background-color: rgba(0, 0, 0, 0.162);
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding-left: 3em;
  margin-top: 1.8em;
  gap: 3em;
  border-top: 3px solid;
  border-image: linear-gradient(to right, rgb(52 142 77), rgb(235 32 38)) 1;
  position: relative;
}

#contact-us-footer > h2,
#opening-hours-footer > h2 {
  padding-bottom: 0.2em;
  border-bottom: 3px solid;
  border-image: linear-gradient(to right, rgb(52 142 77), rgb(235 32 38)) 1;
}

#contact-us-footer > h3 {
  margin-top: 1em;
}

#mt {
  margin-top: 1em;
}

#opening-hours-footer > table {
  text-align: center;
}

.footer-td {
  padding: 15px;
}

th {
  text-align: left;
}

iframe {
  border-radius: 10px;
  width: 35em;
  height: 30em;
}

#nav-links > a.active-page {
  border-bottom: 3px solid rgb(235 32 38);
}

.info-strip {
  position: absolute;
  left: 0px;
  bottom: 0px;
  padding: 5px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.811);
  color: whitesmoke;
  text-align: center;
  font-size: 14px;
}

.info-strip > p > a {
  text-decoration: none;
  text-decoration: underline;
  color: brown;
  font-weight: 600;
}

#bg-decal {
  position: fixed;
  bottom: 5.5em;
  right: 7em;
  z-index: -1;
  opacity: 0.1;
  transition: 0.65s ease-in-out;
}

#bg-decal > img {
  height: 30em;
  width: auto;
}

.a-button {
  font-family: 'Lato', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 3em;
  width: 15em;
  padding: 0.5em;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  color: white;
  transition: 0.4s ease-in-out;
  background-color: rgb(235 32 38);
  border-radius: 7.5px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  margin-left: auto;
}

.a-button:hover {
  width: 18em;
  background-color: rgb(52 142 77);
  color: white;
}

.large-button {
  width: 20em;
  margin: auto;
  margin-top: 2.5em;
  background-color: white;
  color: black;
  border: 3px solid rgb(235 32 38);
}

.large-button:hover {
  width: 24em;
}

#phone-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#phone-container > h2 {
  margin-bottom: -1em;
  margin-top: 1em;
}

#phone-container > div {
  display: flex;
  flex-direction: row;
  gap: 2em;
}

#phone-container > div > p {
  padding-top: 3.8em;
}

/*                */
/* Mobile Nav Bar */
/*                */

#mobile-nav {
  display: none;
}

#contacts-header-hidden {
  font-size: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3px;
  color: white;
  background-color: rgba(0, 0, 0, 0.87);
  font-size: 12px;
  padding-bottom: 10px;
  padding-top: 20px;
}

td > a {
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgb(235 32 38);
  font-weight: 600;
}

#mobile-cover-img-container {
  height: 13.5em;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

#mobile-cover-img-container > img {
  width: 100%;
  height: auto;
}

.mob-nav-links {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.87);
  display: none;
  text-align: center;
  padding: 1em;
}

.mob-nav-links > a {
  text-decoration: none;
  color: white;
  margin: auto;
  border: 2px solid rgba(0, 0, 0, 0);
}

.mob-nav-links > a.active-page {
  border-bottom: 2px solid rgb(235 32 38);
}

.mob-nav-links > hr {
  width: 100%;
  height: 1px;
  margin-top: 0.75em;
  margin-bottom: 0.75em;
  border: none;
  border-top: 2px solid rgba(0, 0, 0, 0.171);
}

/*                 */
/* General classes */
/*                 */

.header-left {
  justify-content: flex-end;
}

.header-right {
  justify-content: flex-start;
}

/* Sand & Stone Page */

#sand-and-stone-nav {
  margin-bottom: 0px;
}

.section-container {
  margin-bottom: 2em;
  margin-top: 2em;
}

.section-title-container {
  margin: auto;
  width: 90%;
  margin-bottom: 1.5em;
  border-bottom: 3px solid;
  border-image: linear-gradient(to right, rgb(52 142 77), rgb(235 32 38)) 1;
}

.section-items-container {
  margin: auto;
  width: 85%;
  display: flex;
  flex-direction: row;
  gap: 3em;
  margin-bottom: 4.5em;
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.section-item {
  width: 25%;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  padding-bottom: 0.4em;
  display: flex;
  flex-direction: column;
  background-color: white;
  transition: 0.4s ease-in-out;
  border-radius: 10px;
}

.section-item:hover {
  scale: 1.01;
}

.section-item > h2 {
  margin-top: 0.15em;
  font-size: 20px;
  text-align: center;
}

.img-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-bottom: 4px solid;
  border-image: linear-gradient(to right, rgb(52 142 77), rgb(235 32 38)) 1;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.img-container > img {
  width: 100%;
  height: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  transition: transform 0.4s;
}

.img-container > img:hover {
  transform: scale(1.75);
}

.secondary-page-landing {
  width: 80%;
  height: 41em;
  background-size: cover;
  background-position: center;
  color: white;
  text-shadow: 3px 4px 7px rgba(0, 0, 0, 0.267);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  padding: 20px;
  margin: auto;
  margin-top: 2em;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

.spl-sand-stone {
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 10%,
      rgb(235 32 38) 80%
    ),
    url('./images/IMG_074122.webp');
}

.spl-agri {
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 10%,
      rgb(52 142 77) 80%
    ),
    url('./images/silage_harvester_tractor.webp');
  background-position: bottom right;
}

.desc-container {
  width: 30%;
  padding-bottom: 2em;
  padding-right: 3em;
  text-align: justify;
}

.desc-container > h2 {
  text-align: center;
  margin-top: 1.5em;
}

.desc-container > p {
  font-size: 16px;
  margin-top: 1em;
}

/*              */
/* Gallery Page */
/*              */

#gallery-section {
  width: 90%;
  height: 40em;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: auto;
  padding-top: 3em;
}

#main-img-container {
  width: 70%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.669);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  object-fit: contain;
  border-top: 3px solid;
  border-left: 3px solid;
  border-bottom: 3px solid;
  border-image: linear-gradient(to right, rgb(52 142 77), rgb(235 32 38)) 1;
  position: relative;
}

#main-img {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#main-img > img {
  max-width: 95%;
  max-height: 95%;
}

.arrow-box {
  width: 2em;
  height: 100%;
  position: absolute;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  color: white;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 2px;
  padding-bottom: 2px;
  transition: ease-in-out 300ms;
  opacity: 60%;
  user-select: none;
}

.arrow-box > h2 {
  transition: ease-in-out 300ms;
  user-select: none;
  margin-left: 4px;
}

.arrow-box:hover {
  opacity: 100%;
  background-color: rgba(0, 0, 0, 0.441);
}

.arrow-box:hover > h2 {
  scale: 1.1;
}

#prev {
  left: 0;
}

#next {
  right: 0;
}

#gallery-imgs-container {
  width: 30%;
  height: 100%;
  background-color: rgb(207, 207, 207);
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  padding: 1em;
  overflow: auto;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top: 3px solid;
  border-right: 3px solid;
  border-bottom: 3px solid;
  border-image: linear-gradient(to right, rgb(235 32 38), rgb(52 142 77)) 1;
}

#gallery-imgs-container::-webkit-scrollbar {
  display: none;
}

.img-box {
  width: 9em;
  height: 9em;
  background-color: rgba(0, 0, 0, 0.669);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: ease-in-out 300ms;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
}

.img-box > img {
  max-width: 100%;
  max-height: 100%;
  scale: 1.8;
}

.img-box:hover {
  scale: 1.02;
}

/*            */
/* About Page */
/*            */

.about-section {
  margin-top: 0em;
  margin-bottom: 2em;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  font-size: 20px;
  padding-left: 2em;
}

.about-img-container {
  padding-right: 2.5em;
  padding-left: 2.5em;
  padding-top: 2.5em;
}

.about-img-container,
.about-desc-container {
  width: 50%;
  height: 55em;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
}

.about-img-container > img {
  width: 70%;
  height: auto;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border: 3px solid;
  border-image: linear-gradient(to right, rgb(52 142 77), rgb(235 32 38)) 1;
  margin-bottom: 8px;
  margin-right: 1.25em;
}

#img-title {
  margin-right: 25.5%;
}

#left-para {
  width: 75%;
  text-align: justify;
  margin-left: 50em;
}

.about-desc-container {
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 2.5em;
  padding-left: 2.5em;
  padding-right: 2.5em;
}

.about-desc-container > p {
  width: 75%;
  text-align: justify;
  margin-bottom: 2.5em;
}

.about-desc-container > h2 {
  width: 75%;
  font-size: 28px;
  margin-bottom: 0.75em;
  text-align: justify;
}

.about-desc-container > img {
  width: 80%;
  height: auto;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border: 3px solid;
  border-image: linear-gradient(to right, rgb(52 142 77), rgb(235 32 38)) 1;
}

#about-mobile-vers {
  display: none;
  width: 100%;
  overflow-x: hidden;
}

#about-mobile-vers > img {
  width: 80%;
  height: auto;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border: 3px solid;
  border-image: linear-gradient(to right, rgb(52 142 77), rgb(235 32 38)) 1;
}

#about-mobile-vers > h2 {
  width: 80%;
}

#about-mobile-vers > p {
  width: 80%;
}

#img-title-mobile {
  margin-left: 12em;
}

/*               */
/* Media queries */
/*               */

@media only screen and (max-width: 1200px) {
  nav,
  header {
    display: none;
  }

  .header-section {
    z-index: 99999;
    height: auto;
    padding: 1em;
    justify-content: space-between;
  }

  #mobile-nav {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5em;
  }

  #cover-img-container {
    align-items: flex-end;
  }

  main {
    margin: 0px;
  }

  section {
    flex-direction: column;
    margin-bottom: 3em;
    margin-top: 1em;
  }

  .bottom-section {
    flex-direction: column-reverse;
    margin-bottom: 7em;
  }

  .section-desc-container {
    width: 100%;
    padding: 1.5em;
    padding-bottom: 5px;
  }

  .section-img-container {
    width: 100%;
    padding: 1.5em;
    flex-direction: column;
  }

  .section-img-container > .div-foundation {
    display: none;
  }

  .stag-left,
  .stag-right {
    display: flex;
    height: auto;
    overflow: hidden;
    border-radius: 5px;
  }

  .stag-left > img,
  .stag-right > img {
    width: 100%;
    height: auto;
  }

  #midway-links-section {
    padding: 1.5em;
    padding-bottom: 0em;
    margin-bottom: 3em;
  }

  #midway-links-section > .div-foundation {
    display: none;
  }

  #midway-title-container {
    padding-bottom: 0px;
    margin-bottom: 0px;
  }

  #midway-img-container {
    margin: 0em;
    flex-direction: column;
    gap: 0em;
  }

  .midway-img {
    width: 90%;
    padding: 0em;
    flex-direction: column;
    margin: auto;
  }

  .midway-img > img {
    margin-top: 1em;
    margin-bottom: 1em;
  }

  .midway-img > p {
    margin-bottom: 3.5em;
  }

  footer {
    flex-direction: column;
    padding: 1em;
    padding-bottom: 4em;
  }

  iframe {
    border-radius: 10px;
    width: 100%;
    height: 20em;
  }

  #contact-us-footer {
    width: 100%;
    padding: 0.5em;
  }

  .info-strip {
    font-size: 12px;
  }

  .section-items-container {
    flex-wrap: wrap;
    margin: auto;
    margin-top: 3em;
  }

  .section-item {
    width: 40%;
    font-size: 15px;
  }

  .section-item > h2 {
    margin-top: 0.15em;
    font-size: 11px;
    text-align: center;
  }

  .spl-sand-stone {
    background-position: left;
    background-position-x: 24%;
    align-items: flex-start;
    background-image: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(235, 32, 39, 0.7) 0%
      ),
      url('./images/IMG_074122.webp');
    margin-bottom: 1em;
  }

  .spl-agri {
    background-position: left;
    background-position-x: 24%;
    align-items: flex-start;
    background-image: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(52, 142, 77, 0.7) 0%
      ),
      url('./images/silage_harvester_tractor.webp');
  }

  .desc-container {
    width: 100%;
    padding: 0px;
  }

  .desc-container > h2 {
    margin: 0px;
  }

  .a-button {
    margin: 0px;
    width: 18em;
    height: 4em;
    font-size: 16px;
  }

  .a-button:hover {
    width: 18em;
  }

  #phone-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 1em;
    margin-bottom: 4em;
  }

  #phone-container > div > p {
    padding-top: 0;
  }

  #phone-container > div {
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }

  #phone-container > h2 {
    margin-bottom: 1em;
  }

  #gallery-section {
    width: 100%;
    flex-direction: column;
    padding: 0px;
  }

  #main-img-container {
    width: 100%;
    border: 3px solid;
    border-image: linear-gradient(to right, rgb(52 142 77), rgb(235 32 38)) 1;
    border-bottom: none;
    box-shadow: none;
  }

  .arrow-box {
    width: 2em;
    height: 100%;
    opacity: 50%;
    background-color: rgba(0, 0, 0, 0);
    font-size: 24px;
    padding-right: 0.2em;
  }

  .arrow-box:hover {
    opacity: 50%;
    background-color: rgba(0, 0, 0, 0);
  }

  #gallery-imgs-container {
    width: 100%;
    height: 20%;
    flex-direction: column;
    border: 3px solid;
    border-image: linear-gradient(to right, rgb(52 142 77), rgb(235 32 38)) 1;
    background-color: rgba(0, 0, 0, 0.669);
    box-shadow: none;
    overflow-y: hidden;
  }

  .img-box {
    width: 5em;
    height: 5em;
  }

  .about-section {
    display: none;
  }

  #about-mobile-vers {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .social-media-links {
    margin: 0px;
  }
}

@media only screen and (min-width: 1920px) {
  nav,
  main {
    width: 80%;
    margin: auto;
  }

  footer {
    justify-content: center;
    gap: 15em;
  }
}
