body {
  margin: 0;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: sans-serif;
  margin: 0 auto 8px auto;
  width: 97%;
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 10px 20px 20px;
}

.year-select {
  max-width: 75px;
  padding: 10px;
  background-color: #333;
  color: #eee;
  font-weight: bold;
  border-radius: 3px;
  appearance: none;
  -webkit-appearance: none;
  font-size: 1rem;
}

.info-icon__image {
  height: 20px;
}

.table-container {
  width: 100%;
}

.picks-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.picks-table thead tr {
  background-color: #333;
  color: #eee;
}

.picks-table th:first-child {
  border-radius: 10px 0 0 0;
}

.picks-table th:last-child {
  border-radius: 0 10px 0 0;
}

.picks-table thead tr:first-child {
  text-align: left;
}

.picks-table th,
.picks-table td {
  padding: 10px 5px;
}

.picks-table tbody tr {
  border-bottom: 1px solid #dddddd;
}

.picks-table tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.picks-table tbody tr:last-of-type {
  border-bottom: 2px solid #333;
}

.pick-container {
  display: flex;
  align-items: center;
  margin: 0 auto;
}

.player__container {
  display: flex;
  justify-content: space-between;
}

.player__paid::before {
  content: '\1F4B0';
  font-size: 12px;
}

.player__winner::before {
  content: '\1F3C6';
  font-size: 12px;
}

.player__total {
  font-size: 12px;
}

.afc-pick__image,
.nfc-pick__image {
  height: 30px;
}

.afc-pick__name,
.nfc-pick__name {
  margin-left: 10px;
}

.out {
  opacity: 0.3;
}

/* popover */
.season-details[data-popover] {
  display: inline;
  position: relative;
}
.season-details[data-popover] > .season-details-summary:focus {
  outline: none;
}
.season-details[data-popover]
  > .season-details-summary::-webkit-details-marker {
  display: none;
}
.season-details[data-popover] > .season-details-summary {
  list-style: none;
}
.season-details[data-popover] > .season-details-summary + * {
  position: absolute;
  display: block;
  z-index: 1;
  width: 250px;
  border: solid 1px #333;
  border-radius: 10px;
  padding: 6px;
  background: white;
}

.season-details[data-popover='down'] > .season-details-summary + * {
  top: calc(0.5rem + 100%);
}
/* end popover */

.details__list {
  list-style: none;
  padding: 8px 16px;
  margin: 0;
}

.info__li {
  padding: 5px 0;
}

.info__item {
  display: flex;
  justify-content: space-between;
}

.info__key {
  font-weight: bold;
}

.input-data {
  width: 100%;
  height: 70vh;
  margin-top: 10px;
}

.input-pw {
  margin-top: 1rem;
}

.submit-data {
  margin: 1rem 0;
  padding: 10px;
  background-color: #333;
  color: #fff;
  border-radius: 10px;
  border: 1px solid #333;
  cursor: pointer;
}

.message {
  font-weight: bold;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

@media screen and (min-width: 768px) {
  .page {
    margin: 0 30% 8px;
    width: auto;
  }

  .picks-table th,
  .picks-table td {
    padding: 12px;
  }
}
