@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    user-select: none;
    font-family: 'Montserrat';
}

a {
    text-decoration: none;
    color: unset;
    cursor: pointer;
}

a:focus-visible {
    outline: #eab830 auto 1px;
}

li {
    margin: 10px 0px;
}

li:hover::marker {
    color: #eab830;
}

button {
    font-family: 'Montserrat';
}

.cont {
    background-color: #333333;
    color: #aaaaaa;
    display: flex;
    justify-content: flex-end;
    padding: 10px 50px 10px 0px;
    flex-wrap: wrap;
}

.cont div {
    display: flex;
    width: fit-content;
    padding-left: 30px;
    align-items: center;
    padding-bottom: 4px;
}

.cont div>* {
    padding-right: 15px;
}

.cont div p {
    margin: 0px;
    height: fit-content;
    font-size: 13px;
}

.cont svg {
    height: 20px;
    fill: #cccccc;
}

.cont a {
    padding: 0px;
    margin-right: 15px;
}

.cont div:last-child svg:hover {
    fill: #ffffff;
}

.header {
    width: 100%;
    height: 165px;
}

header {
    width: calc(100% - 40px);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    top: 0;
    z-index: 6;
}

header img {
    height: 125px;
}

header nav {
    padding-left: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

header nav button {
    text-transform: uppercase;
    cursor: pointer;
    padding: 10px 10px;
    margin-right: 15px;
    background-color: unset;
    border: none;
    font-size: 15px;
}

header nav button:hover {
    border-bottom: 2px solid #eab830 !important;
}

#menu_mobile_btn {
    display: none;
}

#banner {
    height: calc(100vh - 209px);
    width: 100%;
    background-position: center, center;
    background-size: contain;
    background-repeat: no-repeat, repeat;
    background-color: #0c0820;
    background-image: url(img/slider/desktop_main.jpg), url(img/slider/fundo.png);
}

.sobre_nos,
.calendario,
form {
    padding: 30px 0px;
}

form p {
    margin: auto;
    width: 80%;
    text-align: center;
}

.sobre_nos h1,
.calendario h1 {
    text-align: center;
}

.sobre_nos hr,
.calendario hr {
    width: 15%;
    border: 1px solid #eab830;
}

.sobre_nos div {
    width: 80%;
    margin: 30px auto;
    font-family: 'Open Sans';
}

.break_line {
    border: none;
    height: 4px;
    position: relative;
    margin: 0px 1%;
}

.break_line::before {
    content: "";
    position: absolute;
    width: calc(15% - 6px);
    height: 3px;
    background-color: #F6C018;
}

.break_line::after {
    content: "";
    position: absolute;
    left: calc(15% + 3px);
    width: calc(85% - 6px);
    height: 2px;
    background-color: #5e676b;
}

.calendario button {
    width: 100%;
    margin-top: 15px;
    height: 50px;
}

.cta__btn,
.calendario button,
form button,
.sobre_nos button {
    background-color: #eab830;
    border: none;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.sobre_nos>div>button {
    min-width: 50%;
    transform: translateX(-50%);
    left: 50%;
    position: relative;
}

.cta__btn:hover,
.calendario button:hover,
form button:hover {
    background-color: #d4a621;
    transform: translateY(-2px);
}

.cta__btn{
    min-width: 30%;
}

.calendario img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 15px;
}

.calendario nav {
    min-width: 300px;
    max-width: 90%;
    margin: 15px;
    border: 6px solid #EBEBEB;
}

.calendario .break {
    height: 50px;
    padding: 0px;
    margin-top: 15px;
}

.calendario div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 30px;
}

.calendario p {
    font-family: 'Open Sans';
    margin: 5px 0px;
    text-align: center;
}

.cta {
    background: #414b4f;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 2px solid #5e676b;
    color: #ffffff;
}

.cta__content h1,
.cta__content h2 {
    font-size: 2.5rem;
    margin: 0px;
    margin-bottom: 15px;
    color: #eab830;
}

.cta__content h2 {
    font-size: 2rem;
}

.cta__content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    font-family: 'Open Sans';
}

.cards-container {
    width: 90%;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: #FFC200;
    padding: 18px 22px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: bold;
}

.time {
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(94, 103, 107, 0.18);
}

.card-body {
    padding: 22px;
}

.speaker {
    font-weight: bold;
    margin-bottom: 14px;
    text-align: center;
}

.meta {
    display: flex;
    gap: 18px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: #374151;
    justify-content: space-evenly;
}

.meta span {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 8px;
}

.course {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.4;
}

.carrossel {
    padding: 50px;
    overflow: hidden;
}

#carrossel_imgs {
    width: max-content;
    animation: scroll 20s linear infinite;
}

#carrossel_imgs img {
    height: 450px;
    padding: 0px 20px;
    transition: transform 0.2s ease;
}

#carrossel_imgs img:hover {
    transform: scale(1.1);
}

#carrossel_imgs:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

form button {
    width: 100%;
}

.form__group {
    position: relative;
    padding: 20px 0 0;
    width: 80%;
    margin: 20px auto;
}

.form__field,
.select__field {
    width: 100%;
    border: none;
    border-bottom: 2px solid #555555;
    outline: 0;
    font-size: 17px;
    color: #000000;
    padding: 7px 0;
    background: transparent;
    transition: border-color 0.2s;
}

.select__field {
    appearance: none;
    transition: border-color 0.2s;
}

.form__label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 17px;
    color: #555555;
    pointer-events: none;
}

.form__field::placeholder {
    color: transparent;
}

.form__field:placeholder-shown~.form__label {
    font-size: 17px;
    cursor: text;
    top: 20px;
}

.form__field:focus {
    padding-bottom: 6px;
    font-weight: 700;
    border-width: 3px;
    border-image: linear-gradient(to right, #F6C018, #555555);
    border-image-slice: 1;
}

.form__field:focus~.form__label {
    position: absolute;
    top: 0;
    display: block;
    transition: 0.2s;
    font-size: 17px;
    color: #F6C018;
    font-weight: 700;
}

.form__field:required,
.form__field:invalid {
    box-shadow: none;
}

.select__field:focus {
    border-bottom: 3px solid #F6C018;
    font-weight: 700;
}

.select__field:focus~.select__label {
    color: #F6C018;
    font-weight: 700;
}

.select__field option:disabled {
    color: #999999;
    background-color: #f2f2f2;
}

.select__field:invalid {
    box-shadow: none;
}

.select__field:invalid+.form__label {
    display: none;
}

.select__field:invalid {
    color: #555555;
}

#mensagem {
    display: none;
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translate(-50%, 0%);
    width: 50%;
    background: #eab830;
    padding: 20px 15px;
    text-align: center;
    color: #000000;
    border-radius: 4px;
    font-family: 'Open Sans';
}

.jogador__group {
    display: flex;
    flex-direction: row;
    padding: 0px 10%;
}

.jogador__group .form__group:first-of-type {
    margin-right: 15px;
}

footer {
    background: #414b4f;
    padding: 25px 0px;
    color: #ffffff;
}

footer svg {
    height: 20px;
    padding-right: 10px;
    fill: #ffffff;
}

footer a:hover,
footer nav:last-of-type div:hover {
    color: #eab830;
}

footer .redes_sociais svg:hover {
    fill: #eab830;
}

footer .logo {
    height: 30px;
    padding-right: 10px;
}

footer>:last-child {
    border-top: 2px solid #5e676b;
    display: flex;
    justify-content: space-between;
    padding: 20px 30px 0px;
}

footer>:last-child>:first-child a {
    text-decoration: underline;
}

footer>:first-child nav {
    min-width: 400px;
}

footer nav:first-of-type div {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
}

footer nav:last-of-type div {
    display: flex;
    justify-content: space-between;
    padding: 0px 5px;
}

footer hr {
    border: 1.5px dashed #5e676b;
}

footer p {
    margin: 0px;
    font-family: 'Open Sans';
    font-size: 14px;
}

footer>:first-child {
    display: flex;
    justify-content: space-around;
    padding: 0px 40px 40px;
    flex-wrap: wrap;
}

footer>:last-child nav:first-of-type div {
    margin: 0px;
}

.code {
    background: #111;
    color: #0f0;
    padding: 20px;
    overflow: auto;
    margin: 60px;
    width: calc(100% - 160px);
}
.tournament {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.round {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.match, .match_partie {
    margin: 8px;
    padding: 12px 18px;
    text-align: center;
    font-size: 16px;
    border-radius: 8px;
    width: auto;
    font-family: 'Montserrat';
}

.match_partie {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.match {
    background-color: #ffffff;
    color: #333333;
    transition: all 0.25s ease;
}

.winner {
    background-color: #eab830;
    color: #000000;
    font-weight: bold;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(234, 184, 48, 0.6);
}

.loser {
    background-color: #5e676b;
    color: #cccccc;
    text-decoration: line-through;
    opacity: 0.7;
}

.disabled {
    background-color: #2f383c;
    color: #888888;
}

.match:hover {
    cursor: pointer;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

#jogadores_equipas p {
    margin-left: 20px;
}

@media only screen and (max-width: 650px) {
    .card {
        width: calc(100% - 40px);
    }

    .hamburger {
        cursor: pointer;
    }

    .hamburger input {
        display: none;
    }

    .hamburger svg {
        height: 3em;
        transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
        stroke: #eab830;
    }

    .line {
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 3;
        transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
                    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    .line-top-bottom {
        stroke-dasharray: 12 63;
    }

    svg.mobile_svg_class {
        transform: rotate(-45deg);
        stroke: #ffffff;
    }

    svg.mobile_svg_class .line-top-bottom {
        stroke-dasharray: 20 300;
        stroke-dashoffset: -32.42;
    }
    
    #mobile.move {
        left: 0;
    }

    #mobile {
        position: fixed;
        width: 100vw;
        height: calc(100vh - 120px);
        z-index: 1;
        background-color: #eab830;
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: 1s;
        left: 100%;
        justify-content: space-evenly;
        padding: 60px 0px;
    }

    .cont {
        display: none;
    }

    .header{
        height: 125px;
    }

    header,
    header img {
        height: 85px;
    }

    header nav {
        display: none;
    }

    #menu_mobile_btn {
        display: block;
        background: unset;
        border: none;
        z-index: 10;
    }

    #menu_mobile_btn img {
        height: 45px;
    }

    #banner {
        height: calc(100vh - 125px);
        background-image: url(img/slider/tel_main.jpg), url(img/slider/fundo.png);
    }

    .calendario nav {
        width: 90%;
        min-width: unset;
    }

    #carrossel_imgs img {
        height: 300px;
    }

    #carrossel_imgs {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        gap: 40px 0px;
    }

    footer>:first-child nav {
        width: 100%;
        min-width: unset;
        margin-bottom: 20px;
    }

    footer>:last-child {
        flex-direction: column;
    }

    footer .redes_sociais {
        width: 100%;
        display: flex;
        justify-content: space-evenly;
    }

    footer>:last-child nav:first-of-type div {
        flex-direction: column;
    }

    footer>:last-child nav p {
        margin-bottom: 10px;
    }

    footer>:first-child nav p br {
        display: none;
    }

    footer .logo {
        display: none;
    }

    .jogador__group {
        flex-direction: column;
    }

    .jogador__group .form__group:first-of-type {
        margin-right: 0px;
    }

    .jogador__group .form__group {
        margin-right: 0px;
        margin-left: 0px;
        width: 100%;
    }
}