/* Global reset & defaults */
*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

/* Hide scrollbars everywhere but keep scrolling */
html, body {
  background-image: url("");
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #000;
  overflow-y: scroll;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
  min-height: 100vh;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;  /* Chrome, Safari, Opera */
}

/* Media elements */
img {
  max-width: 2560px;
  height: auto;
  width: 100%;
}

h1 {
  font-size: 3vw;
}

p {
  font-size: clamp(0.7rem, 1vw, 2rem);
}

#myVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  opacity: 0;
  transition: opacity 1s;
  pointer-events: none;
  display: block;
}

body {
  position: relative;
  z-index: 0;
}

/* Intro video */
#Intro {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: 2560px;
  z-index: 3;
}

/* Shatters outlines */
#shatters_outlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: 2560px;
  z-index: 1;
  opacity: 0;
  transition: none;
}

/* Shatters background */
#shatters {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: 2560px;
  z-index: 2;
  opacity: 0;
  transition: opacity 2s ease;
}

/* Overlay 1 */
#overlayImg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: 2560px;
  z-index: 4;
  display: block;
  opacity: 0;
}

/* Overlay 2 */
#overlayImg2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}

/* Dark overlay */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 7;
}

.overlay.show {
  display: block;
}

/* Generic popup */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 10px;
  background: black;
  border: 5px solid red;
  border-image: linear-gradient(to right, red, green, blue) 1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  z-index: 8;
  color: white;
  flex-direction: column;
}

.popup-image,
.popup-video {
  margin-top: 40px;
  margin-bottom: 40px;
}

.popup-image img,
.popup-video video {
  width: 100%;
  height: auto;
}

.popup.show {
  display: block;
}

/* Generic popup header */
.popup-header {
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid red;
}

.popup-header .title {
  font-size: 1.25rem;
  font-weight: bold;
}

.close-button {
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
}

.popup-body {
  padding: 10px 15px;
}

#About_Me {
  display: flex;
  flex-direction: row;
  column-gap: 3vw;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 3;
  margin-top: 170vw;
  padding: 20px;
  color: white;
  max-width: 1440px;
  width: 80vw;
  align-items: center;
  background-color: #000;
  filter: drop-shadow(10px 10px #0000004D );
}

#Portrait {
  width: 20vw;
  min-width: 300px;
  margin-left: auto;
  margin-right: 0;
}

.Description h1,
.Description p {
  color: white;
}

.Description h1 {
  font-size: 4vw;
}

.Description p {
  font-size: clamp(1.3rem, 1.3vw, 3rem);
}

#Banner {
  background-color: black;
  position: fixed;
  top: 0;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 6;
  padding: 10px 0;
}

.Logo {
  display: grid;
  place-items: center;
}

#Logo {
  max-width: 100%;
  width: 300px;
}

.Filler, .Languages, .Logo {
  width: 30vw;
}

footer {
  margin-top: 10vh;
  background-color: black;
  width: 100vw;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.icon {
  width: 10px;
}

nav {
  color: white;
  width: 90vw;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

a:link, a:visited {
  color: white;
}

.lang-menu {
  width: 100px;
  margin-left: auto;
  text-align: right;
  font-weight: bold;
  margin-top: 25px;
  position: relative;
}
.lang-menu .selected-lang {
  display: flex;   
  justify-content: space-between;
  line-height: 2;
  cursor: pointer;
  padding-bottom: 5px;
}
.lang-menu .selected-lang:before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  background-image: url("https://flagsapi.com/DE/flat/64.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.lang-menu ul {
  margin: 0;
  padding: 0;
  display: none;
  background-color: #000;
  border: 1px solid #fff;
  position: absolute;
  top: 100%;    /* <-- fixed for seamless dropdown hover, was 40px */
  right: 0px;
  width: 125px;
  border-radius: 5px;
  box-shadow: 0px 1px 10px rgba(0,0,0,0.2);
}

.lang-menu ul li {
  list-style: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
}

.lang-menu ul li a {
  text-decoration: none;
  width: 125px;
  padding: 5px 10px;
  display: block;
}

.lang-menu ul li:hover {
  background-color: #f2f2f2;
}

.lang-menu ul li a:hover {
  color: black;
}

.lang-menu ul li a:before {
  content: '';
  display: inline-block;
  width: 25px;
  height: 25px;
  vertical-align: middle;
  margin-right: 10px;
  background-size: contain;
  background-repeat: no-repeat;
}

.de:before {
  background-image: url("https://flagsapi.com/DE/flat/64.png");
}

.en:before {
  background-image: url("https://flagsapi.com/GB/flat/64.png");
}


.lang-menu:hover ul {
  display: block;
}