/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Background video styling */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  border: none;
  margin: 0;
  padding: 0;
}

/* Wrapper containing text + cards */
.wrapper {

  width: 90%;
  max-width: 1200px; /* max width limits the wrapper size */
  margin: 0 auto;
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


/* Intro text above cards */
.intro-text {
  width: 100%;
  color: #eee;
  font-size: 1.9rem;
  line-height: 2rem;
  font-weight: 600;
  text-align: center;
  margin-top: 64px;
  margin-bottom: 16px;
  
}


.language-dropdown-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 16px auto;
  box-sizing: border-box;
  /* border: 1px solid #fff; */
}

.language-dropdown-wrapper ul {
  list-style: none;
}

.language-dropdown-wrapper ul li.dropdown {
  width: 100%; /* full width */
  text-align: center; /* center inline content */
}


.language-dropdown-wrapper > ul > li > a {
  background-color: rgba(255, 255, 255, 0) !important; /* transparent white background */
  color: #fff !important; /* white text */
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
}



.language-dropdown-wrapper li {
  position: relative; /* important for absolute submenu */
}

.language-dropdown-wrapper .dropdown > ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  min-width: 150px;
  z-index: 1000;
}

.language-dropdown-wrapper .dropdown:hover > ul {
  display: block;
}

.language-dropdown-wrapper ul li.dropdown {
  position: relative; /* to position submenu absolutely relative to this */
}

.language-dropdown-wrapper ul li.dropdown > a {
  display: inline-flex; /* inline-flex to keep inline behavior but flexible box */
  align-items: center;  /* vertically center flag and text */
  justify-content: center; /* center horizontally */
  width: auto; /* allow shrinkwrap */
  background-color: transparent;
  border: none;
  color: #fff;
  padding: 6px 12px;
  cursor: pointer;
  box-sizing: border-box;
  gap: 8px; /* spacing between flag and text */
}

.language-dropdown-wrapper ul li.dropdown > ul {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  background-color: #fff; /* solid white background */
  padding: 8px 0;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 999;
  min-width: 200px;
  text-align: left;
  white-space: nowrap;
}

/* Space between flag and language text inside dropdown items */
.language-dropdown-wrapper ul li.dropdown > ul li a img {
  margin-right: 8px; /* 8px spacing */
  vertical-align: middle; /* better vertical alignment */
}

.language-dropdown-wrapper .dropdown > ul > li > a {
  display: block;
  padding: 8px 12px;
  color: black;
  text-decoration: none;
}

.language-dropdown-wrapper .dropdown > ul > li > a:hover {
  background: #ddd;
}


/* Grid container centered on screen */
.grid-container {
  margin: 16px auto; /* center it */
  width: 100%;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  justify-content: stretch;
  box-sizing: border-box;
  gap:20px;
}

/* Brede card boven de 4 andere cards */
.card-wide {
  grid-column: 1 / -1; /* beslaat alle kolommen */
}


/* Card wrapper */
.card {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  backdrop-filter: blur(10px);
  background-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Top logo area */
.card-logo {
  background-color: rgba(255, 255, 255, 0.4);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo image */
.card-logo img {
   height: auto;
}

/* Content area */
.card-content {
  flex: 1;
  background-color: transparent;
  color: #eee;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1rem;
}

/* Link section */
.card-link {
  margin-top: auto;
  padding-top: 2rem;
}

/* Styled link */
.card-link a {
  all: unset;
  cursor: pointer;
  color: #fff;
  font-size: 0.8rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease-in-out;
}

/* Arrow after link */
.card-link a::after {
  content: " →";
  margin-left: 6px;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}




/* 20250804 Added rotation to logo_gear_x.svg */

#logo-gear-0 {
  transform: rotate(0deg);
  -webkit-animation-name: spin;
  -webkit-animation-duration: 10000ms;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: spin;
  -moz-animation-duration: 10000ms;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
  -ms-animation-name: spin;
  -ms-animation-duration: 10000ms;
  -ms-animation-iteration-count: infinite;
  -ms-animation-timing-function: linear;
  animation-name: spin;
  animation-duration: 10000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

#logo-gear-1 {
  transform: rotate(0deg);
  -webkit-animation-name: spin;
  -webkit-animation-duration: 10000ms;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: spin;
  -moz-animation-duration: 10000ms;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
  -ms-animation-name: spin;
  -ms-animation-duration: 10000ms;
  -ms-animation-iteration-count: infinite;
  -ms-animation-timing-function: linear;
  animation-name: spin;
  animation-duration: 10000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

#logo-gear-2 {
  transform: rotate(90deg);
  -webkit-animation-name: spin;
  -webkit-animation-duration: 10000ms;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: spin;
  -moz-animation-duration: 10000ms;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
  -ms-animation-name: spin;
  -ms-animation-duration: 10000ms;
  -ms-animation-iteration-count: infinite;
  -ms-animation-timing-function: linear;
  animation-name: spin;
  animation-duration: 10000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

#logo-gear-3 {
  transform: rotate(180deg);
  -webkit-animation-name: spin;
  -webkit-animation-duration: 10000ms;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: spin;
  -moz-animation-duration: 10000ms;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
  -ms-animation-name: spin;
  -ms-animation-duration: 10000ms;
  -ms-animation-iteration-count: infinite;
  -ms-animation-timing-function: linear;
  animation-name: spin;
  animation-duration: 10000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

#logo-gear-4 {
  transform: rotate(270deg);
  -webkit-animation-name: spin;
  -webkit-animation-duration: 10000ms;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
  -moz-animation-name: spin;
  -moz-animation-duration: 10000ms;
  -moz-animation-iteration-count: infinite;
  -moz-animation-timing-function: linear;
  -ms-animation-name: spin;
  -ms-animation-duration: 10000ms;
  -ms-animation-iteration-count: infinite;
  -ms-animation-timing-function: linear;
  animation-name: spin;
  animation-duration: 10000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

@-ms-keyframes spin {
  from {
      -ms-transform: rotate(0deg);
  }
  to {
      -ms-transform: rotate(360deg);
  }
}

@-moz-keyframes spin {
  from {
      -moz-transform: rotate(0deg);
  }
  to {
      -moz-transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  from {
      -webkit-transform: rotate(0deg);
  }
  to {
      -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  from {
      transform: rotate(0deg);
  }
  to {
      transform: rotate(360deg);
  }
}



/* Responsive tweaks */

/* <768px: 1 card per row, margin top on intro text */
@media (max-width: 767px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .intro-text {
    margin-top: 64px;
    margin-bottom: 24px;
  }

  .card {
    width: 90vw;
    max-width: none;
  }
}

/* From 768px: 2 cards per row */
@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2,  1fr);
    
  }
}



/* from 1024px: 2 cards per row */
@media (min-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(2,  1fr);
    grid-template-rows: repeat(2,  1fr);
    
  }

  .card {
    max-width: 90vw;
  }
}

/* from 1280px: 4x1 grid */
@media (min-width: 1280px) {
  .grid-container {
    grid-template-columns: repeat(4,  1fr);
    
  }
}


/* from 1280px: 4x1 grid */
@media (min-width: 1920px) {

  .card-content {
    
    font-size: 1.2rem;
    line-height: 1.2rem;
  }
  
  /* Link section */
  .card-link {
    margin-top: auto;
    padding-top: 2rem;
  }
  
  /* Styled link */
  .card-link a {
   
    font-size: 1.2rem;
   
  }
  
  
}