/* CSS Variables */
:root {
    --background-dark: #000000;
    --background-light: #ffffff;
    --text-dark: #1c1c1c;
    --text-light: #f5f5f5;
    --primary-color: #ff7a59;
    --secondary-color: #333;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;
}

/* Global Styles */
html {
    padding: 0;
    margin: 0;
    background-color: hsl(0, 0%, 20%);
    overflow: hidden;
}

body {
    margin: 0;
    margin-top: 40px;
    font-family: 'Montserrat', sans-serif;
    background: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    height: 97vh;
    opacity: 99%;
}

::-webkit-scrollbar {
    display: none;
}

/* Logo Styles */
#logo {
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    color: #ff7a59;
    text-decoration: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#logo:hover {
    color: #ff5722;
    font-size: 3rem;
}

/* Navbar Styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--secondary-color);
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    opacity: 98%;
    z-index: 999;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    user-select: none; /* Standard syntax */ -webkit-user-select: none; /* Safari */ -moz-user-select: none; /* Firefox */ -ms-user-select: none; /* Internet Explorer/Edge */
}

.logo:hover {
    color: var(--primary-color);
}

/* Search Bar Styles */
.search-bar {
    flex: 10;
    margin: 0 20px;
    padding: 10px;
    border: none;
    border-radius: 30px;
    background: var(--background-dark);
    color: var(--text-light);
    outline: #f5f5f5;
    text-align: left;
    user-select: none;
    transition: background var(--transition), box-shadow var(--transition);
}

.search-bar:focus {
    background: rgb(0, 0, 0);
    box-shadow: 0 0 8px rgba(224, 108, 25, 0.426);
}

/* Hero Section Styles */
.hero-section {
    text-align: center;
    padding: 0.5px 20px;
    background: url('exampleimage.png') no-repeat center center/cover;
    color: var(--text-light);
    margin-top: 61px;
    user-select: none; /* Standard syntax */ -webkit-user-select: none; /* Safari */ -moz-user-select: none; /* Firefox */ -ms-user-select: none; /* Internet Explorer/Edge */
}

.hero-section h1 {
    margin-bottom: 10px;
    font-size: 3rem;
    color: var(--text-light);
}

.hero-section p {
    font-size: 1.4rem;
    color: var(--text-light);
}

/* Game Container Styles */
.game-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    margin-top: 40px;
    user-select: none; /* Standard syntax */ -webkit-user-select: none; /* Safari */ -moz-user-select: none; /* Firefox */ -ms-user-select: none; /* Internet Explorer/Edge */
}

.game-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card a:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.game-card img {
    width: 220px;
    height: 200px;
    border-radius: 10px;
}

.game-card h3 {
    margin-top: 10px;
    color: var(--text-light);
}

.game-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    transition: background var(--transition);
}

.game-card a:hover {
    background: #ff5722;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    text-align: center;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    margin-top: auto;
    max-width: 800px;
    margin: 0 auto;
    color: #bdc3c7;
    font-size: 0.9em;
}

/* Toggle Button Styling */
.toggle-button {
    background: #27292c;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    width: 50px;
    height: 25px;
    position: relative;
    cursor: pointer;
    transition: background var(--transition);
}

.toggle-button .toggle-circle {
    background: var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    transition: left var(--transition);
}

.toggle-button.active {
    background: var(--primary-color);
}

.toggle-button.active .toggle-circle {
    left: 25px;
    background: #27292c;
}

/* Menu Button Styling */
.menu-button {
    margin-right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    display: inline-block;
    position: relative;
    padding: 10px;
    transition: transform var(--transition), box-shadow var(--transition);
    background-color: transparent;
}

.menu-button:hover {
    transform: scale(1.1);
    background-color: transparent;
}

.menu-icon {
    width: 35px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.menu-icon .bar {
    width: 100%;
    height: 4px;
    background: var(--text-light);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Active State for Hamburger Icon (Bars to Cross) */
.menu-button.active .bar1 {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--primary-color);
}

.menu-button.active .bar2 {
    opacity: 0;
}

.menu-button.active .bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--primary-color);
}

/* Menu Content - Initially Hidden */
.menu-content {
    position: absolute;
    top: 74px;
    right: 0;
    background: linear-gradient(135deg, #222, #333);
    width: 350px;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 20px rgb(0, 0, 0);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s ease-in-out, opacity 0.6s ease-in-out;
    z-index: 999;
    color: var(--text-light);
    overflow-y: auto;
    max-height: 90.5vh;
    margin-right: 35px;
    user-select: none;
}

.menu-content.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

.menu-content .section-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 15px 0 10px;
    color: var(--primary-color);
    text-align: center;
}

.menu-content .profile-section {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    animation: slideIn 1s ease-in-out;
}

.menu-content .profile-section img {
    width: 75px;
    height: 75px;
    background-color: #bdc3c7;
    border-radius: 50%;
    margin: 1px;
    margin-right: 15px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 1.5px rgb(255, 85, 0);
    cursor: pointer;
    transition: transform 0.3s;
}

.menu-content .profile-section img:hover {
    transform: scale(1.019);
}

.menu-content .profile-section .profile-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-light);
}

.menu-content .profile-section .profile-info p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #aaa;
}

.menu-content .interactive-section {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    user-select: none;
}

.menu-content .interactive-item {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.menu-content .interactive-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.menu-content .interactive-item .label {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-light);
}

.menu-content .interactive-item .value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

.menu-content .mini-game {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.menu-content .mini-game button {
    padding: 10px 15px;
    margin-top: 10px;
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.menu-content .mini-game button:hover {
    background: #ff5722;
}

.menu-content .footer-section {
    margin-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    opacity: 0.8;
}

/* Mobile Mode */
@media (max-width: 500px) {
    .game-container {
        display: 1px;
        gap: 10px;
        padding: 0px;
        justify-content: center;
        margin-top: 20.9px;
    }

    .logo {
        font-size: 1.4rem;
        margin-right: 15px;
    }

    .search-bar {
        margin: 0;
        padding: 10px;
        width: 100%;
    }

    .hero-section h1 {
        font-size: 2.8rem;
    }

    .game-card {
        padding: 1.0px;
        width: 90px;
    }

    .menu-button {
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .menu-icon {
        width: 35px;
        height: 24px;
    }

    h3 {
        display: none;
    }

    .menu-icon .bar {
        width: 100%;
        height: 4px;
        background: var(--text-light);
        border-radius: 2px;
        transition: all var(--transition);
    }

    .footer {
        margin-top: 140px;
    }
}






/*search bar appearance */

.search-form {
    display: flex;
    align-items: center;
    flex: 1;
    margin: 0 20px;
}

.search-bar {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 30px;
    background: var(--background-dark);
    color: var(--text-light);
    outline: none;
    transition: background var(--transition), box-shadow var(--transition);
}

.search-bar:focus {
    background: rgb(0, 0, 0);
    box-shadow: 0 0 8px rgba(224, 108, 25, 0.426);
}

.search-results {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 800px;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 10;
    padding: 10px;
}

.search-results.show {
    display: flex;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: #f9f9f9;
}

.search-item img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 10px;
}

.search-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.no-results {
    padding: 10px;
    text-align: center;
    color: #555;
    font-size: 14px;
}


/*hover text*/
/* Tooltip Container */
[data-hover] {
    position: relative;
    cursor: pointer;
}

[data-hover]::after {
    content: attr(data-hover);
    position: absolute;
    bottom: auto; /* Adjusted to work dynamically */
    top: 100%; /* Default position is below the element */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85); /* Professional dark background */
    color: #fff; /* White text for contrast */
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow for depth */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

[data-hover]::before {
    content: "";
    position: absolute;
    top: auto;
    bottom: -6px; /* Triangle appears below the tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

[data-hover]:hover::after,
[data-hover]:hover::before {
    opacity: 1;
    visibility: visible;
}

[data-hover].tooltip-top::after {
    top: auto;
    bottom: 100%;
    transform: translateX(-50%) translateY(-2px);
}

[data-hover].tooltip-top::before {
    top: auto;
    bottom: 100%;
    transform: translateX(-50%) rotate(180deg);
}
