﻿
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: var(--a-link-color);
}

    a:hover {
        color: var(--a-link-hover-color);
        text-decoration: none;
    }

.btn-light, .btn-primary {
    border-radius: 24px;
    font-weight: 600;
    padding: 8px 28px;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(84,126,167,0.06);
}

.btn-light {
    background: #f7fafc;
    color: var(--primary-color);
    border: 1px solid #dbeafe;
}

    .btn-light:hover {
        background: #e3eefd;
        color: var(--a-link-color);
    }

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color) 70%, var(--secondary-color) 100%);
    border: none;
    color: #fff;
}

    .btn-primary:hover {
        background: linear-gradient(90deg, var(--secondary-color) 70%, var(--primary-color) 100%);
        color: #fff;
    }


.btn-normal:hover {
    color: #294591;
}

.btn-account {
    background-color: var(--button-account-back-color);
    border: none;
    color: var(--button-account-color);
    padding: 40px 35px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 400;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 210px;
    height: 153px;
}

    .btn-account:hover {
        background-color: var(--button-account-back-hover-color);
        color: var(--button-account-hover-color);
    }

    .btn-account i {
        display: block;
    }

    .btn-account:first-child {
        margin-left: 0;
    }

    .btn-account:last-child {
        margin-right: 0;
    }

.btn-delete {
    color: red;
}

.btn-transfer {
    color: green;
}

.text-primary {
    color: var(--primary-color);
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    background: linear-gradient(120deg, var(--background-primary-color) 0%, var(--background-secondary-color) 100%);
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

h1, h2, h3, h4, h5 {
    /*color: #0c2e8a;*/
    /*text-transform: uppercase;*/
    font-family: "Montserrat", sans-serif;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 100px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    line-height: 25px;
    background: linear-gradient(90deg, var(--secondary-color) 70%, var(--primary-color) 100%);
    border-top: 1px solid var(--primary-color);
    padding: 10px;
}

    .footer p {
        margin: 0;
        color: #FFF;
    }

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: large;
    color: white !important;
    border-radius: 8px;
}

    .nav-link:hover, .nav-link:focus {
        text-decoration: none;
        background: rgba(255, 255, 255, 0.12);
        color: var(--nav-link-hover-color) !important;
    }

.dropdown-item:hover {
    color: #16181b;
    text-decoration: none;
    background-color: rgb(238, 239, 240);
}

@media (max-width: 768px) {
    .nav-link, .nav-link:hover, .nav-link:focus {
        padding-left: 10px;
        transition: padding 0.2s;
    }
}

@media (min-width: 1480px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl {
        max-width: 1440px;
    }
}

.raceTitle {
    background-color: var(--race-title-color) !important;
    color: white !important;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    display: inline-block;
}

.cards-title {
    color: white;
    background-color: var(--primary-color);
    text-align: center;
}

.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-wrap {
    position: relative;
}

    .navbar-wrap:before {
        content: ' ';
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        opacity: 0.3;
        /*background-image: url('/images/trees.jpg');*/
        background-repeat: no-repeat;
        background-position: 50% 0;
        background-size: cover;
    }

.navbar-content {
    position: relative;
    margin-bottom: 20px;
}

@media only screen and (max-width: 768px) {
    .navbar-content {
        position: relative;
        margin-top: 100px;
        margin-bottom: 20px;
    }
}

.navbar {
    background: linear-gradient(90deg, var(--primary-color) 70%, var(--secondary-color) 100%);
    margin-top: 100px;
    margin-bottom: 20px;
}

.home-icon {
    position: relative;
    margin-bottom: 20px;
    top: 0;
    transition: top ease 0.5s;
}

    .home-icon:hover {
        top: -10px;
    }

/* Photo Gallery */
.photo-gallery {
    color: #313437;
}

    .photo-gallery p {
        color: #7d8285;
    }

    .photo-gallery h2 {
        font-weight: bold;
        margin-bottom: 40px;
        padding-top: 40px;
        color: inherit;
    }

@media (max-width:767px) {
    .photo-gallery h2 {
        margin-bottom: 25px;
        padding-top: 25px;
        font-size: 24px;
    }
}

.photo-gallery .intro {
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 40px;
}

    .photo-gallery .intro p {
        margin-bottom: 0;
    }

.photo-gallery .photos {
    padding-bottom: 20px;
}

.photo-gallery .item {
    padding-bottom: 30px;
}
/* End of Photo Gallery */

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

.limitedWidth {
    max-width: 280px;
}

.row {
    padding-bottom: 5px;
    padding-top: 5px;
}

.admin-panel {
    float: right;
}

@media screen and (max-width: 1000px) {
    .admin-panel {
        float: right;
        position: absolute;
        top: -70px;
        right: 0;
    }
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px;
    }

    .body-content {
        padding: 0;
    }
}

.carousel-item img {
    width: 100%;
}

/* --- CARD STYLES --- */
.card-header {
    border-bottom: none;
    padding: 1rem 1.2rem;
    background: none;
}

.card-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Card body */
.card-body {
    padding: 1.2rem;
}

/* Card header with gradient background */
.bg-gradient-primary {
    background: linear-gradient(90deg, var(--primary-color) 70%, var(--secondary-color) 100%) !important;
    color: #fff !important;
}
/* --- END OF CARD STYLES --- */

/* --- PAGE STYLES --- */
/* Page title */
.page-title {
    font-family: "Montserrat", sans-serif;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
}

.page-details {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(84,126,167,0.09);
    padding: 2.5rem 1.5rem 2rem 1.5rem;
}

.page-table-container {
    background: #f8fafc;
    border-radius: 8px;
}

.page-table {
    background-color: white;
}

.page-table th, .page-table td {
    vertical-align: middle !important;
}

.page-table thead.table-primary {
    background: linear-gradient(90deg, var(--primary-color) 70%, var(--secondary-color) 100%);
    color: #fff;
}

.transparent-table-container {
    background-color: transparent;
    padding: 2px;
}

.info-list {
    font-size: 1.08rem;
}

@media (max-width: 768px) {
    .page-title, .subpage-title {
        font-size: 1.3rem;
    }

    .page-details {
        padding: 1rem 0.5rem;
        max-width: 100%;
    }

    .page-table-container {
        padding: 0.5rem;
    }
}

@media (max-width: 600px) {

    .info-list {
        font-size: 0.98rem;
    }
}
/* --- END OF PAGE STYLES --- */


/* --- DOWNLOAD STYLES --- */
.download-list {
    width: 100%;
    padding: 2rem 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0 auto;
}

.download-item {
    max-width: 600px;
    background: var(--background-primary-color);
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(84,126,167,0.07) !important;
    transition: box-shadow 0.15s, transform 0.15s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 1rem;
}

    .download-item:hover {
        box-shadow: 0 4px 16px rgba(84,126,167,0.14);
        transform: translateY(-2px) scale(1.01);
    }

    .download-item .btn-success {
        border-radius: 20px;
        font-weight: 600;
        padding: 0.4em 1.2em;
        font-size: 1rem;
        white-space: nowrap;
    }

    .download-item .text-truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
    }

@media (max-width: 700px) {
    .download-item {
        max-width: 98vw;
        padding: 1rem 0.5rem;
    }

        .download-item .text-truncate {
            max-width: 120px;
            font-size: 0.95rem;
        }
}

@media (max-width: 480px) {
    .download-item {
        padding: 0.7rem 0.2rem;
    }

        .download-item .text-truncate {
            max-width: 60px;
            font-size: 0.90rem;
        }
}

/* --- END OF DOWNLOAD STYLES --- */


/* --- TOURNAMENT STYLES --- */
/* Tournament card */
.tournament-card {
    border-radius: 18px;
    overflow: hidden;
    transition: box-shadow 0.18s, transform 0.18s;
    border: none;
    background: #fff;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
}

    .tournament-card:hover {
        box-shadow: 0 8px 32px rgba(84,126,167,0.17);
        transform: translateY(-4px) scale(1.02);
    }

/* Tournament info list */
.tournament-card ul.list-unstyled {
    margin-bottom: 1.2rem;
    color: #222;
    font-size: 1rem;
}

    .tournament-card ul.list-unstyled li {
        margin-bottom: 0.35em;
        display: flex;
        align-items: center;
        gap: 0.4em;
    }

/* Steps list */
.steps-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

    .steps-list .badge {
        font-size: 1rem;
        padding: 0.6em 1.1em;
        border-radius: 12px;
        background: #f8fafc;
        color: var(--primary-color) !important;
        border: 1px solid var(--primary-color) !important;
        transition: background 0.15s, color 0.15s;
        font-weight: 500;
        text-decoration: none;
        width: 120px; /* Set to the width that fits your date format */
    }

        .steps-list .badge:hover {
            background: var(--primary-color) !important;
            color: #fff !important;
        }

/* Responsive tweaks */
@media (max-width: 991px) {
    .col-lg-6, .col-xl-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* --- END OF TOURNAMENT STYLES --- */


/* --- LINKS PAGE STYLES --- */
.link-img {
    max-width: 100%;
    height: 180px;
    transition: transform 0.2s ease;
}

a:hover .link-img {
    transform: scale(1.05);
}
/* --- END OF LINKS PAGE STYLES --- */


/* --- INSCRIPTION STYLES --- */
.btn-inscrever {
    padding: 0.45em 1.5em;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

    .btn-inscrever i {
        font-size: 1.1em;
    }

    .btn-inscrever:hover, .btn-inscrever:focus {
        background: linear-gradient(90deg, var(--secondary-color) 70%, var(--primary-color) 100%);
        color: #fff;
        text-decoration: none;
    }

@media (max-width: 768px) {
    .btn-inscrever {
        padding: 0.4em 1em;
        font-size: 0.96rem;
    }
}

.btn-action {
    border-radius: 20px;
    font-weight: 600;
    padding: 0.35em 1.1em;
    font-size: 0.97rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-bottom: 2px;
    white-space: nowrap;
}

    .btn-action i {
        font-size: 1.1em;
    }

.badge.bg-secondary {
    font-size: 0.97rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    opacity: 0.85;
    color: white;
}

@media (max-width: 700px) {
    .btn-action {
        font-size: 0.97rem;
        padding: 0.38em 0.8em;
    }
}

/* --- END OF INSCRIPTION STYLES --- */


/* --- FORM STYLES --- */
.form-section {
    background: #f8fafc;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(84,126,167,0.07);
    border: 1px solid var(--background-secondary-color);
}

    .form-section h6 {
        color: var(--primary-color);
        font-weight: 600;
        margin-bottom: 0.7rem;
    }

    .form-section hr {
        margin: 1.2rem 0;
    }

    .form-section button[type="submit"] {
        margin-top: 1.2rem;
        width: 100%;
        max-width: 600px;
        font-weight: 600;
        border-radius: 24px;
        padding: 0.6em 0;
        font-size: 1.1rem;
    }

@media (max-width: 700px) {
    .form-section {
        padding: 1rem 0.5rem;
        max-width: 98vw;
    }
}
/* --- END OF FORM STYLES --- */
