/*
Theme Name: JJP Theme
Theme URI: #
Author: JTS + Modifications by DL
Author URI: #
Description: Custom theme for JJP
Version: 1.0
*/

#machines .machine-right .text-side .red-button.show-on-mobile,
#machines .machine-left .text-side .red-button.show-on-mobile {
  margin: 20px auto;
  max-width: 80%;
}

#tabs_container > *:first-child {
  z-index: 9;
}

#tabs_container > * {
  height: 100%;
  overflow: auto;
}

.tribe-event-url,
tribe-events-gmap,
.tribe-events-read-more,
.tribe-events-month-event-title url,
.tribe-events-nav-previous,
.tribe-events-nav-next,
#tribe-events-content .tribe-events-tooltip h4,
#tribe_events_filters_wrapper .tribe_events_slider_val {
  color: #fc363c !important;
}

#tribe-events .tribe-events-button,
#tribe-events .tribe-events-button:hover,
#tribe_events_filters_wrapper input[type="submit"],
.tribe-events-button,
.tribe-events-button.tribe-active:hover,
.tribe-events-button.tribe-inactive,
.tribe-events-button:hover,
.tribe-events-calendar td.tribe-events-present div[id*="tribe-events-daynum-"],
.tribe-events-calendar
  td.tribe-events-present
  div[id*="tribe-events-daynum-"]
  > a {
  background-color: #fc363c !important;
}

#topmenu {
  width: 100%;
  padding: 0 0 15px;
  background: #fff;
}

#topmenu .game-tabs {
  display: flex;
  flex-wrap: wrap;
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
}

#topmenu .game-tabs .game_card {
  flex: 0 0 33.33333333333333%;
  width: 33.33333333333333%;
  text-align: center;
  box-sizing: border-box;
}

#topmenu .game-tabs .game_card img {
  height: 310px;
  width: auto;
}

@media (max-width: 1199px) {
  #top-bar {
    float: none !important;
  }
  #topmenu {
    position: relative;
    padding-top: 15px;
  }

  #topmenu .game-tabs .game_card {
    flex: 0 0 33.33333333333333%;
    width: 33.33333333333333%;
    padding: 5px 10px !important;
  }

  #topmenu .game-tabs .game_card img {
    height: 210px;
  }
}

@media (max-width: 767px) {
  #topmenu .game-tabs .game_card {
    flex: 0 0 50%;
    width: 50%;
  }
}

@media (min-width: 1200px) {
  #topmenu .game-tabs .game_card {
    flex-grow: 1;
    flex-basis: 0;
  }
}

#machines .container::after,
#machines .container::before {
  content: "";
  display: block;
}

#machines .container::after {
  clear: both;
}
