@import 'colours.css';

/* Remove default margins/padding */
html, body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  height: 100%;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

main,
header,
footer {
  position: relative;
  z-index: 1000;
}

body {
    background-image: url("../static/images/background_only.webp");
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed; /* Keeps background static */
    background-repeat: no-repeat;
    /*overflow: hidden;*/
}

#backgroundContainer{
  z-index: 0;
  inset: 0;         /* fills the screen edge-to-edge */
}

#pageSectionContainer{
  position: relative;  /* <-- makes z-index take effect */
  z-index: 10;
  padding-top: 0;
}

.bg-overlay {
    background-color: rgba(0, 0, 0, 0); /* Start fully transparent */
    position: fixed;
    padding-top: 63px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let users interact with underlying content */
    transition: background-color 0.2s ease;
    z-index: 3; /* Ensure it's above background but below nav/content */
}


/* Custom viewport height variable */
:root {
  --vh: 100vh; /* Fallback for browsers that don't support JavaScript */
  --vw: 100vw;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
  display: none;
}

/* Each full-screen div */
.full-screen {
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  background-size: auto 110%;
  background-position: center;
  background-repeat: no-repeat;
}

.scroll-snap-container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100svh;              /* small viewport height (accounts for bars) */
    height: 100dvh;              /* dynamic viewport height (newer Safari/Chromium) */
    scroll-padding-bottom: env(safe-area-inset-bottom, 0px);
    scroll-padding-top: 10px;
    scroll-behavior: smooth;
}

/* Each section fills the screen minus the navbar */
.scroll-snap-section {
    scroll-snap-align: start;
    min-height: 100svh;
    min-height: 100dvh;
    background: rgba(0,0,0,0.01); /* almost-invisible but forces a repaint */
    padding-top: 63px; /* Push content below fixed navbar if necessary */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}


/* Grid layout for the first full-screen div */
#div-1 {
  display: grid;
  grid-template-rows: 25px 0.4fr 0.6fr 40px;
}

/* Top banner styling */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1.2rem;
}

/* Empty space styling (if needed) */
.empty-space {
  /* This area is intentionally left blank */
}

/* The two columns (side-by-side) */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.left-col, .right-col {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0);
  color: black;
  font-size: 1rem;
}

.right-col{
  justify-content: right;
  padding-right: 20%;
}

/* New styling for content inside the left column */
.left-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align items to the left */
  justify-content: center;
  width: 100%;
  padding-left: 20px;  /* Optional padding for spacing */
  box-sizing: border-box;
}

.left-content .word {
  color: white;
  font-weight: bold;
  font-size: clamp(1.5rem, calc(var(--vh, 3vh) * 13), 5.5rem);
  margin-left: 35%;
  margin-right: 20%;
  line-height: 1;
}


/* Container for the buttons in the right column */
.right-content {
  display: flex;
  flex-direction: column;
  justify-content: right;
  text-align: right;
  height: 100%;
}

/* Style for the menu buttons */
.menu-button {
  flex: 1;
  border: none;
  background: transparent;
  color: white;
  font-weight: bold;
  text-shadow: 0 0 3px black;
  font-size: clamp(0.5rem, calc(var(--vh, 3vh) * 8), 2.6rem);  /* Increased font size */
  text-align: right;
  /*padding-top: 40px ;*/
  padding-right: 20px;               /* Optional: add some right padding */
  cursor: pointer;
  transition: color 0.3s, text-shadow 0.3s;
}

/* Hover effect: change text color and add a white silhouette */
.menu-button:hover {
  color: var(--bad-actors-orange);
  text-shadow: 0 0 3px black;
}


/* Icons row styling */
.icons {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 1.2rem;
}

/* Specific grid layout for div-2 */
#div-2 {
  display: grid;
  /* Define three rows:
     - 80px for the banner,
     - auto for the central columns,
     - 100px for the icons */
  grid-template-rows: 80px 120px auto 40px;
}

/* Specific grid layout for div-2 */
#div-3 {
  display: grid;
  /* Define three rows:
     - 80px for the banner,
     - auto for the central columns,
     - 100px for the icons */
  grid-template-rows: 80px 120px auto 40px;
  background-repeat: repeat;
}

/* Larger banner styling for div-2 */
.large-banner {
  display: flex;
  align-items: center;
  padding-left: 20px;  /* adjust as needed */
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: clamp(2rem, 5vw, 3rem);  /* larger responsive font */
}

.banner-text {
  text-align: left;
  font-weight: bold;
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: left;
  padding-right: 40%;
  background: rgba(0, 0, 0, 0);
  color: white;
  text-shadow: 0 0 3px black;
  font-size: clamp(0.2rem, calc(var(--vh, 3vh) * 2.1), 1rem);
  margin-left: 20px;
}

/* Central three columns container */
.three-columns {
  display: grid;
  grid-template-columns: clamp(20%, calc(var(--vw, 3vw) * 2.1), 40%) 1fr 1fr; /* three equal columns */
  height: 100%;
  /* Optionally, add a gap between columns */
  gap: 10px;
}

/* Generic column styling */
.col {
  padding: 20px;
  color: white;
  /* Ensure content is centered vertically if desired */
  display: flex;
  align-items: center;
}

/* Left and right columns can have additional styling if needed */
.left-col-2, .right-col-2 {
  text-align: left;  /* left align text */
  flex-direction: column;
  align-items: flex-start; /* This will left-align the children */
}

#long-answer{
  text-align: left;
  justify-content: left;
  margin: 0;
}

.square {
  text-align: left;
  font-size: clamp(0.2rem, calc(var(--vh, 3vh) * 2.1), 1rem);
}

.square:after {
  content: "";
  display: inline-block;
  width: 100%;
}

#hero-msg { font-variant-numeric: tabular-nums; }

#hero-msg .countdown {
  color: var(--bad-actors-orange);
  white-space: nowrap;           /* keep days + time on the same line */
  display: inline-block;
}
#hero-msg .cd-time { font-variant-numeric: tabular-nums; }
#hero-msg .cd-sep { margin: 0 .35ch; }  /* small space around the dash */