* {
  box-sizing: border-box;
}

/* Define coffinitup color scheme */
:root {
--primary-color: #C0C0C0;  /* Text */
--secondary-color: #FFFFFF; /* Links */
--tertiary-color: #808080;  /* Visited Links */
--quaternary-color: #FF0000;  /* Active Links and Headings */
--background-color: #000000; 
}

/* General styles */
body {
background-color: var(--background-color);
color: var(--primary-color);
font-family: sans-serif;
margin: 1vw;
}

/* Define navigation style */
nav {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--tertiary-color);
  z-index: 1; /* set the z-index to 1 */
}

nav ul {
  display: flex; /* Use flexbox to display the list horizontally */
  list-style: none; 
  text-align: center;
  font-weight: bold;
  margin: 0; 
  padding: 0; 
}

nav li {
  margin: 0 2vw; /* Add spacing between the list items */
}

/* Style the links in the navigation bar */
nav a {
  text-decoration: none;
  color: var(--secondary-color);
}

/* Style the visited links in the navigation bar */
nav a:visited {
  color: #000000;
}

/* Style the links in the navigation bar on hover */
nav a:hover {
  color: var(--background-color);
  background-color: var(--primary-color);
}

/* Style the header */
header {
  background-color: var(--background-color);
  background-position: center;
  background-repeat: no-repeat;
  position: fixed;
  z-index: 1; /* set the z-index to 1 */
}

/* Style the links in the body */
main a {
  text-decoration: none;
  color: var(--secondary-color);
}

/* Style the visited links in the body */
main a:visited {
  color: var(--tertiary-color);
}

/* Style the links in the body */
main a:hover {
  color: var(--quaternary-color);
  background-color: var(--secondary-color);
}

/* Style the Headings in the body */
main h1 {
  color: var(--tertiary-color);
  text-transform: uppercase; 
  background: linear-gradient(0deg, #880808, #C0C0C0, #ffffff); /* Background gradient with 3 colors */
  -webkit-background-clip: text; 
  background-clip: text;
  -webkit-text-fill-color: transparent; 
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;

}

main h2 {
  color: var(--quaternary-color);
  text-transform: uppercase; /* Optional: Makes the text all uppercase */
  background: linear-gradient(0deg, #880808, #C0C0C0); /* Background gradient with 2 colors */
  -webkit-background-clip: text; 
  background-clip: text;
  -webkit-text-fill-color: transparent; 
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;

}
main h3 {
  color: var(--quaternary-color);
  text-transform: uppercase; /* Optional: Makes the text all uppercase */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;

}


  /* Outer Wrapper */
  .wrapper {
    margin-top: 0px;
    margin-left: 15px;
    margin-right: 15px;
    padding: 10px;
    display: flex;
    width: calc(0.9 * 100vw);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    box-sizing: border-box;
   /* border: 2px solid pink;  2px width, solid style, pink color border for testing */
}

  /* Style Images */
  .image-container {
    padding: 10px;
    display: flex;
    width: calc(0.9 * 100vw);
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    box-sizing: border-box;
}

.image-container img {
  max-width: 300px;
  height: auto;
  border-radius: 15px;
  filter: sepia(60%);
  padding-right: 10px;
}

  /* Style Countdown*/
  .countdown-container {
    padding: 10px;
    display: flex;
    width: calc(0.9 * 100vw);
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    box-sizing: border-box;
    /* border: 2px solid green;  2px width, solid style, green color border for testing */}



/* Define Grid for Coffin Galleries */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px; /* Adjust the gap between grid items */
}

/* Style each grid item */
.grid-item {
  background-color: var(--background-color);
  padding: 20px; /* Add padding as needed */
  border-radius: 5px;
  text-align: center;
  overflow: hidden; /* Ensure images don't overflow the grid items */
  border: 2px solid white;
}

/* Style the images */
.grid-item img {
  max-width: 300px;
  height: auto; 
}

/* Style lists for grid */
.grid ul {
  display: grid; /* Use flexbox to display the list vertically*/
  list-style: square; 
  text-align: left;
  margin: 0; 
  padding: 0 0 0 2.5vw; 
}

.grid li {
  padding-left: .5vw; /* Indent the list items */
}

/* Style the Headings in the grid */
.grid h1 {
  color: var(--tertiary-color);
  text-transform: uppercase; 
  background: linear-gradient(0deg, #880808, #C0C0C0, #ffffff); /* Background gradient with 3 colors */
  -webkit-background-clip: text; 
  background-clip: text;
  -webkit-text-fill-color: transparent; 
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;

}

.grid h2 {
  color: var(--quaternary-color);
  text-transform: uppercase; /* Optional: Makes the text all uppercase */
  background: linear-gradient(0deg, #880808, #C0C0C0); /* Background gradient with 2 colors */
  -webkit-background-clip: text; 
  background-clip: text;
  -webkit-text-fill-color: transparent; 
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: clamp(20px, 2.5vw, 30px); /* Set the minimum, preferred, and maximum font size */
  overflow-wrap: break-word;
}



  /* Style Footer*/
  .footer {
    font-size: 12px;
    font-style: italic;
    padding: 10px;
    margin: 2vw 0;
    display: flex;
    width: calc(0.75 * 100vw);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    box-sizing: border-box;
    border-top: 2px solid blue; /* 2px width, solid style, blue color */}

/* Styles for screens 584px and under */
@media (max-width: 584px) {

/* Style the navigation bar for tiny screens */
nav {
  top: 75px;
  left: 0;
  right: 0;
  height: 8vw;
  font-size: 3vw;
  z-index: 1; /* set the z-index to 1 */
}

/* Style the header for tiny screens */
header {
  background-image: url('headertiny.png');
  height: 75px;
  top: 0;
  left: 0;
  right: 0;
}

/* Style the main content area for tiny screens */
main {
  margin-top: 95px;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  font-size: max(16px, 2.25vw);
  justify-content: center;
  box-sizing: border-box;
}

/* Style the Headings for tiny screens */
main h1 {
  text-shadow: .5vw .5vw .75vw rgba(0, 0, 0, 0.5); /* Add a subtle text shadow */
  font-size: 8vw;
  padding: 5px;
  display: flex;
}

main h2 {
  text-shadow: .3vw .3vw .5vw rgba(136, 8, 8, 0.5); /* Add a subtle text shadow */
  font-size: 4vw;
  padding: 5px;
  display: flex;
}

main h3 {
  font-size: 3.25vw;
  padding: 5px;
  display: flex;
}

}



/* Styles for screens 585px to 800px */
@media (min-width: 585px) and (max-width: 800px) {

/* Style the navigation bar for small screens */
nav {
  top: 100px;
  left: 0;
  right: 0;
  height: 6vw;
  font-size: 2.5vw;
  z-index: 1; /* set the z-index to 1 */
}

/* Style the header for small screens */
header {
  background-image: url('headersm.png');
  height: 100px;
  top: 0;
  left: 0;
  right: 0;
}

/* Style the main content area for small screens */
main {
  margin-top: 105px;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  font-size: max(16px, 2.25vw);
  justify-content: center;
  box-sizing: border-box;
}

/* Style the Headings for small screens */
main h1 {
  text-shadow: .5vw .5vw .75vw rgba(0, 0, 0, 0.5); /* Add a subtle text shadow */
  font-size: 8vw;
  padding: 5px;
  display: flex;
}

main h2 {
  text-shadow: .3vw .3vw .5vw rgba(136, 8, 8, 0.5); /* Add a subtle text shadow */
  font-size: 4vw;
  padding: 5px;
  display: flex;
}

main h3 {
  font-size: 2.5vw;
  padding: 5px;
  display: flex;
}

}

/* Styles for screens between 801px and 1050px */
@media (min-width: 801px) and (max-width: 1050px) {

/* Style the navigation bar for med screens */
nav {
  top: 125px;
  left: 0;
  right: 0;
  height: 2.45vw;
  font-size: 2vw;
  z-index: 1; /* set the z-index to 1 */
}

/* Style the header for med screens */
header {
  background-image: url('headermed.png');
  height: 125px; 
  top: 0;
  left: 0;
  right: 0;
}

/* Style the main content area for med screens */
main {
  margin-top: 125px;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  font-size: max(16px, 2vw);
  justify-content: center;
  box-sizing: border-box;
}

/* Style the Headings for med screens */
main h1 {
  text-shadow: .45vw .45vw .5vw rgba(0, 0, 0, 0.5); /* Add a subtle text shadow */
  font-size: 5vw;
  padding: 5px;
  display: flex;
}

main h2 {
  text-shadow: .3vw .3vw .5vw rgba(136, 8, 8, 0.5); /* Add a subtle text shadow */
  font-size: 3.5vw;
  padding: 5px;
  display: flex;
}

main h3 {
  font-size: 2vw;
  padding: 5px;
  display: flex;
}

}



/* Styles for screens over 1050px */
@media (min-width: 1051px) {

/* Style the navigation bar for small screens */
nav {
  top: 170px;
  left: 0;
  right: 0;
  height: 2.25vw;
  font-size: 1.5vw;
  z-index: 1; /* set the z-index to 1 */
}

/* Style the header for large screens */
header {
  background-image: url('header.png');
  height: 170px;
  top: 0;
  left: 0;
  right: 0;
}

/* Style the main content area for large screens */
main {
  margin-top: 180px;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  font-size: max(20px, 1.25vw);
  justify-content: center;
  box-sizing: border-box;
}

/* Style the Headings for large screens */
main h1 {
  text-shadow: .35vw .35vw .45vw rgba(0, 0, 0, 0.5); /* Add a subtle text shadow */
  font-size: 4vw;
  padding: 5px;
  display: flex;
}

main h2 {
  text-shadow: .3vw .3vw .5vw rgba(136, 8, 8, 0.5); /* Add a subtle text shadow */
  font-size: 2.5vw;
  padding: 5px;
  display: flex;
}

main h3 {
  font-size: 1vw;
  padding: 5px;
  display: flex;
}

}
