/* Light theme styles */
:root {
  --green: #318555;
  --pink: #c2185b;
  --yellow: #d39f1c;

  --hero-bg: linear-gradient(#318555, #214631);
  --overlay: #00000000;
  --bg: #ffffff;
  --txt: #333333;
  --txt-inv: #fff;
  --navbar-bg: linear-gradient(#ffffff, #ffffffe6, #ffffff00);

  --h-inv: #fff;
  --h1: #fff;
  --h2: #318555;
  --h3: #c2185b;

  --buttons-bg: #318555;
  --buttons-inv-bg: #fff;
  --buttons-txt: #ffffff;
  --buttons-inv-txt: #ffffff;
  --buttons-inv-txt-border: #ffffff;
  --buttons-hover-bg: #c2185b;
  --buttons-hover-inv-bg: #fff;
  --buttons-hover-txt: #ffffff;
  --buttons-hover-inv-txt: #318555;
  --nav-border-bottom: 2px solid #c2185b;

  --alt-bg: #318555;

  --links: #318555;
  --links-inv: #000;
  --links-hover: #c2185b;
  --links-inv-hover: #fff;

  --thema-image: url(/Images/icons/moon.webp);
  --up-arrow: url(/Images/icons/up-arrow-white.webp);
  --home: url(/Images/icons/home-white.webp);
  --gds: url(/Images/icons/controller-white.webp);
  --gds-hover: url(/Images/icons/controller-white.webp);
  --acc: url(/Images/icons/accessibility-white.webp);
  --acc-hover: url(/Images/icons/accessibility-white.webp);
  --OT: url(/Images/icons/together-white.webp);
  --OT-hover: url(/Images/icons/together-white.webp);
  --dance: url(/Images/icons/boogie-white.webp);
  --dance-hover: url(/Images/icons/boogie-white.webp);
  --contact: url(/Images/icons/contact-white.svg);
}

/* Dark theme styles */
.dark-theme {
  --green: #318555;
  --pink: #c2185b;
  --yellow: #d39f1c;

  --hero-bg: linear-gradient(#318555, #214631);
  --overlay: #0000004b;
  --bg: #121212;
  --txt: #ababab;
  --txt-inv: #ababab;
  --navbar-bg: linear-gradient(#121212, #121212e6, #00000000);

  --h-inv: #ababab;
  --h1: #ababab;
  --h2: #318555;
  --h3: #d39f1c;

  --buttons-bg: #318555;
  --buttons-inv-bg: #000;
  --buttons-txt: #000000;
  --buttons-inv-txt: #ababab;
  --buttons-inv-txt-border: #ababab;
  --buttons-hover-bg: #d39f1c;
  --buttons-hover-inv-bg: #ababab;
  --buttons-hover-txt: #000000;
  --buttons-hover-inv-txt: #214631;
  --nav-border-bottom: 2px solid #d39f1c;

  --links: #318555;
  --links-inv: #d39f1c;
  --links-hover: #d39f1c;
  --links-inv-hover: #ff80b3;

  --alt-bg: #214631;

  --thema-image: url(/Images/icons/sun.webp);
  --up-arrow: url(/Images/icons/up-arrow.webp);
  --home: url(/Images/icons/home-black.webp);
  --gds: url(/Images/icons/controller-gray.webp);
  --gds-hover: url(/Images/icons/controller.webp);
  --acc: url(/Images/icons/accessibility-gray.webp);
  --acc-hover: url(/Images/icons/accessibility.webp);
  --OT: url(/Images/icons/together-gray.webp);
  --OT-hover: url(/Images/icons/together.webp);
  --dance: url(/Images/icons/boogie-gray.webp);
  --dance-hover: url(/Images/icons/boogie.webp);
  --contact: url(/Images/icons/contact-gray.svg);
}

/* styles start here */

/* Accessibility extra's */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* general styles */

.main {
  box-shadow: 0px 7px 10px #000000a5;
}

body {
  margin: 0;
  color: var(--txt);
  background-color: var(--bg);
  transition: background-color 1s, color 1s;
}

.subject-article {
  width: 90%;
  margin: 0 auto;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: var(--overlay);
  z-index: 10;
  border-radius: inherit;
  transition: background-color 0.5s ease-in-out;
}

.quote,
q {
  text-align: center;
  font-style: italic;
  font-size: 120%;
  width: 90%;
  margin: 0 auto;
}

:focus,
button:focus-visible {
  outline: 4px solid white;
  outline-offset: 4px;
  box-shadow: 0 0 0 4px black;
}

button:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.skip-nav {
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 100;
  color: var(--txt);
}
.skip-nav:focus {
  top: 0;
}

/*inverted backgrouns*/
.invert {
  background-color: var(--alt-bg);
  color: var(--txt-inv) !important;
}
.invert h1,
.invert h2,
.invert h3,
.invert h4,
.invert h5 {
  color: var(--h-inv);
}
.invert a {
  color: var(--links-inv);
}
.invert a:hover {
  color: var(--links-inv-hover);
  text-decoration: underline;
}

/* img line - full width */
.four-img-container {
  display: flex;
  position: relative;
}

.four-img-container img {
  width: 25%;
  height: auto;
}

@media (min-width: 375px) {
  .linebreak {
    display: none;
  }
}

@media (min-width: 768px) {
  .subject-article {
    width: 80%;
  }
}

/* image on side */
.image-side-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  margin-right: clamp(3vw, 10vw, 20vw);
  margin-left: clamp(3vw, 10vw, 20vw);
}
.reverse {
  flex-direction: column-reverse;
}

.side-image {
  width: 100%;
  position: relative;
  height: 50vh;
  border-radius: 4px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top 20% center;
  margin: 2em 0 0 0;
}

.side-text a {
  color: var(--links-inv);
}
/*.side-text a:hover {
  text-decoration: underline;
}*/

@media (min-width: 768px) {
  .image-side-container,
  .reverse {
    flex-direction: row;
  }

  .side-image {
    position: sticky;
    background-size: cover;
    background-position: top left 38%;
    top: 100px;
    width: 30%;
    min-height: 35vh;
    max-height: 60vh;
    margin: 1.4em 0 3em 0;
  }
  .side-text {
    width: 75%;
  }
}

/* Headers en text */

:root {
  --base-size: 0.8vw; /* Base font size */
  --font-family: "Ubuntu Sans", sans-serif;
  --font-optical-sizing: auto;
  --font-style: normal;
  --font-variation-settings: "wdth" 100;
  --font-size: clamp(16px, 1.8vw, 22px);
  --letter-spacing: 0.12em;
  --word-spacing: 0.16em;
  --line-height: 1.5em;
  --p-size: 1em;
  --h1-size: clamp(2.5em, 4vw, 4em);
  --h2-size: clamp(1.8em, 3vw, 2.3em);
  --h3-size: clamp(1.2em, 2vw, 2em);
  --h4-size: clamp(1.1em, 1.8vw, 1.8em);
  --h5-size: clamp(1em, 1.6vw, 1.6em);
  --link-font-size: clamp(16px, 2vw, 24px);
}

* {
  font-family: var(--font-family);
  font-optical-sizing: var(--font-optical-sizing);
  font-style: var(--font-style);
  font-variation-settings: var(--font-variation-settings);
  font-size: var(--font-size);
  letter-spacing: var(--letter-spacing);
  word-spacing: var(--word-spacing);
  line-height: var(--line-height);
}

.only-sr {
  /*alleen voor schermlezers*/
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1 {
  color: var(--h1);
  font-size: var(--h1-size);
}

h2 {
  color: var(--h2);
  font-size: var(--h2-size);
}

h3 {
  color: var(--h3);
  font-size: var(--h3-size);
}

h4 {
  color: var(--h2);
  font-size: var(--h4-size);
}

h5 {
  color: var(--h3);
  font-size: var(--h5-size);
}

a,
button {
  border: unset;
  background-color: unset;
  color: var(--links);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  font-size: var(--link-font-size);
  cursor: pointer;
}

a:hover {
  color: var(--links-hover) !important;
}

p {
  font-size: var(--p-size);
  margin-bottom: 2em;
}

@media (min-width: 2560px) {
  :root {
    --base-size: 0.4vw;
  }
}

/* buttons */
.button {
  background-color: var(--buttons-bg);
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.7);
  min-width: fit-content;
  padding: 5px 10px;
  border-radius: 2px;
  text-align: center;
  transition: all 0.3s;
  color: var(--buttons-txt) !important;
}

.invert-button {
  color: var(--buttons-inv-txt);
  border: var(--buttons-inv-txt-border) 2px solid;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 4px;
  text-align: center;
  transition: all 0.3s;
}

.button:hover,
.button:focus,
.dropdown-item:focus .dropbtn,
.dropdown-item:hover .dropbtn {
  color: var(--buttons-hover-txt) !important;
  background-color: var(--buttons-hover-bg) !important;
  scale: 1.1 !important;
}
.invert-button:hover,
.invert-button:focus {
  background-color: var(--buttons-hover-inv-bg);
  color: var(--buttons-hover-inv-txt) !important;
}

/* hero */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 90vh;
  background-image: var(--hero-bg);
}
.hero h1,
.hero p {
  color: var(--h-inv);
}
.hero h1 {
  margin-block: 0.2em;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 5% 5%;
  z-index: 11;
  position: relative;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-img-container {
  text-align: center;
  overflow: hidden;
  height: 100%;
}
.hero-img-container img {
  max-height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
/* pages other than index */
.hero-text-container {
  height: min-content;
  max-width: 90vw;
  padding: 2% 5%;
  margin: auto;
  text-align: center;
  z-index: 11;
  position: relative;
  box-shadow: 10px 10px 10px #00000088 inset;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.sub-title {
  color: var(--h-inv);
  font-family: "Caveat", cursive;
  font-weight: 600;
  font-size: clamp(1.5em, 2vw, 2.5em);
  margin-bottom: 0;
  margin-block-start: 0;
}

.hero-text button {
  margin-top: 30px;
}

.sub {
  width: 100%;
  height: 70vh;
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.sub .hero-text-container {
  background-color: var(--alt-bg);
}

@media (min-width: 768px) {
  .hero {
    flex-direction: row;
    position: relative;
  }
  .hero-text {
    margin-top: 0;
    flex: 2;
    padding-left: 5%;
  }
  .hero-img-container {
    display: inherit;
    flex: 3;
    margin-top: auto;
  }
  /* pages other than index */
  .hero-text-container {
    border-radius: 5px;
  }
}

/* navbar */
.navbar {
  display: flex;
  column-gap: clamp(20px, 50px, 80px);
  flex-wrap: wrap;
  gap: 2vw;
  justify-content: center;
  align-items: stretch;
  padding-bottom: 60px;
  padding-top: 10px;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 100;
  background: var(--navbar-bg);
  pointer-events: none;
}

.nav {
  background-color: transparent;
  border-bottom: var(--nav-border-bottom);
  width: 20vw;
  max-width: 200px;
  background-color: none;
  box-shadow: none;
  white-space: normal;
  color: var(--txt) !important;
  pointer-events: auto;
}
.nav button {
  color: var(--txt) !important;
  pointer-events: auto;
}

.nav:focus-within .dropbtn {
  color: var(--buttons-hover-txt) !important;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  max-width: 20vw;
  min-width: fit-content;
  pointer-events: auto;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 40px;
  background-color: var(--bg);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  border: var(--buttons-hover-bg) solid 2px;
  border-radius: 4px;
}

.dropdown-item {
  color: var(--txt) !important;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
  display: block;
  border-bottom: var(--nav-border-bottom);
}
.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--buttons-hover-bg);
  color: var(--buttons-hover-txt) !important;
}

/* theme toggle */

.theme-toggle,
.back-to-top {
  position: fixed;
  z-index: 200;
  right: 10px;
  border: solid 2px var(--bg);
  border-radius: 50px;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center center;
  width: clamp(20px, 40px, 60px);
  height: clamp(20px, 40px, 60px);
  box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.5);
}

.theme-toggle {
  bottom: 60px;
  background-image: var(--thema-image);
}

.back-to-top {
  bottom: -60px;
  background-size: 80%;
  background-image: var(--up-arrow);
  background-color: var(--buttons-bg);
}
.back-to-top:hover {
  color: var(--buttons-hover-txt);
  background-color: var(--buttons-hover-bg);
}

.home-button {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.home-icon {
  z-index: 200;
  border: solid 2px var(--bg);
  border-radius: 50px;
  background-image: var(--home);
  background-size: 75%;
  background-color: var(--buttons-bg);
  background-repeat: no-repeat;
  background-position: center center;
  width: clamp(20px, 40px, 60px);
  height: clamp(20px, 40px, 60px);
  box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.5);
  padding: 3px;
  position: relative;
  overflow: hidden;
}

.home-text {
  opacity: 0;
  background-color: var(--buttons-bg);
  height: clamp(20px, 40px, 60px);
  box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.5);
  border: solid 2px var(--bg);
  color: var(--buttons-txt);
  border-radius: 5px;
  padding: 5px 10px 0 10px;
  vertical-align: middle;
  position: absolute;
  z-index: 100;
  top: 0;
  left: 100%;
  white-space: nowrap;
  width: 0;
  overflow: hidden;
  transition: width 0.6s ease, opacity 0.3s ease;
}

.home-icon:hover {
  background-color: var(--buttons-hover-bg);
}
.home-button:hover .home-text {
  opacity: 1;
  width: 290px;
  left: calc(100% + 10px);
  background-color: var(--buttons-hover-bg);
  transition: background-color 0.5s ease, width 0.6s ease, opacity 0.3s ease;
}

.label {
  position: absolute;
  left: -9999px;
}

/* spacers */
.spacer-xs {
  height: 25px;
}

.spacer-s {
  height: 50px;
}

.spacer {
  height: 100px;
}

.spacer-l {
  height: 200px;
}

.centered-content {
  margin: 0 auto;
  text-align: center;
}

/* recaptcha */

.grecaptcha-badge {
  display: none;
}

/* Footer */

footer {
  box-shadow: inset 0px 10px 10px -10px rgba(0, 0, 0, 0.5);
}

.socials {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: clamp(10px, 20px, 30px);
  width: 90%;
  margin: 0 auto;
}

.social-button {
  width: 40px;
  height: 40px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.social-button:hover {
  transform: scale(1.1);
}
