.header .top {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  position: relative;
  background-color: #212132;
  padding: 0.4rem;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}
.header .top h1 {
  margin: 0px;
  margin-right: auto;
}
.header .top .subtle {
  opacity: 0.5;
}
.header .top .hideOnSmall {
  margin-right: 2rem;
}
.header .hideOnLarge {
  visibility: hidden;
  max-height: 0px;
}
.header .bottom {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

@media only screen and (max-width: 800px) {
  .header .top .hideOnSmall {
    visibility: hidden;
    margin-right: 0;
  }
  .header .hideOnLarge {
    visibility: visible;
    max-height: unset;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    margin-right: 2rem;
  }
}
.connection {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  border: 1px solid #cccccc;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #eeeeee;
  color: #444444;
}
.connection select {
  padding: 0.4em;
}

@media only screen and (max-width: 800px) {
  .connection {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0.6rem;
    margin-right: 0.6rem;
  }
  .connection .linktext {
    text-align: center;
    margin-bottom: 0.4rem;
    margin-top: 0.4rem;
  }
}
.personSummary {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 1rem;
  margin-left: 1rem;
  position: relative;
  padding: 0.4rem;
  padding-bottom: 0rem;
}
.personSummary .title {
  font-weight: bold;
}
.personSummary img {
  max-width: 60px;
  max-height: 90px;
  margin-bottom: 1rem;
}

@media only screen and (max-width: 800px) {
  .personSummary > .title {
    text-align: center;
  }
}
.filmSummary {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 1rem;
  margin-left: 1rem;
  position: relative;
}
.filmSummary .title {
  font-weight: bold;
}
.filmSummary img {
  max-width: 60px;
  max-height: 90px;
  margin-bottom: 1rem;
}

@media only screen and (max-width: 800px) {
  .filmSummary > .title {
    text-align: center;
  }
}
.playGame .connections {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.2rem;
}

.tmdbLogo {
  margin-right: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tmdbLogo .titleText {
  font-size: 0.7em;
  margin-bottom: 0.15rem;
}
.tmdbLogo img.logo {
  max-width: 80px;
}

.clearButton {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  opacity: 0.6;
  transition: opacity 0.3s;
  cursor: pointer;
}
.clearButton img {
  width: 1.4rem;
  height: 1.4rem;
}

.clearButton:hover {
  opacity: 1;
}

.setupGame {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
}
.setupGame.duplicate {
  background-color: red;
}
.setupGame .people {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
}
.setupGame .personPicker .poster {
  box-shadow: #222222 0px 4px 8px;
}
.setupGame .stepLimit {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin-left: 1rem;
}
.setupGame .stepLimit select {
  padding: 0.4rem;
}

@media only screen and (max-width: 800px) {
  .setupGame {
    flex-direction: column;
  }
  .setupGame .stepLimit {
    margin-top: 1rem;
    margin-right: 1rem;
  }
  .setupGame .personPicker {
    margin-left: 0rem;
    margin-right: 0rem;
  }
}
.gameHeader {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  background-color: #38394b;
}
.gameHeader .timerAndButtons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gameHeader .timerAndButtons .timer {
  margin-right: 1rem;
}

@media only screen and (max-width: 800px) {
  .gameHeader {
    flex-direction: column;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
  .gameHeader .timerAndButtons {
    width: 100%;
    margin-right: 1rem;
    margin-left: 1rem;
    margin-top: 0.8rem;
  }
  .gameHeader .timerAndButtons .timer {
    margin-left: 1rem;
  }
  .gameHeader .timerAndButtons .buttons {
    margin-top: 0;
  }
}
.toast {
  position: absolute;
  z-index: 20;
  padding: 1rem;
  background-color: bisque;
  color: #444444;
  border-radius: 0.6rem;
  opacity: 0;
}

.picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin-left: 1rem;
  margin-right: 1rem;
  position: relative;
  padding: 0.4rem;
  padding-bottom: 0rem;
}
.picker img.poster {
  max-width: 60px;
  max-height: 90px;
  margin-bottom: 1rem;
  box-shadow: #aaaaaa 0px 4px 8px;
  border-radius: 4px;
}
.picker input {
  width: 14em;
  padding: 0.4em;
  padding-left: 0.4em;
  padding-right: 0.4em;
}
.picker > .body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.picker > .body > .title {
  font-weight: bold;
  padding-bottom: 0.4rem;
  transition: color 2.5s;
}
.picker input:focus {
  outline: none !important;
}
.picker .buttons {
  margin-top: 0.6rem;
}

.picker.invalid > .body > .title {
  color: red;
}

.picker.valid > .body > .title {
  color: green;
}

.picker.usedBefore > .body > .title {
  text-decoration: line-through;
}

@media only screen and (max-width: 800px) {
  .picker > .title {
    text-align: center;
  }
  .picker > .body > .title {
    text-align: center;
  }
  .picker .buttons {
    width: unset;
  }
}
.searchResults {
  background-color: #eeeeee;
  color: #444444;
  padding-bottom: 0.6rem;
  border-radius: 0.4rem;
  box-shadow: 0 0 10px #444444;
  position: absolute;
  z-index: 20;
  max-height: 50vh;
  overflow-y: auto;
}
.searchResults .searchResult {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-top: 0.4rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  background-color: #eeeeee;
}
.searchResults .searchResult img {
  max-width: 24px;
  max-height: 32px;
  margin-right: 0.4em;
}
.searchResults p {
  margin: 1rem;
}
.searchResults .searchResult:nth-child(even) {
  background-color: #dddddd;
}

.dailyChallenge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #38394b;
  padding: 0.6rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.dailyChallenge > .title h2 {
  margin-top: 0rem;
  margin-bottom: 0.6rem;
  font-weight: normal;
  opacity: 0.6;
  font-size: 1.2rem;
}
.dailyChallenge > .body {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.dailyChallenge > .body > .buttons {
  margin-left: 2rem;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 800px) {
  .dailyChallenge {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
  .dailyChallenge > .body {
    flex-direction: column;
  }
  .dailyChallenge > .body > .buttons {
    margin-top: 1rem;
    margin-left: 0;
  }
}
/* Small devices (portrait tablets and large phones, 600px and up) */
/* Medium devices (landscape tablets, 768px and up) */
/* Large devices (laptops/desktops, 992px and up) */
/* Extra large devices (large laptops and desktops, 1200px and up) */
.gameSummary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.gameSummary > .top {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.gameSummary > .top h3 {
  margin: 0;
}
.gameSummary > .top h4 {
  margin: 0;
  margin-top: 0.2rem;
  opacity: 0.8;
  font-weight: normal;
}
.gameSummary > .top .posters {
  position: relative;
  padding-bottom: 10px;
  width: 100px;
}
.gameSummary > .top .posters img {
  width: 40px;
  border-radius: 4px;
}
.gameSummary > .top .posters img.fromPoster {
  z-index: 1;
}
.gameSummary > .top .posters img.toPoster {
  position: absolute;
  top: 10px;
  left: 28px;
  z-index: 2;
  box-shadow: #444444 0px 4px 8px;
}
.gameSummary > .top > .body {
  margin-left: 0.4rem;
}

@media only screen and (max-width: 800px) {
  .gameSummary h3 {
    text-align: left;
    padding-left: 0.6rem;
  }
  .gameSummary h4 {
    text-align: left;
    padding-left: 0.6rem;
  }
}
.buttons {
  display: flex;
  flex-direction: column;
  width: fit-content;
}
.buttons button {
  margin-top: 0.6rem;
  background-color: #eeeeee;
  color: #444444;
  font-size: 0.8rem;
  border-radius: 0.4rem;
  padding: 0.3rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  cursor: pointer;
  border: 0px;
}
.buttons button:first-child {
  margin-top: 0px;
}
.buttons button:hover {
  color: #222222;
}
.buttons.horizontal {
  flex-direction: row;
  margin-top: 0.8rem;
  justify-content: flex-end;
  box-sizing: border-box;
  width: 100%;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}
.buttons.horizontal button {
  margin-left: 0.6rem;
  margin-top: 0;
}
.buttons.horizontal button:first-child {
  margin-left: 0;
  margin-top: 0;
}

@media only screen and (max-width: 800px) {
  .buttons {
    flex-direction: row;
    margin-top: 0.8rem;
    justify-content: flex-end;
    box-sizing: border-box;
    width: 100%;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
  .buttons button {
    margin-left: 0.6rem;
    margin-top: 0;
  }
  .buttons button:first-child {
    margin-left: 0;
    margin-top: 0;
  }
}
.resultSummary.compact h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: normal;
  opacity: 0.8;
}
.resultSummary.positive {
  color: #47cd9d;
}

@media only screen and (max-width: 800px) {
  .resultSummary h3 {
    text-align: center;
  }
  .resultSummary.compact h3 {
    text-align: left;
    font-size: 1rem;
  }
}
.timer .timedOut {
  color: red;
}

.challengeList .challenge {
  display: flex;
  flex-direction: column;
  padding: 0.6rem;
}
.challengeList .challenge > .body {
  display: flex;
  flex-direction: column;
}
.challengeList .challenge .date {
  opacity: 0.6;
  margin-bottom: 0.4rem;
}
.challengeList .challenge > .footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.challengeList .challenge:nth-child(even) {
  background-color: #52536b;
}

@media only screen and (max-width: 800px) {
  .challengeList .challenge > .footer {
    margin-top: 0.6rem;
    flex-direction: column;
  }
}
.previousChallengeNavigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #38394b;
  padding: 0.6rem;
}
.previousChallengeNavigation > .title h2 {
  margin-top: 0rem;
  margin-bottom: 0.6rem;
  font-weight: normal;
  opacity: 0.6;
  font-size: 1.2rem;
}

.pageFooter {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background-color: #212132;
  padding: 1rem;
  position: fixed;
  bottom: 0px;
  width: 100%;
  box-sizing: border-box;
  z-index: 20;
}

.explanation p {
  padding-left: 2rem;
  padding-right: 2rem;
  line-height: 1.4rem;
}
.explanation p .actor {
  font-weight: bold;
  color: #93d5bf;
}
.explanation p .actor.from {
  color: #b388d2;
}
.explanation p .actor.to {
  color: #e87899;
}
.explanation p .film {
  font-weight: bold;
  color: #93d5bf;
}
.explanation p ul {
  list-style-type: circle;
}
.explanation p ul li {
  line-height: 1.8rem;
}

@media only screen and (max-width: 800px) {
  .explanation p {
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
  .explanation p ul {
    padding-left: 1rem;
  }
}
.contribute p {
  padding-left: 2rem;
  padding-right: 2rem;
}
.contribute p .clickable {
  font-weight: bold;
  text-decoration: underline;
}

.challengeStats {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-top: 0.6rem;
  height: 1.4rem;
}
.challengeStats .stat {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  margin-left: 0.4rem;
}
.challengeStats .stat .value {
  font-size: 1rem;
  color: #c1fbf4;
  margin-left: 0.4rem;
}
.challengeStats .stat .label {
  font-size: 0.8rem;
  opacity: 0.6;
}

.bonusPopup {
  position: fixed;
  width: 400px;
  bottom: 0;
  right: 0;
  padding: 0.4rem;
  background-color: black;
  box-sizing: border-box;
  border-radius: 1rem;
  z-index: 30;
}
.bonusPopup img {
  width: 100%;
  border-radius: 0.6rem;
}

@media only screen and (max-width: 800px) {
  .bonusPopup {
    width: 100%;
  }
}
.userStats h3 {
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}
.userStats .stats {
  margin-left: auto;
  margin-right: auto;
  width: fit-content;
}
.userStats .stats .statsRow {
  margin: 0.6rem;
}
.userStats .stats .statsRow .statValue {
  font-weight: bold;
  color: #93d5bf;
}

.statsLink .link {
  font-weight: bold;
  color: #93d5bf;
}

#currentTopActors .deleted {
  opacity: 0.3;
}
