/* cards wrapper and close btn */

.profiles-wrapper {
  overflow: auto;
}

/* CARD */
.card {
  position: relative;
  width: 100%;
  height: 300px;
  margin: 10% auto;
  padding-bottom: 20%;
}

@media only screen and (min-width: 62em) {
  .card {
      float: left;
      width: 46%;
      height: 300px;
      margin: 2%;
  }
}

@media only screen and (min-width: 75em) {
  .card {
      width: 29%;
      height: 360px;
      margin: 2%;
  }
}

.card__container {
  position: fixed;
  top: 0;
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  height: 100%;
  -webkit-transform: translate3d(0, 0, 0);
  /* prevents flicker */

  -webkit-overflow-scrolling: touch;
}

.card__container--closed {
  position: absolute;
  overflow: hidden;
}

.card__image {
  position: relative;
  top: 5%;
  left: 50%;
  display: block;
  height: 100%;
  max-height: 500px;
  max-width: 80%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.card__container--closed .card__image {
  cursor: pointer;
}

.card__content {
  position: relative;
  width: 90%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  padding: 2rem;
  color: #888;
  background: #fff;
}

.female-player-profiles .card__content {
  width: 100%;
}

.card__container--closed .card__content {
  margin-top: 0;
  padding: 5px 16px;
  pointer-events: none;
  background: transparent;
}

.card__caption {
  font-size: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 35px 0 0;
}

.card__container--closed .card__caption {
  font-size: 1rem;
  max-width: none;
	padding: 10px;
  -webkit-transform: translateY(-405%);
  -ms-transform: translateY(-405%);
  transform: translateY(-405%);
}
.card__container--closed .card__caption > .row {
   margin: auto;
   width: 100%;
}
.coaches .card__container--closed .card__caption,
.trainers .card__container--closed .card__caption {
  -webkit-transform: translateY(-655%);
  -ms-transform: translateY(-655%);
  transform: translateY(-655%);
}

@media only screen and (min-width: 99em) {
  .coaches .card__container--closed .card__caption,
  .trainers .card__container--closed .card__caption {
    -webkit-transform: translateY(-775%);
    -ms-transform: translateY(-775%);
    transform: translateY(-775%);
  }  
}

.card__container--closed .card__caption {
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#2e2d45+0,2e2d45+100&1+0,0+52,1+100 */
  background: -moz-linear-gradient(left,  rgba(43,63,88,1) 0%, rgba(43,63,88,0) 52%, rgba(43,63,88,1) 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(left,  rgba(43,63,88,1) 0%,rgba(43,63,88,0) 52%,rgba(43,63,88,1) 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(to right,  rgba(43,63,88,1) 0%,rgba(43,63,88,0) 52%,rgba(43,63,88,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2e2d63', endColorstr='#2e2d63',GradientType=1 ); /* IE6-9 */
}

.card-stat {
  margin: 0 0 1rem 0;
  line-height: 1.75rem;
}

.card::hover .card__container--closed .card__caption {
  font-size: 1.25rem;
}
  
@media only screen and (min-width: 75em) {
  .card__container--closed .card__caption {
    -webkit-transform: translateY(-490%);
    -ms-transform: translateY(-490%);
    transform: translateY(-490%);      
  }	
}

.card__title {
  font-size: 2rem;
  line-height: 1;
  margin: 5px 0 0 0;
  color: #3b393d;
}

.coaches .card__title, .trainers .card__title {
  margin: 5px auto 0;
}

.card__container--closed .card__title {
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.coaches .card__container--closed .card__title,
.trainers .card__container--closed .card__title {
  margin: 5px 0 0 0;
}

.card__subtitle {
  font-size: 1.5rem;
  line-height: 1;
  margin: 5px 0 0;
  color: #91a0a9;
}

.card__container--closed .card__subtitle {
  color: #f5f5f5;
  font-size: 1.25rem;
}

.card__number {
  font-size: 3rem;
  margin: 0;
  font-weight: bold;
  color: #2c69aa;
  text-align: right;
}

.card__container--closed .card__number {
  color: #DE6723;
  font-size: 2rem;
  line-height: 1;
  text-align: right;
}

.female-player-profiles .coaches .card__container--closed .card__caption,
.female-player-profiles .trainers .card__container--closed .card__caption {
  background: none;
}

@media only screen and (min-width: 62em) {
  .card__title {
    font-size: 3rem;
  }

  .card__subtitle {
    font-size: 2rem;
  }
  
  .card__number {
    font-size: 4rem;
    line-height: 1;
  }
}

.card__copy {
  font-size: 1.25rem;
  padding: 50px 0 25px;
  color: #3b393d;
}

.card__btn-close {
  font-size: 30px;
  position: absolute;
  top: 0;
  right: 0;
  padding: 20px;
  cursor: pointer;
}

.card__container--closed .card__btn-close {
  display: none;
}

@media only screen and (min-width: 48em) {
  .card__caption {
 
      padding: 35px 0px 0px;
  }
}

.profiles-wrapper {
  display: flex;
  flex-wrap: wrap;
}

.profiles-wrapper label {
  margin: .5rem 1.5rem;
  cursor: pointer;
  order: 1;  
  text-align: center;
  font-family: din-2014-narrow, sans-serif;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: #828292;
}

.profiles-wrapper label:hover,
.profiles-wrapper label:focus {
  color: #fff;
}

.profiles-wrapper .tab-content {
  width: 100%;
  padding: 0;
  order: 2; 
  text-align: left;
}

.profiles-wrapper input[type=radio],
.profiles-wrapper .tab-content {
  display: none;
}

.profiles-wrapper input[type=radio]:checked + label {
  font-weight: bold;
  color: #fff;
}

.profiles-wrapper input[type=radio]:checked + label + .tab-content {
  display: block;
}
