﻿html, body {
   height:100%;
}

body {
    background-color: white;
    color: black;
    max-width: 100vw !important;
}
    .container.event-container {
        margin-bottom: 30px;
        border-right: 1px solid silver;
        padding-right:0;
        overflow-x:hidden !important;
    }

#home-link{
    margin-left:7px
}
.cup-link {
    cursor: pointer;
    height:25px;
}
.cup-link img{
    height: 25px;
}


.alert-banner {
    color: var(--gg-banner-text);
    background-color: var(--gg-banner-bg);
    border-color: var(--gg-banner-border);
}

.theme-label{
    color:var(--gg-brand-strong);
}

.clickable {
    cursor: pointer;
}

i.fa.fa-home.nav-link {
    font-size: 18px !important;
    margin-right: 8px
}
    i.fa.fa-home.nav-link:focus-visible {
        outline: none !important;
        box-shadow: none !important;
    }
.dropdown:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}


/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

body {
    background-color: white;
    color: var(--gg-brand-strong);
}

option {
    font-size: 16px;
    line-height: 2;
}

h1 {
    color: var(--gg-brand-strong);
    margin-top: 8px;
    margin-bottom: 8px;
}

.Poster {
    position: relative;
    height: 550px;
    width: 300px;
    background-color: transparent;
    overflow: hidden;
    margin-right: 25px;
    margin-bottom: 15px;
    cursor: pointer;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.search-box {
    float: right;
    line-height: 15px;
    padding: 5px 5px;
    display: block;
    position: fixed;
    top: 0px;
    right: 20px;
    height: 45px;
    width: 325px !important;
}
.form-check-input{
    border-color: var(--gg-brand-strong);
}
.form-check-label{
    white-space: nowrap;
    overflow: hidden;
}
.form-check-input:checked {
    background-color: var(--gg-brand-strong);
    border-color: var(--gg-brand-strong);
    box-shadow:none !important
}
.bg-dark {
    background-color: var(--gg-brand-strong) !important;
}

.navbar {
    height: 50px;
    padding-top: 0;
    padding-bottom: 0
}

.navbar-toggler {
    color: white;
}

    .navbar-toggler:focus {
        text-decoration: none;
        outline: 0;
        box-shadow: 0 0 0 0;
    }

.form-control:focus {
    color: black;
    background-color: #fff;
    border-color: #595959;
    outline: none !important;
    box-shadow: none !important;
    border: 1px solid #595959;
}
.form-select:focus {
    color: black;
    background-color: #fff;
    border-color: #595959;
    outline: none !important;
    box-shadow: none !important;
}
.form-check:focus {
    color: black;
    background-color: #fff;
    border-color: #595959;
    outline: none !important;
    box-shadow: none !important;
}
.form-switch .form-check-input:focus {
    border-color: var(--gg-brand-strong);
    color: var(--gg-brand-strong);
    box-shadow: none !important;
}
.form-control-sm {
    border-radius: .25rem;
    border: 1px solid #595959;
}
    .form-control-sm:focus {
        border: 1px solid #595959 !important;
        border-color:#595959 !important;
    }

.sort-header {
    cursor: pointer;
}

.table-header {
    background-color: var(--gg-heading-color);
    color: white;
}

.carousel-item {
    min-height: 400px;
    padding: 10px
}

.carousel-item-long {
    overflow-y: auto
}

.logout-item {
    min-width: 300px;
    color: var(--gg-brand-strong);
}

    .logout-item:hover {
        color: var(--gg-brand-hover);
    }

/* Navigation Styles */
/* keep the separator on the same line as the link */
.navbar-nav > li {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

    /* Hover color (when hovering the item OR its link) */
    .navbar-nav > li:not(:last-child):hover::after,
    .navbar-nav > li:not(:last-child):hover > a::after {
        color: silver;
    }


.nav-link {
    color: white !important;
    font-size: 16px;
    padding: .25rem;
}

    .nav-link:hover {
        color: silver !important
    }

    .nav-link:active {
        color: var(--gg-brand-accent);
    }


/* Add separator after every top-level nav item except last */
.navbar-nav > li:not(:has(.hidden)):not(:last-child)::after {
    content: "|";
    margin: 0 12px;
    color: white;
}

/* Hover color */
.navbar-nav > li:not(:last-child):hover::after {
    color: silver;
}

/* Collapsed shared-layout navigation should read as a clean vertical list. */
@media (max-width: 991.98px) {
    .navbar-nav > li::after,
    .navbar-nav > li > a::after,
    .navbar-nav .nav-sep,
    .navbar-nav .sep {
        content: none !important;
        display: none !important;
    }

    .navbar-nav > li {
        width: 100%;
    }
}



.dropdown-menu {
    background-color: var(--gg-brand-strong);
    border-color: white;
}
.dropdown-menu .nav-item .nav-link {
    font-size: 16px;
    color: var(--gg-brand-strong);
}

    .dropdown-menu .nav-item .nav-link:hover {
        color: var(--gg-brand-hover);
    }


.dropdown-toggle {
    font-size: 16px;
    color: white !important;
}

    .dropdown-toggle:hover {
        color: silver !important
    }

a.dropdown-toggle {
    text-decoration: none
}

.ind-game {
    margin-right: 6px;
}
.btn-image {
    margin-right: 5px;
    border-color: var(--gg-brand-strong) !important;
    background-color: var(--gg-brand-accent) !important;
}
.btn-image.active {
    border-color: var(--gg-brand-strong) !important;
    color: white !important;
    background-color: var(--gg-brand-strong) !important;
}
.btn:active, btn:focus, btn:target, btn:active:focus,
.btn.active,
.btn.active.focus,
.btn.active:focus {
    outline: none;
    background-color: white;
    color: var(--gg-brand-strong);
    box-shadow: none;
    border-color: white;
}

.btn-sm {
    font-size: 11px;
}

.btn-primary {
    color: #FFF;
    background-color: var(--gg-brand-strong);
    border-color: var(--gg-brand-strong);
}

    .btn-primary:hover {
        color: #FFF;
        background-color: var(--gg-brand-hover);
        border-color: var(--gg-brand-hover);
    }

    .btn-primary:active, .btn-primary:focus, .btn-primary:target, .btn-primary:active:focus {
        color: #FFF;
        outline: none;
        box-shadow: none;
        background-color: var(--gg-brand-strong);
        border-color: var(--gg-brand-hover);
    }

.btn-secondary {
    color: var(--gg-brand-strong);
    background-color: white;
    border-color: var(--gg-brand-strong);
}

    .btn-secondary:hover {
        color: var(--gg-text-muted, #495057) !important;
        background-color: var(--gg-banner-bg, #f5f7fa) !important;
        border-color: #aeb7c2 !important;
    }

    .btn-secondary:active, .btn-secondary:focus, .btn-secondary:target, .btn-secondary:active:focus {
        outline: none;
        box-shadow: none;
        color: var(--gg-brand-strong);
        background-color: white;
        border-color: var(--gg-brand-strong);
    }
.btn-sm-secondary {
    color: var(--gg-brand-strong);
    background-color: white;
    border-color: var(--gg-brand-strong);
    font-size: smaller;
    padding: 3px;
}

    .btn-sm-secondary:hover {
        color: white;
        background-color: var(--gg-brand-accent);
        border-color: var(--gg-brand-strong);
    }

    .btn-sm-secondary:active, .btn-sm-secondary:focus, .btn-sm-secondary:target, .btn-sm-secondary:active:focus {
        outline: none;
        box-shadow: none;
        color: var(--gg-brand-strong);
        background-color: white;
        border-color: var(--gg-brand-strong);
    }
.btn-danger {
    color: red;
    background-color: white;
    border-color: red;
}

    .btn-danger:hover {
        color: white;
        background-color: red;
        border-color: red;
    }

    .btn-danger:active, .btn-danger:focus, .btn-danger:target, .btn-danger:active:focus {
        outline: none;
        box-shadow: none;
        color: red;
        background-color: white;
        border-color: red;
    }

.page-title {
    display: block;
    font-size: 22px;
    font-weight: bold;
    line-height: 1em;
    height: 25px;
    text-wrap: none;
    white-space: nowrap
}

.tee-time {
    cursor: pointer;
    margin-right: 10px;
}

.btn[data-action=incrementMinutes] {
    border: none;
}

.btn[data-action=incrementHours] {
    border: none;
}

.btn[data-action=decrementHours] {
    border: none
}

.btn[data-action=decrementMinutes] {
    border: none
}

.btn[data-action=togglePeriod] {
    min-width: 30px !important;
    min-height: 30px !important;
}

.debug-load {
    display: none;
}

.loading-panel {
    width: 200px;
    height: 200px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 150px;
    align-content: center;
    text-align: center;
    margin-bottom: 25px
}

.cursor-pointer {
    cursor: pointer;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
    background: var(--gg-brand-strong) !important;
    font-weight: normal;
    color: #fff;
}
.ui-tabs .ui-tabs-panel {
    display: block;
    border-width: 0;
    padding-left: 3px !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-top: 5px !important;
    background: none;
}
.tab-content {
    width: 100%;
    max-width: 600px;
}

.header-description a {
    color: var(--gg-brand-strong);
}

.group-sep {
    margin-bottom: 10px;
}


.games-link-button {
    width: 110px;
    margin-right: 10px;
    height: 65px;
    line-height: 1;
    text-align: center;
    justify-content: center !important;
    position: relative;
    padding: 4px;
    color: var(--gg-brand-strong);
    background-color: white;
    border: 1px solid var(--gg-brand-strong);
    cursor: pointer;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    margin-bottom: 5px;
}

.nav-linkbutton-text {
    font-size: 11px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5px; /* Add some padding if needed */
    white-space: normal; /* Allow text to wrap */
    overflow: hidden; /* Hide any text that overflows */
    line-height:1; /* fixes wrapping overflow */
}

.nav-linkbutton-icon {
    font-size: 18px;
  /*  margin-bottom: 3px;*/
}

.nav-linkbutton {
    min-width: 150px;
    margin-right: 10px;
   /* height: 35px;*/
    display: flex;
  
    justify-content: left !important;
    position: relative;
    padding: 0 3px;
    color: var(--gg-brand-strong);
    background-color: white;
    border: 1px solid var(--gg-brand-strong);
    cursor: pointer;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    max-width: 300px;
}
    .nav-linkbutton div:first-child {
        margin-right: 8px;
    }

.nav-linkbutton-sm{
    max-width:150px;
}

.full-width { 
    width: calc(100vw);
}

.hidden {
    display: none !important
}
.mobile-only{
    display:none !important;
}
.mini-container{
    max-width: 50% !important;
    min-width: 50% !important;
}

.alert-box{
    padding-left:15px;
    padding-top:3px;
    padding-bottom:3px;
    background-color:lightgoldenrodyellow;
    color:black;
}
.alert-info{
    color:black;
}
.alert-info a{
    color:black;
    text-decoration:none;
}
.system-alerts {
    position: relative;
    z-index: 25;
}
.system-alert {
    border-bottom: 1px solid #e3cf7a;
    background: #fff7cf;
    color: #3d3515;
}
.system-alert-content {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 42px;
    padding-top: .45rem;
    padding-bottom: .45rem;
}
.system-alert-content > i {
    color: #8b6b00;
    font-size: 1.05rem;
}
.system-alert-message {
    flex: 1;
    color: inherit;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
}
.system-alert-message:hover { color: inherit; text-decoration: underline; }
.system-alert-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #685719;
    font-size: 1.65rem;
    font-weight: 500;
    line-height: 1;
}
.system-alert-close:hover { color: #211b08; }
.notation {
    font-size: smaller;
}
.navbar > .container {
    background-color: var(--gg-brand-strong);
}
/*.container {
    overflow-y: auto;
    background-color: white;
}*/
.long-text {
    font-size: 9px !important;
}
.scoring-page {
    max-width: 600px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.feature-card-header {
    text-align: center;
}
.pagetitle {
    background: linear-gradient(180deg, var(--gg-brand-strong), var(--gg-gradient-end));
    color: #fff;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    padding: 1rem 1rem;
    margin-bottom: 15px;
    box-shadow: 0 6px 18px rgba(43,114,185,.25);
}
/*.button-bar {
    gap: 1rem;
    width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--brand-border, #e5e7eb);
    background-color: var( --gg-event-toolbar-bg);
    padding: 5px;
}

    .button-bar button {
        font-size: 12px;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        padding-left: 12px;
        background: var(--gg-brand-primary, #22c55e);
        color: #fff;
        border: none;
        border-radius: 0.5rem;
        cursor: pointer;
        gap: 0.5rem;
        min-width: 150px;
    }

        .button-bar button i {
            font-size: 12px;
            margin-right: 5px;
        }
*/
.profile-image {
    width: 25px;
    height: 25px;              /* ensure square */
    margin-right: 5px !important;
    border-radius: 50%;         /* makes it round */
    overflow: hidden;           /* crops image if it’s an <img> */
    object-fit: cover;          /* keeps image centered & filled */
    display: inline-block;      /* guarantees box model for shadow */
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.profile-image:hover {
    transform: scale(2.0);
    box-shadow: 0 0 0 2px var(--gg-brand-accent),
                0 4px 8px rgba(0,0,0,.35);  /* circular ring + soft shadow */
    filter: brightness(1.15);
    cursor: pointer;
}
.player-section{
    padding: 0 5px;
}
.alt-row:nth-child(odd) {
    background-color: #F5F5F5;
}

.header-color {
    background-color: var(--gg-row-alternate-bg);
}


@media only screen and (max-width: 500px) {
    .scoring-page{
        max-width:400px;
        margin-top:10px;
        margin-bottom:10px;
    }
    .hide-small {
        display: none !important;
    }
    .container.event-container {
        --bs-gutter-x: 0px !important;
    }
    .action-container{
        display:flex;
        flex-wrap:wrap;
        justify-content:center;
        align-items:center;
        margin-right:auto;
        margin-left:auto;
        width:360px;
    } 
    .action-container > .nav-linkbutton{
        margin-bottom:4px;
    }
    .mini-container{
        max-width: 80% !important;
        min-width: 80% !important;
    }
    .navbar-collapse.show {
        background-color: var(--gg-brand-strong);
        z-index: 10000;
        margin-left: -12px;
        padding-left: 10px;
        padding-bottom: 10px;
        width: 100%
    }

    .nav .hor-link a:after {
        content: none !important;
        position: absolute;
        top: 13.3333px;
        margin-left: 12px;
        color: white !important;
    }

    .nav-text a {
        font-size: 16px !important;
    }

    .nav-text {
        font-size: 16px !important
    }

    a.nav-link.logout-area.logout-item {
        margin-left: 8px;
    }

        a.nav-link.logout-area.logout-item:hover {
            color: black
        }

    table {
        max-width: 384px
    }

    .event-notes {
        max-width: 350px !important;
    }

    .btn {
        font-size: smaller;
        min-width: 60px;
    }

    body {
        min-width: 100vw;
        max-width: 100vw;
        font-size: .80em;
        overflow-x: hidden;
    }
    .main-container {
        height: 100vh;
        width: 100vw;
        overflow:hidden;
    }

    .event-notes {
        max-width: 350px !important;
    }

    .page-title {
        width: 325px;
        overflow: hidden;
        display: block;
        font-size: 22px;
        font-weight: bold;
        line-height: 1em;
        height: 25px;
        text-wrap: none;
        white-space: nowrap
    }
    .pagetitle {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding: 0.5rem 0.5rem;
        margin-bottom: 15px;
    }

    .nav-linkbutton-text {
        font-size: 8px;
        line-height: 1.5;
    }

    .tab-content {
        max-width:325px;
        min-width:250px;
    }

    .no-mobile{
        display:none !important;
    }
    .mobile-only{
        display:unset;
    }

    body > .container:first-of-type {
        margin-left: 0px !important;
        margin-right: 0px !important;
        max-width: 100vw;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .allgames-button{
        width:75px;
        font-size:8px;
        max-width:75px;
        min-width:75px;
    }
    .allgames-button-text{
        font-size:11px;
        margin-left:auto;
        margin-right:auto;
    }
    .nav-linkbutton-icon {
        margin-left: auto;
        margin-right: auto;
        font-size:11px;
    }
}

/* Keep the shared home navigation toggle visible without an image dependency. */
#nav-container .navbar-toggler {
    min-width: 48px;
    min-height: 44px;
    margin-left: auto;
    flex-shrink: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 8px;
    padding: 10px 12px;
}
#nav-container .navbar-toggler:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
#nav-container .navbar-toggler-icon {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 18px;
    vertical-align: middle;
    background-image: none;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}
#nav-container .navbar-toggler-icon::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    background: currentColor;
}
@media (max-width: 991.98px) {
    #nav-container {
        height: auto;
        min-height: 50px;
        position: relative;
        z-index: 1030;
    }
    #nav-container > .container {
        min-height: 50px;
        max-width: 100%;
        flex-wrap: wrap;
    }
    #nav-container #navbar-links {
        flex-basis: 100%;
        width: 100%;
    }
}

/* Shared header help control: keep actions clear and provide a mobile tap target. */
.page-help-header {
    position: relative;
    padding-right: 56px !important;
    min-height: 44px;
}
.page-header-help {
    position: absolute;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--gg-heading-color, #1e325f);
    font-size: 23px;
    text-decoration: none;
    border-radius: 50%;
}
.page-header-help:hover,
.page-header-help:focus-visible {
    color: var(--gg-heading-color, #1e325f);
    background-color: rgba(30,50,95,.08);
}
.page-header-help:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

button.page-header-help,
button.individual-scoring-help {
    border: 0;
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
#page-help-modal .modal-dialog { max-width: 600px; }
#page-help-modal .modal-title { color: var(--gg-heading-color, #1e325f); }
#page-help-modal .modal-body { font-size: 1rem; line-height: 1.6; }
#page-help-modal li + li { margin-top: .5rem; }
#page-help-modal .modal-body p:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
    #page-help-modal .modal-dialog { margin: .5rem; }
}
