.index {
  font-size: 0.5em;
  font-weight: normal;
  margin-left: 5px;
}
.pointer {
  cursor: pointer;
  transition: all 0.5s ease;
  font-weight: 500;
}

.red {
  color: #dd0202;
}

.green {
  color: #02dd02;
}

.coins-logo {
  height: 20px;
  display: inline-block;
}


/************************
***** UM PROFILE
************************/
.um-profile .um-field-area img {
  display: inline-block;
}
.um-profile button {
  margin-bottom: 0;
}

/********************
**** TAB SETTINGS
*********************/

#main, #primary {
  position: relative;
}

.container-tab {
  position: relative;
  display: grid;
  grid-template-columns: 100% 100% 100% 100%;
  column-gap: 90px;
  left: 0;
  transition: all 0.5s ease;
  z-index: 5;
  margin-bottom: 30px;
}

.tab {
  position: relative;
  width: 100%;
  perspective: 2000px;
}

.tab>div {
  transition: transform 0.6s;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  min-height: 50vh;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  padding: 20px;
  background-color: #161616;
  width: 100%;
  height: fit-content;
}

.tab>div.back {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  border-top-right-radius: 0px;
  border-bottom-left-radius: 0px;
  
  border-top-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.tab>div.back.hide {
  transform: rotateY(180deg);
  
}
.tab>div.front.hide {
  transform: rotateY(-180deg);
  
}

.chevron {
  position: fixed;
  cursor: pointer;
  opacity: 0.5;
  font-size: 70px;
  top: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.chevron:hover {
  opacity: 1;
}
.chevron.hide {
  display: none;
}

.chevron#arrow-left {
  left: calc(50% - 715px);
}

.chevron#arrow-right {
  right: calc(50% - 715px);
}

.gradient {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to left, #0c0c0c, transparent 10%,  transparent 90%, #0c0c0c);
  z-index: 999;
  pointer-events:none;
}

/**
*
* Members page
*
*/
#members-search {
  position: relative;
  padding-bottom: 30px;
}
#members-search .icon {
  position: absolute;
  top: 13px;
  left: 10px;
}
#members-search input {
  width: 100%;
  padding: 10px;
  padding-left: 35px;
  background-color: #161616;
  border: none;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  color: white;
  font-weight: 900;
}

.lds-ring {
  display: inline-block;
  position: relative;
  height: 15px;
  margin-left: 6px;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 5px solid #fff;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #000 transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.media-menu-item {
  color: black;
}

#qualification .flag {
  width: 60px;
}

#members-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-column-gap: 30px;
  grid-row-gap: 30px;
  margin-bottom: 30px;
}

#members-list a.user {
  position: relative;
  color: white;
  border-top: 2px solid white;
  border-right: 2px solid white;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  transition: all 0.3s ease;
  padding-top: 12px;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-column-gap: 10px;
  align-items: center;
  background-color: #0c0c0c;
}


#members-list a:hover {
border-color: #dd0202;
border-width: 2px;
}

#members-list .avatar {
  width: 40px;
  height: 40px;
}

#members-list .uid {
  z-index: 10;
  font-weight: 900;
  position: absolute;
  top: -11px;
  left: 0;
  transition: all 0.3s ease;
}

#members-list .uid::before {
  content:'';
  height: 3px;
  width: calc(100% + 5px);
  position: absolute;
  z-index: -1;
  top: 9px;
  left: 0;
  background-color: #0c0c0c;
}

#members-list a.user:hover .uid {
  color: #dd0202;
}

#members-list a.user:hover .flag {
  border-color: #dd0202;
  background-color: #dd0202;
}

#members-list .flag {
  position: absolute;
  right: 0;
  width: 40px;
  top: 0px;
  border-top-right-radius: 8px;
  overflow: hidden;
  border-bottom: 2px solid white;
  height: fit-content;
  border-left: 2px solid white;
  border-bottom-left-radius: 10px;
  transition: all 0.3s ease;
  background-color: transparent;
}

#members-list .flag img {
  margin: 0;
}

#members-list .star {
  color: gold;
  position: absolute;
  top: 35px;
  right: 5px;
}

#members-list .ban {
  position: absolute;
  top: 35px;
  right: 5px;
}

#members-list .display_name {
  font-weight: 900;
}

#members-list .extra {
  font-size: 0.8em;
}

.manage-button {
  position: absolute;
  right: 0;
  top: 0;
}
/*********************
***** TEAM PAGE
**********************/
.single-bg_team article h2 {
  padding: 0;
  padding-left: 23px;
  background-color: #161616;
  border: none;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  color: white;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 50px;
}

.single-bg_team article .thumbnail {
  text-align: center;
}

.single-bg_team article .thumbnail img {
  width: 300px;
    margin: 0;
}

.single-bg_team article .joinTeam {
  position: absolute;
  right: 0;
  top: -55px;
}
/*********************
**** RACE PAGE
**********************/

.single-bg_race #race_page {
  position: relative;
}


.single-bg_race .tab#informations_tab #editRaceDescription {
  display: none;
}



.single-bg_race .signupbutton, .single-bg_race .updateQualification, .single-bg_race .updateResult {
  position: absolute;
  top: 20px;
  right: 20px;
}

.single-bg_race article li {
  font-size: 20px;
  font-weight: normal;
  color: rgb(219, 219, 219);
  padding-bottom: 5px;
}

.single-bg_race article li b {
  color: white;
}

.single-bg_race article li l {
  font-size: 0.5em;
}

.single-bg_race article li b.error {
  color: #dd0202;
}

.single-bg_championship table span {
  margin-right: 10px;
}

.single-bg_championship table i {
  cursor: pointer;
}

.membership img {
  height: 20px;
  margin: 0;
  padding:0;
}

.membership .price {
  font-weight: bold;
}

.membership ol {
  list-style: square;
}

.membership ol li {
  line-height: 20px;
  padding-top: 5px;
}

/*Qualification tab*/
.single-bg_race h2.selector {
  display: inline-block;
  opacity: 0.5;
  padding: 0;
  margin: 0;
  margin-bottom: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2em;
  line-height: normal;
}
.single-bg_race h2.selector.active, .single-bg_race h2.selector:hover {
  opacity: 1;
}
.single-bg_race .categories .hh {
  content: '';
  display: inline-block;
  margin-left: 7px;
  margin-right: 7px;
  width: 2px;
  height: 15px;
  background-color: white;
  opacity: 0.5;
}
.single-bg_race .categories .hh:last-child {
  display: none;
}

.table-players {
  overflow-x: auto;
}

.table-players td, .table-players th{
  text-align: center;
  max-height: 20px;
  line-height: 20px;
  border: none;
  border-bottom: 1px solid white;
  vertical-align: middle;
}

.table-players .number,
.table-players .pos,
.table-players .flag,
.table-players .team {
  width: 50px;
  min-width: 50px;
}

.table-players .bike {
  width: 15em;
  font-size: 1rem;
  vertical-align: middle;
  line-height: 20px;
  text-align: center;
}

.table-players .team {
  font-size: 1rem;
  vertical-align: middle;
  line-height: 20px;
  text-align: center;
  padding:2px 10px;
}
.table-players .team img{
  margin-right: 5px;
  margin: 0;
  margin-right: 10px;
  vertical-align: middle;
  margin: auto;
}

.table-players .total {
  font-weight: 600;
}

.table-players .bike div>span {
  vertical-align: middle;
}
.table-players .bike span>span {
  font-size: 0.6rem;
}
.table-players .bike img{
  max-height: 20px;
  margin-right: 5px;
  margin: 0;
  margin-right: 10px;
  vertical-align: middle;
}

.table-players .flag img {
  margin: 0;
  border: 1px solid white;
  height: 20px;
}

.table-players .name a {
  color: inherit;
  border-bottom: 1px dotted gray;
}

.table-players table thead {
  background-color: #dd0202;
  border: 1px solid white;
}

.table-players strike {
  color: #dd0202;
  font-size: 0.9em;
  margin-right: 5px;
}

.table-players .unqualified {
  background-color: #ff00001c;
  color: grey;
}

.table-players .unqualified:first-child {
  border-top: 4px double white;
}
/*****************
**** ARCHIVE CHAMPIONSHIP
******************/
.post-type-archive-bg_championship .year {
  opacity: 0.5;
}
.post-type-archive-bg_championship .year.active,.post-type-archive-bg_championship .year:hover {
  opacity: 1;
}

.post-type-archive-bg_championship .hh {
  content: '';
  display: inline-block;
  margin-left: 7px;
  margin-right: 7px;
  width: 3px;
  height: 21px;
  background-color: white;
  opacity: 1;
}

.post-type-archive-bg_championship .hh:last-child {
  display: none;
}

.container-tab .championship_name {
  color: #dd0202;
  display: inline-block;
}

.rounds {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-column-gap: 20px;
  grid-row-gap: 50px;
  margin-top: 10px;
}

.race {
  display: block;
  position: relative;
  width: 100%;
  border-top: 1px solid white;
  border-right: 1px solid white;
  border-top-right-radius: 10px;
  padding-top: 7px;
  padding-right: 10px;
  transition: all 0.5s ease;
  min-height: 200px;
}

.race .soon {
  font-size: 1em;
  text-align: center;
  font-style: italic;
  padding: 0;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: calc(100% - 10px);
  transform: translateX(-50%);
}

.race .fa-chevron-right {
  margin-left: 5px;
  margin-right: 5px;
}

.race>.thumbnail {
  width: 100%;
  height: 140px;
  background-size: cover;
  border-radius: 10px;
  filter: grayscale(0.4);
  background-position: center;
}

.race.next {
  grid-column: 1 / span 4;
  border-top-right-radius: 20px;
  border-top-color: #dd0202;
  border-top-width: 4px;
  border-right-color: #dd0202;
  border-right-width: 4px;
  border-bottom-left-radius: 10px;
  color: white;
}
.race.next .date {
  padding-top: 10px;
  padding-bottom: 0;
}

.race.next .date .month {
  font-size: 0.6em;
  margin-left: -4px;
}

.race.next .timer{
  position: absolute;
  top: 10px;
  right: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap: 2px;
  background-color: #cfcfcfba;
  border-radius: 10px;
  width: 200px;
}

.race.next .timer h1 {
  background-color: #38383f;
  color: white;
  border-radius: 9px 9px 0 0;
  font-size: 13px;
  line-height: 15px;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  padding: 5px 20px;
  width: 100%;
  min-width: 165px;
  font-family: Roboto;
  grid-column: 1 / span 3;
}

.race.next .timer>div {
  padding-top: 10px;
  padding-bottom: 10px;
  position: relative;
  color: black;
}

.race.next .timer .number {
  display: block;
  text-align: center;
  font-weight: bold;
  font-size: 1.7em;
  line-height: 0.7em;
  padding-top: 5px;
}

.race.next .timer .txt {
  display: block;
  text-align: center;
}

.race.next .timer .day::after {
  content: '';
  position: absolute;
  width: 2px;
  top: 15%;
  right: -2px;
  height: 70%;
  background-color: #38383f;
}

.race.next .timer .min::before {
  content: '';
  position: absolute;
  width: 2px;
  top: 15%;
  left: -2px;
  height: 70%;
  background-color: #38383f;
}

.race.next .thumbnail {
  width: 70%;
  height: calc(100% - 10px);
  position: absolute;
  top: 10px;
  right: 10px;
  background-position: center;
  background-size: cover;
  border-radius: 0 10px 10px 0;
  filter: none;
}

.race:hover {
  border-color: #dd0202;
}

.race:hover .round {
  color: #dd0202;
}

.round {
  position: absolute;
  z-index: 10;
  top: -20px;
  left: -12px;
  margin: 0;
  padding: 0;
  padding-left: 10px;
  padding-right: 10px;
  font-size: 1.2em;
  transition: all 0.5s ease;
}

.round::after {
  content: '';
  width: 100%;
  height: 1px;
  position: absolute;
  left: 0px;
  background-color: #161616;
  top: 19px;
  z-index: -1;
}

.next .round::after {
  height: 4px;
  top: 16px;
}

.round::before {
  z-index: -1;
  content: '';
  width: 1px;
  background-color: #161616;
  height: 20px;
  position: absolute;
  top: 20px;
  left: 11px;
}




.container-tab .title {
  font-size: 1.4em;
  padding-top: 9px;
  padding-bottom: 9px;
}

.container-tab .title i {
  margin-left: 5px;
  margin-right: 5px;
}

.race .results {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  grid-column-gap: 5px;
  margin-top: 8px;
  position: absolute;
  width: calc(100% - 10px);
  bottom: 0;
}
.results>div {
  display: inherit;
}
.race .results .avatar {
  display: block;
  border-radius: 50%;
  overflow: hidden;
  width: 40px;
  height: 40px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5px;
}
.race .results .color {
  width: 100%;
  content:'';
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}
.race .results .second .color {
  background-color: #c0c0c0;
  height: 18px;
}
.race .results .first .color {
  background-color: #ffd700;
  height: 26px;
}
.race .results .third .color {
  background-color: #c49c48;
  height: 10px;
}
.race .results .name {
  text-align: center;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  border-bottom-right-radius: 10px;
  font-size: 20px;
  line-height: 22px;
  padding: 0;
  text-transform: uppercase;
}
.container-tab .sel {
  display: inline-block;
  color: #878787;
  width: fit-content;
  background-color: transparent;
  position: relative;
  cursor: pointer;
  font-family: 'Roboto Slab', sans-serif;
  padding-right: 10px;
  margin-left: 10px;
}

.container-tab .sel select {
  display: none;
}

.container-tab .sel::before {
  position: absolute;
  content: '\f063';
  font-family: 'FontAwesome';
  font-size: 1em;
  color: #878787;
  right: 7px;
  bottom: 3px;
}

.container-tab .sel.active::before {
  transform: rotateX(-180deg);
}

.container-tab .sel__placeholder {
  display: block;
  font-size:30px;
  padding: 0px 20px 8px 0px;
  text-align: left;
  pointer-events: none;
  user-select: none;
  visibility: visible;
}

.container-tab .sel__box {
  position: absolute;
  top: calc(100% + 8px);
  left: -4px;
  display: none;
  list-style-type: none;
  text-align: left;
  font-size: 1em;
  background-color: #0c0c0c;
  width: calc(100% + 8px);
  box-sizing: border-box;
}

.container-tab .sel.active .sel__box {
  display: block;
  animation: fadeInUp 500ms;
}

.container-tab .sel__box__options {
  display: list-item;
  font-size: 1.5em;
  color: #838e95;
  padding: 8px 0px 8px 0px;
  user-select: none;
  text-align: center;
}

.container-tab .sel__box__options.selected::after {
  display: inline;
}

.container-tab .sel__box__options:hover {
  background-color: #ebedef;
}

/* ----- Select Box Black Panther ----- */
.container-tab .sel {
  border-bottom: 4px solid rgba(0, 0, 0, 0.3);
}

.container-tab .sel--black-panther {
  z-index: 50;
}

/* ===== Keyframes ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.post-type-archive-bg_championship .tab .info {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 1.5em;
  transition: all 0.2s ease;
}
.post-type-archive-bg_championship .tab .info:hover {
  color: rgb(158, 0, 0);
}

/*******************
***** HOME PAGE
********************/
.home .entry-header {
  display: none;
}

#home-grid {
  display: grid;
  grid-template-columns: 350px 1fr 350px;
  grid-column-gap: 30px;
}

#home-grid h1.column-title {
  text-align: center;
}

#menu-home {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 20px;
}

#menu-home .right {
  float: right;
}

#menu-home li {
  display: inline-block;
  float: none;
}

#menu-home li a {
  float: none;
}

#home-grid .next-races a {
  margin-bottom: 40px;
}

.home .race.next .timer {
  position: relative;
  width: 100%;
  top: 0;
  left: 0;
}

.home .race.next .timer h1 {
  background-color: #dd0202;
}

.home .race {
  min-height: inherit;
  padding-top: 15px;
}

.home .race .title {
  padding-bottom: 15px;
}

.home .news {
  background-color: #161616;
  padding: 10px 20px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 10px;
  margin-bottom: 40px;
}
.home .news p {
  margin-bottom: 0;
}
.home .news .more-link {
  margin-top: 10px;
}
.home .news article {
  border-bottom: 1px solid white;
  padding-bottom: 5px;
}

.home .discord-link {
  text-align: center;
  transform: scale(1);
  transition: all 0.5s ease;
  margin-top: 20px;
}

.home .discord-link:hover {
  transform: scale(1.05);
}

.main-navigation a {
  font-size: 20px;
}

/********************
****** PROTEST
*********************/
#reports-lists .gestion {
  display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    width: 100%;
}
#reports-lists .gestion span{
  opacity: 0.5;
  transition: all 0.2s ease;
}

#reports-lists .gestion span:hover {
  opacity: 1;
}

/*****************
**** EDIT CHAMPIONSHIP PAGE
******************/
.single-bg_championship .price-edit .price input {
  text-align: right;
  background-color: transparent;
  color: white;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid white;
  width: 50px;
  outline: none;
  margin-right: 10px;
  margin-left: 10px;
}
.single-bg_championship .price-edit .price input::-webkit-outer-spin-button,
.single-bg_championship .price-edit .price input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
.single-bg_championship .price-edit .price input[type=number] {
  -moz-appearance: textfield;
}

.single-bg_championship .price-edit .price .coins-logo {
  height: 25px;
}


/*****************
**** SELECT WITH ICON
******************/
.filtered-select {
  position: relative;
}
.filtered-select .a{
  padding-left: 0px;
  text-align:left;
}

.filtered-select .a img,.filtered-select .btn-select img{
  height: 19px;
  width: auto;
  margin: 0;
  vertical-align: middle;
  margin-left: 2px;
}

.filtered-select .a li{
  list-style: none;
  padding-top: 5px;
  padding-bottom: 5px;
}

.filtered-select .a li:hover{
 background-color: #257AFD;
}

.filtered-select .a li span,.filtered-select .btn-select li span{
  margin-left: 15px;
}

/* item list */

.filtered-select .b{
  position: absolute;
  display: none;
  min-width: 50%;
  max-width: 100%;
  box-shadow: 0 6px 12px rgb(0 0 0 / 18%);
  top: 53px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background-color: #323234;
  border: 1px solid #767676;
}

.filtered-select .open{
  display: show !important;
}

.filtered-select .btn-select{
  position: relative;
  text-align: left;
  margin-top: 10px;
  min-width: 50%;
  max-width: 100%;
  height: 43px;
  background: #323234;
  color: #e1e1e1;
  font-size: 1.125em;
  padding: 0;
  border-radius: 0px;
  border: 1px solid #767676;
}

.filtered-select .btn-select::after {
  content:"\f078";
  font-weight: 900;
  font-family: "Font Awesome 5 Free";
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}

.filtered-select .btn-select li{
  list-style: none;
  padding: 0px;
  line-height: 43px;
}

.filtered-select .btn-select:hover li{
  margin-left: 0px;
}

.filtered-select .btn-select:focus{
   outline:none;
}



/*****************
**** RESPONSIVE
******************/
@media screen and (max-width: 768px) {
  .chevron {
    display: none;
  }

  .table-players .bike,
  .table-players .number,
  .table-players .team {
    display: none;
  }

  .gradient {
    display: none;
  }

  .rounds {
    grid-template-columns: 1fr;
  }

  .race.next {
    grid-column: 1;
  }

  .race.next .timer {
    display: none;
  }

  .home .race.next .timer {
    display: grid;
  } 

  .race.next .thumbnail {
    position: relative;
    width: calc(100% - 10px);
    height: 90px;
    margin-left: 10px;
    border-radius: 0 0 10px 10px;
    margin-top: -10px;
  }
  
  .post-type-archive-bg_championship .tab .info {
    top: 10px;
    right: 10px;
  }

  #home-grid, .header-grid {
    grid-template-columns: 1fr;
  }

  #home-grid #menu-home {
    display: block;
  }

  #menu-home .right {
    text-align: left;
    float: none;
  }

  #home-grid #menu-home li {
    width: 100%;
    text-align: center;
  }

  #home-grid .first-column {
    order: 3;
  }

  #home-grid .second-column {
    order: 1;
  }

  #home-grid .third-column {
    order: 2;
  }

  #members-list {
    display: block;
  }

  #members-list a.user {
    margin-bottom: 30px;
  }

  .single-bg_team article .joinTeam {
    position: relative;
    text-align: center;
    display: block;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 10px;
    top: 0px;
  }

  .single-bg_race .signupbutton, .single-bg_race .updateQualification, .single-bg_race .updateResult {
    position: relative;
    top: 0;
    right: 0;
  }
}


