html {
    font-size: 62.5%; /* base font size, then use rem units eg 1.6 = 16px 1=10px etc*/
}

body {
    margin: 0;
    margin-top: 2rem;
    font-family: Calibri, Verdana, Tahoma, Arial, sans-serif;
    font-weight: normal;
    transition: filter 0.3s ease;
    width: 100%;
    font-style: normal;
    color: #2b2b2b;
}

/* Toggle Button hoop (Top Right) */
.menu-toggle {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    width: 3rem;
    height: 3rem;
    background: #dadada;
    color: #1b1b1b;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2000;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: #04AA6D;
    color: #ffffff;
}

/* Off‑Canvas Menu */
.offcanvas-menu {
    position: fixed;
    top: 0;
    right: -260px; /* Hidden off-screen */
    width: 260px;
    height: 100%;
    background: #1a1a1a;
    color: #1b1b1b;
    padding-top: 80px;
    transition: right 0.35s ease;
    z-index: 1500;
    box-shadow: -4px 0 12px rgba(0,0,0,0.4);
}

.offcanvas-menu a {
    display: block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 1.5rempx;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.offcanvas-menu a:hover {
    background: #333;
}

/* Background overlay when menu is open */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1400;
}

/* When menu is open */
.menu-open .offcanvas-menu {
    right: 0;
}

.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
}

.content {
    padding: 10px; /*20px*/
}

/* Header image container */
.mgs-header-image {
    width: 100%;
    height: 5rem; /* 80px */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5; /* optional placeholder background */
    border-radius: 4px;
    position: fixed;
}

/* The image itself */
.mgs-header-image img {
    width: 100%;
    height: 5rem; /* 80px */
    object-fit: fill;
    border-radius: 4px;
    position: fixed;
}


/* latest enhancement */

/* Global base scaling */
html {
    font-size: 16px; /* desktop default */
}

/* Mobile: larger, more readable text */
@media (max-width: 600px) {
    html {
        font-size: 18px; /* increases all rem-based text */
    }

    body {
        line-height: 1.6;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p, a, li, label {
        font-size: 1.1rem;
    }

    /* Menu items scale up */
    .offcanvas-menu a {
        font-size: 1.2rem;
        padding: 18px 25px;
    }

    /* Form fields scale up */
    form input,
    form textarea,
    form button {
        width: 100%;
        font-size: 1.1rem;
        padding: 14px;
    }

    /* Header image spacing */
   /* .mgs-header-image {
        padding: 6px 0;
    }*/
}

.offcanvas-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offcanvas-menu li {
    margin: 0;
    padding: 0;
}

.offcanvas-menu .submenu {
    display: none;
    padding-left: 15px;
}

.offcanvas-menu li.open > .submenu {
    display: block;
}

.has-submenu > a {
    cursor: pointer;
}

/* images */
.image-action {
  border: 0px solid #ddd;
  border-radius: 2px;
  padding: 2px;
  max-width: 20px;
  max-height: 20px;
}

.image-action:hover {
  box-shadow: 0 0 1px 1px rgba(0, 140, 186, 0.5);
}

/* tooltips */
.tooltip {
    position: relative;
    cursor: help;
    display: inline-block;
}


.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 9999;
}


/* Responsive forms */

* {
  box-sizing: border-box;
}

.responsive-form {
  xmax-width: 600px;
  max-width: 800px;
  width: 100%;
  border-radius: 6px;
  border: 1px solid #929292;;
  background-color:  #f8f8f8;
  padding: 20px;
  color: #6e6e6e;
}

form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-radius: 6px;
  color: #4d4d4d;
}

label {
  min-width: 48%;
  margin-bottom: 10px;
  color: #4d4d4d;
  font-size: 1rem;
}

input[readonly] {
  min-width: 45%;
  margin-bottom: 2px;
  border: 0px solid #929292;
  background-color: #ddd;
  border-radius: 4px;
  padding: 2px;
  color: #4d4d4d;
  pointer-events: none; 
}

input[type=text], select {
  min-width: 45%;
  margin-bottom: 2px;
  border: 1px solid #929292;
  border-radius: 4px;
  padding: 2px;
  color: #4d4d4d;
  font-size: 1rem;
}

input[type=select], select {
  min-width: 45%;
  margin-bottom: 2px;
  border: 1px solid #929292;
  border-radius: 4px;
  padding: 2px;
  color: #4d4d4d;
  font-size: 1rem;
}
input[type=email], select {
  min-width: 45%;
  margin-bottom: 2px;
  border: 1px solid #929292;
  border-radius: 4px;
  padding: 2px;
  color: #4d4d4d;
  font-size: 1rem;
}

input[type=checkbox], select {
  min-width: 45%;
  margin-bottom: 2px;
  border: 1px solid #929292;
  border-radius: 4px;
  padding: 2px;
  color: #4d4d4d;
  font-size: 1rem;
}

input[type=number], select {
  min-width: 45%;
  margin-bottom: 2px;
  border: 1px solid #929292;
  border-radius: 4px;
  padding: 2px;
  color: #4d4d4d;
  font-size: 1rem;
}
input[type=date] {
  min-width: 45%;
  margin-bottom: 2px;
  border: 1px solid #929292;
  border-radius: 4px;
  padding: 2px;
  color: #4d4d4d;
  font-size: 1rem;
}

input[type=time] {
  min-width: 45%;
  margin-bottom: 2px;
  border: 1px solid #929292;
  border-radius: 4px;
  padding: 2px;
  color: #4d4d4d;
  font-size: 1rem;
}

textarea {
    width: 98%;              /* fills the table cell nicely */
    padding: 6px 8px;
    font-size: 1rem;
    font-family: inherit;    /* matches your other inputs */
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;        /* allow vertical resizing only */
    box-sizing: border-box;  /* prevents overflow issues */
}

textarea:focus {
    border-color: #66afe9;
    outline: none;
    box-shadow: 0 0 4px rgba(102, 175, 233, 0.6);
}

input[type=submit] {
  min-width: 100px;
  margin-bottom: 2px;
  border: 1px solid #929292;
  border-radius: 4px;
  padding: 2px;
}

textarea {
  min-width: 45%;
  height: 150px;
  margin-bottom: 2px;
  border: 1px solid #929292;
  border-radius: 4px;
  padding: 2px;
  color: #4d4d4d;
  font-size: 1rem;
}

input[type=submit] {
  width: 100%;
  background-color: #7b7b7b;
  color: #4d4d4d;
  padding: 14px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

@media screen and (max-width: 600px) {
  label,
  input[type=text],
  input[type=submit],
  select, textarea {
    flex: 100%;
    min-width: 100%;
  }
}

/* tables */

.table {

  border: 0px solid #ffffff;
  border-collapse: collapse;  
  border-radius: 3px;    
  background-color: #ffffff;
}

.table-list {
  max-width: 600px;
  width: 100%;
  border: 1px solid grey;
  border-collapse: collapse;  
  border-radius: 3px;  
  color: #4d4d4d;
  background-color: #ffffff;
}

.table-list th {
  border: 1px solid grey;
  border-collapse: collapse;   
  text-align:center;
  border-radius: 3px;
  color: #4d4d4d;
  font-weight: normal;
}
.table-list td {
  border: 1px solid grey;
  border-collapse: collapse; 
  text-align:center;
  border-radius: 3px;
  color: #4d4d4d;
}

.table-form {
  max-width: 800px;
  width: 100%;
  border: 0px solid grey;
  border-collapse: collapse;  
  border-radius: 3px;
  color: #4d4d4d;
}

.table-form th {
  border: 0px solid grey;
  border-collapse: collapse;   
  text-align:center;
  border-radius: 3px;
  color: #4d4d4d;
}

.table-form td {
  border: 0px solid grey;
  border-collapse: collapse; 
  text-align:left;
  border-radius: 3px;
  color: #4d4d4d;
  position: relative;
  overflow: visible;
}

.table-form tr {  
  border-collapse: collapse;   
  width:100%;
}

.table-outline {
  max-width: 800px;
  width: 100%;
  border: 1px solid silver;
  border-collapse: collapse;  
  border-radius: 3px;
  font-weight:normal;
  color: #4d4d4d;
  background-color: #ffffff;
}

.table-outline tr {
  background-color: white;
  font-weight:normal;
  color: #4d4d4d;
}

.table-outline th {
  border: 0px solid silver;
  border-collapse: collapse;   
  text-align:center;
  border-radius: 1px;
  font-weight:normal;
  background-color: silver;
  color: #4d4d4d;
}

.table-outline td {
  border: 1px solid silver;
  border-collapse: collapse; 
  text-align:left;
  border-radius: 1px;
  font-weight:normal;
  color: #4d4d4d;
}

.table-formalignleft {
  max-width: 600px;
  width: 100%;
  border: 0px solid grey;
  border-collapse: collapse;  
  border-radius: 3px;
  color: #4d4d4d;
}

.table-formalignleft th {
  border: 0px solid grey;
  border-collapse: collapse;   
  text-align:left;
  border-radius: 3px;
  color: #4d4d4d;
}
.table-formalignleft td {
  border: 0px solid grey;
  border-collapse: collapse; 
  text-align:left;
  border-radius: 3px;
  color: #4d4d4d;
}

/* message class for disappearing status text */
 .message {
    padding: 10px;
    background: #90ee90;
    color: rgb(3, 3, 60);
  }

  /* buttons */
.mgs-button {
  border: solid;
  border-color: #b8b8b8;
  xborder-color: #868686;
  border-width: 1px;
  padding: 5px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  margin: 4px 2px;
  cursor: pointer;
  background-color: #e7e7e7;
  color: #4d4d4d;  
  border-radius: 4px;
} 


.mgs-buttonhover:hover {
  background-color: #04AA6D;
  color: white;
}

 
.poty-gold { background-color: #fff8dc; }
.poty-silver { background-color: #f0f0f0; }
.poty-bronze { background-color: #f5e0c3; }
.poty-improved { background-color: #d4edda !important; }
.poty-nochange { background-color: #f8d7da !important; }
.cursor-pointer { cursor: pointer; }
    
/* added for Prize hole stuff */
.filter-bar { margin-bottom: 20px; }
.filter-bar form { display: inline-block; margin-right: 10px; }
.select, input[type="number"], button { padding: 4px 6px; }

.accordion-section { border: 1px solid #ccc; margin-bottom: 8px; border-radius: 4px; }
.accordion-header { background: #f5f5f5; padding: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.accordion-header span { font-weight: bold; }
.accordion-content { display: none; padding: 8px; }
.accordion-section.open .accordion-content { display: block; }

xtable { width: 100%; border-collapse: collapse; margin-top: 8px; }
xth, td { border: 1px solid #ddd; padding: 6px; text-align: left; }
xth { background: #eee; }

.actions form { display: inline-block; margin: 0 2px; }

.btn { padding: 4px 8px; cursor: pointer; }
.btn-primary { background: #007bff; color: #fff; border: none; }
.btn-danger { background: #dc3545; color: #fff; border: none; }
.btn-secondary { background: #6c757d; color: #fff; border: none; }


/* HERO */
.mgs-hero {
    background: #f8f9fa;
    border-bottom: 2px solid #d4af37;
}

/* SNAPSHOT CARDS */
.mgs-stat-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.mgs-stat-value {
    font-size: 1.8rem;
    font-weight: 600;
}

.mgs-stat-label {
    font-size: 0.9rem;
    color: #555;
}

/* DIVIDER */
.mgs-divider {
    border-top: 2px solid #d4af37;
    opacity: 1;
    margin: 3rem auto;
    width: 80%;
}

/* SCHEDULE CARDS */
.mgs-schedule-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mgs-schedule-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* WHAT'S NEW */
.mgs-whatsnew li i {
    color: #2e7d32;
    margin-right: 6px;
}
.mgs-hero-heading {
    position: relative;
    background: #f8f9fa; /* fallback */
    border-bottom: 2px solid #d4af37;
    overflow: hidden;
}

/* Watermark golf-course image */

.mgs-hero-heading::before {
    content: "";
    position: absolute;
    inset: 0;   
    background-image: url('../images/HeaderImage.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.65;          /* Adjust transparency */
    filter: blur(1px) brightness(0.8); /* Softens the image */
    z-index: 0;
}

/* Ensure text sits above the image */
.mgs-hero-heading h1,
.mgs-hero-heading h2,
.mgs-hero-heading h3,
.mgs-hero-heading hr {
    position: relative;
    z-index: 1;
    color: #27210d;
}


/* RESPONSIVE TWEAKS */
@media (max-width: 576px) {
    .mgs-hero h1 {
        font-size: 1.8rem;
    }
    .mgs-stat-value {
        font-size: 1.4rem;
    }
}
