body {
  margin: 0;
  padding: 0;
}

:root {
  --clr-neon: hsl(317 100% 54%);
  --clr-bg: hsl(323 21% 16%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.neon-button {
  font-size: 1.2em;
  font-family: 'Audiowide', cursive;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  color: var(--clr-neon);
  border: var(--clr-neon) 0.250em solid;
  padding: 0.5em 1em;
  border-radius: 0.25em;
  background: var(--clr-bg);
  text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3), 0 0 0.45em currentColor;

  box-shadow: inset 0 0 0.5em 0 var(--clr-neon), 0 0 0.5em 0 var(--clr-neon);

  position: relative;
}

.neon-button:hover, 
.neon-button:focus,
.neon-button:active,
.neon-button-hover {
  color: var(--clr-bg);
  text-shadow: none;
  background: var(--clr-neon);
  box-shadow: 0 0 2em 0.5em var(--clr-neon);
}


.neon-button:hover::before,
.neon-button:focus::before,
.neon-button:active::before,
.neon-button-hover::before {
  opacity: 1;
}
.neon-button:hover::after,
.neon-button:focus::after,
.neon-button:active::after,
.neon-button-hover::after {
  opacity: 1;
}

.score-button {
  font-size: 1.2em;
  font-family: 'Audiowide', cursive;
  display: inline-block;
  /*cursor: pointer;*/
  text-decoration: none;
  color: #e1e166;
  border: #e1e166 0.250em solid;
  padding: 0.5em 1em;
  border-radius: 0.25em;
  background: var(--clr-bg);
  text-shadow: 0 0 0.125em #e1e166, 0 0 0.45em currentColor;

  box-shadow: inset 0 0 0.5em 0 #e1e166, 0 0 0.5em 0 #e1e166;

  position: relative;
}

#submitscores {
  cursor: pointer;
}

#submitscores.disabled {
  cursor: not-allowed;
}

.score-button:hover, 
.score-button:focus,
.score-button:active,
.score-button-hover {
  color: var(--clr-bg);
  text-shadow: none;
  background: #e1e166;
  box-shadow: 0 0 2em 0.5em #e1e166;
}

.score-button:hover::before,
.score-button:focus::before,
.score-button:active::before,
.score-button-hover::before {
  opacity: 1;
}

.score-button:hover::after,
.score-button:focus::after,
.score-button:active::after,
.score-button-hover::after {
  opacity: 1;
}

.confirmbuttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  cursor: pointer;
}

.main-layout {
  min-height: 100dvh;
  /*display: grid;
  grid-template-rows: 1fr auto 1fr;*/
  display: flex;
  flex-direction: column;
  border: 2px limegreen solid;
  /*font-family:Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;*/
  font-family: 'Orbitron', sans-serif;
  /*font-family: 'Audiowide', cursive;*/
  /*font-family: 'Skranji', cursive;*/
  /*font-family: 'Slackey', cursive;*/
  /*font-family: 'Chango', cursive;*/
  /*font-family: 'Seymour One', sans-serif;*/
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  color: black;
  background: url('assets/graphics/ImageHead.png') no-repeat;
  background-size: cover;
  background-color: lightblue;
  flex: 0;
  /*background-clip: content-box;
  min-height: 40px;*/
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: lightseagreen;
  color: black;
}

#crazy-header {
  margin-top: 40px;
  margin-bottom: 40px;
}

#getcourses, #getorder, #getrules {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: space-between;
  justify-content: space-between;
}

#norules, #both,#twofirst {
  margin-bottom: 30px;
}

.headerp {
  font-size: 2rem;
  text-align: center;
  border: 2px solid lightblue;
  border-radius: 30%;
  opacity: 0.8;
  background:lightgreen;
  padding: 1rem;
}

.footerp {
  font-size: 1.2rem;
  text-align: center;
}

main {
  background: var(--clr-bg) !important;
  color:rgb(110, 243, 243);
  text-shadow: 0 0 0.125em rgb(110, 243, 243), 0 0 0.45em currentColor;
  flex: 1;
}

.neon-glow {
  text-shadow: 0 0 0.250em rgb(110, 243, 243), 0 0 0.90em currentColor;
  box-shadow: inset 0 0 0.2em 0 rgb(110, 243, 243), 0 0 0.2em 0 rgb(110, 243, 243);
  padding: 6px;
}

@media only screen and (max-width: 850px) {
  #togglecard1, #togglecard2, #toggletotal {
    transform: scale(0.8) translateX(80px);
  }
}

@media only screen and (max-width: 660px) {
  header {
    flex-direction: column;
    align-items: center;
  }

  header img {
    display: none;
  }

  footer {
    flex-direction: column;
  }

  #getscorecard1 {
    transform: scale(0.8) translateX(-50px);
  }

  #getscorecard2 {
    transform: scale(0.7) translateX(-75px);
  }

  #showtotals {
    transform: scale(0.8);
  }

  #togglecard1, #togglecard2, #toggletotal {
    transform: scale(0.8) translateX(200px);
  }

  .score-card {
    width: 90%;
  }

}

@media only screen and (max-width: 460px) {
  #getscorecard1 {
    transform: scale(0.7) translateX(-80px);
  }
  
  #getscorecard2 {
    transform: scale(0.7) translateX(-125px);
  }

  #togglecard1 {
    transform: scale(1) translateX(200px);
  }

  #togglecard2 {
    transform: scale(1) translateX(200px);
  }

  #toggletotal {
    transform: scale(0.9) translateX(-100px) translateY(-100px);
  }

  td {
    padding: 2px;
  }

  #totals-label {
    font-size: 0.7em;
  }

  table {
    overflow-x: hidden;
  }

  .headerp {
    font-size: 1rem;
  }

  .runningtotal {
    font-size: 1.2em;
  }

  .confirmbuttons {
    font-size: 0.8em;
  }
}

@media only screen and (max-width: 390px) {
  #getscorecard1 {
    transform: scale(0.6) translateX(-120px);
  }
  
  #getscorecard2 {
    transform: scale(0.6) translateX(-140px);
  }
}

.score-card {
    width: 75%;
    margin: 0 auto;
    text-align: center;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    min-width: 300px;
    /*font-family: 'Orbitron', sans-serif;*/
  /*font-family: 'Audiowide', cursive;*/
  /*font-family: 'Skranji', cursive;*/
  font-family: 'Slackey', cursive;
  /*font-family: 'Chango', cursive;*/
  /*font-family: 'Seymour One', sans-serif;*/
  }
  
  td {
    border: 1px solid rgb(62, 228, 145);
    box-shadow: inset 0 0 0.1em 0 rgb(62, 228, 145), 0 0 0.8em 0 rgb(62, 228, 145);
    padding: 8px;
  }
  
  table .holesrow {
    color: #d0d615;
    font-size: 1.4em;
  }
  
  table tr[id^="parsrow"] {
    font-size: 1.3em;
  }

  p[id^="courselabel"] {
    font-size: 2em;
  }

  .partotal {
    font-size: 1.3em;
  }

  .runningtotal {
    font-size: 1.6em;
  }

  #totalslabel {
    font-size: 1.8em;
  }

  table tr[id^="playersrow"]:nth-of-type(odd) {
    background: #4e4d4d;
  }

  .fillrow {
    border-right: none;
  }

  .label {
    font-size: 1.5em;
  }

  .playerslabel {
    color: #e85cca;
    font-size: 1.7em;
    background: #4e4d4d;
  }

  .playername {
    color: #a4c2e0;
    font-size: 1.3em;
  }

  input[type="number"] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
  }
  
  input[type=number]::-webkit-inner-spin-button,
  input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
  }
  
  .number-input {
    border: 2px solid #00ff00;
    display: inline-flex;
  }
  
  .number-input,
  .number-input * {
    box-sizing: border-box;
  }
  
  .number-input button {
    outline:none;
    -webkit-appearance: none;
    background-color: #41403e;
    color:#e85cca;
    border: none;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    margin: 0;
    position: relative;
  }
  
  .number-input button:before,
  .number-input button:after {
    display: inline-block;
    position: absolute;
    content: '';
    width: 1rem;
    height: 2px;
    background-color: #ccff00;
    transform: translate(-50%, -50%);
  }
  .number-input button.plus:after {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  
  .number-input input[type=number] {
    font-family: 'Audiowide', cursive;
    max-width: 4rem;
    padding: .5rem;
    background:#41403e;
    color:#00ff00;
    border: solid #ddd;
    text-shadow: 0 0 0.500em #00ff00, 0.250em 0.250em 0.90em currentColor;
    border-width: 0 2px;
    font-size: 1.5rem;
    height: 2rem;
    font-weight: bold;
    text-align: center;
  }
  

  input[type="text"] {
    width: 150px;
    background-color:#41403e;
    color:#ccff00; /* Neon green color */
    text-shadow: 0 0 0.250em #ccff00, 0 0 0.90em currentColor;
    font-size: 1.2em;
    padding-left: 20px;
  }

  .parlabel, .labelcourse, .labelrules, .labelorder {
    padding-right: 20px;
  }

  .inputcourse, .inputrules, .inputorder {
    margin-top: 30px;
    padding-right: 40px;
  }

  .parbox {
    border: 1px solid pink;
    padding: 20px;
  }
  
  #player-inputs {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    border: 2px solid pink;
    max-width: 1000px;
    min-width: 0;
    height: auto;
    padding-bottom: 50px;
    margin-bottom: 50px;
  }

  #getroundscores, #par-inputs {
    position: relative;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    min-width: 0;
    min-height: 200px;
    padding-right: 30px;
  }

  #getNamesButton {
    font-size: 1.2em;
    position: absolute;
    bottom: 10px;
    right: 0;
    padding: 3px 12px;
    margin: 3px;
  }

  #submitplayers {
    font-size: 1.2em;
    margin-bottom: 30px;
  }

  #getnameslabel {
    padding-bottom: 20px;
  }

  #confirmscreen {
    position: relative;
    min-height: 500px;
    height: auto;
  }

  .neon-select {
    background-color:#41403e;
    color:#ccff00; /* Neon green color */
    text-shadow: 0 0 0.250em #ccff00, 0 0 0.90em currentColor;
    text-align: center;
    font-size: 24px;
    padding: 10px;
    border: none;
    appearance: none; /* Remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
  }
  
  .neon-select option {
    background-color:#41403e;
    color:#ccff00; /* Neon green color */
    text-shadow: 0 0 0.250em #ccff00, 0 0 0.90em currentColor;
    font-size: 24px;
  }
  
  .neon-select:focus {
    outline: none;
  }
   
 
  #getplayerscores {
    position: relative;
  }

  #submitscores {
    bottom: 10px;
    right: 20px;
    padding: 20px;
    margin: 10px;
    margin-top: 25px;
    border-radius: 10%;
  }

  
  #scores {
    padding-top: 20px;
  }

  
  #getscorecard1, #getscorecard2, #showtotals {
    padding-bottom: 20px;
    position: relative;
  }

  #togglecard1, #togglecard2, #toggletotal {
    position: absolute;
    top: 0;
    right: 0;
  }

  #showtotals {
    display: none;
    min-width: 50%;
  }

  #totals-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    height: auto;
    flex-wrap: wrap;
    padding-bottom: 20px;
    padding-left: 30px;
  }

  .totalbox {
    height: auto;
    margin-right: 30px;
    margin-bottom: 30px;
    border: 4px solid purple;
  }

  .totalname {
    padding: 5px;
    font-size: 1.3em;
  }

  .totalvalue {
    font-size: 1.6em;
    background:#4e4d4d;
    color:#d0d615;
    padding: 0 20px;
    text-align: center;
  }

  #getplayerscores {
    display:none;
    max-width: 1200px;
  }
  
  .nameform, .scoreform {
    display: flex;
    flex-wrap: wrap;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    border: 2px solid pink;
  }

  .player, .playerscore {
    display: flex;
    flex: 1;
    margin: 10px;
    height: auto;
    min-height: 20px;
  }

  .player {
    max-width: 250px;
  }

  .playerscore {
    width: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nametag, .playertag {
    flex: 1;
    margin-right: 10px;
    text-align: right;
  }

  .playertag {
    font-size: 1.4em;
  }

  .nameinput, input[class^="holeplayers"] {
    flex: 2;
  }

  input[class^="holeplayers"] {
    text-align: center;
  }

  .round-container {
    position: relative;
    width: auto;
    min-height: 100px;
    border: 2px solid #e85cca;
    border-radius: 5%;
    box-shadow: inset 0 0 0.5em 0 #e85cca, 0 0 0.5em 0 #e85cca;
  }

  .holenum, .coursenum {
    font-size: 1.4em;
  }
  
  .thishole {
    font-size: 1.5em;
    color:#d0d615;
  }

  .numplayerslabel {
    padding-right: 10px;
  }

  .playerdetails {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .holesconfirmrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row wrap;
    padding: 10px;
    font-size: 1.4em;
  }

  .holesconfirmrow span {
    font-size: 1.5em;
    color:#ccff00;
  }

  .playerconfirmrow {
    display: flex;
    align-items: space-evenly;
    justify-content: space-evenly;
    flex-flow: row wrap;
    padding: 10px;
  }

  .confirmflex {
    display: flex;
    align-items: space-evenly;
  }

  .playerconfirmrow:nth-child(odd) {
    background:#4e4d4d;
  }

  .playerconfirmrow:last-child {
    margin-bottom: 40px;
  }

  .playerconfirmname {
    padding-right: 50px;
  }

  .playerconfirmname span{
    color:#e85cca;
  }

  .playerconfirmpar span{
    color:#d0d615;
  }
