/**
 * Plugin Name: APT Netball color Selector
 * Plugin URI:  https://cwad.com.au
 * Description: Custom SVG color selector. Add the following shortcode on any page you want to display the color selector. <strong>Shortcode:</strong> [apt_netball_cs]
 * Author:      Cooper Westwood
 * Author URI:  https://cwad.com.au
 * Version:     1.0
 * License:     GPLv2+
 *
 */


#coloriser-wrap {
  display: block;
  width: 100%;
}

#court{
  max-width: 90%;
  max-height: 90%;
  margin: auto;
}

.court {
  position: relative;
}

.court .outside, .court .inside, .court .circles,.court .restricred ,.court .non_volley  {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.court .outside img, .court .inside img, .court .circles img ,.court .restricred img,.court .non_volley img {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
}

.court .line img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
}

.court .outside img.active, .court .inside img.active, .court .circles img.active,.court .restricred img.active, .court .non_volley img.active {
  display: block;
  width: 100%;
  height: auto;
}

.court button.zoom-button {
  display: inline-block;
  position: absolute;
  bottom: 1.1rem;
  left: 1rem;
  cursor: pointer;
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-size: 0;
  padding: 5px 10px;
  -ms-transition: background-color 300ms, color 300ms;
  -o-transition: background-color 300ms, color 300ms;
  -moz-transition: background-color 300ms, color 300ms;
  -webkit-transition: background-color 300ms, color 300ms;
  transition: background-color 300ms, color 300ms;
}

.court button.zoom-button .button-text {
  display: inline-block;
  font-size: 1.2rem;
  vertical-align: middle;
  margin-right: 8px;
}

.court button.zoom-button:hover {
  background-color: #fff;
  color: #000;
}

.court button.zoom-button i.fa-search-plus {
  display: inline-block;
  vertical-align: middle;
  -ms-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  font-size: 1.2rem;
}

.court-lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.court-lightbox {
  position: absolute;
  margin: auto;
  top: 50%;
  bottom: 0;
  left: 0;
  right: 0;
  width: 90%;
  max-width: 800px;
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
}

.court-lightbox .close-lightbox {
  position: absolute;
  top: -16px;
  right: -14px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.court-lightbox img {
  max-width: 100%;
}

svg.colors path, svg.colors-2 path, svg.colors-3 path {
  cursor: pointer;
  opacity: 0.9;
}

svg.colors path:hover, svg.colors-2 path:hover, svg.colors-3 path:hover {
  opacity: 1;
}

svg.colors path.active:before, svg.colors-2 path.active:before, svg.colors-3 path.active:before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 50%;
}

.tab_inside, .tab_circles, .tab_outside, .tab_non_volley, .tab_restricted{
  float: left;
  clear: both;
  width: 100%;
  display: none;
  padding: 1.6em 0 0 0;
  position: relative;
  z-index: 1;
}

.color-selector-wrapper {
  width: 33%;
  display: inline-block;
  margin: 0 -2px;
  margin-bottom: 20px;
}

.colors-label {
  display: inline-block;
  text-align: left;
  font-size: 18px;
  font-weight: bold;
}

/*.color-selector-wrapper:first-of-type {
  border-right: 1px solid #7e7e7e;
}*/

.tabs {
  margin-top: 65px;;
}

.tab_inside.active, .tab_outside.active, .tab_circles.active, .tab_non_volley.active, .tab_restricted.active {
  display: block;
}

.tab_inside svg.colors, .tab_outside svg.colors, .tab_circles svg.colors, .tab_inside svg.colors-2, .tab_outside svg.colors-2, .tab_circles svg.colors-2, .tab_inside svg.colors-3, .tab_outside svg.colors-3, .tab_circles svg.colors-3 
.tab_non_volley svg.colors, .tab_restricted svg.colors, .tab_non_volley svg.colors-2, .tab_restricted svg.colors-2, .tab_non_volley svg.colors-3, .tab_restricted svg.colors-3
{
  width: 100%;
  margin: 0;
  display: block;
  max-height: 134px;
}

/* .tab_inside svg.colors-3, .tab_outside svg.colors-3, .tab_circles svg.colors-3 {
  width: 85%;
  padding-left: 15%;
} */

.tab_inside .color, .tab_outside .color, .tab_circles .color , .tab_non_volley .color, .tab_restricted .color{
  text-transform: uppercase;
  width: 75%;
  position: relative;
  background-color: red;
  height: 3em;
  margin-top: 1.3em;
  overflow: hidden;
  transition: background-color 200ms ease-in-out;
  margin-bottom: -1px;
}

.tab_inside .color div, .tab_outside .color div, .tab_circles .color div, .tab_non_volley .color div, .tab_restricted .color div {
  position: absolute;
  width: 100%;
  text-align: center;
  line-height: 2em;
  bottom: 2em;
  font-weight: bold;
  color: #fff;
}

.tab_inside .color div.remove, .tab_outside .color div.remove, .tab_circles .color div.remove, .tab_non_volley .color div.remove, .tab_restricted .color div.remove {
  bottom: -2em !important;
  transition: bottom 200ms ease-in-out;
}

.tab_inside .color div.new_color, .tab_outside .color div.new_color, .tab_circles .color div.new_color, .tab_non_volley .color div.new_color, .tab_restricted .color div.new_color {
  bottom: 5px;
  animation: movedown 200ms cubic-bezier(0.91, 0.8, 0.54, 1.39);
  font-size: 15px;
}

@keyframes movedown {
  from {
    bottom: 2em;
  }
  to {
    bottom: 0;
  }
}

#coloriser-wrap .tab_nav {
  /* display: grid;
  grid-template-columns: 33.3% 33.3% 33.3%; */
  margin: 1em 0 0 0;
  text-transform: uppercase;
  position: relative;
  top: 1px;
  z-index: 50;
}

.send-design{
  width: 75%;
  position: relative;
  background-color: #244c5a;
  height: 3em;
  margin-top: 1.3em;
  overflow: hidden;
  transition: background-color 200ms ease-in-out;
  margin-bottom: -1px;
  cursor: pointer;
}

.send-design:hover {
  background-color: #50707b;
}

.send-design p {
  color: #fff;
  font-weight: bold;
  font-size: 14px ;
}

@media screen and (max-width: 1024px) and (min-width: 940px){
  .send-design p {
    font-size: 13px ;
  }
}

#coloriser-wrap .tab_nav li {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  background-color: #244c5a;
  padding: 3px;
  text-align: center;
  display: inline-block;
  cursor: pointer;
  margin-right: 50px;
}



#coloriser-wrap .tab_nav li:hover {
  background-color: #50707b;
}

#coloriser-wrap .tab_nav li:last-child{
  margin-right: 0px;
}

#coloriser-wrap .tab_nav li.active {
  background-color: #5190a6;
}

.select-court {
  width: 100%;
  max-width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  white-space: nowrap;
}

.icon-court {
  height: 100px;
  cursor: pointer;
  background-color: #244c5a;
  border-radius: 50%;
  font-size: 75px;
}

.icons{
  padding: 0;
}

.icons p {
  text-transform: uppercase;
  font-size: 15px;
}

@media screen and (max-width: 600px) {
  .icon-court {
    font-size: 30px;
  }
  .icons p {
    margin-left: 10px;
    /* text-align: justify !important; */
    font-size: 9px;
  }
  .container {
    width: 90% !important;
    max-width: 90% !important;
  }
}

.icon-court.active  {
  background-color: #5190a6;
}

.icon-court:hover  {
  background-color: #50707b;
}

#loading{
  height: 60px;
  margin-top: 100px;
}

.loading{
  width: 80px;
  height:80px;
  border-radius:150px;
  border: 7px solid #244c5a;
  border-top-color:rgba(0,0,0,0.3);
  box-sizing:border-box;
  margin-top:-80px;
  margin-left:-80px;
  animation:loading 1.2s linear infinite;
  -webkit-animation:loading 1.2s linear infinite;
}
@keyframes loading{
  0%{transform:rotate(0deg)}
  100%{transform:rotate(360deg)}
}
@-webkit-keyframes loading{
  0%{-webkit-transform:rotate(0deg)}
  100%{-webkit-transform:rotate(360deg)}
}

.load-text {
  padding-top: 15px;
  text-align: center;
  font: 14pt "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: lighten(#6767fa, 75%);
}