/* ========================================================================
   WHATSMYCARD INDEX PAGE
   ------------------------------------------------------------------------
   FILE:        index.php
   PURPOSE:     Main landing page for Whatsmycard.com and effect.
   CONTEXT:     Critical to user-facing functionality.
                Do NOT rename, relocate, or refactor without validating
                all dependent modules and routing logic.
   AUTHOR:      Steven
   LAST REVIEW: [Insert Date]
   ========================================================================
   ================       WHATSMYCARD INDEX PAGE       ====================
   ======================================================================== */

body {
  position: relative;
  font-family: sans-serif;
  color: #fff;
  text-align: center;
  margin: 0;
  background: #ffffff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 255) 0%, rgba(0, 0, 0, 1) 3%);
}

.vars {
  margin-top: 40px;
  font-size: 1.2em;
}

body.overlay-active {
  overflow: hidden;
}

.button-pulse {
  animation: pulse 4s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.07); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}
.button2-pulse {
  animation: pulse2 4s infinite;
  display: flex;
  
}
@keyframes pulse2 {
  0% { transform: scale(1.07); opacity: 1; }
  50% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.07); opacity: 1; }
}

#retryButton {
  z-index: 200;
}

  /* === Responsive Aspect Ratio Container === */
.aspect-outer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100dvh; /* or use JS fallback for mobile quirks */
  width: 100%;
}

 .aspect-wrapper {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 640px;
  margin: auto;
  position: relative;
  overflow: hidden;
display: flex;
}

/*  ========================================================================
   ================       WHATSMYCARD INDEX PAGE       ====================
   ======================================================================== */

  .aspect-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 510px;
    display: flex;
    flex-direction: column;
  }

  /* .header-logo {
   
   object-fit: scale-down;
    margin-bottom: 0px;
    padding-top: 0px; 

  }*/

.startimage-wrapper {
height: 100%;

}

  #videoContainer {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-height: 360px;
background: black;
  }

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/*  ========================================================================
   ================       WHATSMYCARD INDEX PAGE       ====================
   ======================================================================== */

  #startButton {
    width: fit-content;
    font-size: 28px;
    font-weight: bold;
    padding: 7px 9px;
    background: black;
    color: white;
    border: #fff85b;
    border-width: 2px;
    border-style: solid;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
	position: absolute;
    white-space: nowrap;
    z-index: 500;
  }

  #startButton:hover {
    background: darkgoldenrod;
  }

  #startButton:hover {
    background: darkgoldenrod;
  }

#socialOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 9999;
  display: none; /* toggle this via JS */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.7);
}
#socialOverlay h2 {
    color: white;
    margin-bottom: 12px;
    margin-top: 1px;
    font-size: 1.8em;
  }

  .social-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-icons a img {
    width: 48px;
    height: 48px;
    filter: brightness(0) saturate(100%) invert(62%) sepia(89%) saturate(748%) hue-rotate(1deg) brightness(92%) contrast(90%);
    transition: transform 0.2s ease;
  }

/*  ========================================================================
   ================       WHATSMYCARD INDEX PAGE       ====================
   ======================================================================== */

  .social-icons a img:hover {
    transform: scale(1.1);
  }

  #retryButton {
    font-size: 1em;
    padding: 10px 20px;
    background: #ffffff;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

#visitPageButton {
    font-size: 1em;
    padding: 10px 20px;
    background: #ffffff;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
  }

#visitPageButton:hover {
background: #ddd;
}

  #retryButton:hover {
    background: #ddd;
  }

  .videoIndexDisplay {
/*    margin-top: 0px; */
    color: white;
    display: none;
  }

.vignette-wrapper {
height: 100%;
position: relative;
  /* display: inline-block; */
border-radius: 14px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;

}

.vignette-wrapper img {
 aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 640px;
  margin: auto;
  position: relative;
  overflow: hidden;
display: flex;
  
  /*  ========================================================================
   ================       WHATSMYCARD INDEX PAGE       ====================
   ======================================================================== */
  
border-radius: 14px;
object-fit: fill;
}