* {
    /*font-family: Trebuchet MS;*/
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif font-size: 13px;
    padding: 0px;
    margin: 0px;
}

body {
    background: #f5f7fa;
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    color: #222;
    margin: 0;
    padding: 0;
}

.container {
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    border-radius: 10px;
    margin-top: 32px;
    padding: 32px 24px 24px 24px;
    max-width: 1100px;
}


/*
***************************************    
**  General Formating                **
***************************************
*/
a {
    color: #0077b6;
    text-decoration: none;
    transition: color 0.2s;
}

    a:hover {
        color: #00b4d8;
        text-decoration: underline;
    }

.boldCell {
    font-weight: bold;
}

.table > thead > tr > th {
    background: #00b4d8;
    color: #fff;
    font-weight: 700;
    border-bottom: 2px solid #0077b6;
}

.btn-primary {
    background: #00b4d8;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

    .btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary {
        background: #0077b6;
        color: #fff;
    }

table {
}

a.home-link-hdr {
    color: #06828A;
}

    a.home-link-hdr:hover {
        text-decoration: none;
    }



#scores .col-md-12 {
    padding: 0;
}

#scores .team-scores-hdr {
    color: #06828A;
}


.pageDateStamp {
    color: #888;
    text-align: right;
    font-style: italic;
    font-size: 12px;
    margin-top: 24px;
}

/*
***************************************    
**  Front Page Event Links           **
***************************************
*/
.eventLinks a {
    display: inline-block;
    font-size: 15px;
    width: 48%;
    padding: 5px 2px;
    margin: 0 2px 5px 0px;
    text-align: center;
    background-color: #0026ff;
    color: #000;
}

    .eventLinks a:hover {
        text-decoration: none;
        background-color: #06828A;
        color: #000;
        background-image: url('bkgd.png');
    }

.eventLinks h3 {
    text-transform: uppercase;
    color: ##06828A;
    padding: 10px 0;
    font-weight: normal;
    margin: 10;
    padding: 0;
}

.eventResults {
    width: 98%;
    margin: 0 auto;
}

.scheduleTitle {
    font-size: 15px;
    color: #06828A;
    font-weight: bold;
}

.time, .heats, .results {
    width: 90px;
}

.round {
    width: 80px;
}

.homeContainerLeft {
}

.homeContainerRight {
}

    .homeContainerRight h2, .homeContainerLeft h2, .session-tables h4 {
        font-size: 15px;
        color: #fff;
        font-weight: bold;
        margin: 10px 0;
    }

/*
***************************************    
**  Results                          **
***************************************
*/
#results h3 {
    font-size: 26px;
    color: #000;
    margin: 20px 0 10px 15px;
    text-transform: uppercase;
    font-weight: 900;
}

#results h4 {
    text-transform: uppercase;
    color: #000;
}


table.hzTable td, table.hzTable th {
    width: 50px;
    padding: 0;
    text-align: center;
    font-size: 10px;
    border-left: 1px solid #555;
}

table.hzTable {
    border-right: 1px solid #555;
    background-color: transparent;
}

/* Records 
#results div table:first-child{
	margin-bottom: 20px;
	background-color: transparent;
	color: #FFF;
}
#results div table:first-child td{
	padding: 0 10px 0 10px;
	border-left: 3px solid #c0ac7e; 

}
*/

.scoreboard h3 {
    margin: 0;
    padding: 10px 0 0 0;
    color: #06828A;
    text-align: center;
    text-transform: uppercase;
    font-size: 30px;
    font-weight: 900;
}

#clock {
    background-color: #06828A;
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    color: #000000;
    padding: 5px 5px 3px 5px;
    /*width: 150px;*/
}

.place, .place2, .lane, .number, .laps {
    text-align: center
}

.place2{
    color: black;
    font-weight: bold;
}

.time, .delta, .cum, .last {
    text-align: right;
}

.time {
    font-weight: bold;
}

/*
***************************************    
**  Results: Field Series / Splits   **
***************************************
*/
.vertical-table, .horizontal-table, .splits-table {
    border: none;
    padding: 0px;
    margin: 0px;
    border-collapse: collapse;
    background-color: transparent;
}

    .vertical-table th {
        font-size: 10px;
        background-color: #999;
        color: #000;
        text-align: center;
        padding: 2px 0;
        width: 50px;
        font-weight: normal;
    }

    .vertical-table td {
        font-size: 10px;
        text-align: center;
        padding: 2px 0;
    }

    .vertical-table .best-height {
        background-color: rgb(255,143,0);
    }


    .horizontal-table td, .splits-table td {
        font-size: 10px;
        text-align: center;
        padding: 0 10px;
    }




/*
***************************************    
**  Header                           **
***************************************
*/

.header {
    background: #0a2342;
    color: #fff;
    padding: 36px 36px 24px 36px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    flex-wrap: wrap;
}

.header h3, .header h4, .header h5 {
    margin: 0;
    color: #fff;
    font-weight: 700;
}

.header h3 { font-size: 2.5rem; }
.header h4 { font-size: 1.5rem; opacity: 0.90; }
.header h5 { font-size: 1.2rem; opacity: 0.8; }

.header img.logo {
    height: 8vw;
    min-height: 48px;
    max-height: 100px;
    width: auto;
    margin-right: 32px;
    max-width: 40vw;
    flex-shrink: 0;
}

/*
***************************************    
**  Footer                           **
***************************************
*/
.footer {
    background: #0a2342;
    color: #fff;
    border-radius: 0 0 16px 16px;
    padding: 28px 36px;
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
}

    .footer .addr p, .footer .addr a {
        color: #fff;
        margin: 0 0 6px 0;
        font-size: 1.2rem;
    }

    .footer .icons {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 18px;
    }

    .footer .icons img {
        height: 6vw;
        min-height: 32px;
        max-height: 60px;
        width: auto;
        filter: grayscale(0.1) brightness(1);
        transition: filter 0.2s, transform 0.2s;
        max-width: 20vw;
    }

    .footer .icons img:hover {
        filter: grayscale(0) brightness(1.1);
        transform: scale(1.08);
    }


/*
***************************************    
**  Recent Results                   **
***************************************
*/
#recentResults {
    margin: 0 auto;
    background-color: #06828A;
    margin: 20px 0 10px 0;
    padding: 0 0 5px 0;
    color: #fff;
}

    #recentResults h3 {
        font-size: 15px;
        font-weight: bold;
        text-align: left;
        color: #fff;
        padding: 10px 10px 10px 10px;
        margin: 0 0 0 0;
        text-transform: uppercase;
    }

    #recentResults a {
        font-size: 16px;
        color: #000;
        display: block;
        text-decoration: none;
        text-align: left;
        padding: 5px 1px 5px 10px;
    }

        #recentResults a.row0 {
            background-color: #fff;
        }

        #recentResults a:hover {
            border-left: 10px solid #15d6af;
            padding-left: 10px;
        }

span.pipe {
    color: #06828A;
}

p.status {
    margin-left: 10px;
}


/*
***************************************    
**  Twitter                          **
***************************************
*/
#twitter {
    margin: 10px auto 10px auto;
}

    #twitter iframe {
        width: 100%;
    }

/*
***************************************    
**  Forcast                       **
***************************************
*/
#forcast {
    background-color: #FFF;
    padding: 10px;
}

    #forcast div {
        margin: 0 auto;
        width: 243px;
    }

/*
***************************************    
**  Realtime                         **
***************************************
*/
#realtime {
    background-color: #fff;
    padding: 10px;
    margin: 0 0 10px 0;
}

    #realtime img {
        width: 100%;
    }

    #realtime p {
        color: #06828A;
        font-size: 11px;
    }





.btn-primary {
    margin: 10px 0 0 15px;
}








/*
***************************************    
**  Styles Under 992px               **
***************************************
*/
@media(max-width:992px) {
    #twitter {
        display: none;
    }

    #wu-links {
        border-bottom: 1px solid #c0ac7e;
        padding: 10px 0 10px 0;
    }

    .header h3, .header h4, .header h5, .header h6 {
        text-align: center;
    }

    .footer .icons {
        text-align: center;
        margin: 10px 0 0 0;
        padding: 10px 0;
    }

        .footer .icons img {
            width: 10%;
        }

    .footer .addr p {
        text-align: center;
    }

    .eventLinks {
        text-align: center;
    }

    .header img.logo {
        margin: auto;
    }
}


/*
***************************************    
**  Styles Under 768px               **
***************************************
*/
@media(max-width:768px) {
    body {
        margin: 0;
        padding: 0;
    }
    /* Bigger button for smaller devices */
    .eventLinks a {
        font-size: 18px;
        padding: 12px 2px;
    }

    #recentResults a {
        font-size: 18px;
    }

    #recentResults h3 {
        font-size: 24px;
    }

    #recentResults span.pipe {
        font-size: 18px;
    }

    .header, .footer {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .container, .container-fluid {
        padding: 16px 4px;
    }

    .eventLinks a {
        width: 100%;
        margin: 0 0 8px 0;
    }
}


/*
***************************************    
**  Styles Under 625px               **
***************************************
*/
@media(max-width:625px) {
    * {
        font-size: 11px;
    }

    .eventLinks a {
        width: 100%;
    }

    #results h3, .home-link-hdr {
        font-size: 22px;
        color: #c0ac7e;
    }

    .header h3 {
        font-size: 24px;
    }

    .header h4 {
        font-size: 11px;
    }

    .header h5 {
        font-size: 11px;
    }

    .header h6 {
        font-size: 9px;
    }

    .time, .heats, .results {
        width: 60px;
    }

    .round {
        width: 50px;
    }
}

/* Modernize tables */
table {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}
td, th {
    padding: 10px 8px;
}

/* Hide old borders */
table, th, td {
    border: none !important;
}

/* Modernized style for Diamond League look */
nav, .nav {
    background: #0a2342;
    color: #fff;
    border-radius: 0 0 10px 10px;
    margin-bottom: 24px;
    padding: 0 24px;
}
.nav a, nav a {
    color: #00b4d8;
    font-weight: 500;
    padding: 12px 18px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.nav a:hover, nav a:hover {
    background: #00b4d8;
    color: #fff;
    text-decoration: none;
}

.btn, .btn-primary {
    background: #00b4d8;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.btn:hover, .btn-primary:hover {
    background: #0077b6;
    color: #fff;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background: #f1f8fb;
}

@media (max-width: 900px) {
    .container { padding: 16px 4px; }
    .header, .footer {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
        text-align: left;
    }
    .header img.logo, .footer .icons img {
        margin-right: 0;
        margin-left: 0;
        max-width: 60vw;
    }
    .footer .icons {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .header img.logo {
        height: 40px;
        max-width: 80vw;
    }
    .footer .icons img {
        height: 32px;
        max-width: 40vw;
    }
    .header, .footer {
        padding: 12px 4vw;
        gap: 8px;
    }
}

/* Print and PDF buttons */
.print-btn, .pdf-btn {
    background: #00b4d8;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 6px;
    margin-left: 8px;
    font-weight: 500;
    transition: background 0.2s;
}

.print-btn:hover, .pdf-btn:hover {
    background: #0077b6 !important;
    text-decoration: none !important;
}

/* Print styles */
@media print {
    .nav, .footer, .print-btn, .pdf-btn {
        display: none !important;
    }
    
    .container {
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
    
    body {
        background: #fff;
    }
    
    .header {
        background: #fff !important;
        color: #000 !important;
        padding: 0 0 20px 0;
    }
    
    .header h3, .header h4, .header h5 {
        color: #000 !important;
    }
    
    table {
        page-break-inside: avoid;
    }
    
    .row {
        page-break-inside: avoid;
    }
    
    a[href]:after {
        content: none !important;
    }
}

/* Team flag styles */
.team-flag {
    height: 28px;
    width: 42px;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-flag:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

.team {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
}

/* Print styles for flags */
@media print {
    .team-flag {
        height: 24px;
        width: 36px;
        margin-right: 6px;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .team {
        padding: 4px 6px;
    }
}

/* Mobile styles for flags */
@media (max-width: 768px) {
    .team-flag {
        height: 24px;
        width: 36px;
        margin-right: 8px;
    }
    
    .team {
        padding: 6px 8px;
    }
}
