* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Tab Navigation Styles */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 0;
    background-color: #1a1a1a;
    padding: 20px 0 0px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tab-button {
    background: none;
    border: none;
    color: #999;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 12px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    outline: none;
}

.tab-button:focus {
    outline: none;
}

.tab-button:hover {
    color: #c38d13;
}

.tab-button.active {
    color: #c38d13;
    border-bottom: 3px solid #c38d13;
}

/* View sections */
.view-section {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
}

.view-section.active {
    display: flex;
    justify-content: center;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive tabs */
@media (max-width: 768px) {
    .tab-button {
        padding: 12px 30px;
        font-size: 1em;
    }
}

a {
    color: #c38d13;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Style the Reset Bracket button */
.reset-button {
    background-color: #333; /* Gold color */
    color: #c9c9c9; /* Black text */
    border: 1px solid #333; /* Gold border color */
    border-radius: 4px; /* Rounded corners */
    padding: 6px 2px; /* Padding for size */
    font-size: 13px; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    margin-top: -10px; /* Spacing from the bottom */
}

/* Add hover effect */
.reset-button:hover { 
    border: 1px solid #c38d13; /* Gold border color */
}


/* Update the body to be a flex container */
body {
    padding: 0;
    background-color: #1a1a1a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Make container grow to push footer down */
.container {
    display: flex;
    justify-content: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
}

.footer {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: auto;
    color: #999;
    font-size: 0.8em;
    background: #2a2a2a;
    padding: 15px;
    border-radius: 0;
    border-top: 1px solid #333;
}

/* Rankings view - centered */
#rankings-view {
    width: 100%;
}

#rankings-view .rankings {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

/* Bracket view - centered */
#bracket-view {
    width: 100%;
}

#bracket-view .bracket {
    display: block;
}

.rankings {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid #333;
    min-width: 320px;

}

.rankings h2 {
    margin-bottom: 15px;
    color: #c38d13;
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #c38d13;
    padding-bottom: 8px;
    text-align: center;
}



.instructions {
    background-color: #333;
    color: #c4c4c4;
    font-size: 14px;
    letter-spacing: .5px;
    line-height: 25px;
    text-align: center;
    padding: 1em 0;
    margin-top: 20px;
    border-radius: 4px;
}


.team-card {
    display: flex;
    align-items: center;
    padding: 9px;
    margin-bottom: 8px;
    background: #333;
    border-radius: 4px;
    cursor: move;
    transition: all 0.2s ease;
    border: 1px solid #444;
    width: 100%;
    margin-left: 1px;
    position: relative;
}

.team-card:hover {
    background: #3a3a3a;
    /* border-color: #c38d13; */
}

.team-card.dragging {
    opacity: 0.5;
    background: #444;
}

.team-number {
    margin-right: 5px;
    font-weight: bold;
    color: #c38d13;
    min-width: 20px;
    position: relative;
    top: -2px;
}

.team-card.non-playoff {
    background: #2a2a2a;
    color: #999;
}

.team-conference.conference-champ {
    color: #c38d13;
    font-weight: bold;
    font-style: italic;

}


.team-info {
    flex-grow: 1;
}

.team-name {
    font-weight: bold;
    color: #ffffff;
}

.team-conference {
    font-size: 0.8em;
    color: #999;
    
}

/* Arrow buttons styles */
.arrow-buttons {
    display: none; /* Hidden by default on desktop */
    flex-direction: row;
    gap: 2px;
    margin-left: 8px;
}

.arrow-button {
    background: #444;
    border: 1px solid #4a4a4a00;
    color: #c38d13;
    font-size: 14px;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.arrow-button:hover:not(:disabled) {
    background: #555;
    border-color: #e6b530;
}

.arrow-button:active:not(:disabled) {
    transform: scale(0.95);
}

.arrow-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.arrow-button.trophy {
    margin-right: 4px;
    height: 28px;
    min-width: 28px;
    padding: 0 5px;
}

.arrow-button.trophy:hover:not(:disabled) {
    /* background: #d4a020; */
    border-color: #e6b530;
    box-shadow: 0 0 8px rgba(195, 141, 19, 0.5);
}

.arrow-button.trophy:disabled {
    opacity: 0.0;
}

.arrow-button.trophy img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* Show arrow buttons on mobile/touch devices */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
    .arrow-buttons {
        display: flex;
    }
    
    .team-card {
        cursor: default; /* Remove drag cursor on mobile */
    }
    
    /* Adjust team card width to accommodate arrow buttons */
    .team-card {
        width: 100%;
    }

}

.arrow-buttons {
    display: flex;
}


.bracket {
    background: #2a2a2a;
    padding: 15.5px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid #333;
    margin: 0 auto;
    width: fit-content;
}

.bracket h2 {
    margin-bottom: 15px;
    color: #c38d13;
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 4px;
    border-bottom: 2px solid #c38d13;
    padding-bottom: 8px;
    text-align: center;
}

.bracket-container {
    display: flex;
    gap: 25px;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0 auto;
    width: fit-content;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.round {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 40px;
}

.round-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    text-align: center;
}

.matchup {
    width: 200px;
    background: #333;
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #444;
    position: relative;
    margin-bottom: 20px;
}

.matchup:hover {
    background: #3a3a3a;
    border-color: #c38d13;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.round:last-child .matchup::after {
    display: none;
}

.team-slot {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 2px;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

.team-slot span {
    flex: 1;
}

.team-slot:hover {
    background: rgba(195, 142, 19, 0.061);
    box-shadow: 0 0 3px rgba(195, 141, 19, 0.2);
}

.team-slot:first-child {
    border-bottom: 1px solid #444;
}

.team-slot:empty {
    height: 36px;
    background: transparent;
}

.winner {
    background: rgba(175, 169, 58, 0.092);
    font-weight: bold;
}



.quarters {
    margin-top: -20px;
}

.round #semifinals {
    display: flex;
    flex-direction: column;
    gap: 110px; /* Adds space between semifinal matchups */
}

.semis {
    margin-top: 35px;
}

.championship {
    margin-top: 37px;
}

.cfp-logo {
    width: 100px; /* Adjust width as needed */
    height: auto; /* Maintains aspect ratio */
    margin-bottom: 5px;
}


.conference-info {
    display: flex;
    align-items: center;
    margin-top: px;
    gap: 5px;
}


.team-record {
    font-size: 0.8em;
    color: #999;
    font-style: italic;
}
.team-logo {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trophy {
    max-width: 13px;
    height: 16px;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trophy img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.team-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bracket-team-logo {
    width: auto;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.champion-team-logo {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 10px;
}

.champion-display {
    margin-top: 20px;
    text-align: center;
    padding: 10px;
    background: #343434;
    border-radius: 8px;
    border: 1px solid #444;
    max-width: 100%;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: all 0.6s ease-out;
}

.champion-display.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.champion-display img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.champion-display .champion-name {
    font-size: 1.5em;
    color: #ffd700;
    margin-top: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

.champion-display .champion-name,
.bracket h2,
.team-conference.conference-champ,
.rankings h2,
.round-title {
    background: linear-gradient(45deg, #c38d13, #cea649, #c38d13);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

.dragging {
    opacity: 0.8;
    transition: transform 0.2s;
}




@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
        min-height: auto;
    }
    
    #rankings-view .rankings {
        max-width: 100%;
    }
    
    #bracket-view .bracket {
        width: 100%;
        overflow-x: auto;
    }
    
    .bracket-container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 15px;
        overflow-x: auto;
        justify-content: flex-start;
        width: max-content;
    }
    
    .round {
        min-width: 160px;
        flex-shrink: 0;
    }
    
    .matchup {
        width: 160px;
        max-width: 160px;
        margin: 0 auto 15px auto;
        padding: 4px;
    }
    
    .team-slot {
        font-size: 0.85em;
        padding: 5px;
    }
    
    .bracket-team-logo {
        width: auto;
        height: 16px;
        margin-right: 5px;
    }
    
    .round-title {
        font-size: 0.75em;
    }
    
    .round #semifinals {
        gap: 80px;
    }
    
    .cfp-logo {
        width: 70px;
    }
    
    .champion-display {
        padding: 15px;
        max-width: 100%;
        opacity: 0;
        transform: translateY(20px);
        visibility: hidden;
        transition: all 0.6s ease-out;
    }
    
    .champion-display img {
        width: 70px;
        height: auto;
        margin-bottom: 11px;
    }
    
    .champion-display .champion-name {
        font-size: 1.3em;
        color: #ffd700;
        margin-bottom: 0px;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .tab-button {
        padding: 10px 20px;
        font-size: 0.9em;
        letter-spacing: 1px;
    }
    
    .team-name {
        font-size: 0.9em;
    }
    
    .team-conference,
    .team-record {
        font-size: 0.7em;
    }
    
    .team-number {
        font-size: 0.9em;
    }
    
    .round-title {
        font-size: 0.8em;
    }
    
    .team-slot {
        font-size: 0.85em;
        padding: 6px;
    }
    
    .instructions {
        font-size: 12px;
        line-height: 20px;
    }
}