/*
Author:      Themosaurus
Author URI:  https://www.themosaurus.com

This stylesheet follow the basic principles of CSS Guidilines http://cssguidelin.es/
*/
/*------------------------------------*\
    #GLOBAL
\*------------------------------------*/
.sp-template,
.sp-data-table,
.sp-table-caption {
  font-family: inherit !important;
}

/*------------------------------------*\
    #SCOREBOARD
\*------------------------------------*/
.sp-template-scoreboard .sp-scoreboard-nav {
  border-radius: 0 !important;
}

.sp-scoreboard-nav-disabled {
  pointer-events: none !important;
  opacity: 0.4;
  display: block;
}

.sp-scoreboard-result {
  font-weight: 600 !important;
}

.sp-scoreboard-team span:empty {
  display: none !important;
}

.sp-scoreboard-content table.sp-scoreboard {
  max-width: none !important;
}

/*------------------------------------*\
    #WIDGETS
\*------------------------------------*/
.sp-view-all-link {
  border: 0 !important;
  background: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.sp-view-all-link a {
  color: inherit !important;
}

.sp-template-gallery .sp-gallery-wrapper {
  border: 0 !important;
  background: none !important;
}

.sp-template-gallery .sp-gallery-wrapper .gallery-item .gallery-icon > a {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.sp-player-gallery-wrapper.sp-gallery-wrapper {
  margin-left: -10px !important;
  margin-right: -10px !important;
  width: auto !important;
  display: block !important;
}

.sp-player-gallery-wrapper.sp-gallery-wrapper .gallery-item {
  padding-left: 10px !important;
  padding-right: 10px !important;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
  position: relative;
}

.sp-player-gallery-wrapper.sp-gallery-wrapper .gallery-item a {
  text-decoration: none !important;
}

.sp-player-gallery-wrapper.sp-gallery-wrapper .gallery-item .gallery-caption {
  padding: .5rem !important;
  font-weight: 600 !important;
}

.sp-player-gallery-wrapper.sp-gallery-wrapper .gallery-item .gallery-caption strong {
  left: 10px !important;
  font-weight: 600 !important;
  display: inline-block;
  padding: 6px 8px;
  line-height: 1em;
  font-size: 1em;
  position: absolute;
  top: 0;
  z-index: 1;
  pointer-events: none;
}

#secondary-left .sp-widget-align-left,
#secondary-right .sp-widget-align-left,
#secondary-left .sp-widget-align-right,
#secondary-right .sp-widget-align-right {
  float: none !important;
  width: 100% !important;
}

.sp-data-table thead th {
  white-space: normal;
  vertical-align: middle;
}

.sp-data-table thead th:focus {
  outline: none;
}

.sp-player-list .data-name .player-flag {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.sp-event-user-results td input[type="text"], .sp-event-user-scores td input[type="text"] {
  padding: 5px;
  font-size: .85em;
  text-align: center;
  line-height: 1em;
}

.sp-data-table .data-name {
  transition: all .2s ease-in-out;
  line-height: 1.3em;
}

.sp-tweets,
.sp-calendar-wrapper {
  overflow: hidden;
}

.sp-calendar {
  border-collapse: separate !important;
}

.sp-table-wrapper {
  border-style: solid;
  overflow: hidden;
  border: 0 !important;
}

.sp-countdown-wrapper {
  border-style: solid;
  overflow: hidden;
}

.widget .sp-scrollable-table-wrapper {
  border-style: solid;
}

h4.sp-table-caption, caption.sp-table-caption {
  margin-bottom: 0;
  padding: 1rem;
}

.sp-table-caption + .sp-table-wrapper,
.sp-table-caption + .sp-template-event-blocks .sp-table-wrapper {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.sp-countdown-wrapper .sp-event-name {
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: .5rem;
  font-size: .9em;
  text-align: center;
  margin-bottom: 0;
}

.sp-countdown-wrapper .sp-event-venue,
.sp-countdown-wrapper .sp-event-league {
  margin-bottom: 0;
  padding: .5rem;
  text-align: center;
  font-size: 0.8em;
}

.sp-countdown-wrapper .sp-event-venue a,
.sp-countdown-wrapper .sp-event-league a {
  color: inherit !important;
}

.sp-countdown-wrapper .sp-event-name .logo-even {
  order: 99;
}

.sp-data-table td.sp-highlight {
  border: 0 !important;
  font-weight: 600 !important;
}

.sp-data-table td.sp-highlight > span {
  font-weight: 600 !important;
}

.entry-title .sp-player-number {
  display: inline-block;
  vertical-align: middle;
  padding: 3px 5px;
  line-height: 1em;
  min-width: 40px;
  text-align: center;
  min-height: 40px;
  margin-right: 2px;
}

.widget_calendar caption, .sp-table-caption {
  text-align: center !important;
}

sp-table-caption
.sp-event-statistics .sp-statistic-value {
  font-weight: 600 !important;
  font-size: 15px !important;
}

.sp-event-statistics .sp-statistic-bar {
  border: none !important;
}

.sp-template-event-statistics .sp-statistic-label {
  font-weight: 600 !important;
  font-size: 0.8em !important;
  opacity: 0.7 !important;
}

.sp-countdown {
  margin-bottom: 0;
}

.sp-template-countdown .sp-event-name,
.sp-template-countdown .sp-event-venue,
.sp-template-countdown .sp-event-league {
  border: 0 !important;
}

.sp-countdown,
.sp-countdown time,
.sp-countdown time span {
  border: 0 !important;
}

.sp-countdown time {
  width: 100%;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.sp-countdown time span {
  font-weight: 600 !important;
  display: inline-block;
  padding: 20px 2px 15px 2px;
  font-size: 1.5em;
  line-height: 0.8em;
  min-width: 25%;
  max-width: 25%;
}

.sp-countdown time span small {
  opacity: 0.75;
  font-weight: 400 !important;
  font-size: 0.6em;
}

.sp-template-birthdays {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sp-template-birthdays .sp-table-caption {
  padding: 0 5px !important;
  width: auto !important;
  display: inline-block !important;
  font-size: 0.8em !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-weight: 400 !important;
  width: 100% !important;
  order: 2;
  color: inherit !important;
}

.sp-template-birthdays .gallery {
  margin-bottom: 0;
}

.sp-template-birthdays .gallery .gallery-item .gallery-caption {
  font-size: 0.9em !important;
  font-weight: 600 !important;
  padding-bottom: 0 !important;
}

.sp-template-birthdays .gallery .gallery-item .gallery-caption.has-number strong {
  font-weight: 600 !important;
}

.widget .sp-scrollable-table-wrapper table {
  border: 0 !important;
}

.sp-section-content:not(.sp-section-content-logo):not(.sp-section-content-photo), #secondary-left .widget_sportspress,
#secondary-right .widget_sportspress {
  overflow: hidden;
  position: relative;
}

.sp-event-logos-2 .sp-team-logo .sp-team-result,
.sp-event-logos-2 .sp-event-logos-time {
  display: inline-block;
  padding: 5px 10px !important;
  text-align: center;
  font-weight: 600 !important;
  font-size: 1.4em !important;
  line-height: 1.4em !important;
  border-style: solid;
}

.sp-event-logos-2 .sp-event-logos-time {
  margin-right: 15px;
  margin-top: 10px;
  margin-bottom: 10px;
}

@media screen and (min-width: 580px) {
  .sp-event-logos-2 .sp-event-logos-time {
    margin-left: 15px;
  }
}

.sp-event-results .sp-result {
  border-style: solid;
  display: inline-block !important;
  padding: 2px 8px  !important;
}

.sp_event.type-sp_event .entry-header {
  text-align: center;
  margin-bottom: 1rem;
}

.sp_event.type-sp_event .card .entry-header {
  padding-right: 0;
  text-align: left;
}

/*------------------------------------*\
    #TABS
\*------------------------------------*/
.sp-tab-group .sp-tab-menu {
  margin-top: 1rem !important;
}

.sp-tab-menu-item a {
  color: inherit !important;
  padding: 10px 15px;
}

.sp-tab-group .sp-tab-menu {
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

/*------------------------------------*\
    #SPONSORS
\*------------------------------------*/
.sp-footer-sponsors {
  flex: 0 0 100%;
  margin-top: 1.5rem;
}

/*------------------------------------*\
    #TOURNAMENT
\*------------------------------------*/
.sp_tournament.type-sp_tournament .entry-header {
  text-align: center;
  margin-bottom: 1rem;
}

.sp-tournament-bracket .sp-team-name,
.sp-tournament-bracket .sp-team-name:hover {
  border: 0 !important;
}

.sp-tournament-bracket .sp-event {
  border-width: 3px !important;
}

.sp-tournament-bracket .sp-team .sp-team-name:before {
  left: -8px !important;
}

.sp-tournament-bracket thead th {
  border: 0 !important;
}

/*------------------------------------*\
    #RESPONSIVE
\*------------------------------------*/
@media screen and (max-width: 580px) {
  .sp-section-content-logo,
  .sp-section-content-excerpt,
  .sp-section-content-content {
    clear: both !important;
  }
  .sp-section-content-logo {
    display: block;
    float: left;
    width: 100%;
    text-align: center;
  }
  .sp-section-content-logo .sp-template-team-logo {
    float: left !important;
    width: 100% !important;
    clear: both !important;
    margin: 0 auto !important;
    text-align: center;
    display: inline-block !important;
    float: none !important;
  }
  .sp_team.type-sp_team .entry-header {
    text-align: center;
    margin-bottom: 1rem;
  }
  .sp-tab-group .sp-tab-menu .sp-tab-menu-item {
    display: block !important;
    font-weight: 600;
  }
  .sp-tab-group .sp-tab-menu .sp-tab-menu-item a {
    border-bottom: 3px solid transparent;
  }
  .sp-template-event-logos .sp-event-logos-2 {
    text-align: left;
    color: transparent !important;
  }
  .sp-template-event-logos .sp-event-logos-2 .sp-team-logo {
    display: flex;
    align-items: center;
  }
  .sp-template-event-logos .sp-event-logos-2 .sp-team-logo .sp-team-name {
    white-space: normal;
    max-width: 140px;
    word-wrap: break-word;
  }
  .sp-template-event-logos .sp-event-logos-2 .sp-team-logo .sp-team-result {
    order: 99;
    margin-left: auto !important;
  }
  .sp-template-event-logos .sp-event-logos-2 .sp-team-logo a {
    display: flex;
    align-items: center;
  }
  .sp-template-event-logos .sp-event-logos-2 .sp-team-logo .wp-post-image {
    order: -1;
    max-width: 50px;
    height: auto;
    margin-right: 5px !important;
  }
}

.widget_staff .sp-template-staff-photo {
  width: 100%;
  margin: 0;
  display: block;
  float: none;
  max-width: 100%;
  margin-bottom: -10px !important;
  border-style: solid;
}

.widget_staff .sp-template-staff-photo img {
  width: 100% !important;
}

.widget_staff .sp-staff-details {
  position: relative;
  z-index: 1;
  padding: 1rem;
}

.site-main .sp-template-gallery .gallery-item {
  text-align: center !important;
}

.site-main .sp-template-gallery .gallery-item img {
  display: inline-block !important;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.sp-template-event-blocks .sp-event-results {
  margin-bottom: 10px !important;
}

.sp-team-gallery-wrapper img {
  max-width: 100% !important;
  height: auto !important;
  display: inline-block;
}

/*------------------------------------*\
    #CARDS ELEMENTS
\*------------------------------------*/
.sp-template-details dl,
.sp-table-caption,
.sp-data-table td, .sp-data-table,
.sp-tweets, .sp-countdown-wrapper,
.widget .sp-scrollable-table-wrapper,
.sp-event-logos-2 .sp-team-logo .sp-team-result,
.sp-event-results .sp-result,
.widget_staff .sp-template-staff-photo {
  border-style: solid;
}

/*------------------------------------*\
    #SINGLES
\*------------------------------------*/
article[id*="post-"][class*="type-sp_"] > .entry-header {
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

@media screen and (min-width: 768px) {
  article[id*="post-"][class*="type-sp_"].sp_staff > .entry-header, article[id*="post-"][class*="type-sp_"].sp_player > .entry-header {
    padding-right: 160px;
  }
}

.sp-player-details,
.sp-staff-details,
.sp-team-details {
  padding: 1rem;
}

.sp-section-content-selector {
  overflow: visible !important;
}

@media screen and (min-width: 768px) {
  .sp-template-profile-selector {
    position: absolute;
    top: -65px;
    right: 0;
    z-index: 9;
  }
}

.sp-template-profile-selector select {
  max-height: 40px;
}

@media screen and (max-width: 768px) {
  .sp-section-content-photo .sp-template-photo {
    width: 100%;
    max-width: 100%;
    clear: both;
    float: none;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  .sp-section-content-photo .sp-template-photo img {
    width: 100%;
    height: auto;
  }
}

/*------------------------------------*\
    #SPONSOR MODULE
\*------------------------------------*/
@media screen and (max-width: 768px) {
  .sp-header-sponsors {
    display: none;
  }
}

.sp-table-wrapper .dataTables_paginate {
  padding-left: 15px;
  padding-right: 15px;
}

.sp-header:empty {
  display: none !important;
}
