/* Apply the primary color (Lush Green) to the background */
body {
    font-family: Arial, sans-serif;
    background-color: #4CAF50; /* Lush Green */
    color: white;
}

h1, h2 {
    text-align: center;  /* Ensures both are centered */
}
form {
    max-width: 400px;
    margin: 0 auto;
}

/* Apply the secondary color (Sand Beige) to form elements */
label {
    display: block;
    margin-top: 20px; /* Space above the button */  
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
}

input {
    margin-top: 20px; /* Space above the button */
    width: 94%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid #D2B48C; /* Sand Beige */
    background-color: #FFFFFF; /* Golf Ball White */
    color: #333;
}

/* Buttons with secondary color (Sand Beige) and hover effect */
button {
    width: 100%;
    margin-top: 20px; /* Space above the button */
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    background-color: #D2B48C; /* Sand Beige */
    color: #333;
    border: none;
    cursor: pointer;
}


button:hover {
    background-color: #B89970; /* Slightly darker Sand Beige for hover */
}

#holes-container {
    margin-top: 20px;
}

#results, #user-results, #all-results {
    margin-top: 20px;
}

#results-display {
    margin-top: 20px;
}

/* Style the select dropdowns */
.form-container select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background: #FFFFFF; /* Golf Ball White */
    border: 2px solid #D2B48C; /* Sand Beige */
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none; /* Removes default styles */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23D2B48C" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>'); /* Adjusted arrow color */
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 35px; /* Space for custom arrow */
}

/* Hover and focus effects for select */
.form-container select:hover,
.form-container select:focus {
    border-color: #B89970; /* Slightly darker Sand Beige */
    box-shadow: 0 0 8px rgba(210, 180, 140, 0.5);
}

/* Disabled select styling */
.form-container select:disabled {
    background-color: #e9ecef;
    border-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

/* Add spacing around buttons */
.form-container button {
    margin-top: 20px; /* Space above the button */
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    background-color: #D2B48C; /* Sand Beige */
    color: #333;
}
/* white submit button on OG */
.results-form button {
    margin-top: 20px;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #333;
    border: 2px solid #D2B48C;
}


header {
    background-color: #D2B48C; /* Sand Beige */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

/* Header buttons */
header button {   
    margin-top: 20px;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    background-color: #FFFFFF; /* Golf Ball White */
    color: #333;
    border: 2px solid #D2B48C; /* Sand Beige */
}

header button:hover {
    background-color: #F8F9FA; /* Lighter Golf Ball White */
    box-shadow: 0 0 8px rgba(210, 180, 140, 0.5);
}

/* Make links that act like buttons match button styles */
.button {
    display: inline-block;
    text-align: center;
    width: 94%;
    padding: 10px;
    background-color: #D2B48C; /* Sand Beige */
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
}

.button:hover {
    background-color: #B89970;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-buttons button {
    width: 48%; /* Ensures buttons are spaced evenly */
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    background-color: #D2B48C; /* Sand Beige */
    color: #333;
    border: 2px solid #B89970;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-buttons button:hover {
    background-color: #B89970;
    box-shadow: 0 0 8px rgba(210, 180, 140, 0.5);
}

/* Hole Display */
.hole {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for contrast */
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.hole h3 {
    color: #FFFFFF; /* Keep text white for contrast */
    font-size: 22px;
}

/* Adjusting Input Fields for Uniformity */
.hole input,
.hole select {
    width: 94%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 2px solid #D2B48C; /* Sand Beige */
    background-color: #FFFFFF; /* Golf Ball White */
    color: #333;
}

/* Hide second attempt inputs by default */
.hole label[for^="distance2"],
.hole label[for^="direction2"],
.hole input[id^="distance2"],
.hole select[id^="direction2"] {
    display: none;
}

/* Modal Background */
/*  
   Modal Background  
   .modal {  
       box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);  
       display: block;  
       position: fixed;  
       z-index: 1;  
       left: 50%;  
       transform: translate(-50%, -50%);  
       color: #333;  
       top: 50%;  
       width: 90%;  
       border-radius: 8px;  
       border: 2px solid #D2B48C;  
       max-width: 400px;  
       overflow: auto;  
   }  
*/  


/* Modal Content Box */
.modal-content {
    background-color: #D2B48C; /* Sand Beige */
    padding: 20px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Modal Heading */
.modal-content h2 {
    color: #4CAF50; /* Lush Green */
    font-size: 24px;
}

/* Modal Text */
.modal-content p {
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Bullet Points */
.modal-content ul {
    text-align: left;
    list-style-type: disc;
    padding-left: 20px;
    color: #333;
}

/* Button Styling */
.modal-content button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    background-color: #4CAF50; /* Lush Green */
    color: white;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.modal-content button:hover {
    background-color: #388E3C; /* Slightly darker Lush Green */
}

/* Hamburger Menu */
.hamburger {
    font-size: 24px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1001;
}

/* Dropdown Menu */
.menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 15px;
    background-color: #D2B48C; /* Sand Beige */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 150px;
    padding: 10px;
    text-align: left;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    padding: 10px;
    cursor: pointer;
    color: #333;
    font-weight: bold;
    transition: background 0.3s ease;
}

.menu li:hover {
    background-color: #B89970; /* Slightly darker Sand Beige */
    border-radius: 8px;
}

/* drill to game */
.drillSection {
  scroll-margin-top: 724px; /* Adjust this value based on your fixed header's height */
}

/* make logout on results look the same*/
/* Common button styles */
#play-again-link,
#send-email-button,
#logout-button {
    display: block; /* Makes the link behave like a block-level element */
    width: 100%; /* Ensures the element stretches across the full width */
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    background-color: #D2B48C; /* Sand Beige */
    color: #333;
    text-decoration: none; /* Removes underline from link */
    text-align: center;
    cursor: pointer;
    border: none;
}

/* Hover effect */
#play-again-link:hover,
#send-email-button:hover,
#logout-button:hover {
    background-color: #B89970; /* Slightly darker Sand Beige */
    box-shadow: 0 0 8px rgba(210, 180, 140, 0.5);
}

ul.custom-bullets {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
}

ul.custom-bullets li {
    position: relative;
    padding-left: 30px; /* Adjust based on image size */
}

ul.custom-bullets li::before {
    content: '';
    display: inline-block; /* Ensure the pseudo-element is rendered */
    background-image: url('golf-ball-icon.png'); /* Path to your image */
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px; /* Set to image width */
    height: 20px; /* Set to image height */
    transform: translateY(-50%);
}

/* Additional styling for nested lists */
ul.custom-bullets ul {
    padding-left: 20px; /* Indent nested list */
}

ul.custom-bullets ul li {
    padding-left: 30px; /* Maintain padding for nested list items */
}

ul.custom-bullets ul li::before {
    background-image: url('golf-ball-icon.png'); /* Same image for nested bullets */
    /* Other properties remain the same */
}

.div-space {
    background-color: #f9f9f9; /* Light background for each section */
    padding: 20px; /* Add padding inside each section */
    margin-bottom: 20px; /* Space between the sections */
    border-radius: 8px; /* Rounded corners for each section */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Slight shadow for separation */
}

/* Modal styles */
#modal2 {
    display: block; /* Show modal by default */
    position: fixed;
    z-index: 1000; /* Sit on top of other content */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust to true center */
    color: #333;
    top: 50%;
    width: 90%;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #D2B48C; /* Sand Beige */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background (White with 90% opacity) */
    max-width: 400px;
    overflow: auto;
}

/* Full-screen modal overlay */
#statsContent {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1; /* Sit on top */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust to true center */
    color: #333;
    top: 50%;
    width: 90%;
 	padding: 20px;
    border-radius: 8px;
    border: 2px solid #D2B48C; /* Sand Beige */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #FFFFFF; /* Golf Ball White */
    max-width: 400px;
    overflow: auto;
}



