/* ========== BASIS ========== */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
  text-decoration: none;
  outline: none;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #111;
  color: white;
  font-weight: 300; 
}

body, html {
  height: 100%;
  margin: 0;
}

header {
  position: relative; /* Zorg dat absolute kinderen zich hierbinnen positioneren */
  overflow: hidden;    /* Zodat niets uitsteekt onderaan */
}

.header-overlay {
  position: absolute;
  bottom: 0;
  right: 20%;
  /*width: 100%;*/
  height: 80%; /* Beperk hoogte tot 80% van header */
  display: flex;
  justify-content: center;
  align-items: flex-end; /* Zorgt dat de afbeelding onderin blijft */
  pointer-events: none;
  /*z-index: 5;*/
}

.header-overlay img {
  max-height: 100%; /* Beperkt tot 80% van de header via parent */
  width: auto;       /* Zorgt dat verhouding behouden blijft */
  object-fit: contain;
  display: block;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.headerTitle {
  position: absolute;
  top: 20px;
  left: 20vw;
  maxwidth: 80vw;
  text-align: left;
  color: #fff;
  font-size: 48pt;
  font-family: 'Cinzel Decorative', serif;
  max-height: 70px;
  overflow: hidden;
}

.glow-text {
  /*text-shadow: 0 0 4px rgba(0, 0, 0, 0.6); */
text-shadow: 0 0 6px black;
}

.CenterMobileOnly {
  text-align: inherit;
}

/* ========== HERO & OVERLAY ========== */
.hero {
  position: relative;  
  overflow: hidden;
  z-index: 0; 
}

.hero-image {
  max-width: 100%;
  min-height: 100px;
  width: auto;
  height: auto;
  object-fit: cover;
  object-position: top;
  display: block;
  margin: 0 auto;
}

.hero-bgimage {
  max-width: 100%;
  min-height: 100px;
  height: 340px;
  max-height: 340px;
  width: auto;
  object-fit: cover;
  object-position: top;
  display: block;
  margin: 0 auto;
  background-image: url('Valkyrie.png');
  background-position: left;
  background-repeat: no-repeat;
  background-size: 100% auto;
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*background: rgba(10, 10, 10, 0.2);*/
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1; 
  overflow: visible;
}

/* ========== TOP-BAR & ICONS ========== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.discord-icon, .discord-icon-off img {
  max-width: 64px;
  max-height: 64px;
  width: auto;
  height: auto;
  border-radius: 25%;
  display: block;
}

.avatar {
  max-width: 64px;
  max-height: 64px;
  width: auto;
  height: auto;
  border-radius: 50%;
}

.user-info {
  display: flex;
  align-items: center;
  position: absolute;
  cursor: pointer;
  top: 30px;
  right: 30px;
}

.username {
  font-weight: bold;
  font-family: 'Cinzel Decorative', serif;
  margin-right: 10px;
}

.logout {
  color: #fff;
  text-decoration: underline;
  font-size: 0.9em;
}

/* ========== USER DROPDOWN MENU ========== */
.user-dropdown {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(30, 30, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 5px;
  min-width: 160px;
  z-index: 999;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.user-dropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-dropdown .menu-username {
  color: white;
  font-weight: bold;
  margin-bottom: 10px;
}

.user-dropdown a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 6px 0;
  font-size: 0.95em;
}

.user-dropdown a:hover {
  text-decoration: underline;
}

/* ========== NAVIGATIE ========== */

.login-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1.2em;
  font-family: 'IM Fell English SC', serif;
  color: #fff;
  background: linear-gradient(145deg, #5865F2, #4e58e5);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.4), inset 0 0 4px rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.login-button:hover {
  background: linear-gradient(145deg, #6b75f9, #5a66f4);
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.5), inset 0 0 6px rgba(255, 255, 255, 0.1);
}

.login-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: middle;
}



/* ========== CONTENT & FOOTER ========== */

.maincontent {
  flex: 1;
  display: flex;
  justify-content: center;
}

.content {
  max-width: 1500px;
  width: 80vw;
  text-align: left;
  padding: 30px;
}

.content-wide {
  max-width: 85vw;
  width: 85%;
}

.content-narrow {
  max-width: 780px;
  width: 60vw;
}

.footer {
  text-align: center;
  padding: 10px;
  background: #222;
  color: #aaa;
  font-size: 0.9em;
}

/* ========== RESPONSIVE (≤768px) ========== */
@media (max-width: 768px) {

  .CenterMobileOnly {
    text-align: center;
  }

  .headerTitle {
    top: 10px;
    font-size: 28pt;  
    max-height: 42px;
  }

  .avatar {
    max-width: 32px;
    max-height: 32px;
  }

  .discord-icon img {
    display: none;
  }

  .user-info .username {
    display: none;
  }

.user-info {
  top: 20px;
  right: 20px;
}

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .user-info {
    align-self: flex-end;
  }

  .content {
    padding: 10px;
    max-width: 95%;
    width: 95vw;
  }
}

/* ========== FONT IMPORT (in HTML <head>) ========== */
/* <link href="https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&display=swap" rel="stylesheet"> */
