* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    overflow: hidden;
    font-family: 'Telegraf', sans-serif;
    color: white;
    text-align: center;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/bg.jpg') center/cover no-repeat;
    z-index: -1;
}

.content {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.content::-webkit-scrollbar {
    display: none;
}

.page {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
}

.hero .title-card {
    animation: fadeInUp 2s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.scroll-indicator {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #444;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #FEBF19;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    width: 100%;
}

.team {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.team img {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem;
}

.leaderboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
}

.team-row img {
    width: 32px;
    height: 32px;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.team-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    justify-content: center;
    color: white;
}

.team-box img {
    width: 32px;
    height: 32px;
}

.score-box {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: white;
    font-weight: normal;
    min-width: 80px;
}

.score-text {
    font-weight: bold;
}

.bracket {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.round {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.matchup {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 6px;
    min-width: 150px;
}

.watch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    width: 100%;
}

.watch-col {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
}

.watch-col img {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.socials i {
    font-size: 24px;
    color: white;
}

@media (max-width: 600px) {
    .match {
        flex-direction: column;
    }

    .watch-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.bracket-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
}

.bracket-title {
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #FEBF19;
    margin-bottom: -1rem;
}

.bracket {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.match {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-left: 3px solid #FEBF19;
    border-right: 3px solid #FEBF19;
    border-radius: 5px;
    text-align: center;
    min-width: 240px;
}

.match span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.95rem;
    color: #fff;
}

.connector {
    width: 3px;
    height: 40px;
    background: #FEBF19;
}

@media (max-width: 768px) {
    .bracket-wrapper {
        gap: 2rem;
    }

    .match {
        min-width: auto;
        width: 90%;
    }
}

.bracket-wrapper.horizontal {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.bracket-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bracket.horizontal {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.bracket.grand {
    margin-left: 3rem;
}

.bracket-wrapper.horizontal-flow {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
}

.round-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
}

.match.game-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-left: 3px solid #FEBF19;
    border-radius: 5px;
    color: #fff;
    font-size: 0.95rem;
    width: 350px;
    justify-content: center;
}

.match.game-card img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.match.game-card strong {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 0.25rem;
}

.lb-final {
    margin-top: auto;
}

.gf-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lower-final-wrapper {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.lower-final-wrapper .bracket-title {
    margin-bottom: 0rem;
    /* match other titles */
}

h2 {
    font-size: xx-large;
    text-transform: uppercase;
}

.match-list.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
}

.leaderboard-table {
    display: grid;
    gap: 0.5rem;
    margin: 2rem 0;
    width: 100%;
    max-width: 900px;
}

.leaderboard-header,
.leaderboard-row {
    display: grid;
    grid-template-columns: 40px 1.5fr repeat(4, 0.7fr) 0.7fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.leaderboard-header {
    background: rgba(255, 191, 25, 0.9);
    color: black;
    font-weight: bold;
}

.leaderboard-row img {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.leaderboard-row>div:nth-child(2) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

li {
    list-style: none;
}

.pfp {
    border-radius: 100%;
}

.fab {
    transition: color 0.3s;
}

.fab:hover {
    color: #FEBF19;
}

a {
    color: #FEBF19;
}

.maps-text {
    font-weight: normal;
    font-size: smaller !important;
}

.main-logo {
    height: 200px;
    width: auto;
    align-items: center;
    display: block;
    margin: 0 auto;
}

.highlight {
    color: #FEBF19;
}

.overview-text {
    max-width: 1400px;
}

@media (max-width: 768px) {

    #teams,
    #stage-one,
    #stage-two {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .scroll-indicator .dot:nth-child(3),
    /* teams */
    .scroll-indicator .dot:nth-child(4),
    /* stage-one */
    .scroll-indicator .dot:nth-child(5)

    /* stage-two */
        {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .mobile-only {
        display: none;
    }
}