html,
body {
  min-height: 100%;
  margin: 0px;
  padding: 0px;
  background-color: rgb(218, 218, 218);
  font-family: system-ui, Tahoma, Arial, sans-serif;
}

body {
  background: url('/img/nmb.png') no-repeat center center;
  background-size: cover;
}

/* Standard link */
a {
  color: #132799;
  text-decoration: none;
  
}

a>img:hover {
  transform: scale(1.01);
}

a:hover {
  text-decoration: underline !important;
  color: #132799;
}

#sidebar {
  grid-column: span 1;
  grid-row: span 2;

}

#sidebar button {
  width: 100%;

}

.errorMessage {
  color: #b7000c;
}

/* GRID SETTINGS */
#wrapper {
  /*padding:4px;*/
  display: grid;
  min-height: 100vh;
  /* full viewport height */
  grid-template-rows: auto 1fr auto;
  /* header, main content, footer */
  grid-template-columns: 1fr minmax(300px, 700px) 1fr;
  gap: 4px;
}

/*HEADER STUFF*/
#header {
  background-color: rgb(54, 54, 54);
  color: white;
}

#header {
  /*For the grid in main app*/
  grid-column: span 3;
  padding: 4px;
  justify-content: center;
  /* centers the inner content */
  display: flex;
}

#header a>img:hover {
  transform: none !important
}

#headerContent {
  display: flex;
  align-items: center;
  /* Ensures everything is vertically aligned */
  justify-content: space-between;
  /* Keeps logo left, controls right */
  height: 60px;
  /* Ensures header height consistency */


  width: 100%;
  max-width: 695px;
  /* slightly wider than 700px middle column */

}

#logo {
  display: flex;
  align-items: center;
  /* Aligns the image and text */
}

#headerImg {
  height: 60px;
  /* Adjust this to match text height */
  vertical-align: middle;
  /* Ensures better inline alignment */
  margin-right: 10px;
  /* Adds spacing between image & text */
}

#topControls {

  position: relative;



}

.smallScreen {
  display: none; /* Hide by default */
  flex-wrap: wrap;
  align-items: center;
  /* Ensures buttons align with logo */
  gap: 10px;
  min-height: 60px;
  /* Matches header image height */
}
#topControls .fullScreen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* Ensures buttons align with logo */
  gap: 10px;
  min-height: 60px;
  /* Matches header image height */
}

#topControls .fullScreen a {
  color: white;
  text-decoration: none;
}

#topControls a:hover {
  text-decoration: underline;
}

#topControls .loginout {
  font-weight: bold;
}

#logoutTop {
  color: #c0392b !important;

}


.cart-badge-bg {
  fill: #c0392b !important;
  /* or 'green', or a CSS variable */
}

.cart-badge-text {
  font-family: monospace;
  font-size: 10px;
  fill: white;
  stroke-width: 0.1;
  paint-order: stroke;
  /* Optional: stroke behind fill */
}


/* icon stuff */



.icon-btn {
  padding: 5px;
  width: 42px;
  height: 42px;
  color: #d9d9d9 !important;
  background: none;
  border: 0px solid whitesmoke;
  display: flex;
  /* enable flexbox */
  align-items: center;
  /* vertical centering */
  justify-content: center;
  /* horizontal centering */
  border-radius: 6px;
  /* optional: nicer tap area */
  cursor: pointer;
  line-height: 1;
  /* reset line height */
  vertical-align: middle;
  /* normalize inline anchor behavior */
  box-sizing: border-box;
  /* consistent sizing */

}

.icon-btn svg {
  text-align: center;
  width: 32px;
  height: 32px;
  display: block;
  shape-rendering: geometricPrecision;
}

.icon-btn {
  -webkit-tap-highlight-color: transparent;

}

.icon-btn:active,
.icon-btn:focus,
.icon-btn:hover {
  background-color: rgba(0, 0, 0, 0.3);
  outline: none;
  text-decoration: none;
}


/* Mobile menu dropdown */
#mobileMenu {
  display: none;
  position: absolute;
  top: 75px;
  right: 10px;
  background: white;
  color: black;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.5em 0;
  z-index: 999;
  list-style: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 150px;
  /* Adjust width as needed */
}



#mobileMenu a {
  display: block;
  /* makes full area clickable */
  padding: 0.6em 1em;
  color: black;
  text-decoration: none;
  font-style: normal;
  font-weight: normal;
}

#mobileMenu a:hover {
  background: #eee;
  text-decoration: none !important;
}

#mobileMenu a:focus,
#mobileMenu a:active {
  background-color: #ddd;
  outline: none;
  text-decoration: none;
}

#mobileMenu a {
  -webkit-tap-highlight-color: transparent;

}




/* MIDDLE STUFF */
#main {
  grid-column: span 1;
  background-color: rgb(255, 255, 255);
  padding: 2em;
  border-radius: 3px;
  margin: 10px 0;
}

#footer {
  background-color: rgb(157, 157, 157);
  color: white;
}

#footer {
  grid-column: span 3;
  padding: 5px;
  justify-items: center;
}

#footerContent {
  width: 100%;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
  justify-items: center;

}


#footerContent div.footerHeader {
  color: white;
  font-weight: bold;
  margin-bottom: 4px;
  ;

}

#footerContent>div>div:nth-child(2) {
  color: black;
}

#footerQuestions a {
  display: block;
}

#footerContent a {
  color: black;
  text-decoration: none;
}

#footerContent a:hover {
  text-decoration: underline;
}

#quotes {
  grid-column: span 3;
  text-align: center;
}

#quotes a {
  text-decoration: none;
  color: white;

}


input[type="submit"]:hover {
  background-color: #747474;
  /* Darker green */
}

/* MEDIA STUFF */







@media (max-width: 768px) {

  .fullScreen {
    display: none !important;
    /* Hide full screen controls on small screens */
  }
  .smallScreen {
    display:flex;
    
  }

  #header {
    padding: 10px;

    /* Add some padding for smaller screens */

  }

  #topControls {
    font-size: 1.25em;
    /* Adjust font size for smaller screens */
    gap: 25px;
    /* Reduce gap between buttons */
    flex-wrap: wrap;
    /* Allow wrapping for smaller screens */
  }

  #headerImg {
    height: 60px;
  }



  #menuToggle {
    display: inline-block;
  }

  /* Media main */
  #main {
    padding: 5px;
    ;
  }

  /* Media footer */
  #footerContent {
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    text-align: center;
  }

  #footerContent div.footerHeader {
    font-size: 1.5em;
    /* Adjust font size for smaller screens */
    margin-bottom: 10px;
    /* Add some space below the header */
  }

  #footerQuestions .links {
    display: flex;
    gap: 25px;
    /* Add some space between links */
    justify-content: center;
    /* Center the links */
  }

  #footerQuestions a {
    display: inline-block;
    /* Stack items vertically */

    font-size: 1.25em;
    /* Adjust font size for smaller screens */
  }

}


/* image */
/* Thumbnail image */
img.thumbnail {
  cursor: pointer;
  transition: transform 0.2s ease;
}

img.thumbnail:hover {
  transform: scale(1.01);
}

/* Fullscreen overlay */
#imgOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

#imgOverlay.hidden {
  display: none;
}

#imgOverlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}


.quote-block {
  margin-top: 1rem;
  padding: 1rem;
  background: #f9f9f9;
  border-left: 1px solid #ccc;
  border-radius: 2px;
  font-style: italic;
}

.quote-block blockquote {
  margin: 0;
  padding-left: 1rem;
  color: #555;
}

.quote-heading {
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  font-weight: bold;
  font-style: normal;
}





/* Horizontal button-style link list */
.link-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em 0;
  display: flex;
  gap: 0.8em;
  flex-wrap: wrap;
  /* wrap on smaller screens */
}

.link-list li a {
  display: inline-block;
  padding: 0.5em 1.2em;
  border: 2px solid #222;
  background: #fff;
  color: #222;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.05);
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}

.link-list li a:hover,
.link-list li a:focus {
  background-color: #222;
  color: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
  outline: none;
  cursor: pointer;
}

.link-list a.active {
  background-color: #222;
  /* Dark background */
  color: #fff;
  /* White text */
  border-color: #222;
  /* Match border with background */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  /* Stronger shadow */
  cursor: default;
  /* Indicate it's active */
  pointer-events: none;
  /* Prevent clicking active link */
}