:root {
  --red: #761010;
}

body {
  min-height: 100vh;
  min-width: 100vw;
  margin: 0 !important;
  font-family: Anton !important;
}

body {
  display: grid;
  grid-template-areas:
    "nav nav nav nav"
    "header header header header"
    "main main main main"
    "footer-one footer-one footer-one footer-one"
    "footer-two footer-two footer-two footer-two";
  grid-template-rows: auto auto 1fr auto auto;
  grid-template-columns: 25% 25% 25% 25%;
}

.body-index {
  grid-template-rows: auto 100vh auto auto auto;
}

p {
  font-family: "Open Sans", sans-serif !important;
  margin: 0 !important;
  padding: 0 !important;
}

h1 {
  margin: 0 !important;
  font-size: 4rem !important;
  color: var(--red) !important;
}

h2 {
  font-size: 2rem !important;
  margin: 0 !important;
  color: var(--red) !important;
}

h3 {
  color: var(--red) !important;
}

.text-black {
  color: black !important;
}

.text-white {
  color: white !important;
}

.btn-primary {
  background-color: var(--red) !important;
  border-color: var(--red) !important;
}

.text-primary {
  color: var(--red) !important;
}

/* -------------------------------------------------------- NAV */

nav {
  background-color: var(--red);
  padding: 16px !important;
  display: flex;
  align-items: center;
  grid-area: nav;
  overflow: hidden;
}

nav section {
  margin-left: auto !important;
  display: flex;
}

.a-logo {
  margin: 0 !important;
}

.logo-43 {
  border-radius: 10px;
  width: 100px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0px 16px !important;
}

nav input {
  font-family: Anton;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  border: none;
  padding-left: 6px;
  margin-left: 16px !important;
}

nav button {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  background-color: white;
  border: none;
}

#home {
  font-size: 1.5rem;
}

.icon {
  visibility: hidden;
}

nav div {
  display: flex;
}

/* -------------------------------------------------------- HEADER */

.header-index {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url(../images/Groepsfoto_Index.JPG);
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  grid-area: header;
}

.header-index h1 {
  color: white !important;
}

.header-index a {
  padding: 12px;
  text-decoration: none;
  color: black;
  background-color: white;
  border-radius: 5px;
}

.header-index a:hover {
  background-color: #761010;
  transition: all 0.2s ease;
}

/* -------------------------------------------------------- FOOTER 1 */

footer {
  background-color: var(--red);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
}

footer section {
  display: flex;
  justify-content: space-evenly;
  width: 50%;
  margin-left: auto !important;
}

footer article {
  margin-bottom: 16px !important;
}

footer h3 {
  color: white !important;
  margin: 0 0 !important;
  width: 25% !important;
}

footer h5 {
  font-family: "Open Sans", sans-serif !important;
  color: white !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
}

.footer-one {
  grid-area: footer-one;
}

.social-media-footer {
  justify-content: start;
  margin-left: 0 !important;
  margin-right: 0 !important;
  height: 50%;
}

.social-media-footer a {
  text-decoration: none;
  color: white;
  margin: 16px !important;
  margin-left: 0 !important;
}

/* -------------------------------------------------------- FOOTER 2 */

.footer-two {
  border-top: 1px solid black;
  display: flex;
  justify-content: center;
  align-items: center;
  grid-area: footer-two;
}

.footer-two h6 {
  color: white !important;
  font-family: "Open Sans", sans-serif !important;
  margin: 0 !important;
}

/* -------------------------------------------------------- MAIN INDEX */

main {
  grid-area: main;
}

.main-index {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  /* Optional: adds space between articles */
  max-width: 100%;
  /* Adjust as needed */
  margin: 0 auto !important;
}

.section-index a {
  text-decoration: none;
  width: 30%;
  margin: 16px !important;
  color: black;
}

.article-index {
  text-align: center;
}

.article-index img {
  width: 100%;
  height: 50vh;
  /* Adjust height as needed */
  object-fit: cover;
  /* Ensures the images are the same size */
}

.main-index h2 {
  color: var(--red);
}

.scroll-button {
  background-color: white;
  /* White background */
  border: none;
  /* No border */
  border-radius: 8px;
  /* Makes the button circular */
  padding: 10px 15px;
  /* Add padding for better spacing */
  display: flex;
  /* Use flexbox to align items */
  align-items: center;
  /* Center items vertically */
  cursor: pointer;
  /* Pointer cursor on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Subtle shadow for depth */
  transition: background-color 0.3s ease;
  /* Smooth transition for background color */
}

.scroll-button i {
  color: black;
  /* Black arrow color */
  font-size: 24px;
  /* Size of the arrow */
  margin-right: 8px !important;
  /* Space between the icon and the text */
}

.scroll-button:hover {
  background-color: #f0f0f0;
  /* Light gray on hover */
}

.social-media-index a {
  margin: 32px !important;
  font-size: 10rem;
  text-decoration: none;
  color: var(--red);
}

.social-media-index a:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.social-media-icons-index {
  display: flex;
  justify-content: center;
}

/* -------------------------------------------------------- MAIN CONTACT */
.main-contact {
  padding: 20px;
  text-align: center;
  /* Center align for better presentation */
}

.main-contact h1 {
  color: var(--red) !important;
  font-size: 3rem;
  margin-bottom: 10px !important;
}

.main-contact h2 {
  color: var(--red) !important;
  font-size: 2rem !important;
  margin-top: 20px !important;
  margin-bottom: 10px !important;
}

.main-contact p {
  font-family: "Open Sans", sans-serif !important;
  font-size: 1.2rem;
  line-height: 1.5;
}

.contact-list {
  list-style-type: none;
  padding: 0;
}

.contact-list li {
  margin: 10px 0 !important;
}

/* -------------------------------------------------------- MAIN CONTACT */
.main-lid-worden {
  padding: 20px;
}

.main-lid-worden header {
  text-align: center;
  margin-bottom: 40px !important;
}

.main-lid-worden h1 {
  font-size: 3rem !important;
  color: var(--red) !important;
}

.main-lid-worden h2 {
  color: var(--red) !important;
  margin-top: 20px !important;
}

.steps {
  margin: 0 auto !important;
  max-width: 800px;
}

.step {
  background-color: #f9f9f9;
  padding: 20px;
  margin-bottom: 20px !important;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.step h3 {
  margin-bottom: 10px !important;
  color: var(--red) !important;
}

.note {
  background-color: #ffeb3b;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin-top: 20px !important;
}

/* -------------------------------------------------------- MAIN ALGEMEEN */
.main-algemeen {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.info {
  width: 75%;
}

.h2-leidingsploegen {
  margin-top: 32px !important;
}

.section-leidingsploegen {
  display: flex;
  flex-wrap: wrap;
  width: 75%;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 64px !important;
}

.section-leidingsploegen article {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
}

.section-leidingsploegen article:last-child {
  width: 100%;
}

.section-leidingsploegen img {
  height: 50vh;
}

.p-leidingsploegen {
  text-align: center;
}

.section-takken {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.article-takken {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 95%;
  margin: 16px 0 !important;
}

.img-takken {
  width: 220px;
}

.section-text-takken {
  grid-area: section;
  border: 2px solid var(--red);
  border-radius: 10px;
  max-width: 75%;
}

.h3-takken {
  color: white !important;
  background-color: var(--red) !important;
  border-top-left-radius: 5px !important;
  border-top-right-radius: 5px !important;
  margin: 0 !important;
  padding: 8px !important;
}

.p-takken {
  padding: 8px !important;
}

/* -------------------------------------------------------- MAIN 404 */
.main-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-404 {
  margin: 32px 0 !important;
}

.section-404 article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.img-404 {
  max-width: 100%;
}

/* -------------------------------------------------------- MAIN stafkaart */

.main-stafkaart {
  position: relative;
}

.section-stafkaart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

object {
  height: 100vh !important;
  width: 50vw !important;
}

.p-stafkaart {
  width: 90%;
}

.img-stafkaart {
  height: 400px;
}

.h2-stafkaart {
  display: flex;
  justify-content: center;
}

.p-login {
  font-size: small;
  position: absolute;
  top: 1%;
  right: 1%;
}

/* -------------------------------------------------------- MAIN login */

.main-login {
  min-width: 90vw;
  min-height: 50vh;
}

/* -------------------------------------------------------- MAIN winkeltje */

.img-winkeltje {
  height: 360px;
}

@media (min-width: 768px) {
  .collapse.dont-collapse-md {
    display: flex;
    height: auto !important;
    visibility: visible;
  }
}

@media (max-width: 1360px) {
  .section-index a {
    width: 45%;
  }
}

/* Responsive design for tablets */
@media (max-width: 768px) {
  .article-index img {
    width: 100%;
    height: 40vh;
  }

  .body-index {
    grid-template-rows: auto 45vh auto auto auto;
  }

  h1 {
    margin: 0 !important;
    font-size: 2rem !important;
    color: var(--red) !important;
  }

  .section-index a {
    width: 100%;
    /* Articles will stack vertically */
  }

  .section-leidingsploegen article {
    width: 100%;
    /* Articles will stack vertically */
  }

  .section-leidingsploegen img {
    height: 33vh;
  }

  /* -------------------------------------------------------- NAV */

  #myLinks {
    width: 100%;
  }

  nav {
    flex-wrap: wrap;
  }

  #home {
    margin-top: 8px !important;
  }

  nav section {
    margin-left: auto !important;
    flex-direction: column;
    justify-content: space-around;
  }

  nav a {
    padding: 4px 0px !important;
  }

  nav a:active {
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .icon {
    margin: 16px !important;
    margin-left: auto !important;
    visibility: visible;
    font-size: 1.5rem;
    padding: 0 !important;
  }

  nav div {
    margin-bottom: 16px !important;
  }

  /* -------------------------------------------------------- FOOTER */

  footer section {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 50%;
  }

  footer {
    max-height: 50vh;
    justify-content: start;
    align-content: space-around;
  }

  .logo-43 {
    height: 100px;
  }

  .social-media-footer {
    flex-direction: row;
    margin-right: 0 !important;
    max-width: fit-content;
    height: fit-content;
  }

  .social-media-footer a {
    font-size: 1.5rem;
  }

  .article-takken {
    flex-direction: column;
  }

  .section-text-takken {
    max-width: 90%;
  }

  /* -------------------------------------------------------- MAIN winkeltje */

  .img-winkeltje {
    max-height: 300px !important;
  }

  .step-winkeltje {
    justify-content: center !important;
  }

  /* -------------------------------------------------------- MAIN login */

  .main-login form {
    width: 90% !important;
  }

  /* -------------------------------------------------------- MAIN admin */

  .form-admin {
    width: 90% !important;
  }
}

/* Responsive design for mobile phones */
@media (max-width: 480px) {
  .body-index {
    grid-template-rows: auto 25vh auto auto auto;
  }

  /* -------------------------------------------------------- HEADER */

  .scroll-button {
    display: none;
  }

  object {
    width: 90% !important;
    height: 100vh !important;
  }
}