.custom-input {
  border-radius: 10px;
  background-color: rgba(0,0,0,0.3);
  border: 1px solid #ccc;
  padding: 10px;
  color: #ffffff;
  width: 300px;
  margin-top: 50px;
}

.custom-input:focus {
  outline: none;
  border-color: rgba(0, 128, 0, 0.5);
  box-shadow: 0 0 5px rgba(0, 128, 0, 0.5);
}

.custom-bg {
  background-color: rgba(255,255,255,0.2);
  border-radius: 10px;
  color: rgb(255,255,255);
  padding: 5px;
  /*Optional: add padding for better appearance;*/
}

/* Custom styles for the options within the select */

.custom-bg option {
  background-color: rgba(0,0,0,0.3);
  color: black;
}

.lowest-score {
  background-color: rgba(0,128,0,0.9);
  color: white;
}

.leaderboard-header {
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 15px;
  overflow: hidden;
}

th, td {
  border: 1px solid #ffffff;
  padding: 8px;
  text-align: center;
  background-clip: padding-box;
  background-color: rgba(255, 255, 255, 0.1);
}

th {
  background-color: rgba(255, 255, 255, 0.5);
}

/* Apply border-radius to the outermost corners only */

table tr:first-child th:first-child {
  border-top-left-radius: 15px;
  border-left: none;
  border-top: none;
}

table tr:first-child th:last-child {
  border-top-right-radius: 15px;
  border-right: none;
  border-top: none;
}

table tr:last-child td:first-child {
  border-left: none;
  border-bottom: none;
}

table tr:last-child td:last-child {
  border-right: none;
  border-bottom: none;
}

/* Ensure no extra borders on the last row cells except the corner ones */

table tr:last-child td:not(:first-child):not(:last-child) {
  border-bottom: none;
}

/* Ensure no extra borders on the first row cells except the corner ones */

table tr:first-child th:not(:first-child):not(:last-child) {
  border-top: none;
}

/* Remove borders from the first and last cells in each row */

table tr td:first-child {
  border-left: none;
}

table tr td:last-child {
  border-right: none;
}

/* Remove borders from the first and last cells in the header row */

table tr:first-child th {
  border-top: none;
}

table tr:first-child th + th {
  border-left: none;
}

/* Remove borders between header cells */

table tr:first-child th + th {
  border-left: none;
}

/* Remove vertical borders between header cells */

table tr:not(:first-child) td:first-child, table tr:not(:last-child) td:last-child {
  border-left: none;
  border-right: none;
}

/* Remove horizontal borders between first and last cells */

table tr:not(:first-child) td:first-child, table tr:not(:last-child) td:last-child {
  border-left: none;
  border-right: none;
}

.total {
  font-weight: bold;
}

.group-heading {
  text-align: center;
  margin: 20px 0;
}

#leaderboard-container {
  display: none;
  margin-bottom: 20px;
}

#leading-team {
  margin-top: 10px;
  font-weight: bold;
}

#scorecard-container, #leaderboard-container, #initial-inputs, #toggle-buttons {
  margin: 0 10px;
}

#toggle-buttons button {
  margin: 5px;
}

#buttons-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

#group-buttons-container button {
  margin: 5px;
}

#dropdown-container {
  margin: 5px;
  display: block;
}

#group-dropdown {
  width: 100%;
  padding: 10px;
  border-radius: 15px;
  border: 1px solid #ccc;
  background-color: rgba(255,255,255,0.3);
  color: #000;
}

/* Ensure the dropdown options are visible */

#group-dropdown option {
  background-color: rgba(0,0,0,0.3);
  color: #000;
}

/* Set border-radius for all buttons */

button {
  border-radius: 10px;
  padding: 10px 20px;
  background-color: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: rgba(255,255,255,0.5);
}

/* Ensure the scorecard dropdowns maintain their size */

.scorecard-dropdown {
  width: 45px;
}

@media (max-width: 600px) {
  table {
    display: table;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  th, td {
    display: table-cell;
    text-align: center;
    padding: 0px;
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  td select.scorecard-dropdown {
    width: 40px;
    box-sizing: border-box;
    padding: 2px;
    margin: 2px 0;
  }
}

@media (max-width: 600px) {
  #dropdown-container {
    display: block;
    /*width: 100%;*/
    margin-top: -63px;
  }
}

@media (max-width: 600px) {
  #group-heading-container {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  #group-dropdown {
    width: auto;
    padding: 0px;
    height: 25px;
    border-radius: 15px;
    border: 1px solid #ccc;
    background-color: rgba(255,255,255,0.5);
    color: #000;
    margin-right: 10px;
    /*margin-top: -100px;*/
  }
}

/* Ensure the dropdown options are visible */

@media (max-width: 600px) {
  #group-dropdown option {
    background-color: rgba(0,0,0,0.3);
    color: #000;
  }
}

@media (max-width: 600px) {
  #scorecard-heading {
    margin-bottom: 5px;
  }
}

@media (max-width: 600px) {
  .group-heading {
    margin-top: -70px;
    margin-bottom: 5px;
  }
}

@media (max-width: 600px) {
  h1 {
    /*margin-bottom: -100px;*/
  }
}

/* Center the Golf Scorecard heading */

h1 {
  text-align: center;
}

/* Hide group headings on mobile devices */

@media (max-width: 600px) {
  .group-heading {
    display: none;
  }
}

/* Adjust the scorecard container margin/padding for mobile devices */

@media (max-width: 600px) {
  #scorecard-container {
    margin-top: -30px;
  }
}

@media (max-width: 600px) {
  #initial-inputs {
    margin-top: 10px;
  }
}

@media screen and (max-width: 600px) {
  #mainNav {
    background: rgba(128,0,0,0) !important;
    position: absolute;
    margin-top: -25px;
    height: 0px;
    width: 0px;
    /*display: none;*/
    /*height: 1px;*/
    /*width: 95%;*/
    /*padding: 10px;*/
  }
}

@media screen and (max-width: 600px) {
  #mainNav:focus-within, #mainNav .dropdown-menu.show {
    /*background: rgb(128, 0, 0)!important;*/
  }
}

@media screen and (max-width: 600px) {
  #mainNav img {
    display: none;
    /*max-width: 40px;*/
    /*height: auto;*/
  }
}

@media screen and (max-width: 600px) {
  #mainNav .navbar-brand span {
    display: none;
    /*font-size: 24px;*/
    /*margin-left: 10px;*/
  }
}

@media screen and (max-width: 600px) {
  #mainNav .nav-link {
    /*font-size: 16px;*/
  }
}

#navcol-1 {
  background: #800000;
}

