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


.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;
}

.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; /* space between buttons */
  align-items: center; /* vertically align them if needed */
}
/* new style */
/* 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);
    
    /* NEW: Prevents padding from making the navbar wider than the screen */
    box-sizing: border-box; 
}

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

/* nav links */
.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);
}

/* underline hover */
.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%;
}

/* right side button */
.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 {
    width:5%;
    border-radius: 25px;
    border: 1px solid #fab500;
    transition: transform 0.7s ease-in-out;
}

.tsl-logo:hover {
    transform: scale(1.15);
    transform: scale(1.05) rotate(5deg);
}

.clickable {
    cursor:pointer;
}
.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;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .main-navbar {
        padding: 12px 16px;
    }

    .nav-left {
        gap: 16px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none; /* firefox */
        
        /* Constrain the width so overflow triggers */
        width: 100%;
        max-width: 100%;
        min-width: 0;
        
        /* Adds spacing at the very end of the scroll so the YT icon isn't cut off */
        padding-right: 20px; 
    }

    .nav-left::-webkit-scrollbar {
        display: none; /* chrome */
    }

    /* Target ALL direct children (img and a), preventing them from shrinking */
    .nav-left > * {
        flex-shrink: 0;
    }

    /* smaller font */
    .main-navbar a {
        font-size: 14px;
        text-shadow: 1px 1px 2px var(--shadow-color);
    }

    /* TSL button compact */
    .tsl-btn {
        padding: 5px 10px;
        font-size: 13px;
    }

    /* reduce heading size */
    h1 {
        font-size: 28px;
        text-align: center;
        padding: 0 10px;
    }

    body {
        justify-content: center;
        text-align: center;
    }
}

/* ================= VERY SMALL DEVICES ================= */
@media (max-width: 480px) {

    .main-navbar {
        /* Even tighter padding for very small screens */
        padding: 10px 12px;
    }

    .nav-left {
        /* Bring the items a little closer together */
        gap: 12px;
    }

    .main-navbar a {
        /* Scale down the text slightly */
        font-size: 13px;
        text-shadow: 1px 1px 2px var(--shadow-color);
    }

    h1 {
        font-size: 22px;
    }
}