/* Algemene body styling */
body, html {
  height: 100svh;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  background-image: url(images/Stellantis4k.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-color: #012A68; 
  font-family: sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Video wrapper - responsive */
.videoWrapper {
  width: 70%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  background-color: #012A68;
  position: relative;
  overflow: hidden;
}

.videoWrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  position: absolute;
  top: 0;
  left: 0;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: rgba(128, 128, 128, 0.103);
  color: rgb(128, 128, 128);
  text-align: center;
  font-size: 12px;
  padding: 10px 0;
  z-index: 100;
  transition: opacity 0.3s ease;
}

/* Mobiel portrait */
@media screen and (max-width: 900px) and (orientation: portrait) {
  .videoWrapper {
    width: 90%; /* Iets smaller voor mobiel */
    margin-top: 0;
  }

  body {
    background-image: url(images/Stellantis4k.jpg); 
    background-size: cover;
    background-position: center;
    background-color: #012A68; 
  }
}

/* Mobiel landscape: fullscreen simulatie */
@media screen and (max-width: 900px) and (orientation: landscape) {
  body, html {
    height: 100svh;
    width: 100vw;
    background-color: #012A68; 
  }

  .videoWrapper {
    position: fixed;
    width: 100vw;
    height: 100svh;
    aspect-ratio: unset;
    z-index: 999;
  }

  .footer {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

/* Optionele JS-class om footer te verbergen */
body.hide-footer .footer {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}