:root {
  --main-color: #545d4c;
  --main-color-light: #9ba98f;
  --main-color-lighter: #dde1d9;
  --secondary-color: #2ecc71;
  --background-color-primary: white;
  --background-color-secondary: lightgrey;
  --text-color-primary: #333;
  --border-size: 5px;
}

* {
  font-family: Roboto, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-color-primary);
}

body {
  background-color: var(--main-color);
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.menu-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--background-color-primary);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-bottom: var(--border-size) solid var(--main-color-light);
}

.menu-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-logo {
  background-image: url(logo3.png);
  display: block;
  width: 480px;
  height: 120px;
  background-position: left center;
  background-size: contain;
  background-repeat: no-repeat;
}

/* .menu-logo {
    height: 40px;
    width: auto;
    margin-right: 32px;
} */

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.menu li {
  margin: 0;
}

.menu a {
  display: block;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 18px 28px;
  transition: background-color 0.4s, color 0.2s;
  margin: 0 3px;
  color: var(--main-color);
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--main-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.menu a:hover::after,
.menu a:focus::after,
a.selected::after {
  transform: scaleX(1);
}

.menu a:hover {
  background-color: var(--main-color-lighter);
  color: white;
}

.image-container {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  height: 350px;
  background-image: url(flappies2.png);
  background-repeat: no-repeat;
  background-position: bottom center;
  object-fit: cover;
  display: flex;
  align-items: center;
  border-top: var(--border-size) solid var(--main-color-light);
  border-bottom: var(--border-size) solid var(--main-color-light);
  margin-top: 120px;
}

.image-container.small {
  height: 200px;
  background-image: url(flappies.jpg);
  background-position: top -100px center;
}

.image-container .quote {
  color: #fafafae5;
  font-family: Georgia;
  font-style: italic;
  font-size: 3rem;
  margin: 1em auto auto auto;
  box-sizing: border-box;
  text-shadow: 1px 1px 2px black;
}

.white-block {
  background-color: var(--background-color-primary);
  padding: 32px 24px;
  margin-top: 0;
}

.grey-block {
  background: var(--main-color-lighter);
  padding: 32px 24px;
  margin-top: 0;
}

.round-block-container {
  max-width: 1200px;
  width: 100%;
  margin: 48px auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 32px;
}

.block-container {
  margin: 0px auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 32px 18px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.block img {
  width: 500px;
  height: 300px;
  object-fit: cover;
  box-shadow: 2px 2px 20px darkgray;
}

.block-small img {
  width: 300px;
}

.content-block {
  flex: 1;
  background: var(--main-color-lighter);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 32px 18px;
  text-align: center;
  transition: box-shadow 0.2s;
  border-radius: 12px;
}

.content-block:hover {
  box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.2);
}

.content-block img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 18px;
}

.content-block h2,
.block h2 {
  margin: 12px 0 0 0;
  font-size: 1.3rem;
  color: var(--main-color);
}

.content-block p,
.block p {
  font-size: 1rem;
  margin-bottom: 22px;
  color: var(--text-color-primary);
}

.nice-button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.nice-button:hover {
  background: var(--main-color-light);
  color: var(--main-color);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.container-footer {
  border-top: var(--border-size) solid var(--main-color-light);
  width: 100%;
  background-color: var(--main-color);
}

.footer {
  color: var(--text-color-primary);
  display: flex;
  justify-content: space-between;
  padding: 24px 24px;
  margin-top: 0;
  margin-bottom: 0;
}

.footer a {
  color: var(--main-color-light);
}

.footer-col.sitemap a {
  color: var(--main-color-lighter);
  text-decoration: none;
}

.footer-col.sitemap a:hover {
  text-decoration: underline;
}

.footer-col {
  flex: 1;
  margin-right: 24px;
}

.footer-col.logos {
  max-width: 150px;
  text-align: center;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  margin-top: 1em;
}

.footer-col ul li {
  margin: 0;
  height: 2em;

  color: var(--main-color-lighter);
}

.footer-col:last-child {
  margin-right: 0;
}

.footer-col h4 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.1em;
  color: var(--main-color-lighter);
}

.footer-col p {
  margin: 0;
  font-size: 0.97em;
  line-height: 1.5;
}

h1,
h2 {
  margin: 0;
  font-weight: 100;
  color: var(--main-color);
}

p,
li {
  font-size: 1.1em;
  line-height: 1.6em;

  color: var(--main-color);
}

@media (max-width: 1000px) {
  .grey-block-container,
  .round-block-container,
  .block-container,
  .footer {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 32px 8px;
  }
  .content-block,
  .block,
  .footer-col {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-col .sitemap ul a {
    color: red;
  }

  .round-block-container .content-block {
    padding-left: 20px;
    padding-right: 20px;
    width: unset;
  }

  .footer-col {
    max-width: 100%;
    margin: 0;
  }
}

.tile {
  width: 300px;
  height: 300px;
  perspective: 1000px;
  position: relative;
}

.tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  transform-origin: center center;
}

.tile:hover .tile-inner,
.tile:focus-within .tile-inner {
  transform: rotateY(180deg);
}

.tile-front,
.tile-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: var(--main-color-lighter);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Remove padding here */
}

.tile-back {
  background: var(--main-color-light);
  transform: rotateY(180deg);
}

.tile-content {
  width: 100%;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Mobiele weergave */
@media (max-width: 768px) {
  .menu-flex {
    flex-direction: column;
    align-items: flex-start; /* zodat alles links uitlijnt */
  }

  nav {
    width: 100%;
  }

  .menu {
    flex-direction: column;
    width: 100%;
  }

  .menu li {
    width: 100%;
  }

  .menu a {
    width: 100%;
    padding: 14px 20px;
    margin: 0; /* marge weghalen zodat ze mooi onder elkaar staan */
    border-bottom: 1px solid var(--main-color-light);
  }

  .menu-logo {
    width: 240px; /* logo kleiner maken op mobiel */
    height: 60px;
    margin: 10px 0;
  }
}
