/* Make space for navbar*/
body 
{
    padding-top: 56px;
}

/* Size for page Name */
nav .navbar-brand
{
    font-size: 1.75em;
    font-family: 'Cabin Sketch', Arial, Helvetica, sans-serif;
}

/* Colors for Nav Bar */
nav .navbar-brand .green
{
    color: #2e944b;

}

nav .navbar-brand .group_title
{
    color: #2a2c2b;
    font-style: italic;
}

.form-control:focus {
    border-color: #28a745 important!;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) important!;
} 

.table-right-align {
    text-align: right;
}

#portfolio {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

#player_table_top {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

#bets-data-display {
    width: 99%;
    margin-left: auto;
    margin-right: auto;
}

#player_table {
    vertical-align: middle;
}

#event_team_table {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

td span {
    display: inline-block;
    margin-right: 5px;
}

/* #scorecard_table {
    border-spacing: 0;
} */

#scorecard_header {

    font-size: small;
    /* border: 1px solid #bbbbbb; */
}

#scorecard_body {

    font-size: smaller;
    /* border: 1px solid #bbbbbb; */
}

#scorecard-table-div .table {
    border-collapse: collapse;
}

#scorecard-table-div .table th, 
#scorecard-table-div .table td {
    border: 1px solid lightgrey;
}

.scorecard_cell {
    width: 2em;
    text-align: center;
}

input[type="number"].scorecard_cell::-webkit-inner-spin-button,
input[type="number"].scorecard_cell::-webkit-outer-spin-button {
     -webkit-appearance: none;
     margin: 0;
}


#scrollable-table-scorecard {
    width: 95%;
    overflow-x: auto;
}


#scrollable-table-scorecard .table thead th:first-child,
#scrollable-table-scorecard .table tbody td:first-child {
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 1;
}

#scorecard-table-div {
    width: 98%;
    overflow-x: auto;
}


#scorecard-table-div .table thead th:first-child,
#scorecard-table-div .table thead #sticky-pound,
#scorecard-table-div .table tbody td:first-child {
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 1;
}

.round-header {
    background-color: #315139; 
    color: white; 
    border-top: 2px solid #6c757d; 
    border-bottom: 2px solid #164426; 
    font-weight: bold; 
}

.round-header-text {
    color: white !important; 
}

.match-header {
    background-color: #e1ece3; 
    color: white; 
    border-top: 1px solid #d4d4d4; 
    border-bottom: 1px solid #d4d4d4; 
    font-weight: bold; 
}

.round-footer {
    margin-bottom: 10px; 
    border-bottom: 2px solid #000; 
}

#payout-result {
    font-size: 4em;
    font-weight: bold;
}

#bet-results-head {

    font-size: small;
    border: 1px solid #bbbbbb;
}

#bet-results-body {

    font-size: smaller;
    border: 1px solid #bbbbbb;
}

#course-handi-head {

    font-size: small;
    border: 1px solid #bbbbbb;
}

#course-handi-body {

    font-size: smaller;
    border: 1px solid #bbbbbb;
}


.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.form-control.mx-auto.w-auto:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 0, 0.25);
}

.custom-checkbox {
    transform: scale(1.5);
}


@media (max-width: 700px) {
    td span {
        display: block;
        margin-bottom: 10px;
    }

    input #player_name {
        width: 95%;
    }
}

.landing-hero {
    max-width: 1100px;
    border-radius: 32px;
    padding: 48px 32px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(135deg, #163529 0%, #244a3a 55%, #3b6d55 100%);
    color: #f5efe3;
    display: grid;
    gap: 24px;
    text-align: left;
    box-shadow: 0 24px 60px rgba(13, 29, 22, 0.24);
}

.landing-kicker {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(242, 199, 121, 0.16);
    color: #f2c779;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-copy h1,
.landing-card h2 {
    font-family: Georgia, "Times New Roman", serif;
}

.landing-copy h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 0.94;
    margin: 18px 0 16px;
}

.landing-copy p,
.landing-card p {
    font-size: 1.05rem;
    color: rgba(245, 239, 227, 0.82);
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.landing-stat-panel {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.landing-stat,
.landing-card {
    border-radius: 24px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-align: left;
}

.landing-stat small {
    display: block;
    color: rgba(245, 239, 227, 0.68);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.landing-stat strong {
    font-size: 1.15rem;
}

.landing-grid {
    max-width: 1100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.landing-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(19, 43, 33, 0.08);
    box-shadow: 0 18px 40px rgba(24, 43, 33, 0.08);
}

.landing-card h2 {
    margin: 16px 0 12px;
    color: #153224;
}

.landing-card p {
    color: #4b5e54;
}

.auth-shell {
    max-width: 1080px;
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.auth-card,
.auth-sidecard {
    text-align: left;
    border-radius: 28px;
    padding: 32px 26px;
    box-shadow: 0 18px 40px rgba(24, 43, 33, 0.08);
}

.auth-card {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 28%),
        linear-gradient(145deg, #17392d 0%, #254a3d 58%, #315a4a 100%);
    color: #f5efe3;
}

.auth-card h1,
.auth-sidecard h2 {
    font-family: Georgia, "Times New Roman", serif;
}

.auth-card h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 0.96;
    margin: 16px 0 12px;
}

.auth-card p {
    color: rgba(245, 239, 227, 0.84);
    max-width: 34rem;
}

.auth-sidecard {
    background: #f4efe6;
    border: 1px solid rgba(23, 50, 36, 0.08);
}

.auth-sidecard h2 {
    margin: 16px 0 12px;
    color: #173224;
}

.auth-sidecard p {
    color: #526357;
    margin-bottom: 18px;
}

.auth-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    max-width: 32rem;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: inherit;
}

.auth-field .form-control {
    width: 100%;
    max-width: none;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(23, 50, 36, 0.18);
}

.auth-card .form-control {
    background: rgba(255, 255, 255, 0.96);
}

@media (min-width: 900px) {
    .landing-hero {
        grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
        align-items: end;
    }

    .auth-shell {
        grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
        align-items: stretch;
    }
}
