* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.header {
    text-align: center;
    background-color: #000;
    margin: auto;
    width:100%;
    position:absolute;
    border-top-right-radius: 10px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 297mm;
    position:absolute;
    -webkit-print-color-adjust: exact;
    min-height: 100vh; /* Garante que o body ocupe toda a altura da viewport */
    display: flex;
    flex-direction: column; /* Empilha as rows verticalmente */
}

.row {
    position: relative; /* Garante que elementos absolutos dentro da row fiquem restritos a ela */
    width: 100%;
    margin-bottom: 20px; /* Espaço entre as rows */
    min-height: 750px;
    border: 1px solid #FF6400;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    
}


.header h1 {
    margin: 0;
    font-size: 2rem;
    color:#FF6400;
}

.header h2 {
    margin: 10px 0 0;
    font-size: 1.5rem;
    color: #FFF;
}

.round {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
}

.match {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.9rem;
    width: 180px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.athlete {
    font-size: 0.6rem;

}

.coordenador {
    font-size: 1.9rem;

}

.arena {
    font-size: 2rem;

}
.academy {
    font-size: 0.5rem;
    font-weight: bold;
    color: #000;
    background-color: #d3d3d3;

}

.round-1-left {
    left: 10px;
    top: 10px;
}

.round-1-right {
    right: 10px;
    top: 10px;
}

.quarter-left {
    left:200px;
    top: 80px;
}

.quarter-right {
    right: 200px;
    top: 80px;
}

.semi-left {
    left: 250px;
    top: 90px;
}

.semi-right {
    right: 250px;
    top: 90px;
}

.final {
    left: 50%;
    top: 200px;
    transform: translateX(-50%);
}

h2 {
    font-size: 1rem;
    margin: 80px 0 0.5rem;
}
h5{
    font-size: 0.8rem;
    font-weight: bold;
    color: #333333;
}

.footer {
    position: absolute;
    display: flex;
    flex-direction: rows;
    gap: 2.5rem;
    text-align: center;

}
.box-footer{
    margin-top: 670px;
    margin-left:50px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.9rem;
    width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
}
.box-arena{
    margin-top: 670px;
    margin-left:120px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.9rem;
    width: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}
.box-coordenador{
    margin-top: 670px;
    margin-left:120px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.9rem;
    width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}

@media print {
    body {
        margin: 0;
    }
}