::selection {
  background-color: #ed2e4d; /* your custom green */
  color:             #fff;    /* white text */
}
::-moz-selection {
  background-color: #ed2e4d;
  color:             #fff;
}

/* make sure dark-mode (data-bs-theme="dark") still uses the same style */
[data-bs-theme="dark"] ::selection {
  background-color: #1d5349 !important;
  color:             #fff    !important;
}
[data-bs-theme="dark"] ::-moz-selection {
  background-color: #1d5349 !important;
  color:             #fff    !important;
}/* Global Font Setting */
body {
    padding-top: 80px; /* Matches header height to prevent overlap */
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background-color: #f1f5f9;
    font-family: inherit;
    border: none;
    box-shadow: none;
    transition: none;
	overflow: visible;
	
	height: 79px !important;  
    min-height: 79px !important;
    max-height: 79px !important;
}

/* HAMBURGER ICON (hidden by default on desktop) */
.hamburger {
    display: none; /* Hidden on larger screens */
    font-size: 24px;
    cursor: pointer;
    margin-right: 10px; /* Spacing before the logo */
}

/* Custom Button */
.custom-button {
    display: inline-block;
    text-align: center;
    padding: 14px 26px;
    background: #3AD07F;
    color: #1d5349;
    font-family: inherit;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    text-decoration: none !important;
}

.custom-button:hover {
    transform: translateY(-4px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    background: #3CCF85;
	color: #1d5349;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    font-family: inherit;
}
/* Content Wrapper */
.page-wrapper {
    margin-top: -35px; /* Adjust based on navbar height */
}

/* Center Left Section (Logo + Nav Links) */
.left-section {
    position: absolute;
    left: 27%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Logo */
.logo img {
    height: 70px;
	margin-bottom: 10%;
}

/* Navbar Brand Image */
.navbar-brand-image {
    height: 2rem;
    width: auto;
    display: block;
    position: relative !important;
    top: 15px;
}

/* Navigation Bar */
.nav-bar {
    display: flex;
    gap: 48px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
	margin-bottom: -1%;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;           /* space between text and icon */
    color: #1d5349;       /* Normal link color */
    text-decoration: none;
    font-weight: bold;
    /* keep any other .nav-link styles here */
}

.nav-link:hover,
.nav-link.active {
  color: #ed2e4d;       /* Red color for hover OR active */
  font-weight: bold;    /* Make active link bold, if desired */
}

.nav-link .icon {
    width: 0.9rem;           /* exactly match the link’s font-size */
    height: 0.9rem;
    object-fit: contain;
	margin-bottom: 2.5%;
	margin-left: -1px;
    color: #ed2e4d !important;
}



/* Navigation Icon */
.icon {
    width: 13px;
    height: 13px;
    object-fit: contain;
    margin-left: 3px;
    position: relative;
    top: 1px;
    left: -2px;
    vertical-align: middle;
	color: #ed2e4d !important;
}

/* Login Button */
.log-in {
    font-size: 16px;
    font-weight: bold;
    color: #1d5349;
    text-decoration: none;
    border: none;
    background: none;
    padding: 8px 16px;
    display: inline-block;
    text-transform: uppercase;
    font-family: inherit;
}

.log-in:hover {
    color: #FF0000;
    text-decoration: none;
}

/* Right Section (Actions) */
.actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Copy Notification Popup */
.copy-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 26px 20px;
    background-color: #44FC8E;
    color: black;
    font-size: 24px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.3s ease;
    z-index: 10000;
    font-family: inherit;
    transform: translateY(100%);
}

.copy-popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown Menu & Player Info */
.nav-item.dropdown {
    position: relative;
    font-family: inherit;
}


.fw-medium {
    font-family: inherit;
	font-weight: bold;
	transition: color 0.2s ease-in-out;
}
.fw-medium:hover {
    color: #ed2e4d !important; /* Turns red on hover */
}

.nav-item.dropdown .nav-link {
    transition: none !important;
}

.nav-item.dropdown .nav-link:hover {
    transform: none !important;
}

/* Ensure the rank (text-muted) remains normal weight */
.nav-item.dropdown .text-muted {
    font-weight: normal !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #1d5349;
    text-decoration: none;
    transition: background 0.2s;
    font-family: inherit;
}

.dropdown-item:hover {
    background: #f1f5f9;
    font-family: inherit;
}

/* User Avatar */
.avatar {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* User Menu */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.user-info .username {
    font-weight: bold;
    color: #1d5349;
    font-family: inherit;
}

.jussi {
    display: none !important;
}

.mobile-menu {
    display: none !important;
}

/* Scrollbar */
:root {
    --tblr-scrollbar-color: #505050 !important;
}

::-webkit-scrollbar {
    width: 10px !important;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px;
    margin: 25% 0;
}

::-webkit-scrollbar-thumb {
    background: #404040 !important;
    border-radius: 10px;
    border: 2px solid transparent !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #323232 !important;
}

/* Hide Unnecessary Menu Items */
.dropdown-menu .dropdown-item[href="/gifts/"] {
    display: none !important;
}

.d-none.d-xl-block {
    display: block !important;
}
/* By default, hide hamburger on desktop */
/* By default, hide hamburger on desktop */
.hamburger {
    display: none; 
    font-size: 24px;
    cursor: pointer;
    margin-right: 10px;
}

/* Mobile side drawer (20% of screen width, full height) */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -20%;          /* Off-screen on the left */
    width: 20%;          /* 20% of the screen's width */
    height: 100vh;       /* Full vertical height */
    background: #f1f5f9; /* Your background color */
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    z-index: 9999;       /* Above main content */
    overflow-y: auto;    /* Scroll if content is tall */
}

/* Slide in from left when .open is added */
.mobile-menu.open {
    left: 0;
}

/* Menu list styles */
.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 80px 0 0 0;  /* Optionally offset below a fixed 80px navbar */
}

.mobile-menu-list li {
    border-bottom: 1px solid #ccc; /* optional separator */
}

.mobile-menu-list a {
    display: block;
    padding: 15px 20px;
    color: #1d5349;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu-list a:hover {
    background: #e2e8f0; /* light hover background */
    color: #ed2e4d;      /* red text on hover */
}

/* Dark overlay behind the menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;  
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show overlay when .open is added */
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ------------------------------------------ */
/* ADDED FOR MOBILE */
/* ------------------------------------------ */

@media (max-width: 800px) {
    /* Keep navbar the same height, align items horizontally */
    .navbar {
        top: 0 !important; 
        padding: 0 20px; /* smaller padding if you like */
        flex-wrap: nowrap; /* Prevent wrapping */
        overflow: visible; /* Allow overlapping if needed */
    }
	.text-muted {
		        flex-wrap: nowrap; /* Prevent wrapping */
        overflow: visible; /* Allow overlapping if needed */
	}


    /* Position the logo & hamburger side by side with a 5px gap */
    .left-section {
        position: static !important;
        transform: none !important;
        margin-left: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 1px !important;           /* gap between hamburger & logo */
    }


    .logo img {
		width: 60px !important;
		max-width: none !important;
		height: auto !important;
		margin-top: -25px;
		margin-left: -10px;
    }
	
	.icon {
		height: 16px; /* Delete kui tahad sama suur kui text, ANNETUS LOGO */
		width: 16px; /* Delete kui tahad sama suur kui text, ANNETUS LOGO */
		margin-top: 0px;
		margin-left: 0px;
		color: #ed2e4d !important;
	}

    /* Hide desktop nav & button on mobile */
    .nav-bar,
    .custom-button {
        display: none !important;
    }

    /* Show the hamburger on mobile, remove extra margin so the gap is 5px */
    .hamburger {
        display: block !important;
        font-size: 24px;
        cursor: pointer;
        margin-right: 15px !important; /* No extra margin, rely on gap: 5px */
		margin-left: -10px !important;
				margin-top: -4px;
    }

    /* Side drawer styles (mobile-menu, overlay) */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -250px;   /* Off-screen initially */
        width: 250px;
        height: 100%;
        background: #e5e5e5;
        box-shadow: 2px 0 8px rgba(0,0,0,0.2);
        transition: left 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
        padding-top: 80px; /* If your navbar is 80px tall */
        display: block !important;
    }
    .mobile-menu.open {
        left: 0; /* Slides in from the left */
    }
	
	.mobile-menu-list {
		margin-top: 0 !important;
	}

    .mobile-menu-overlay {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        display: block !important;
    }
    .mobile-menu-overlay.open {
        opacity: 1;
        visibility: visible;
    }
	
	.list-logo {
		position: fixed;
		height: auto;
		width: 75px;
		margin-top: -225px;
		margin-left: 8px;
	}
}

@media (max-width: 320px) {
	.text-muted {
		margin-right: -15px;
	}

	.logo img {
		width: 60px !important;
		max-width: none !important;
		height: auto !important;
		margin-top: -25px;
		margin-left: -10px;
}
}


/* When .mobile-open is toggled, show nav links as a vertical column */
.nav-bar.mobile-open {
    display: flex !important;
    flex-direction: column;
    gap: 15px;
    position: absolute;
    top: 70px; /* Just below the header */
    left: 10px;
    background: #f1f5f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:hover .me-2 {
  background-color: #3a3a3a !important;
  color:            #ed2e4d !important;
  border-radius:    5px      !important;
}