/* --- GODTHRONE INDEX GLOBAL CSS --- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    hyphens: none;
}

body {
    font-family: 'Lexend Exa', sans-serif;
    /* Main Wallpaper Setup */
    background: url("image/godthronechronicles.png") no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevent scrolling on landing */
}

.button-box {
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* This breaks it out of the center flex layout */
    position: absolute; 
    
    /* Example: This puts the button near the bottom center */
    bottom: 25%; 
    left: 55%;
    transform: translateX(-50%); /* Keeps it perfectly centered horizontally */
}

/* GLOBAL CSS BUTTON REDESIGN */
.button-link {
    position: relative;
    padding: 12px 35px;
    background: rgba(0, 0, 0, 0.7); /* Deep cinematic base */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-family: 'Acme', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(10px); /* Modern glass effect */
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Hover State - Global Pink Accent */
.button-link:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #ff6b9d; /* Global Pink Border */
    color: #ff6b9d;        /* Global Pink Text */
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

/* Secret Sauce: Radial Glow (Before) */
.button-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 107, 157, 0.15), transparent 70%);
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
}
.button-link:hover::before { 
    opacity: 1; 
}

/* Secret Sauce: Sweep Effect (After) */
.button-link::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(25deg);
    transition: 0.6s;
    pointer-events: none;
}
.button-link:hover::after { 
    top: 120%; 
}

/* Scroll button protocol */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    border: 1px solid #ff6b9d;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    z-index: 100;
    opacity: 0.6;
}

.scroll-to-top:hover {
    opacity: 1;
    box-shadow: 0 0 10px #ff6b9d;
}

/* Background wrapper */
.bg-wrapper {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    background-color: black; /* FIXES WHITE SCREEN */
}


/* Default: desktop layout (Image 1) */
/* Desktop: Image 1 layout */
.bg-image {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: auto;
    object-fit: contain;
}

.title-wrapper {
    position: relative;
    z-index: 10;
    height: 100vh;          /* full screen height */
    width: 100vw;           /* full screen width */
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    align-items: center;     /* horizontal centering */
    text-align: center;
}



.game-title {
    font-size: clamp(2rem, 4vw, 6rem);
    color: white;
    margin: 0;
    letter-spacing: 2px;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 2rem);
    color: #c0c0c0;
    margin-bottom: 40px;
}

.play-button {
    margin-top: -20px; /* moves button UP */
}




.play-button:hover {
    background-color: #1b1b1b;
}


/* full-screen flex centering instead of absolute px */
.start-container {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}


.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}



.play-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.25rem);
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
}

.play-button:hover {
  background-color: #1b1b1b;
}

.game-guide-link {
  display: inline-block;
  margin-top: 1px;
  color: #9ea194;
  text-decoration: none;
}

.game-guide-link:hover {
  text-decoration: none;
  color: #1b1b1b;
}

/* Tablet & phone: Image 2 layout */
@media (max-width: 768px) {
    .bg-image {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Tiny screens: flip if needed */
@media (max-width: 480px) {
    .bg-image {
        transform: translate(-50%, -50%) scaleX(-1);
    }
}


@media (max-width: 480px) {
    .bg-image {
        transform: translate(-50%, -50%) scaleX(-1);
    }
}
