html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    display: grid;
    height: 100vh;
    display: grid;
    height: 100vh;
    grid-template-rows: auto 1fr auto;
    font-family: sans-serif;
    background-image: url('/images/PokerBG.png');
    background-size: cover;
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    
    
}


.panel, .header, .footer {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #fff;
    text-shadow: 1px 1px 2px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 8px;
    padding: 10px;
}


/* Buttons */

.btn {
    flex: 1 1 0; /* Each button grows and shrinks equally */
    display: flex; /* Turn the button into a flex container */
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid #fff;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    /* Use clamp() to make the font-size responsive */
    font-size: clamp(16px, 2.5vw, 30px);
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Copyright Footer */

    /* Adjust individual sections */

    .footer .copyright {
        text-align: center; /* Center-align text within each section */
        font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
        font-size: 1rem; /* Adjust font size as needed */
        color: white; /* Adjust text color */
    }

.copyright a {
    color: aqua; /* Link color */
    text-decoration: none; /* No underline */
    font-weight: bold;
}

    .copyright a:hover {
        text-decoration: none; /* Underline on hover */
        color: #0056b3; /* Darker hover color */
    }

#heart {
    width: 1rem; /* Adjust size */
    height: 1rem;
    margin: 0 5px; /* Add spacing around the heart */
    animation: beat 0.5s infinite alternate;
    transform-origin: center;
}

@keyframes beat {
    to {
        transform: scale(1.9);
    }
}

/* Main page layout */

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    /*min-height: 100vh;   ths line caused the footer not to stay at botn.*/
}


main {
    overflow-y: auto;
}

/* Menu */

.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgb(44, 87, 6);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #f0f0f0;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: -3px;
    left: 0;
    background-color: #00d4ff;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #00d4ff;
}

    .nav-link:hover::after {
        width: 100%;
    }

.nav-logo-link {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.1);
}

/* Logo on index page */

.largeMainScreenLogo {
    width: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Small screen config */

@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        font-size: 4vw; /* Let text scale up on smaller screens */
    }

}

.showTournaments {
    width: 50%;
    font-size: 30px;
    background: green;
    color: white;
}

.tourText {
    color: yellow;
}

.tourButton {
    font-size: 25px;
    text-decoration: none;
    padding-left: 10px;
    padding-right: 10px;
    border: 2px solid white;
}

.activeTournaments {
    color: white;
    font-weight: 800;
}

.login {
    color: yellow;
}

.home-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .home-header h3 {
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    .home-header .logo-img {
        max-width: 200px;
        width: 100%;
    }

.index-header h2 {
    font-size: 1.75rem;
    font-weight: 500;
}

.index-header img {
    max-width: 300px;
    width: 100%;
}

.logginInUserName{ 
    color: yellow;
    font-size: 30px !important;
    font-weight: 1000 !important; 
    
}

#funchtech-logo {
    position: fixed;
    bottom: 100px; /* distance from bottom */
    background-color: dimgrey;

    right: 50px; /* distance from right */
    width: 100px; /* adjust size as needed */
    height: auto;
    z-index: 1000; /* ensure it’s on top */
    pointer-events: none; /* optional: so it doesn't block clicks */
}