/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
*
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the top of the
 * compiled file, but it's generally better to create a new file per style scope.
 */
@import url("/assets/questrial_font-58caeb7e.css");
@import url("/assets/bootstrap5.min-ccabcfe2.css");
@import url("/assets/tom_select-3497c943.css");
@import url("/vendor/fontawesome/css/all.min.css");
@import url("/assets/flag-icons.min-2c90241e.css");
@import url("/assets/singles_event_details-cb4e863e.css");

/* Font Awesome optimization */
@font-face {
  font-family: 'Font Awesome 7 Free';
  font-display: swap;
}

@font-face {
  font-family: 'Font Awesome 7 Brands';
  font-display: swap;
}

:root {
    --bs-primary: #005043;
    --bs-nav-pills-link-active-bg: #005043;
    --bs-pagination-active-bg: #001d18;
    --bs-body-color: #333;
    --bs-body-bg: white;
    --bs-font-family-base: questrial, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Liberation Sans", arial, helvetica, sans-serif;
    --bs-font-family-headings: questrial, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Liberation Sans", arial, helvetica, sans-serif;
    --bs-font-size-base: 14px;
    --bs-h1-font-size: 32px;
    --bs-h2-font-size: 28px;
    --bs-h3-font-size: 26px;
    --bs-h4-font-size: 24px;
    --bs-h5-font-size: 22px;
    --bs-h6-font-size: 18px;
    --bs-border-radius: 0px;
    --bs-border-radius-lg: 0px;
    --bs-border-radius-sm: 0px;
    --bs-link-color: #337ab7;
    --bs-link-hover-color: #23527c;
}



body {
    color: #333;
    background-color: white;
    font-size: 14px;
    font-family: Questrial, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Liberation Sans", arial, helvetica, sans-serif;
}

h1, h2, h3, h4, h5 {
    color: #005243;
    font-family: Questrial, -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Liberation Sans", arial, helvetica, sans-serif;
    font-weight: 700;
}

h1 {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -1.5px;
    background-color: #f8f9fa;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #005043;
}

h2 {
    font-size: 28px;
    line-height: 36px;
    letter-spacing: -1px;
}

h3 {
    font-size: 26px;
    line-height: 34px;
    letter-spacing: -1px
}

h4 {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -.5px
}

h5 {
    font-size: 22px;
    line-height: 30px;
    letter-spacing: -.5px
}

h6 {
    font-size: 18px;
    line-height: 20px;
    letter-spacing: -.25px
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px dotted #23527c;
    outline-offset: 2px;
    box-shadow: none;
}

/*
 * Add an icon to external links.
 */
.external-link::after
{
    content: "";
    width: 11px;
    height: 11px;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-group-item::after {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.list-group-item:hover {
    background-color: #f5f5f5;
}

.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-inline .form-group {
    margin-bottom: 10px;
}

#profiles-search .form-group {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 0;
}


.btn-primary {
    background-color: #005043 !important;
    border-color: #001d18 !important;
}

.btn-primary:hover {
    background-color: #001d18 !important;
    border-color: #001d18 !important;
}

.nav-pills .nav-link.active {
    background-color: #005043 !important;
    color: white !important;
    border-color: #001d18 !important;
}

.highcharts-title {
    font-family: TeXGyreAdventorBold, roboto, arial, helvetica, sans-serif;
    font-size: 18px;
}

.navbar {
    background-color: white;
}

.navbar-brand {
    margin-right: auto;
}

.navbar-toggler {
    border-color: #ddd;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav > li > a {
    color: #005243;
}

.nav > li > a:hover {
    color: #005243;
}

.nav-pills {
    border-bottom: 1px solid #005243;
}

.navbar-text {
    font-size: 24px;
    margin-left: 90px;
    color: #005243;
}

.navbar-right {
    margin-right: 0;
}

.ptt-logo {
    background-image: url("/assets/ITTF-Para-Circuit-logo-sm-bea2389c.webp");
    background-size: contain;
    background-repeat: no-repeat;
    width: 200px;
    height: 50px;
}

@supports not (background-image: url("data:image/webp;base64,")) {
    .ptt-logo {
        background-image: url("/assets/ITTF-Para-Circuit-logo-sm-fd061646.png");
    }
}

#main img {
    max-width: 100%;
    height: auto;
}

.round-flag {
    max-width: 200px;
    height: auto;
}

.sub-logo .round-flag {
    max-width: 256px;
    height: auto;
}

.medal {
     border-radius: 50%;
     width: 2em;
     height: 2em;
     display: inline-flex;
     align-items: center;
     justify-content: center;
}

.medal-gold {
     background-color: #CFB53B;
}

.medal-silver {
     background-color: #C0C0C0;
}

.medal-bronze {
     background-color: #cd7f32;
}

@media (width >= 576px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    .navbar-text {
        font-size: 32px;
    }

    .ptt-logo {
        background-image: url("/assets/ITTF-Para-Circuit-logo-md-e39b10cc.webp");
        background-size: contain;
        background-repeat: no-repeat;
        width: 300px;
        height: 75px;
    }
}

@supports not (background-image: url("data:image/webp;base64,")) {
    @media (width >= 576px) {
        .ptt-logo {
            background-image: url("/assets/ITTF-Para-Circuit-logo-md-5dc5a0da.png");
        }
    }
}

@media (width >= 992px) {
    .ptt-logo {
        background-image: url("/assets/ITTF-Para-Circuit-logo-lg-fbcdc267.webp");
    }
}

@supports not (background-image: url("data:image/webp;base64,")) {
    @media (width >= 992px) {
        .ptt-logo {
            background-image: url("/assets/ITTF-Para-Circuit-logo-lg-398e311f.png");
        }
    }
}

footer {
    margin: 0;
    padding: 0;
    width: 100%;
}

ul.horizontal-slide li {
    display: inline-block;
    float: none;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav.pagy-bootstrap {
    margin: 0 auto;
}

.page-link {
    color: #005043;
    background-color: #fff;
    border: 1px solid #dee2e6;
    padding: 0.375rem 0.75rem;
    text-decoration: none;
}

.page-link:hover {
    color: #005043;
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.page-item.active .page-link {
    color: #fff !important;
    background-color: #001d18 !important;
    border-color: #001d18 !important;
}



.page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

.spinning {
  animation: spin 1s linear infinite;
  display: inline-block;
  transform-origin: center;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

fieldset {
  border: 1px solid #dee2e6;
  padding: 1rem;
}

/* Bootstrap 3 badge-inverse compatibility for Bootstrap 5 */
.badge.badge-inverse {
  background-color: #6c757d;
  color: white;
  border-radius: 50%;
  width: 2em;
  height: 2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tom Select autocomplete customizations */
.tom-select-autocomplete {
  width: 280px;
  flex: 0 0 280px;
}

/* Select input styling with dropdown arrow (matching Tom Select style) */
select,
.form-control[is="select"],
.form-select {
   appearance: none;
   background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
   background-repeat: no-repeat;
   background-position: right 0.75rem center;
   background-size: 16px 12px;
   padding-right: 2rem;
}

/* Flag icons sizing and responsiveness.
 * Use the natural 4:3 aspect ratio so the flag fills its box (no letterbox).
 * The flag-icons stylesheet inserts a ":before { content: ' ' }" pseudo
 * element that gives .fi an internal text baseline near its top — strip it
 * so the inline-block's baseline becomes its bottom edge, then drop the box
 * a hair below baseline so the 1em-tall flag sits visually centered on
 * capital-letter text. */
.fi {
   display: inline-block;
   width: 1.333em;
   height: 1em;
   line-height: 1em;
   vertical-align: -0.15em;
}

.fi::before {
   content: none;
}

/* Responsive flag sizes */
.flag-sm { font-size: 12px; }
.flag-md { font-size: 16px; }
.flag-lg { font-size: 24px; }
.flag-xl { font-size: 48px; }

/* Countries index page */
.country-card {
   padding: 1rem;
   border: 1px solid #dee2e6;
   border-radius: 0;
   display: flex;
   align-items: center;
   min-height: 60px;
}

/* Sort header links */
.sort-header-link {
   color: inherit;
}

.sort-header-link:hover {
   color: inherit;
   text-decoration: none;
}
