/**** Roster Styles for 2020 Red Wings site ****/


#deck {
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(165px, 1fr) );
  justify-content: space-around;
  grid-gap: 5px;
}

article {
  height: 265px;
  width: 165px;
  padding: 0;
}

article h1 {
  text-transform: uppercase;
  font-size: 1.25em;
  padding-left: 2px;
}

article h2 {
  padding: 0;
  text-align: center;
}

.flip-back h2 {
  color: #f0f6fc;
  color: var(--ice);
  padding: 10px 5px;
  border-bottom: 5px dashed #f0f6fc;
  border-bottom: 5px dashed var(--ice);
  margin-bottom: 20px;
}

article p {
  font-size: .8rem;
  font-weight: bold;
  padding: 0 5px;
  text-align: center;
}

.flip {
  perspective: 1000px;
}

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 1s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 8px 0 #d2d2d2;
  box-shadow: 0 4px 8px 0 var(--grey);
}

.flip:hover .flip-inner,
.flip:active .flip-inner,
.flip:focus .flip-inner 
{
  transform: rotateY(180deg);
}

.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

}

.flip-front {
  background: #f0f6fc;
  background: var(--ice);
  border: 3px solid #c8102e;
  border: 3px solid var(--WingsRed);
  color: #383838;
  color: var(--puck);
}

.flip-back {
  background: #c8102e;
  background: var(--WingsRed);
  color: #f0f6fc;
  color: var(--ice);
  transform: rotateY(180deg);
}

.position {
  color: #c8102e;
  color: var(--WingsRed);
  margin: 1.25rem auto;
  border-top: 3px dotted #7a8dd0;
  border-bottom: 3px dotted #7a8dd0;
  border-top: 3px dotted var(--blueline);
  border-bottom: 3px dotted var(--blueline);
  font-size: 1.2em;
}

.rank {
  position: absolute;
  top: 3px;
  right: 3px;
  color: #c8102e;
  color: var(--WingsRed);
  font-size: 1.2rem;
  text-align: right;
}

.linkButton {
  position: absolute;
  width: 80%;
  cursor: pointer;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 0%);
  background: #d2d2d2;
  background: var(--grey);
  padding: 5px;
  border-radius: 3px;
  transition: color 0.3s, background 0.3s;
  text-align: center;
}

.linkButton:hover {
  background: #7251aa;
  background: var(--RallyAl);
  transition: background 0.5s ease;
}


@media only screen and (min-width: 600px) {
  #deck {
    width: 90%;
    grid-template-columns: repeat( auto-fit, minmax(200px, 1fr) );
    justify-content: space-around;
    grid-gap: 10px;
  }
  article {
    height: 300px;
    width: 200px;
  }
  article p {
    font-size: 1rem;
  }
}