:root {
  --shadow-color: #7d7d7dba;
}

/* ADDED: Reset for html to prevent default mobile browser gaps */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    /* Default fallback background before JS loads high-res */
    background: linear-gradient(#c3c3c338, #000348ad), url('https://pbs.twimg.com/media/GE2lHG7awAAl3mJ?format=jpg&name=large') center / cover no-repeat;
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    font-family: 'Arial', sans-serif;
}

#s2_form {
    cursor: pointer;
    background: linear-gradient(to left, #7bff29, #ffffff, #ff9500, #ffffff, #3bff25);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlare 3s linear infinite;
}

#main-content {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Loader Screen */
#loader {
    position: fixed;
    top: 0;  /* ADDED: Forces loader to the absolute top */
    left: 0; /* ADDED: Forces loader to the absolute left */
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#loader img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* NAVBAR */
.main-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(1px);
    box-sizing: border-box; 
}

.nav-left {
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-navbar a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
    cursor: pointer;
    text-shadow: 2px 2px 5px var(--shadow-color);
}

.main-navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: black;
    transition: 0.3s;
}

.main-navbar a:hover::after {
    width: 100%;
}

/* Buttons & Elements */
.tsl-btn {
    background: #fff;
    color: #000 !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.tsl-btn:hover {
    background: #e6e6e6;
}

.home-logo {
    width: 8%;
    border-radius: 15px;
    border: 1px solid #fab500;
    transition: transform 0.7s ease-in-out;
}

.tsl-logo, .ts-logo {
    display: block;
    margin: 0 auto;
    border-radius: 40px;
    border: 2px solid #fab500;
    transition: transform 0.7s ease-in-out;
}

.ts-logo {
    width: 50%;
}

.tsl-logo {
    width: 5%;
    border-radius: 25px;
}

.ts-logo:hover, .tsl-logo:hover {
    transform: scale(1.15) rotate(10deg);
}

.clickable { cursor: pointer; }

/* Social Colors */
.tsl_yt { color: red; }
.tsl_insta {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tsl_fb { color: #1877F2; }

/* Typography */
.heading-black {
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    color: #000000;
}

.heading-white {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    color: #ffffff;
}

.title-text {
  background: linear-gradient(to left, blue, yellow, green);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGlare 3s linear infinite;
}

@keyframes textGlare {
  0% { background-position: 200% center; }
  100% { background-position: 0% center; }
}

.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dark-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #282828;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.dark-button:hover {
    background-color: #fff;
    color: #000;
    transition: 0.3s;
}

/* ================= COUNTDOWN STYLES ================= */
.countdown-wrapper {
    margin-top: 40px; 
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.countdown-title {
    color: #ffffff;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}

.time-val {
    font-size: 42px;
    font-weight: bold;
    color: #fab500;
    text-shadow: 0 2px 10px rgba(250, 181, 0, 0.4), 2px 2px 5px rgba(0,0,0,0.8);
    line-height: 1;
}

.time-label {
    font-size: 11px;
    color: #ffffff;
    letter-spacing: 1px;
    margin-top: 8px;
    opacity: 0.8;
    font-weight: bold;
}

.time-separator {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
    align-self: flex-start;
    margin-top: -2px;
}

/* ================= REGISTER BUTTON ================= */
.register-button {
    margin-top: 25px;
    padding: 12px 30px;
    background-color: transparent;
    color: #fab500;
    border: 2px solid #fab500;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.register-button:hover {
    background-color: #fab500;
    color: #000;
    box-shadow: 0 6px 20px rgba(250, 181, 0, 0.4);
    transform: translateY(-2px);
}

.register-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(250, 181, 0, 0.3);
}

/* ================= MOBILE RESPONSIVENESS ================= */
@media (max-width: 768px) {
    .main-navbar { padding: 12px 16px; }
    .nav-left {
        gap: 16px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-right: 20px; 
    }
    .nav-left::-webkit-scrollbar { display: none; }
    .nav-left > * { flex-shrink: 0; }
    .main-navbar a { font-size: 14px; text-shadow: 1px 1px 2px var(--shadow-color); }
    .tsl-btn { padding: 5px 10px; font-size: 13px; }
    h1 { font-size: 28px; text-align: center; padding: 0 10px; }
    body { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .main-navbar { padding: 10px 12px; }
    .nav-left { gap: 12px; }
    .main-navbar a { font-size: 13px; text-shadow: 1px 1px 2px var(--shadow-color); }
    h1 { font-size: 22px; }
    
    /* Countdown & Register button adjustments for mobile */
    .countdown-wrapper { padding: 15px 20px; }
    .time-val { font-size: 32px; }
    .time-box { min-width: 50px; }
    .time-separator { font-size: 28px; gap: 5px; }
    
    .register-button {
        padding: 10px 24px;
        font-size: 14px;
        margin-top: 20px;
    }
}