/*
* =======================================================================
*						Style Sheet of Website
* =======================================================================
*/

.clear{
	margin: 20px 20px;
}

.clearlg{
	margin-top: 50px;
	margin-bottom: 50px;
}

.submenu{
	text-align: center;
}

.link-green{
	color: #0568d2;
}
.link-green:hover{
	color: #0568d2;
}

.trophy{
	max-height: 200px; max-width: 170px;
}

body{
    background-color: #e7f3ffde;
}

.bg-white{
	padding: 10px;
}

#contact{
	max-width: 50%;
}


.card .card-header{
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.42), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
	margin: -25px 15px 0;
    border-radius: 3px;
    padding: 15px;
    color: white;
}

.font-weather{
    font-size:40px;
}
/*
* =============== Number the Table Rows
*/



table
{
    counter-reset: Serial;           /* Set the Serial counter to 0 */
                    
}

td.no:first-child:before
{
    counter-increment: Serial;      /* Increment the Serial counter */
    content:  counter(Serial); /* Display the counter */
}

.btn-outline-success{
	border-color:rgba(0, 123, 255, 0.75);
	color: rgba(0, 123, 255, 0.75);
}

.btn-outline-success:not(:disabled):not(.disabled).active{
	background-color: rgba(0, 123, 255, 0.75);
    border-color: rgba(0, 123, 255, 0.75);
}

.btn-outline-success:hover{
	background-color: rgba(0, 123, 255, 0.75);
    border-color: rgba(0, 123, 255, 0.75);
}

/* 
*================================================================
*					Header box Menu
*================================================================
*/

.box-menu{
	background: #232b35;
    border: none;
    
}
/*height: 150px;*/

/*
* ===============================================================
*					Media Queries
* ===============================================================
*/

@media screen and (max-width: 900px){
	#contact{
		max-width: 90%;
	}
}

@media screen and (max-width: 720px){
	#header-hide{
		display: none;
	}
}


/*
*=================================================================
*							Image POPUP
*================================================================
*/

/* ==============================================================
 *                    Layout helper additions
 * ============================================================== */

/* Page sections */
.content-card {
    margin-bottom: 2rem;
}

/* Keep the card header "floating" look used across the site while
   ensuring it does not overlap content above it on small screens. */
.page-card > .card-header {
    margin-top: 1rem;
}

/* Flag quick-filter bar */
.flag-active img {
    box-shadow: 0 0 0 3px #0568d2;
}

/* Notice marquee (static wrap fallback) */
.notice-marquee {
    white-space: nowrap;
}

/* Hero slider caption */
.carousel-caption h1 {
    color: #ecb41f;
    text-shadow: 2px 2px 1px #000;
    font-variant: small-caps;
    font-weight: bold;
}

/* Auto-numbered result tables */
.table-serial tbody tr {
    counter-increment: row-number;
}
.table-serial tbody tr td:first-child::before {
    content: counter(row-number);
}
.table-serial {
    counter-reset: row-number;
}

/* Club / loft cards */
.loft-card .card-img-top {
    background: #fff;
}
.avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #0568d2;
    color: #fff;
    font-weight: 700;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Footer min-height so short pages keep the footer at the bottom */
html { min-height: 100%; position: relative; }
body { margin-bottom: 70px; }
footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 52px;
}

/* ==============================================================
 * Bootstrap-style native form controls (no python form edits)
 * ============================================================== */
.content form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
.content form select,
.content form textarea {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
/* Compact controls inside the bulk-entry table */
table input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
table select,
table textarea {
    height: calc(1.8rem + 2px);
    padding: .2rem .4rem;
    font-size: .875rem;
}
.content form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):focus,
.content form select:focus,
.content form textarea:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.content form textarea { height: auto; }
.content form label { display: inline-block; margin-bottom: .5rem; }

/* The blanket `width: 100%` on form inputs above outranks Bootstrap's
   `.input-group > .form-control`, and Bootstrap 4 ships `.input-group` with
   `flex-wrap: wrap` — so the input filled the row and pushed an appended
   search button onto its own line. Keep the group on a single line. */
.content .input-group {
    flex-wrap: nowrap;
}

/* Tournament filter toolbar */
.filters-bar {
    padding: 12px 14px 2px;
    margin-bottom: 14px;
    border: 1px solid #d6e6f7;
    border-radius: .35rem;
    background-color: #f4f9ff;
}
/* keep every control on the same baseline */
.filters-bar .btn,
.filters-bar .input-group-append .btn {
    height: calc(2.25rem + 2px);
}
.filters-bar .form-control:focus,
.filters-bar select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}
@media (max-width: 767.98px) {
    .filters-bar .form-row > [class*="col-"] {
        margin-bottom: .5rem;
    }
    .filters-bar .text-right {
        text-align: left !important;
    }
}

/* Progressive loading for the tournament list */
.tournament-loader {
    padding: 1.25rem 0 .5rem;
    text-align: center;
}
.tournament-spinner {
    display: none;
}
.tournament-loader.is-loading .tournament-spinner {
    display: block;
}
.tournament-loader.is-loading .btn {
    display: none;
}

/* Inline bird icon (pigeon counts); aligns with FontAwesome glyphs */
.pigeon-icon {
    vertical-align: -0.125em;
}


/* ==============================================================
 * Colorful weather icons (weather-icons font glyphs)
 * ============================================================== */
.wi {
    color: #6c757d;
}
/* Sun / clear sky */
.wi-day-sunny {
    color: #f9a825;
    text-shadow: 0 0 12px rgba(249, 168, 37, 0.45);
}
/* Night */
.wi-night-clear {
    color: #5c6bc0;
    text-shadow: 0 0 10px rgba(92, 107, 192, 0.5);
}
.wi-night-alt-partly-cloudy {
    color: #7986cb;
}
/* Clouds */
.wi-cloudy,
.wi-day-sunny-overcast {
    color: #90a4ae;
}
/* Rain / drizzle / showers */
.wi-rain,
.wi-showers,
.wi-day-rain,
.wi-night-alt-rain {
    color: #1e88e5;
}
/* Snow */
.wi-snow,
.wi-day-snow,
.wi-night-alt-snow {
    color: #00bcd4;
}
/* Fog */
.wi-fog {
    color: #b0bec5;
}
/* Wind */
.wi-strong-wind {
    color: #78909c;
}
/* Thunder */
.wi-thunderstorm,
.wi-day-thunderstorm,
.wi-night-alt-thunderstorm {
    color: #7e57c2;
}
/* Sleet */
.wi-sleet {
    color: #4dd0e1;
}
/* Thermometer / default fallback */
.wi-thermometer {
    color: #e53935;
}

/* Current weather hero icon */
.current-weather-icon i {
    font-size: 4.2rem;
    line-height: 1;
}
.current-weather-icon small {
    color: #555;
    font-family: Roboto, sans-serif;
}

/* =======================================================================
   Live / upcoming tournament badges
   ======================================================================= */
.badge-live,
.badge-soon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 0;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.35;
    text-transform: uppercase;
    vertical-align: middle;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.badge-live:hover,
.badge-soon:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.1);
}

/* Tournament running today: vivid flashing green pill */
.badge-live {
    color: #fff;
    background-image: linear-gradient(120deg, #00934a, #00d95f, #8bffb0, #00d95f, #00934a);
    background-size: 300% 100%;
    text-shadow: 0 1px 2px rgba(0, 80, 40, 0.35);
    animation: live-glow 1.5s ease-in-out infinite, badge-slide 4s linear infinite;
}
.badge-live .live-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background-color: #fff;
    animation: live-ping 1.3s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Tournament that has not started yet: warm blinking pill */
.badge-soon {
    color: #5a3000;
    background-image: linear-gradient(120deg, #ffc107, #ff9800, #fff0b3, #ff9800, #ffc107);
    background-size: 300% 100%;
    box-shadow: 0 2px 7px rgba(190, 120, 0, 0.35);
    animation: soon-blink 1.6s ease-in-out infinite, badge-slide 5s linear infinite;
}

@keyframes live-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 216, 95, 0.75), 0 2px 7px rgba(0, 120, 55, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(0, 216, 95, 0), 0 2px 7px rgba(0, 120, 55, 0.4); }
}
@keyframes live-ping {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.95); }
    75% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
@keyframes badge-slide {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}
@keyframes soon-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Row highlight for a tournament running today (inset bar, no layout shift) */
.tournament-live {
    border-radius: 4px;
    background-image: linear-gradient(90deg, #cbffe4, #f4fffa 60%);
    box-shadow: inset 5px 0 0 0 #00c853;
}

@media (max-width: 575.98px) {
    .badge-live,
    .badge-soon {
        display: inline-flex;
        margin-top: 6px;
        padding: 5px 12px;
        font-size: 0.78rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .badge-live,
    .badge-soon {
        animation: none;
    }
    .badge-live .live-dot {
        animation: none;
    }
}




