﻿html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: stretch; /* Stretch to fill container */
    justify-content: stretch; /* Stretch to fill container */
    overflow: hidden; /* Prevent scrollbars */
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
}

.home-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/*League View*/
.conferences-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    /*gap: 24px;*/ /* Adjust gap as needed */
    box-sizing: border-box;
    padding: 8px;
    background: #fff;
    font-size: .8rem;
}

#wc.conferences-container {
    font-size: .8rem;
}

.conferences-container > :first-child { /*simulate gap:24px but with more universal browser support */
        margin-right: 24px;
    }  

.conference-side {
    display: flex;
    flex-direction: column;
    /*gap: 16px;*/
    width: 50%; /* Ensure each side takes half the container */
}

.division-mb { /*simulate gap:16px but with more universal browser support */
    margin-bottom: 16px;
}  

.conference-panel {
    /*flex: 1 1 0;*/
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;

    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.conference-panel:nth-child(3) {
    /*flex: 2 1 0;*/ /* Third panel grows twice as much because it has more rows*/
    flex-grow: 2;
    flex-shrink: 1;
    flex-basis: 0;
}
/*End League View*/

table {
    table-layout: auto;
    width: 100%;
    height: 100%;
    margin: auto;
    border-spacing: 5px; /* adjust as needed */
}

td, th {
    padding: 0; /* adjust as needed */
    border-top: 1px solid #ddd;
    white-space: nowrap;
    width: 1%;
}

tr:nth-child(even) {
    background: #F0F0F0
}

tr:nth-child(odd) {
    background: #FFF
}

h1, h2, .conference {
    /*flex: 0 0 auto;*/ /* Don't grow, don't shrink, auto height */
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    margin-left: 0%;
    color: #FFF;
    /*font-size: calc(10px + .9vw);*/
    font-size: 1.2rem;
    font-weight: 600;
    background-position: right top;
    background-repeat: no-repeat;
    background-size: contain;
    padding: .2rem;
    text-transform: uppercase;
}

.conference-Western {
    background-color: #003E7E;
    background-image: url('/images/CA-STATS-ConferenceLogo-Western.png');
}

.conference-Eastern {
    background-color: #C41230;
    background-image: url('/images/CA-STATS-ConferenceLogo-Eastern.png');
}

.NHL {
    background-color:#000; 
    background-image: url('/images/CA-STATS-NHLLogo.png');}
}

.text-center{
    text-align:center;
}

.team-logo{
    width: 30px;
}

.club-logo {
    /*width: calc(1vw + 1.5vh);*/
    width: 1.5rem;
}

#PP .club-logo, #PK .club-logo {
    width: calc(2vw + 1.8vh);
    /*width: 2rem;*/
}

#home h2{
    color:black;
    margin:0;
    padding: 3px 0;
}

.bold {
    font-weight: 600;
}

.fail {
    color:black;
}

.avsrow {
    font-weight: bold;
    background-color: rgba(138, 36, 50, 0.34) !important;
}

.strong {
    font-weight:bold;
}

hr {
    border: 0;
    height: 1px;
    color: #231f20;
    background-color: #231f20;
    margin: 15px auto;
    width: 50%;
}

.countdown {
    color: rgba(82, 82, 82, 0.44);
    position: fixed;
    bottom: 0;
    right: 0;
    font-size: 1.5em;
    font-weight: bold;
}

#timestamp {
    color: rgba(82, 82, 82, 0.44);
    position: fixed;
    bottom: 0;
    right: 8px;
    font-size: .6rem;
    font-weight: bold;
}

.wildcardborder {
    border-bottom: .5rem solid #909090;
}