@font-face {
    font-family: 'TerminaTest';
    src: url('../fonts/TerminaTest-Black.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Russo One';
    src: url('../fonts/RussoOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'TerminaTest', sans-serif;
    background-color: black;
    color: white;
    overflow: hidden; /* Prevents scrolling if video overflows */
}

:root {
  --topbar-h: 50px;
  --footer-h: 50px;
}

/* Make the hero its own centering context */
.hero {
  min-height: calc(100svh - var(--topbar-h) - var(--footer-h));
  display: flex;
  flex-direction: column;
  justify-content: center;   /* vertical center */
  align-items: center;       /* horizontal center */
  text-align: center;
  gap: 12px;                 /* space between items */
  padding: 0 16px;           /* side padding for small screens */
  margin: 0 auto;
}

/* Ensure the typewriter pseudo-element positions correctly */
.typewriter { position: relative; }

/* Optional: tame default margins that can nudge layout */
.index-heading { margin: 0 0 0.25em; }

/* Background video */
.background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vw; /* Full width of the viewport */
    height: auto; /* Maintain aspect ratio without stretching vertically */
    transform: translate(-50%, -50%); /* Center the video */
    z-index: -1; /* Places the video behind all content */
    opacity: .5; /* Adjusts opacity for a softer effect */
}

/* Video fit the whole screen on smaller screens */
@media (max-aspect-ratio: 16/9) {
    .background-video {
        width: auto; /* Switch to auto width */
        height: 100vh; /* Video fill the screen height */
        opacity: .6;
    } 
}

/* Main Layout */
.centered-layout {
    display: flex;
    flex-direction: column; /* Stacks items vertically */
    justify-content: center; /* Centers content vertically */
    align-items: center; /* Centers content horizontally */
    height: 100vh;
    text-align: center;
    position: relative; /* Ensures main content stays above the video */
    padding-top: 0; /* Removes any unwanted padding */
}

/* Heading with Glow Effect */
.index-heading {
    font-family: 'TerminaTest', sans-serif;
    font-size: 3rem;
    color: white;
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.8)); /* Adds subtle glow effect */
}

/* VIP Logo Style */
.home-logo {
    max-width: 140px;
    margin-top: 20px;
    margin-bottom: 40px;
    animation: smooth-glow 3s infinite ease-in-out; /* Smooth glowing animation */
}

/* Keyframes for smooth glow animation */
@keyframes smooth-glow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgb(205, 182, 132)); /* Initial and final glow */
    }
    50% {
        filter: drop-shadow(0 0 60px rgb(255, 215, 160)); /* Brightest glow */
    }
}


/* Wrapper to keep the button centered and handle the Discord logo positioning */
.button-wrapper {
    position: relative; /* Allows absolute positioning of the Discord logo */
    display: flex;
    justify-content: center; /* Ensures the button is centered within the wrapper */
}

.Discord-btn {
    display: inline-flex;
    align-items: center; /* Aligns text and logo vertically */
    justify-content: center; /* Centers content horizontally */
    background-color: #5865F2; /* Discord's color */
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    border: none;
    padding: 10px 24px;
    border-radius: 50px; /* Fully rounded corners */
    transition: background-color 0.3s, box-shadow 0.3s;
    font-weight: bold;
    cursor: pointer;
    z-index: 1; /* Ensures button stays above other elements */
    box-shadow: 0 0 50px rgba(88, 101, 242, 0.8); /* Glow effect */
    margin-bottom: 20px;
}


.Discord-btn:hover {
    background-color: #4752c4; /* Slightly darker shade for hover effect */
    box-shadow: 0 0 20px rgba(88, 101, 242, 1); 
}

/* Discord Logo Styling Inside the Button */
.discord-logo {
    width: 30px; /* Adjust the width of the logo */
    height: auto; /* Maintain aspect ratio */
    margin-left: 8px; /* Space between the logo and the text */
    fill: white; /* Ensure the logo color matches the text */
}

/* Small Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 60px; /* Position it below the hamburger menu */
    right: 20px; /* Align it with the hamburger menu */
    background: #333;
    border-radius: 8px;
    padding: 10px;
    z-index: 1100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* YouTube Link Styling (Visible on Mobile) */
.youtube-link.mobile-only {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Show dropdown when active */
.dropdown-menu.active {
    display: block !important;
}



/* Enable Scrolling in Landscape Mode */
@media (orientation: landscape) and (max-width: 1000px) {
    .centered-layout {
        justify-content: center !important; /* Adjust vertical positioning */
        padding-top: 60px !important; /* Space for the hamburger menu */
    }
    body {
        overflow: auto; /* Enable scrolling */
    }
    .vg-container {
        bottom: 40px !important; /* Footer height + spacing */
        right: 10px !important; /* Align container near the right edge of the viewport */
        gap: 5px !important; /* Space between Pavlov and VG images */
    }
    .site-footer {
        height: 40px !important; /* Smaller height */
        padding: 4px 10px !important; /* Reduced padding */
        font-size: 0.7rem !important; /* Smaller text */
    }
    .site-footer p {
        margin: 0 !important;
        font-size: 0.8rem !important; /* Match text size to footer */
    }
    .footer-button {
        padding: 7px 12px !important;
        font-size: 0.85rem !important; /* Smaller text size */
        margin: 0 1px !important; /* Reduced spacing between buttons */
    }
}


/* Adjust layout for mobile screens */
@media (max-width: 1000px) {
    .index-heading {
        font-size: 2rem;
    }
    .centered-layout {
        justify-content: center !important; /* Adjust vertical positioning */
        padding-top: 60px !important; /* Space for the hamburger menu */
    }
    .youtube-link.desktop-only {
        display: none !important;
    }
    .menu-button {
        display: flex !important; /* Show the button */
        flex-direction: column !important; /* Align lines vertically */
        justify-content: center !important; /* Center lines within the button */
        align-items: center !important; /* Center horizontally */
    }
    .vg-container {
        bottom: 30px !important; /* Footer height + spacing */
        right: 10px !important; /* Align container near the right edge of the viewport */
        gap: 5px !important; /* Space between Pavlov and VG images */
    }
    .vg {
        height: auto !important; /* Allow height to scale proportionally */
        max-height: 35px !important; /* Set a maximum height */
        width: auto !important; /* Maintain aspect ratio */
        transition: transform 0.3s ease, box-shadow 1s ease, opacity 0.3s ease !important;
    }
    .Pavlov {
        height: auto !important; /* Allow height to scale proportionally */
        max-height: 15px !important; /* Set a maximum height */
        width: auto !important; /* Maintain aspect ratio */
        transition: transform 0.3s ease, box-shadow 1s ease, opacity 0.3s ease !important;
    }
    .site-footer {
        height: 30px !important; /* Smaller height */
        padding: 4px 10px !important; /* Reduced padding */
        font-size: 0.7rem !important; /* Smaller text */
    }

    .site-footer p {
        margin: 0 !important;
        font-size: 0.6rem !important; /* Match text size to footer */
    }

    .footer-button {
        padding: 3px 3px !important; /* Smaller padding */
        font-size: 0.5rem!important; /* Smaller text size */
        margin: 0 1px !important; /* Reduced spacing between buttons */
    }
    .nav-buttons-container {
        display: none !important;
    }
    
}
/* Top Bar Styles */
.top-bar {
    position: fixed; /* Sticks to the top */
    top: 0;
    left: 0;
    width: 100%;
    height: 50px; /* Height of the bar */
    background-color: rgba(0, 0, 0, .8); /* Solid black background */
    z-index: 1000; /* Ensures it stays above other elements */
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes elements apart */
    padding: 0 20px; /* Padding inside the bar */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); /* Slight shadow for depth */
}

/* Container for nav buttons */
.nav-buttons-container {
    display: flex;
    gap: 10px; /* Adds space between buttons */
}

/* Button inside the Top Bar */
.nav-button {
    color: white; /* White text */
    text-decoration: none;
    font-size: 1rem;
    font-family: 'TerminaTest', sans-serif;
    text-transform: uppercase; /* Makes the text stand out */
    padding: 8px 15px;
    border: 2px solid white; /* White border */
    border-radius: 5px; /* Rounded corners */
    transition: all 0.3s ease; /* Smooth hover effect */
}

.nav-button:hover {
    background-color: white; /* White background on hover */
    color: black; /* Black text on hover */
}


/* Push content below the top bar */
body {
    padding-top: 50px; /* Offset to avoid overlapping with the bar */
}

/* Menu Button Hidden by Default */
.menu-button {
    display: none; /* Hidden on desktop */
    position: absolute; /* Positioned for alignment within the top bar */
    top: 10px; /* Space from the top */
    right: 20px; /* Align to the right edge */
    width: 40px;
    height: 30px;
    cursor: pointer;
    z-index: 1100; /* Ensure it stays above other elements */
}

/* Hamburger Lines Inside the Menu Button */
.menu-button span {
    display: block;
    width: 30px; /* Width of each line */
    height: 4px; /* Thickness of each line */
    background: white; /* Line color */
    margin: 4px 0; /* Space between lines */
    transition: transform 0.3s, background-color 0.3s; /* Smooth animations */
}

/* Ensure YouTube link appears above the footer */
.youtube-link.desktop-only {
    position: fixed;
    bottom: calc(50px + 10px); /* Footer height (50px) + desired spacing (10px) */
    left: 20px; /* Adjust based on preference */
    z-index: 1000; /* Ensure it stays above other content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;/* Smooth transition for hover effects */
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6)); /* Adds a red glow effect */
}

/* Hover Effect for .vg */
.youtube-link.desktop-only:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 1)); /* Brighten glow on hover */
    opacity: 100%;
}

/* Parent Container for Both Images */
.vg-container {
    position: fixed; /* Keeps the container fixed relative to the viewport */
    bottom: 60px; /* Footer height + spacing */
    right: 20px; /* Align container near the right edge of the viewport */
    display: flex; /* Flexbox for horizontal alignment */
    align-items: flex-end; /* Align both images to the bottom */
    gap: 10px; /* Space between Pavlov and VG images */
    z-index: 1000; /* Ensure the container appears above other content */
}

/* Pavlov Image (Left Side) */
.Pavlov {
    height: 30px; /* Smaller height for the Pavlov image */
    width: auto; /* Maintain aspect ratio */
    margin-bottom: 10px; /* Additional gap from the footer */
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2)); /* Subtle glow effect */
    transition: transform 0.3s ease, box-shadow 1s ease, opacity 0.3s ease;
    opacity: 0.5; /* Initial transparency */
}

/* VG Image (Right Side) */
.vg {
    height: 60px; /* Match original height for VG */
    width: auto; /* Maintain aspect ratio */
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.2)); /* Subtle glow effect */
    transition: transform 0.3s ease, box-shadow 1s ease, opacity 0.3s ease;
    opacity: 0.5; /* Initial transparency */
}

.vg:hover {
    transform: scale(1.1); /* Slight enlargement on hover */
    filter: drop-shadow(0 0 30px rgba(255, 0, 0, 1)); /* Brighter glow on hover */
    opacity: 1; /* Full opacity on hover */
}

/* Footer Styles */
.site-footer {
    position: fixed; /* Keeps the footer at the bottom */
    bottom: 0;
    left: 0;
    width: 100%; /* Stretches across the width of the viewport */
    height: 50px; /* Ensure a consistent height */
    text-align: center;
    padding: 8px 20px;
    background: rgba(20, 20, 20, 0.8); /* Semi-transparent background */
    color: white;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    z-index: 999; /* Ensures it stays above other elements but below the link */
}

/* Body Padding to Avoid Content Overlap */
body {
    padding-bottom: 50px; /* Matches footer height to avoid content overlap */
}

.site-footer p {
    margin: 0;
    font-family: 'Russo One', sans-serif; /* Matches theme font */
}

/* Footer Button Styles */
.footer-button {
    display: inline-block;
    margin: 0 2px;
    padding: 7px 12px;
    font-size: 0.85rem;
    font-family: 'Russo One', sans-serif;
    color: white;
    background: rgba(50, 50, 50, 0.8); /* Matches the theme */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle border */
    border-radius: 5px;
    text-decoration: none; /* Removes underline */
    transition: all 0.3s ease-in-out;
}

.footer-button:hover {
    background: rgba(80, 80, 80, 1); /* Slightly brighter background */
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05); /* Lift effect */
}

.footer-button:active {
    background: rgba(40, 40, 40, 1); /* Darker on click */
    transform: scale(0.95); /* Pressed effect */
}

.footer-button:visited {
    color: white; /* Prevent ugly purple visited state */
}

/* Prevent content overlap */
body {
    padding-bottom: 60px; /* Adjust to match footer height */
}

/* Side Menu (Initially Hidden) */
.side-menu {
    position: fixed;
    top: 0;
    left: -250px; /* Offscreen by default */
    width: 250px;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding-top: 60px; /* Space for close button */
    z-index: 1200;
}

/* When menu is active */
.side-menu.active {
    left: 0;
}

/* Close Button */
.close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Side Menu Links */
.side-menu-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s;
    text-transform: uppercase; /* Makes the text stand out */
}

.side-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hamburger Menu Button (Visible on Mobile) */
.menu-button {
    display: none; /* Hidden on desktop */
    position: absolute;
    top: 10px;
    right: 20px;
    width: 40px;
    height: 30px;
    cursor: pointer;
    z-index: 1100;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.menu-button span {
    display: block;
    width: 30px;
    height: 4px;
    background: white;
    margin: 4px 0;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 0 10px rgba(255, 255, 255, 1); /* Glow effect */
}

/* Show hamburger on mobile */
@media (max-width: 1000px) {
    .menu-button {
        display: flex;
    }
}

/* YouTube Logo in Side Menu */
.side-menu .side-menu-youtube {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.side-menu .side-menu-youtube:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 1));
}


.typewriter-spacer {
    height: 0;
    transition: height 0.6s ease;
}

.typewriter-spacer.expand {
    height: 15px; /* or whatever looks best with your spacing */
}

.typewriter::after {
    content: "Crossplay Pavlov VR competition. Built by players. Powered by Community.";
    visibility: hidden;
    white-space: nowrap;
    display: block;
    position: absolute;
    pointer-events: none;
    height: 0;
}

.typewriter {
    font-size: clamp(1rem, 2.5vw, 1.1rem); /* Responsive font size */
    font-weight: 300;
    color: #cccccca5;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.4em;
    border-right: none; /* moved to .typewriter-text */
    margin: 0.2em auto 0.5em;
    padding: 0 1rem; /* give room to breathe */
    max-width: 100%;
    box-sizing: border-box;
}

.typewriter-text {
    display: inline;
    white-space: normal;
    word-break: break-word;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: rgba(255, 255, 255, 0.687);
    margin-left: 2px;
    opacity: 0; /* Hidden by default */
}

.cursor.blink {
    animation: blink-caret 0.8s step-end infinite;
    opacity: 1;
}

@keyframes blink-caret {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}


/* Fade for the "What is VIP" block */
@keyframes fadeIn {
    to { opacity: 1; }
}

.what-is-vip.hidden {
    opacity: 0;
    transition: opacity 1.5s ease;
}

.what-is-vip.visible {
    opacity: 0.9;
}
