﻿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: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}


.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: 20% !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 20px;
}

/* 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 */
    }

}

/* Full-width flex wrapper that centers its content */
.tourney-area {
    width: 100%;
    display: flex;
    justify-content: center; /* centers horizontally */
    padding-inline: 16px; /* small side breathing room */
    box-sizing: border-box;
}

/* The centered block that holds the table */
.tourney-table {
    width: min(1100px, 95%); /* responsive max width */
}

/* Belt & suspenders: also center the table itself */
.showTournaments {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.tourText {
    color: white;
}

.activeTournaments {
    color: white;
}

    .showTournaments thead th {
        font-weight: 800;
        text-align: left;
        padding: 14px 16px;
        background: rgba(0,0,0,.75);
        color: #dff2ff;
        letter-spacing: .02em;
        font-size: clamp(.9rem, 1.6vw, 1.05rem);
    }

    .showTournaments tbody td {
        padding: 14px 16px;
        border-top: 1px solid rgba(255,255,255,.1);
        font-size: clamp(.95rem, 1.6vw, 1.05rem);
        vertical-align: middle;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .showTournaments tbody tr:hover {
        background: rgba(255,255,255,.04);
    }

/* Keep action buttons aligned and non-wrapping */
.actions-cell {
    white-space: nowrap;
}

.actions {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: nowrap;
}

/* Unified buttons (a + button) */
.tourButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid transparent;
    line-height: 1;
    padding: 0 .9rem;
    /* responsive size & consistency */
    height: clamp(2.2rem, 4.2vw, 2.6rem);
    min-width: clamp(5.8rem, 10vw, 7.6rem);
    white-space: nowrap;
    cursor: pointer;
}

.tourButton--primary {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

    .tourButton--primary:hover {
        filter: brightness(.95);
    }

.tourButton--success {
    background: #198754;
    color: #fff;
    border-color: #198754;
}

    .tourButton--success:hover {
        filter: brightness(.95);
    }

.actions form {
    margin: 0;
}

/* =========================
   Small screens: turn rows into “cards”
   ========================= */
@media (max-width: 700px) {

    .showTournaments thead {
        display: none;
    }

    .showTournaments, .showTournaments tbody, .showTournaments tr, .showTournaments td {
    display: block;
    width: 100%;
    }

    .showTournaments tbody tr {
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 12px;
        padding: 10px 12px;
        margin: 12px 0;
        background: rgba(0,0,0,.55);
    }

    .showTournaments tbody td {
        border: 0;
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        white-space: normal; /* allow wrap on small screens */
    }

    /* left labels from data-label */
    .showTournaments tbody td::before {
        content: attr(data-label);
        color: #aeb6c2;
        font-weight: 700;
        margin-right: 1rem;
    }

    /* keep actions on one line, right aligned */
    .actions {
        justify-content: flex-end;
        width: 100%;
        gap: .5rem;
    }
}


.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-size: 1.75rem;
    font-weight: 500;
}

.index-header img {
    max-width: 300px;
    width: 100%;
}

.logginInUserName{ 
    color: darkred;
    font-size: 20px !important;
    font-weight: 1000 !important; 
 }

.admin-dropdown {
    position: relative;
}

.admin-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    background-color: #222;
    border: 1px solid #555;
    min-width: 200px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.admin-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropdown-menu .dropdown-item {
    color: #fff;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #444;
    color: #00d4ff;
}

.nav-link.dropdown-toggle::after {
    display: none;
}

.inactiveButton {
    background: grey;
    border: black;
    color: black;
}

.registerToJoin {
    color: red;
    font-size: 1.5rem;
}

.userContainer {
    position: fixed;
    left: 20px;
    bottom: calc(env(safe-area-inset-bottom) + 100px); /* iOS safe area friendly */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1100; /* above footer */
    pointer-events: none; /* won't block clicks underneath */
}

.logoContainer {
    position: fixed;
    right: 12px;
    bottom: calc(env(safe-area-inset-bottom) + 100px); /* iOS safe area friendly */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1100; /* above footer */
    pointer-events: none; /* won't block clicks underneath */
}

#funchtech-logo {
    display: block;
    width: clamp(70px, 10vw, 140px);
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.55));
}

.logoText {
    margin-top: -15px;
    font-weight: 700;
    font-size: clamp(12px, 1.3vw, 16px);
    letter-spacing: .5px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.75);
    opacity: .95;
}

/******************************************************************/
/* optional: stronger highlight for missing points weeks */
details.week[style*="#ff6060"] {
    box-shadow: 0 0 12px rgba(255, 96, 96, .35);
}

/* details caret larger */
summary {
    list-style: none;
}

    summary::marker, summary::-webkit-details-marker {
        display: none;
    }

    summary:after {
        content: "▸";
        margin-left: 6px;
        transition: transform .2s ease;
        opacity: .75;
    }

details[open] > summary:after {
    transform: rotate(90deg);
}
