*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: "Geologica", sans-serif;
    /*background: url('assets/landing_page/background_frieda.jpg') no-repeat center center fixed;*/
    background-size: cover;
    color: white;
    height: 100vh;
    background-color: black;
}

html, body {
  overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -10;
    display: none;
}

#bgvideo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -10;
    display: none;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  z-index: -1;
}

/* Video itself */
.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content above the video */
.page-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: white;
  text-align: center;
  z-index: 1;
}
header {
  position: absolute;
  padding-top: 30px;
  top: 0px;
  left: 0px;
  padding-left: 30px;
  display: flex;
  align-items: center;
  gap: 60px;
  z-index: 10;
  right: 0;
}

@media screen and (max-width: 850px) {
  header{
    padding-left: 5vw;
    padding-top: 5vw;
  }
}

#navbar_black_bg{
  top: 0;
  left: 0;
  position: absolute;
  z-index: -1;
  width: 700px;
}

header .logo {
  flex-shrink: 1;
}

header .logo img {
  height: 70px;
  z-index: 20;
}

@media screen and (max-width: 850px) {
  header .logo img {
    width: 20vw;       /* Scales with screen width */
    height: auto;
    max-width: none;
    position: absolute;
  }
}

nav.main-nav {
  position: relative;
  top: -25px; /* try -5px, -10px, -15px — adjust until it aligns visually */
  font-weight: 300;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

nav ul li {
  position: relative;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

nav a:hover {
  color: #FFA200;
  transition: 0.5s ease;
}

.highlighted a{
 color: #FFA200;
}


/**********DROPDOWN*************************************/


.dropdown {
  position: relative;
  padding-bottom: 10px;
}

.dropdown-menu {
    transform: none;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s ease;
    position: absolute;
    top: -230px;
    background: transparent;
    padding: 10px 0;
    /*display: none;*/
    flex-direction: column;
    align-items: center;
    gap: 0px;
    z-index: 20;
    white-space: nowrap;
    list-style: none;
    left: -20px;
    height: 0;
    margin: 0;
}
.dropdown.active .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    left: -20px;
    top: 30px;
    transition: 0.5s ease;
    height: auto;
}

@media screen and (max-width: 850px) {
  nav.main-nav .dropdown-menu {
    position: static;
    transform: none;
    background: none;
    padding: 0;
    margin-top: 0px;
    flex-direction: column;
    align-items: flex-end;
    gap: 0px;
  }
  .dropdown.active .dropdown-menu {
    margin-top: 20px;
  }
  .dropdown{
    padding-bottom: 0px;
  }
}

.dropdown-menu li {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 8px 0;
  width: 100px;
  padding: 5px 20px;
}

.game-icon {
  display: inline-block;
  text-align: center;
}

.icon-layer {
  position: relative;
  width: 100px;    
  height: 100px;
}

.circle-bg,
.game-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.circle-bg {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.game-logo {
  width: 70%;
  height: 70%;
  z-index: 2;
  transition: transform 0.2s ease;
}

.icon-layer:hover .game-logo {
  transform: translate(-50%, -50%) scale(1.05);
}



.footer {
  padding: 30px;
  z-index: 10;
}

@media screen and (min-width: 850px) {
  .footer {
    position: absolute;
    bottom: 30px;
    right: 30px;
  }

  .footer-content {
    justify-content: flex-end;
  }
}

.footer-content {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end; /* aligns to the right */
  gap: 15px;
}


.footer-content img {
  height: 30px;
  width: 30px;
  transition: 0.7s ease;
  filter: brightness(0) saturate(100%) invert(100%) sepia(100%) hue-rotate(10deg) brightness(105%) contrast(100%);
}

.footer-content img:hover {
  transition: 0.7s ease;
  filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(5000%) hue-rotate(-15deg) brightness(105%) contrast(100%);
}

.footer-content .imprint {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: 0.7s ease;
}

.footer-content .imprint:hover {
  filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(5000%) hue-rotate(-15deg) brightness(105%) contrast(100%);
}

#tiktoklogo {
  margin-right: -5px; /* or try 10px for more space */
}


#menu-toggle {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 20;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

#menu-toggle img {
  width: 28px;
  height: 28px;
}

@media screen and (max-width: 850px) {
  #menu-toggle {
    display: block;
  }

  #menu-toggle img {
  width: 28px;
  height: 28px;
}
@media screen and (max-width: 850px) {
  #menu-toggle img {
    width: 6vw;
    height: auto;
    max-width: 24px; /* optional upper limit */
  }
}

  nav.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    padding: 60px 40px 30px 30px;
    display: none;       
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    z-index: 15;
  }

  nav.main-nav.open {
    display: flex;
    transform: translateX(0%);
    opacity: 1;
  }

  nav.main-nav ul {
    flex-direction: column;
    gap: 0px;
    text-align: right;
  }

  nav.main-nav ul li {
    margin-bottom: 10px;
  }

  .show{
    display : inline
  }

  .hide{
    display: none
  }

  nav.main-nav a {
    font-size: 20px;
    font-weight: 300;
  }
  
}
#mobile-nav-bg {
  display: none;
  position: absolute;
  top: 0;
  right: 0; /* Align to right */
  height: 350px;
  z-index: 5;
  pointer-events: none;
  object-fit: contain;
}


@media screen and (max-width: 850px) {
#mobile-nav-bg.visible {
  display: block;
}
}

@media screen and (max-width: 850px) {
  nav.main-nav a.centered-games-label {
    text-align: center;
    width: 100%;
    font-size: 22px;
    font-weight: 400;
    padding-right: 2.5vw;
  }
}


/* Ensure header/footer stay styled */
header, .footer {
  z-index: 10;
}

.main-nav a {
  text-decoration: none;
  font-weight: 300;
}

.main-nav a:hover {
  color: orange;
}

.imprint-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* key change here */
  gap: 40px;
}

.imprint-text {
  flex: 1;
}

#navbar_black_bg_mobile {

  display: none;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.desktop-zigzag {
  display: block;
  pointer-events: none;
}

@media screen and (max-width: 850px) {
  .desktop-zigzag {
    display: none;
  }

  #navbar_black_bg_mobile {
    display: block;
  }
}

@media screen and (max-width: 850px) {
  .imprint-flex {
    flex-direction: column;
    align-items: center;
    text-align: right;
  }

  .rat-illustration {
    order: -1; /* moves the image to the top */
    width: 60vw; /* scale down for smaller screens */
    margin-bottom: 20px;
  }

  .imprint-content {
    text-align: center;
    padding: 0 10px;
  }

  .imprint-text {
    width: 70%;
  }
}