* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: rgb(40, 40, 40);
    color: white;
    line-height: 1.6;
}

/* Desktop default? */
.container {
    width: 80%;
    margin: auto;
}

#nav-links {
    flex-direction: row;
    align-items: center;
    display: flex;
    gap: 10px;
}

/* Mobile fixes */
@media (max-width: 769px) {
    #nav-links {
        display: none;
        flex-direction: column;
        background-color: #111;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        z-index: 1000;
        gap: 10px;
    }

    #nav-links.active {
        display: flex;
    }

    #nav-links li {
        padding: 1rem 0;
        border-bottom: 1px solid #333;
    }

    #hamburger {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        cursor: pointer;
        padding: 10px;
        z-index: 1000;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background-color: transparent;
    }

    #hamburger span {
        display: block;
        height: 4px;
        width: 30px;
        background: white;
        margin: 4px 0;
    }
}

/* NAVBAR */
.navbar {
    background: rgb(40, 40, 40);
    background-color: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #DAA520, #FFF51E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 3px rgba(255, 255, 100, 0.6);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s ease;
}

.login-btn {
    background-color: #2f9e44;
    color: white;
}

.signup-btn {
    border: 1px solid #ccc;
    color: #ffffff;
    background: rgba(70, 70, 70, 1);
}

.logout-btn {
    background-color: red;
    color: white;
}

/* button states */
#login-btn, #signup-btn, #logout-btn {
    display: none;
}

.hidden {
    display: none !important;
}

.hiddenHero {
    display: none !important;
}

.visibleHero {
    display: block !important;
}

.visible {
    display: inline-block !important;
}

/* HOVER STATES */
.login-btn:hover {
    background-color: #277d3a;
}

.signup-btn:hover {
    background-color: #eee;
}

.logout-btn:hover {
    background-color: darkred;
}

.cta-btn:hover {
    filter: brightness(90%);
}

/* HERO SECTION */
.hero {
    background: linear-gradient(to right, #646464, #272727);
    color: white;
    text-align: center;
    padding: 30px 0px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.hero-stats {
    justify-content: center;
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    font-size: 1rem;
}

.cta-btn {
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
}

/* Login page styling Section */
.auth-page {
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-page h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.auth-page form {
    background-color: rgb(75, 75, 75);
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-page input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

#login-form button {
    background-color: #28a745;
    color: white;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#login-form button:hover {
    background-color: #218838;
}

#signup-form button {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#signup-form button:hover {
    background-color: #0056b3;
}

/* LANDING SECTION */
.tickerSec {
    background-color: rgba(40, 40, 40);
    padding: 60px 40px;
    text-align: center;
}

.tickerSec h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color:white;
}

.tickerSec p {
    color: #737373;
    margin-bottom: 30px;
}

.tickerSec-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Dashboard Section */
.dashboard {
    background-color: rgba(40, 40, 40, 1);
    padding: 100px 50px;
    color: white;
}

.dashboard-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
    max-width: 1200px;
}

.dashboard-panel {
    flex: 1 1 calc(33.33% - 20px);
    background-color: #1e1e1e;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 4px 0 6px rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease;
}

.dashboard-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.dashboard-panel p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.4;
}

.dashboard-panel:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

@media (max-width: 900px) {
    .dashboard-panel {
        flex: 1 1 100%;
    }
}

/* Profile Styling */
.profile-section {
    background-color: #1e1e1e;
    padding: 40px 30px;
    margin: 30px auto;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
    color: white;
    transition: transform 0.2s ease;
}

.profile-section h2 {
    font-size: 1.8rem;
    color: #ffd700;
    margin-bottom: 20px;
}

.profile-section:hover {
    transform: translateY(-4px);
    cursor: pointer;
}

.game-stats-container,
.achievement-list,
.stats-overview {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 6px;
    color: #ccc;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .profile-section {
        padding: 30px 20px;
    }
}

/* Sparkline Graph */

.sparkline {
    margin-left: 10px;
    vertical-align: middle;
}

.sparkline polyline {
    transition: stroke 0.3s ease;
}

.sparkline:hover polyline {
    stroke: #2196f3;
}

/* Ticker Scrolling */

.ticker-wrap {
    overflow: hidden;
    width: 100%;
    background-color: #f1f1f1;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    padding: 15px 0;
}

.ticker {
    display: flex;
    width: max-content;
    animation: scroll-left 20s linear infinite;
}

.ticker-content {
    display: flex;
}

.ticker-content span {
    padding: 0 40px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

/*
.ticker-content img.sparkline {
    height: 30px;
    width: auto;
    filter: grayscale(100%) contrast(1.2);
    opacity: 0.9;
    transition: filter 0.3s ease;
}

.ticker-content img.sparkline:hover {
    filter: grayscale(0%) saturate(1.5);
    opacity: 1;
}
*/

/* Actual animation */

@keyframes scroll-left {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}