@import url('https://fonts.googleapis.com/css?family=Karla:400,700&display=swap');

:root {
  --bgColor: #223344;
  --bgColor2: #090a0f;
  --accentColor: #FFF;
  --font: 'Karla', sans-serif;
}

/* Ensure page renders immediately and fits screen */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font);
  background-color: #000;
  opacity: 1 !important;
  position: relative;
  overflow-x: hidden;
}

/* Background Video Styling - EXACT MATCH TO id="bgVideo" */
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

/* Profile Picture */
#profilePicture, #profilePicture img {
  position: relative;
  width: 96px;
  height: 96px;
  display: block;
  margin: 40px auto 20px;
  border-radius: 50%;
  object-fit: cover;
  -webkit-tap-highlight-color: transparent;
}

/* Header Text */
#userName {
  color: var(--accentColor);
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.25;
  display: block;
  font-family: var(--font);
  width: 100%;
  text-align: center;
  text-decoration: none;
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Links Container */
#links {
  max-width: 675px;
  width: auto;
  display: block;
  margin: 27px auto;
}

/* Individual Link Buttons */
.link {
  position: relative;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--accentColor);
  border: solid var(--accentColor) 2px;
  border-radius: 10px;
  font-size: 1rem;
  text-align: center;
  display: block;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 12px;
  padding: 12px;
  text-decoration: none;
  backdrop-filter: blur(5px);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
  .link:hover {
    background-color: var(--accentColor);
    color: #000;
  }
}

.link:active {
  background-color: var(--accentColor);
  color: #000;
}

/* Popup Overlay */
.overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease-in-out;
}

.popup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 320px;
  width: 90%;
  background-color: #111;
  border: 2px solid var(--accentColor);
  border-radius: 12px;
  padding: 20px;
  transform: scale(0.8);
  transition: 0.3s ease-in-out;
}

.popup-quote {
  color: var(--accentColor);
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
}

.popup-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

.overlay:target .popup {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 1.8rem;
  color: var(--accentColor);
  cursor: pointer;
  text-decoration: none;
}