* {
    margin: 0;
    padding: 0;
}
  
body {
  background: #ffffff;
  font-family: 'Roboto Condensed', sans-serif;
}

a:link {
  text-decoration: none;
  color: inherit;
}

a:visited {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: none;
  color: inherit;
}

a:active {
  text-decoration: none;
  color: inherit;
}

.page_wrapper {
  margin: 10px;
  display: grid;
  grid-template: 80px auto 1fr / 80px auto 1fr;
  min-height: 100vh;
}

.superbowl_logo {
  display: flex;
  align-self: center;
  justify-self: center;
  width: auto;
  height: 160px;
  object-fit: contain;
}

.nfl_logo {
  width: 100px;
  height: 115px;
  object-fit: contain;
}

.squares_wrapper {
  grid-row: 2;
  grid-column: 2;
  margin: 10px;
  display: grid;
  grid-template: 30px 1fr / 30px  1fr;
  gap: 3px; 
}

#squares_inner_wrapper {
  background: #F0F0F0;
  display: grid;
  grid-template: repeat(10,1fr) / repeat(10, 1fr);
  grid-row: 2;
  grid-column: 2;
  gap: 1px; 
}

.square {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: center;
  justify-content: center;
  outline: 1px solid #666666;
  font-family: 'Roboto Condensed', sans-serif;
  gap: 1px;
  padding: 5px;
}

.square_number {
  position: absolute;
  top: 0;
  left: 0;
  padding: 2px;
  margin: 2px;
  border: 0px solid #999999;
  border-radius: 5px;
  font-size: 12px;
  min-width: 14px;
  height: 14px; 
  text-align: center;
  }

.square_status {
  font-size: 20px;
  width: 100%;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

 .available {
  background: #FFFFFF;
 } 

.winner {
  border: 2px solid #ffc107;
  color: #ffffff;
  background: #478949;
}

.winning {
  border: 1px dashed #ff0000;
  color: #ff0000;
  background: #feffbb;

}

.square_winner, .square_winning {
  font-size: 12px; 
  text-align: center;
}

.afc_team img,
.nfc_team img {
  height: 100%;
}

.afc_team {
  width: 100%;
  height: 80px;
  display: flex;
  grid-column: 2/2;
  justify-content: center;
  gap: 40px;

}

.nfc_team {
  display: flex;
  justify-content: center;
  justify-self: center;
  align-self: center;
  grid-row: 2/2;
  transform: rotate(-90deg);
  transform-origin: center;
  height: 80px;
  width: 800px;
  gap: 40px; 
  padding: 0 30px 0 0;
}

.afc_team_name,
.nfc_team_name {
  align-self: center;
  font-size: 40px;
  font-family: 'Alfa Slab One', serif;
}



.afc_team_name {
  color: var(--afc_name_color);
}

.nfc_team_name {
  color: var(--nfc_name_color);
}


.afc_headers,
.nfc_headers {
  gap: 1px;
  display: grid;
}

.afc_headers {
  grid-template-rows: 30px;
  grid-auto-flow: column;
  grid-column: 2;
  align-content: end;
}

.nfc_headers {
  grid-template-columns: 30px;
  grid-row: 2;
  justify-content: end;
}

.nfc_header, 
.afc_header {
  display: flex;
  justify-content: center;
  align-items: center;
  outline: 1px solid #FFFFFF;
  font-size: 20px;
}

.afc_header {
  min-width: 80px;
  color: var(--afc_header_color);
  background: var(--afc_header_bg);
}

.nfc_header {
  min-height: 80px;
  color: var(--nfc_header_color);
  background: var(--nfc_header_bg);
}

.scores_wrapper {
  display: grid;
  grid-template: 160px 113px 20px 1fr / 1fr;
  justify-items: center;
  grid-row: span 3;
  grid-column: 3;
  padding: 10px;
}

#scores_grid {
  display: grid;
  grid-template: repeat(3, 30px) / 140px repeat(5, 30px);
  grid-auto-flow: row;
  gap: 1px; 
  padding: 20px 0 0 0;
}

.score_quarter {
  outline: 1px solid #666666;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.dig1 {
  padding: 1px; 
}

.afc_dig {
  color: var(--afc_header_color);
  background: var(--afc_header_bg);
  padding: 2px;
}

.nfc_dig {
  color: var(--nfc_header_color);
  background: var(--nfc_header_bg);
  padding: 2px;
}

.blank {
  outline: none;
}

.score_box_header,
.score_config_header {
  font-weight: bold;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2px;
  margin: 0 1px;
}

.afc {
  color: var(--afc_header_color);
  background: var(--afc_header_bg);
  outline: 1px solid  var(--afc_header_bg);
}

.nfc {
  color: var(--afc_header_color);
  background: var(--afc_header_bg);
  outline: 1px solid  var(--afc_header_bg);
}

.afc_config_header {
  color: #FFFFFF;
  background: #ce1f2b;
  border-radius: 4px;
  /* color: var(--nfc_header_color);
  background: var(--nfc_header_bg);
  outline: 1px solid var(--nfc_header_bg); */
}

.nfc_config_header {
  color: #FFFFFF;
  background: #043a65;
  border-radius: 4px;
  /* color: var(--afc_header_color);
  background: var(--afc_header_bg);
  outline: 1px solid  var(--afc_header_bg); */
}

.score_box {
  outline: 1px solid #666666;
  display: flex;
  justify-content: center;
  align-items: center;
}

.score_legend {
  display: grid;
  grid-template-columns: 1fr auto;
  text-align: right;
  margin-top: 2px;
  font-size: 13px;
  width: 100%;
  font-size: 13px;
  align-items: center;
  gap: 4px;
}

.auto_refresh {
  display: flex;
  align-items: center;
  gap: 4px;
}

.score_legend .winning {
  padding: 0 2px;
}

.current {
  background: #feffbb;
}

#player_list {
  display: grid;
  grid-template: auto / 125px 85px 80px;
  height: max-content;
  justify-content: center;
  gap: 1px;
  margin-top: 20px;
}

.player_list_header {
  text-align: center;
  font-weight: bold;
  outline: 1px solid #666666;
  background: #EEEEEE;
  padding: 2px;
}

.player_row {
  padding: 2px;
  outline: 1px solid #666666;
  align-content: center
}

.winnings {
  text-align: right;
}

.name {
  text-align: left;
}

.squares {
  text-align: center;
}

.totals {
  margin: 15px 0;
  font-weight: bold;
  background: #EEEEEE;
}

.paid {
  color: #4CAF50;
}

.player_winner::before {
  content: '$';
}

.rules_wrapper {
  grid-column: 2/2;
}

.example_list {
  position: relative; 
  left: 40px;
}

.example {
  background: #CCCCCC;
  border: 1px solid #999999;
  display: none;
  position: absolute;
  top: 485px;
  left: 200px;
  flex-flow: column;
  padding: 5px; 
  filter: drop-shadow(2px 2px 2px #999999);
}

.example_open {
  text-decoration: underline;
  color: #FF0000;
}

.example_close {
  width: 50px; 
  align-self: end;
  text-align: right;
}

.example_open:hover,
.example_close:hover {
  cursor: pointer;
}

.header {
  width: 100%;
  position: sticky; 
  top: 0; 
  background: #CCCCCC;
  border-bottom: 2px solid #999999;
  padding: 1px 0px;
  margin: 0 0 5px 0;
  z-index: 1; 
}


.admin_panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  justify-content: space-between;
  position: relative;
  margin: 5px 20px 5px 20px;
  background: #FFFFFF;
  border: 1px solid #999999;
  border-radius: 3px;
  user-select: none;
}

.admin_pane {
  display: flex;
  gap: 3px; 
  justify-content: center;
  text-align: center;
  padding: 3px;
}

.help_panel {
  justify-content: left;
  text-align: left;
}

.directions {
  color: #999999;
  font-family: 'Roboto Condensed', sans-serif;
}


.page_count {
  text-align: right;
  justify-content: right;
}

.card_type_label,
.button {
  display: inline-block;
  background: #FFFFFF;
  border: 1px solid #999999;
  border-radius: 3px;
  padding: 5px 1px;
  color: #999999;
  width: 24px;
  text-align: center;
  min-height: 16px;
  line-height: .5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card_type_label,
.button:hover {
  cursor: pointer;
  user-select: none;
}

.button:hover {
  background: #999999;
  color: white;
}

.button:active {
  background: #999999;
  color: #FFFFFF;
}

.form_close {
  align-self: center;
  justify-self: right;
  color: #CCCCCC;
  margin: 0 0 2px 0;
}

.form_close:hover {
  cursor: pointer;
  color: #999999;
}

.form_panel {
  display: grid;
  grid-template-columns: 225px 339px 24px; 
  grid-template-rows: auto;
  justify-content: space-between;
  position: relative;
  margin: 0px 0px 5px 0px;
  background: #FFFFFF;
  border: 1px solid #999999;
  border-radius: 3px;
  user-select: none;
}

.form_pane {
  display: flex;
  align-items: flex-start;
  justify-content: left;
  text-align: center;
  padding: 3px;
  gap: 0;
  margin: 4px 0 -4px 3px;
}

.form_selected,
.form_not_selected {
  border-bottom: none;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  min-width: 40px;
  margin-left: -1px;
}

.form_selected {
  background: #CCCCCC;
  color: #FFFFFF;
  margin-bottom: 0px;
  padding-bottom: 6px; 
}

.form_not_selected {
  background: #ededed;
}

.form_wrapper {
  display: none;
  grid-template-rows: auto 565px 35px;
  border: 1px solid #999999;
  background: #CCCCCC;
  padding: 5px 5px 0 5px;
  width: 592px;
  position: absolute;
  left: 400px;
  top: 20px;
  filter: drop-shadow(2px 2px 2px #999999);
  z-index: 1;
}

.form {
  display: none;
  grid-template-rows: 20px 545px;
}

.form_inner {
  display: inline-block;
  overflow: auto;
  height: 540px;
  padding: 2px 2px;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  border: 1px solid #999999;
  border-radius: 3px;
  background: #FFFFFF;
  resize: none;
}

.options {
  display: grid;
  grid-template-rows: auto repeat(5,auto) 1fr;
  grid-template-columns: 115px 1fr;
  align-items: baseline;
  gap: 15px;
  font-family: 'Roboto Condensed', sans-serif;
}

.form_inner .config_title {
  text-align: right;
  padding-right: 5px;
  font-weight: bold;
} 

.config_input {
  border: 1px solid #CCCCCC;
  border-radius: 2px;
  margin: 2px 0px;
}

.color {
  width: 100px;
}

.number {
  width: 25px;
  padding: 2px;
}

.config_phrases {
  margin: 5px 5px 0 0;
  display: grid;
  grid-template-columns: 130px 1fr
}

.config_textarea {
  width: 420px;
  padding: 0px 4px;
  height: 200px;
  border: 1px solid #CCCCCC;
  border-radius: 5px;
}

.card_type_select {
  display: none;
  cursor: pointer;
}

.card_type_select:checked + label {
  background: #CCCCCC;
  color: #FFFFFF;
}

.config_heading {
  font-weight: bold;
  text-align: center;
}

.submit {
  justify-self: right;
  align-self: center;
  border: 1px solid #999999;
  border-radius: 3px;
  color: #999999;
  height: 26px;
  width: 88px;
  font-size: 20px;
  padding: 0 3px;
}

.submit i {
  float: right;
  color: green;
}

.submit:hover {
  cursor: pointer;
  user-select: none;
  background: #999999;
  color: white;
}

.conference_form {
  display: grid;
  grid-template-columns: 210px 210px;
  gap: 5px 5px;
}

.payouts_form {
  justify-items: left;
  display: grid;
  grid-template-columns: repeat(5, min-content);
  gap: 3px;
}

.payouts_title {
  grid-row-start: 0 span 4;
}

.config_payouts {
  display: grid;
  grid-template-columns: 75px 75px;
}

.team_select {
  display: grid;
  grid-template-columns: 180px auto;
  height: 25px;
  gap: 2px;
}

.login_button {
  position: absolute;
  right: 5px;
}

.login {
  display: grid;
  justify-content: center;
}

.login_open {
  color: #EEEEEE;
  border-color: #EEEEEE;
}

.login_area {
  margin-top: 20px;
  display: grid;
  grid-auto-rows: min-content;
  gap: 5px;
}

.login_entry {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 3px;
}

.login_submit {
  width: 70px;
  justify-self: center;
}

.password_label {
  background: #C0C0C0;
  color: white;
  padding: 1px;
  text-align: center;
}