/* General styles */

*, *:before, *:after{
    box-sizing: border-box;
    padding: 0;
    margin:0;
}

html{
    background-color: #ccc;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
}

body {
    font-family: 'Kanit', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    min-width:20em;
    line-height: 1.6;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6125em 1.25em;
    background-color: #333;
    color: white;
}

.rules-list{
    text-align: left;
    padding: 1em;
    line-height: 1.8rem;
    max-width: 60ch;

}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;

}

.login-div {
    display: flex;
    gap: 1.3125em;
    border: 2px solid white;
    border-radius: 20px;
    padding: 0 1rem;
}

.login-div:hover{
    background-color:rgba(244, 240, 240, 0.3);
}

.loss{
    background-color: red;
    color: white;
    text-shadow: 1px 1px 1px #555;
}

.win{
    background-color: lime;
    color:white;
    text-shadow: 1px 1px 1px #555;
}

.mw350{
    max-width: 21.875em;
}

.shade{
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ffcc00;
}

.container {
    /* padding: 1.25em; */
    display: flex;
    flex-direction: column;
    margin-left:auto;
    margin-right: auto;
    /* justify-content: center;
    align-items: center; */
}

.center{
    justify-content: center;
    align-items: center;
}


/* login and register styles */
.register-form{
    height:75vh;
    width:80%;
}

.register-input{
    padding: .5em 1em;
    margin-bottom: 1em;
}

.wd80{
    width:65%;
}

.field-div{
    display:flex;
    flex-direction: column;
}

.input-div{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
.field-input{
    margin-left: auto;
    margin-right: auto;

}

.field-error{
    color:red;
}

.show-btn{
    padding: .7em .5em;
    font-size: .7rem;
}

button{
    /* margin-bottom: 1em; */
    padding: .5em;
}

.button-div{
    max-width: 200px;
    margin-top: 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}



/* Navigation block styles */

.nav-block {
    display: flex;
    gap: 1em;
    margin-bottom: 1.25em;
    justify-content: center;
    margin-top: 1em;
}

.nav-block-link {
    text-decoration: none;
    color: #007BFF;
    font-weight: 500;
}

.nav-block-link:hover {
    text-decoration: underline;
}

.nav-link-active{
    color: #007BFF;
    text-decoration: none;
}

/* Section styles */

/* section {
    margin-bottom: 1.25em;
    max-width: 20em;
} */

section {
    /* max-width: 20em; */
    margin: 1em auto;
    padding: 1em;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    font-size: 1.75rem;
    margin-bottom: .625em;
}

.center{
    text-align: center;
}

h2{
    text-align: center;
}

h3 {
    font-size: 1.375;
    margin-bottom: .3125em;
}


.m-ba{
    margin: 2em 0;
}



.flex-c{
    display: flex;
    flex-direction: column;
}

.time{
    font-size: .7rem;
}


.logout-btn{
    all: unset;
    color:white;
    background-color: transparent;
    outline: none;

}

.logged-user{
    background-color: #bbb;
    color: white;
    text-align: right;
    padding-right: 2em
}

.week-nav{
    min-width: 18.75em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75em;
    margin-bottom: 2em;
}

.week-nav span{
    width:100%;
    color: white;
    background-color: #555;
    text-align: center;
}
.week-nav a{
    min-width: 2ch;
}

.register-btn{
    border: none;
    text-shadow: 1px 1px 3px #333;
    background-color: hsla(39, 100%, 50%, 1);
    color: white;
    border-radius: 1rem;
    padding: .5rem 1rem;
    box-shadow: 1px 1px 3px #333;
}

.register-btn:hover{
    background-color: hsla(39, 100%, 50%, .7);
    text-shadow: 1px 1px 0px #222;

}

.register-btn:click{
    box-shadow: 0px 0px 0px white ;
}

/* Responsive styles */

@media (max-width: 76.5em) {
    .header {
        /* flex-direction: column; */
        align-items: flex-start;
    }

    .nav-block {
        flex-direction: row;
        gap: .625em;
    }

    .nav-block-link {
        font-size: 1.125rem;
    }

    h1 {
        font-size:1.5rem;
    }

    h3 {
        font-size: 1.25em;
    }

    .login-div {
        margin-top: .625em;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25em;
    }

    .nav-link {
        font-size: .875rem;
    }

    .nav-block-link {
        font-size: .875rem;
    }

    h1 {
        font-size: 1.375rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    .header {
        padding: .625em;
    }

    .board{
        font-size: x-small;
    }
}


/* Games Section Styles */

#games {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); Responsive columns */
    gap: 1.25em; /* Space between grid items */
    padding: 1.25em;
}

.game {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: white; /* Background color for game cards */
    border: 1px solid #ddd; /* Border around each game card */
    border-radius: .5em; /* Rounded corners */
    padding: 1.3125em;
    text-align: center;
    text-decoration: none; /* Remove default link styling */
    color: black; /* Text color */
    transition: transform 0.3s, box-shadow 0.3s; /* Hover effects */
}

.game:hover {
    transform: translateY(-.3125em); /* Slight lift on hover */
    box-shadow: 0 4px .625em rgba(0, 0, 0, 0.2); /* Shadow on hover */
}

.game-team {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1em;
    margin-bottom: .625em; /* Space between teams and date */
}

.game-team-name{
    min-width: 30px;
}
.game-points{
    min-width: 30px;
}

.game-team img {
    margin-right: .625em; /* Space between image and text */
}

.game-date {
    font-size: .875rem; /* Size for the date */
    color: #555; /* Color for the date text */
}

.checkmark{
    display: flex;
    width:100%;
    justify-content: center;
    gap:1em;
    margin-top: .5em;
    background-color: #ddd;
}

/* Responsive adjustments */
@media (max-width: 30em) {
    #games {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Adjust columns for smaller screens */
    }
}

@media (max-width: 480px) {
    .game {
        padding: .625em; /* Smaller padding for mobile */
    }

    .game-date {
        font-size: .75rem; /* Smaller date text for mobile */
    }
}

/* Picks Page --all picks */

.pickinfo-game{
    background-color: #bbb;
    color: white;
    min-width: 18.75em;
    padding-left: .25em;
}

.pickinfo-div{
    display:flex;
    align-items: center;
    justify-content: center;
    gap:1em;

}

.pickinfo-details{
    display: flex;
    align-items: center;
    gap:1em;
    min-width: 12.3125em;
}

.x-button{
    border:none;
}


/*  pick form styles  */

#pick-form{
    padding: 1em;

}

#pick-form p{
    display: flex;
    justify-content: center;
    padding: 1em 0;
    font-size: 2rem;
    font-weight: 400;
    font-family: 'Kanit', sans-serif;
}

.hidden-checkbox{
    display: none
}

.pick-info{
    display: flex;
    justify-content: center;
}

.pick-info label{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
}

.pick-info p{
    display: flex;
    align-items: center;
    margin: 0 .5em;
    font-size: 2rem;
    font-weight: 700;
}

.team-shortname{
    background-color: #000073;
    color: white;
    font-family: 'Kanit', sans-serif;
    width: 5em;
    text-align: center;
    padding: .5em 1em;
    cursor: pointer;
    border-radius: 1em;
}

.team-shortname:hover, .team-shortname:focus, .team-shortname:active{
    background-color: orange;
    box-shadow:  1px 1px #333;
}

.team-logo{
    width: 7.3125em;
    height: 7.3125em;
    object-fit: cover;
}

.pick-image{
    display: flex;
    justify-content: center;
    min-height: 117px;

}

.wager-select{
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Kanit', sans-serif;
    gap: 1em;
    margin-top: 1em;
    margin-bottom: 2em;
}

.wager-select select{
    padding: .5em 1em;
}

#points-select .button{
    height:42px;
}

.bottom-div{

    display: flex;
    justify-content: center;
    gap: 1em;
}

.cancel-button, .delete-button{
    padding: .5rem 1rem;
    color: white;
    font-family: 'Kanit', sans-serif;
    border-radius: .625em;
    font-size: 1rem;

}

.cancel-button{
    background-color: #000073;
    border: 1px solid #000073;
    text-decoration: none;
}

.delete-button{
    background-color: #ff0000;
    border: 1px solid #ff0000;

}

.cancel-button:hover, .delete-button:hover{
    border: 1px solid white;
}

.cancel-button:active, .delete-button:active{
    background-color: orange;

}

/* Bigboard Styles */


.board{
    display: flex;
    overflow: scroll;
    width: 100%;
    max-width: 121.25em;
    position: relative;
    margin-left: 1em;
    /* justify-content: center;
    align-items: center; */
}


.board-left{
    position: sticky;
    background-color: white;
    left: 0;
    border-radius: .625em 0 0 .625em;
    padding-left: 1em;
    /* padding-right: 1em; */
    border: 1px solid black;
}

.board-right{
    background-color: white;
    border-radius: 0 .625em .625em 0;
    padding-right: 1em;
    border: 1px solid black;
}

.left-headings, .right-headings, .row, .lb-row-right{
    display: flex;
}

.name-span, .data-name-span{
    min-width: 10ch;
}

.total-span, .data-total-span{
    min-width: 5ch;
    text-align: right;
    padding-right: 1em;
}

.miss-span, .data-missed-span{
    min-width: 5ch;
    text-align: right;
    margin-right: 1em;
}



.head-span, .data-pick-span, .lb-wk{
    min-width: 57px;
    max-width: 57px;
    text-align: center;
}

.current-user{
    background-color: #ffa50050;
}

.a-left{
    text-align: left;
}




/* dashboard games styles */

.gm{
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
    text-decoration: none;
}

.gm:hover{

    box-shadow: 3px 3px 5px #555 ;

}


.game-card{
    border: 1px solid black;
    padding: 0;

}

.game-card-week, .game-card-game, .game-card-team{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding: .25rem 1rem;
    /* flex-direction: column; */
}

.game-card-week{
    background-color: #000073;
    color: #bbb;
}






/* dashboard edit game styles */

.label-input-grp{
    display: flex;
    align-items: center;
    margin-bottom: .5em;
}

.label-input-grp label{
    width: 150px;
    text-align: right;
    margin-right: 1em;
}

.label-input-grp input{
    flex: 1;
    padding: .3125em;
}



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

.news{
    display: flex;
    flex-direction: column;
}
.winners{
    display: grid;
    grid-template-columns: 100px 200px;
    gap:2em;
    min-width: 300px;
}

.hide{
    display: none;
}


.thanks{
    max-width: 60ch;
    text-align: justify;
    text-justify: inter-word;
}

.games-edit-btn, .games-page-btn{
    margin-top: 1rem;
    min-width: 20rem;
    text-decoration: none;
    padding: .25rem 1rem;
    background-color: #000073;
    color: #bbb;
}

.mt1rem{
    margin-top: 1rem;
}

/* ################################################################################### */
/* ################################################################################### */
/* ################################################################################### */
/* ################################################################################### */
/* ################################################################################### */
/* ################################################################################### */



/* GOLF STYLES */


.golf-entry-btn{
    text-decoration: none;
    margin: 2rem 1rem 1rem 1rem;
    padding: .5rem 1rem;
    background-color: #000073;
    color: white;
    border-radius: 1rem;
    box-shadow: 2px 2px 3px #777;
    border: 2px solid orange;
}


.golf-entry-btn:hover{
    color: orange;
}

.golf-entry-btn:active{
    background-color: #007BFF;
    box-shadow: 0px 0px 3px #777;
}


.form-check{
    display: flex;
    width: 100%;
    margin-bottom: 1rem;
    cursor: pointer;
}

input[type="checkbox"]{
    transform: scale(1.5);
    margin-right: 2rem;
}

.selections{
    min-height: 7rem;
    border: 1px solid black;
    width: 20em;
    margin-bottom: 2em;
}

.golf-logos{
    height: 15em;
    width: 15em;
    object-fit: contain;
    margin: 1em;
}

.schedule{
    display: flex;
}


.golf-logo{
    object-fit: cover;
}

.schedule-info{
    display:flex;
    flex-wrap: wrap;
    flex-direction: column;
}

.pool-card{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.golfer-list, .active-golfer-list{
    margin: 1em 0;
    width: 95vw;
    padding-bottom: 2em;

}

.golfer-search{
    width: 21em;
    padding: .5rem 1rem;
}


.current-standings{
    display: flex;
    justify-content: space-between;
    min-width: 20em;
}



/* Basic link styling */
.golfer-link, .active-golfer-link {
    display: block; /* Make the entire area clickable */
    max-width: 20em;
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit text color from parent */
    margin-bottom: .625em; /* Add some spacing between links */
    border: 1px solid #ccc; /* Add a subtle border */
    border-radius: .3125em; /* Rounded corners */
    overflow: hidden; /* Prevent content from overflowing */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    margin-left: auto;
    margin-right: auto;
  }

  .golfer-link:hover, .active-golfer-link:hover {
    background-color: #d8ecf6; /* Light background on hover */
    color:#007BFF;
    box-shadow: 0 2px .3125em rgba(0, 0, 0, 0.1); /* Subtle shadow on hover */
  }

  /* Golfer Information Container */
  .golfer-info, .active-golfer-info {
    padding: .625em;
  }

  /* Primary Information (Name, Score, Thru) */
  .golfer-info_primary, .active-golfer-info_primary {
    display: flex;
    justify-content: space-between; /* Distribute space evenly */
    align-items: center; /* Vertically align items */
    font-size: .9em; /* Slightly larger font size */
    font-weight: 500; /* Semi-bold font weight */
    margin-bottom: .3125em; /* Add a little space below */
  }

  .golfer-info_primary span, .active-golfer-info_primary span {
    padding: .3125em .5em; /* Add some padding to each span */
    border-radius: 3px; /* Slightly rounded corners */
  }

  .golfer-name, .active-golfer-name {
    font-weight: bold; /* Make golfer name bolder */
  }

  /* Secondary Information (Round Scores) */
  .golfer-info_secondary {
    display: flex;
    flex-wrap: wrap; /* Allow spans to wrap to the next line */
    gap: .3125em;
    font-size: 0.8em;
    color: #666; /* Slightly muted color */
  }

  .golfer-info_secondary span {
    padding: 3px .3125em;
    background-color: #eee;
    border-radius: 3px;
  }

  /* Additional Information (Active Status) */
  .golfer-info_third {
    display: flex;
    flex-wrap: wrap; /* Allow spans to wrap to the next line */
    gap: .3125em;
    font-size: 0.9em;
    color: #666; /* Slightly muted color */
    margin-top: .3125em;
  }

  .golfer-info_third span {
    padding: 3px .3125em;
    background-color: #eee;
    border-radius: 3px;
  }

.golf-score{
    min-width: 3ch;
}


.golfer-record {
    display: flex;
    flex-direction: column; /* Stack each label-input pair vertically */
    gap: .625em; /* Add spacing between each row */
}

.golfer-record div {
    display: flex;
    align-items: center; /* Align label and input vertically */
    gap: .625em; /* Add spacing between label and input */
}

.golfer-record label {
    width: 80px; /* Set a fixed width for labels to align them */
    text-align: right; /* Align text of labels to the right */
}

.golfer-record input {
    flex: 1; /* Allow inputs to grow and take up remaining space */
    padding: .5em 1em; /* Add some padding for better usability */
    /* margin: .5em 0; */
    border: 1px solid #ccc; /* Add a border for inputs */
    border-radius: 4px; /* Slightly round the corners of inputs */
}

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


/* Golf Leaderboard styles */


/* Entry details container */
.entry-details, .golfer-details, .golf-details {
    background-color: #ffffff;
    border-radius: .5em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.25em;
    overflow: hidden;
    width: 20em;
}

/* Entry summary (collapsed view) */
.entry-summary, .golfer-summary, .golf-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3125em 1.25em;
    cursor: pointer;
    background-color: #f8f8f8;
    transition: background-color 0.3s ease;
}

.entry-summary:hover, .golfer-summary:hover {
    background-color: #e8e8e8;
}

.golf-summary:hover{
    background-color: #666;
}

.entry-player-name {
    /* font-weight: bold; */
    font-size: 1.2rem;
    min-width: 13rem;
    text-align: left;
}

.entry-player-score {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}

/* Entry selections (expanded view) */
.entry-selections {
    padding: 1.3125em 1.25em;
}

.selected {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    padding: .625em 0;
    border-bottom: 1px solid #eee;
}

.selected:last-child {
    border-bottom: none;
}

.selected-name {
    font-size: 1rem;
}

.selected-score {
    min-width: 4ch;
    font-size: 1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-left:auto;

}

.selected-thru{
    min-width: 3ch;
    font-size: 1rem;
    margin-left: 1em;


}

/* Custom styling for the disclosure triangle */
details summary::-webkit-details-marker,
details summary::marker {
    display: none;
}

details summary:before {
    content: '▶';
    margin-right: .625em;
    transition: transform 0.3s ease;
}

details[open] summary:before {
    transform: rotate(90deg);
}

/* tournament board styles */

.golfer-tournament-info{
    display: flex;
    flex-direction: row;
    padding-left: 1rem;
}

.round{
    padding-right: 1rem;
}

.tournament-golfer {
    text-align: left;
    min-width: 14rem
}

.thru, .total-score{
    min-width: 3ch;
}

.thru{
    padding-left: 1rem;
}

.total-score{
    background-color: black;
    color: white;
}

.inverted{
    width: 18em;
    background-color: #333;
    color:#eee;
    margin-bottom: 1em;

}

/* Pools Section */
.pools {
    margin-top: 1.25em;
}

.schedule {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.3125em;
    padding: 1.3125em;
    background-color: #fff;
    border-radius: .5em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left; /* Override center alignment */
}

.golf-logo {
    margin-right: 1.25em;
    border-radius: .3125em; /* Add a subtle border-radius */
}

.schedule-info span {
    display: block;
}

.schedule-info {
    align-items: center;
}

.schedule-info span:first-child {
    font-weight: bold;
    font-size: 1.2em;
}

.golf-details{
    text-align: left;
}

.golf-summary{
    background-color: #333;
    color: #eee;
    font-weight: 500;
    font-size: 1.1rem;
}

.golf-details li{
    padding: .5rem;
}

/* Typography */
h1, h2, h3 {
    margin-bottom: 1.3125em;
    color: #222;
}

p {
    margin-bottom: .625em;
}

/* Utility Class for Centering (override) */
.center {
    text-align: center;
}

/* Responsive Design (Optional) */
@media (max-width: 76.5em) {
    .container {
        width: 95%;
    }

    .schedule {
        flex-direction: column; /* Stack items vertically on smaller screens */
        text-align: center;
    }

    .golf-logo {
        margin-right: 0;
        margin-left: 0;
        margin-bottom: .625em;

    }

    .login-div {
        flex-direction: column; /*Stack elements on smaller screens*/
        text-align: center; /*Center elements horizontally*/
    }
}




