/*
 * 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 "questrial_font.css";
@import "bootstrap5.min.css";
@import "tom_select.css";
@import url(/vendor/fontawesome/css/all.min.css);

: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 {
    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: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-a51f78e133d180cfb32ee7e4f66acee9f8099e5fd9ea6a493ee37fd9fb51b0d4.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-d478d7d074f5d4a83557d0fc6123a0cebeedaacd83b72c40adbfb0119fee36c2.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-eb858bc00d5ff51daf0407a4947459d088326d3b728d577e848844e79af4aba2.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-879df2c424bd3288138e4144199ea4b4476d26355c2e25d018c9d17862592cfb.png);
        }
    }
}

@media (min-width: 992px) {
    .ptt-logo {
        background-image: url(/assets/ITTF-Para-Circuit-logo-lg-61c51a32ee3efeae907f73a8ca360a736113f79dbea6826140f0b0aac9d6cd56.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-22b24b6dff6b88d1db675db4fd6cc5df6b130000adf924f39e4fc6e718c939ce.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;
}
