@import url('https://fonts.cdnfonts.com/css/futura-now-headline');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-family-1:  'Futura Now Headline', sans-serif;
    --principal-color: #51245b;
    --second-color: #1ba8a3;
    --text-color: #242424;
}

html, body {
    overflow: auto;
    height: 100%;
}

body {
    position: relative;
}

#main {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    position: relative;
    width: 100%;
}

.principal {
    width: 100%;
    margin: 0 auto;
    padding: 12vh 1vw 2vh;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: visible;
    padding-bottom: 100px;
}

.principal .title {
    width: 100%;
}

.principal h1 {
    text-align: start;
    letter-spacing: -8px;
    font-size: 15vw;
    line-height: 12vw;
    text-transform: uppercase;
    padding-bottom: 3vw;
    position: relative;
    font-family: var(--font-family-1);
}

.principal h1:nth-child(2) {
    left: 25vw;
}

.principal .reglamento {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.principal .reglamento h4 {
    color: var(--text-color);
    font-size: 28px;
}

.principal .reglamento .rules {
    border: none;
    padding: 7px 15px 10px 15px;
    font-family: var(--font-family-1);
    background-color: var(--second-color);
    font-weight: 400;
    font-size: 18px;
    border-radius: 20px;
    transition: all .3s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
}

.principal .inscription {
    border: none;
    padding: 7px 15px 10px 15px;
    font-family: var(--font-family-1);
    background-color: var(--second-color);
    font-weight: 400;
    font-size: 18px;
    border-radius: 20px;
    transition: all .3s ease-in-out;
    cursor: pointer;
    margin: 3vw 0 1vw 0;
    text-decoration: none;
    color: var(--text-color);
}

.principal .inscription:hover {
    background-color: var(--principal-color);
    color: #fff;
    transform: scale(1.1);
    font-weight: 600;
}

.reglamento .rules:hover {
    background-color: var(--principal-color);
    color: #fff;
    transform: scale(1.1);
    font-weight: 600;
}

#groups {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    margin-bottom: 50px;
    padding: 20px;
    overflow: visible;
}

.group {
    font-family: var(--font-family-1);
    font-weight: 500;
    border-radius: 20px;
    box-shadow: 3px 3px 9px 1px rgba(0, 0, 0, .7);
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    overflow: visible;
    max-height: 350px;
    min-height: 300px;
    height: auto;
    margin-bottom: 40px;
}

.group h2 {
    text-align: center;
    position: absolute;
    z-index: 2;
    font-family: var(--font-family-1);
    color: #fff;
    top: 20px;
    left: 50%;
    transform: translatex(-50%);
    margin-bottom: 20px;
}

.group::before {
    content: "";
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 21%);
    background-color: var(--principal-color);
    width: 100%;
    height: 200px;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 20px 20px 0 0;
}

.group_efect {
    width: 0;
    height: 0;
    background: var(--second-color);
    opacity: .7;
    position: absolute;
}

.group-table {
    width: 100%;
    border-collapse: collapse;
    position: relative;
    border-radius: 0 0 20px 20px;

}

.group-table th, .group-table td {
    padding: 8px;
    text-align: center;
}

.group-table th {
    font-family: var(--font-family-1);
    font-weight: 700;
    font-size: 22px;
}

.group-table td {
    font-size: 16px;
    font-family: var(--font-family-1);
}

.group-table tr {
    transition: all .3s ease-in-out;
}

.group-table tr:hover {
    color: #fff;
    background-color: var(--second-color);
}

.group-table tr span {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #c7c7c7;
    border-radius: 100%;
    width: 30px;
    height: 30px;
    padding: 5px;
    font-family: var(--font-family-1);
}

.footer {
    width: 100%;
    margin-top: auto;
    position: relative;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 20px 0;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .principal h1 {
        font-size: 15vw;
        line-height: 15vw;
    }

    .principal .reglamento h4 {
        font-size: 20px;
    }

    .principal .reglamento .rules {
        font-size: 16px;
    }

    .principal .reglamento .inscription {
        font-size: 16px;
    }

    #groups {
        padding-bottom: 0;
    }

    .group-table th, .group-table td {
        padding: 5px;
        font-size: 14px;
    }

    .principal .reglamento {
        margin-top: 4vw;
    }

    .principal .reglamento h4 {
        text-align: center;
        font-size: 18px;
        margin-bottom: 2vw;
    }
    .group-table th {
        font-size: 14px;
    }
    .group-table td {
        font-size: 12px;
    }
}

