:root{
    --preto:#0d0d0d;
    --cinza:#f4f4f4;
    --branco:#ffffff;
    --dourado:#c6a85a;
}

body{
    margin:0;
    font-family:'Poppins',sans-serif;
    background:linear-gradient(135deg,#e9e9e9,#f7f7f7);
}

/* HEADER */

header{
    background:var(--preto);
    color:white;
    padding:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

.title{
    font-size:22px;
    font-weight:700;
}

.tabs{
    display:flex;
    gap:10px;
}

.tab{
    background:transparent;
    border:1px solid white;
    color:white;
    padding:8px 16px;
    border-radius:20px;
    cursor:pointer;
    transition:0.3s;
}

.tab.active,
.tab:hover{
    background:white;
    color:black;
}

/* CONTAINER */

.container{
    display:flex;
    width:200%;
    transition:0.4s;
}

.page{
    width:100%;
    padding:20px;
    box-sizing:border-box;
}

/* CARDS */

.card{
    background:var(--branco);
    padding:20px;
    border-radius:14px;
    box-shadow:0 8px 20px rgba(0,0,0,0.1);
    margin-bottom:20px;
}

/* TIMES GRID */

.teamsGrid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    margin-bottom:15px;
}

input{
    padding:12px;
    border-radius:8px;
    border:1px solid #ccc;
    font-size:16px;
}

/* BOTÃO */

.mainBtn{
    background:var(--preto);
    color:white;
    border:none;
    padding:12px;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
}

.mainBtn:hover{
    background:#222;
}

/* RODADAS */

.rodada{
    background:white;
    border-radius:14px;
    padding:15px;
    margin-bottom:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.jogo{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin:10px 0;
    flex-wrap:wrap;
    font-weight:600;
}

.jogo input{
    width:60px;
    text-align:center;
}

/* TABELA */

table{
    width:100%;
    border-collapse:collapse;
}

th{
    background:var(--preto);
    color:white;
    padding:10px;
}

td{
    padding:10px;
    border-bottom:1px solid #ddd;
    text-align:center;
}

.finalBox{
    margin-top:20px;
    padding:15px;
    border-radius:10px;
    background:var(--preto);
    color:white;
    text-align:center;
    font-weight:600;
}

/* RESPONSIVO */

@media (max-width:700px){

    .teamsGrid{
        grid-template-columns:1fr;
    }

    header{
        flex-direction:column;
        gap:10px;
    }

}

.saveBtn{
    margin-top:10px;
    background:#c6a85a;
    color:black;
    border:none;
    padding:12px;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
}

.saveBtn:hover{
    background:#b89a4e;
}

td:first-child,
th:first-child{
    text-align:left;
    padding-left:12px;
}

td:not(:first-child),
th:not(:first-child){
    text-align:center;
}
