﻿/* Estilos para o modal de regulamento */
.modal-regulamento {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content-regulamento {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.header-regulamento {
    display: flex;
    justify-content: space-between;
    align-items: center;    
}

.title-regulamento {
    color: #D33E21;
    font-family: 'Archia', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-align: left;
    margin: 0;
    flex: 1;
}

.cancel-link-regulamento {
    cursor: pointer;
    background-color: transparent;
    border: none;
    outline: none;
    padding: 5px;
}

.image-regulamento {
    display: flex;
    justify-content: center; 
    margin-bottom: 20px; 
}

    .image-regulamento img {
        max-width: 40%; 
        height: auto; 
    }

.text-regulamento {
    font-family: 'Archia', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    background-color: #FFF;
    border-radius: 10px;
    padding: 10px;
    overflow-y: auto; 
    flex: 1;
    max-height: calc(75vh - 80px); 
}

.regulamento-title, .regulamento-subtitle {
    text-align: center;
    margin-top: 20px;
}

.regulamento-title {
    font-size: 20px;
    font-weight: 700;
}

.regulamento-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
}

.regulamento-text {
    margin-top: 20px;
    padding: 0 10px;
}

.item-list-regulamento li {
    list-style-type: none;
}


.rodape-regulamento{
    padding: 12px;
    font-size:10px;
    text-align:center;
    color:forestgreen;
}

/* Estilo para tabela */
.responsive-table {
    width: 100%;
    border-collapse: collapse; 
    margin-bottom:20px;
}

    .responsive-table thead {
        background-color: #f2f2f2; /
    }

    .responsive-table th, .responsive-table td {
        padding: 10px;
        text-align: left;
        border-bottom: 1px solid #ddd; 
    }

    .responsive-table th {
        background-color: #f9f9f9; 
        font-weight: bold;
    }

    .responsive-table tr:nth-child(even) {
        background-color: #f9f9f9; 
    }

@media (max-width: 768px) {
    .modal-content-regulamento {
        width: 95%; 
        padding: 15px;
    }

    .title-regulamento {
        font-size: 20px;
    }

    .text-regulamento {
        font-size: 14px;
    }

    .regulamento-title {
        font-size: 18px;
    }

    .regulamento-subtitle {
        font-size: 16px;
    }


    .responsive-table, .responsive-table thead, .responsive-table tbody, .responsive-table th, .responsive-table td, .responsive-table tr {
        display: block;
        width: 100%;
    }

        .responsive-table thead tr {
            display: none; 
        }

        .responsive-table td {
            position: relative;
            padding-left: 60%;
            text-align: left;
            border-bottom: 1px solid #ddd;
            border-radius: 5px; 
            background: #f9f9f9; 
            font-size:12px;
        }

            .responsive-table td::before {
                content: attr(data-label);
                position: absolute;
                left: 10px;
                width: 45%;
                padding-right: 10px;
                white-space: nowrap;
                text-align: left;
                font-weight: bold;
                color: #333;
                border-radius: 5px; 
                padding: 5px; 
                top: 0; 
                font-size: 12px;
            }   
    
}
