@import 'fonts.css';

/** Header */
header {
  padding: 0 10px 10px 0;
  border-bottom: 1px solid #ccc;
}

.logo__image {
  vertical-align: top;
  margin-right: 5px;
}

.logo__text {
  font-family: 'NFLEndzoneSansCondMedium';
  font-size: 3rem;
  color: #013369;
  line-height: 4rem;
  cursor: default;
}

.week-number {
  font-size: 3rem;
  font-family: 'NFLEndzoneSansCondMedium';
  color: #013369;
  line-height: 4rem;
  float: right;
}

.week-number:not(:empty):before {
  content: 'Week ';
}

/** Content */
.no-games {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'NFLEndzoneSansCondMedium';
  font-size: 52px;  
}

.team-matchup {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  border-bottom: 1px solid #eee;
}

.at {
  position: relative;
  top: 32px;
  font-family: 'NFLEndzoneSansCondMedium';
  font-size: 2vw;
  color: #777;
}

.matchup-team {
  position: relative;
  flex: 1 1 45%;
  max-width: calc(50% - 10vw);
  box-sizing: border-box;
  border: 10px solid transparent;
}

.matchup-team.winner {
  background: #96ef96;
}

/*
.matchup-team.loser {
  filter: grayscale(1);
}

.matchup-team.loser .matchup-team__image {
  opacity: 0.5;
}
*/

.matchup-team.pick:after {
  content: 'OUR PICK';
  width: 100px;
  height: 36px;
  position: absolute;
  bottom: 0;
  right: 0;
  left: auto;
  font-size: 2rem;
  font-family: 'NFLEndzoneSansCondMedium';
  text-align: center;
  background: #080;
  padding: 8px;
  color: #fff;
}

.matchup-team.matchup-team-2.pick:after {
  left: 10px;
  right: auto;
}

.matchup-team.pick.failed-pick {
  background: #ef9696;
}

.matchup-team__image {
  display: block;
  width: 60%;
  height: auto;
  margin: auto;
  float: left;
}

.matchup-team-2 .matchup-team__image {
  float: right;
}

.matchup-team__title {
  font-family: 'NFLEndzoneSansCondMedium';
  font-size: 5vw;
  color: #444;
}

.matchup-team-1 {
  left: 5px;
  margin-right: 20px;
}

.matchup-team-2 {
  right: 5px;
}

.matchup-team__text {
  position: absolute;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  z-index: 3;
}

.matchup-team__score {
  display: none;
}

.matchup-team-1 .matchup-team__text {
  text-align: right;
}

.matchup-team-2 .matchup-team__text {
  text-align: left;
}

.matchup-team__stats {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.matchup-team__stats li {
  margin: 0;
  padding: 5px 0;
  font-size: 1.5rem;
  font-family: 'NFLEndzoneSansCondMedium';
}

.matchup-team__stats .matchup-team__rank {
  font-size: 3vw;
}

/** Footer */
footer {
  display: none;
  text-align: center;
  background: #fafafa;
  padding: 5px;
  border-top: 2px solid #fefefe;
  color: #aaa;
}

/** Breakpoints */
@media (max-width: 640px) {
  .logo__text,
  .week-number {
    font-size: 2.5rem;
  }
  
  .matchup-team.pick:after {
    width: 64px;
    height: 24px;
    font-size: 1.4rem;
  }
}

@media (max-width: 420px) {
  .matchup-team__title {
    font-size: 6vw;
  }
  
  .matchup-team__stats .matchup-team__rank {
    font-size: 5vw;
  }
}
