/*
 * 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('https://fonts.googleapis.com/css2?family=Questrial&display=swap');
@import "bootstrap5.min.css";
@import "jquery-ui/core";
@import "jquery-ui/autocomplete";

: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;
}



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:hover, a:focus {
    color: #000403;
    text-decoration: none;
}

a:active, a:hover {
    outline: 0;
}

a {
    color: #005043;
    text-decoration: 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 .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:hover {
    color: #005243;
}

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

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

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

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

.ptt-logo {
    background-image: url(/assets/ITTF-Para-Circuit-logo-sm-43727011bbc21d706840371a5448caf34df5602e49d2c4deb151a7119ddb81ba.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-18229bc5143f3990a8c9ebbe23d3a0bb4883ba3fa0f9f58b96d6cd1089e4d57c.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 (min-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-26ea0bdd70edc15caab1b16b690048ee4cca895cca11c3fed986c86fb8a108cc.webp);
        background-size: contain;
        background-repeat: no-repeat;
        width: 300px;
        height: 75px;
    }
}

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

@media (min-width: 992px) {
    .ptt-logo {
        background-image: url(/assets/ITTF-Para-Circuit-logo-lg-3f9c3171ba2472222f91cc22cb15c9ff800b67b2b623659ecf6c919a398031d9.webp);
    }
}

@supports not (background-image: url("data:image/webp;base64,")) {
    @media (min-width: 992px) {
        .ptt-logo {
            background-image: url(/assets/ITTF-Para-Circuit-logo-lg-9f6a07179541b52db27f672228cfbc6cb06ae859079e0aae2b767e4db1ea4995.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;
}

/* jQuery UI Autocomplete styling for Bootstrap 5 */
.ui-menu {
  background-color: white;
  border: 1px solid #dee2e6;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 300px;
}

.ui-menu .ui-menu-item {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ui-menu .ui-menu-item a {
  display: block;
  padding: 0.5rem 0.75rem;
  margin: 0;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}

.ui-menu .ui-menu-item a:hover,
.ui-menu .ui-menu-item a.ui-state-hover,
.ui-menu .ui-menu-item a.ui-state-focus {
  background-color: #e9ecef;
  color: #333;
}

/* Hide jQuery UI autocomplete accessibility helper visually */
.ui-helper-hidden-accessible {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 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;
}
