/*
Main body color: https://colorhunt.co/palette/331d2c3f2e3ea78295efe1d1
*/

:root {
  --bgcol1: #331D2C;
  --bgcol2: #3F2E3E;
  --bgcol3: #A78295;
  --bgcol4: #EFE1D1;
}

#bgcollite_1 { background-color: #bdfffc}
#bgcollite_2 { background-color: #f5abab}
#bgcollite_3 { background-color: #b691cf;}
#bgcollite_4 { background-color: #f1d0b0}
#bgcoldark_1 { background-color: #458783}
#bgcoldark_2 { background-color: #734949}
#bgcoldark_3 { background-color: #563c68;}
#bgcoldark_4 { background-color: #875e35}

/* Fixing hyperlink color to be visible */
a {
  color: var(--bgcol4);
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: var(--bgcol1);  /*Background color */
  color: #EFE1D1; /* Text color */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 5px auto;
  padding: 20px;
  box-sizing: border-box;
  background-color: var(--bgcol2);
  border-radius: 3px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);

}

/* Top Banner for fitment */
.banner { 
  position: relative;
  display: flex;
  width: 100%;
  height: 70px;
  /*background-color: #12031b; */
  justify-content: flex-end;
  align-items: center; /* vert align */
  padding-right: 20px;
}

.banner img {
  max-width: 100%;
  max-height: 40px;
  vertical-align: center;
  margin-right: 20px;
}

.header {
  background-color: var(--bgcol3); /* Header background color */
  color: #fff; /* Header text color */
  padding: 20px;
  text-align: center;
  /*text-decoration-line: ;*/
  /*font-style: italic;*/
  font-size: 2em;
  border-radius: 12px;
  font-family: Georgia, 'Times New Roman', Times, serif;
}
.subhead {
  text-align: center;
  /*text-decoration-line: underline;*/
  /*text-decoration-style: wavy;*/
}
.content {
  padding: 20px;
  color: #fff; /* Basic text color */
}
.footer {
  background-color: var(--bgcol1); /* Footer background color */
  color: #fff; /* Footer text color */
  padding: 20px;
  text-align: center;
}

.pagelink {
  display: flex;
  padding: 12px 20px;

  margin: 0 auto;

  margin-top: 3px;
  margin-bottom: 3px;

  width: fit-content;
  align-items: center;
  justify-content: center;

  border-radius: 8px;
  background-color: #fff;
  
  cursor: pointer;

  text-decoration: none;
  border: none;
}   
.inlinelink {
  text-align: left;
}    

.button {
  display: flex;
  padding: 10px 20px;
  background-color: #2a91cc;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center; /* Center text inside the button */
  justify-self: center;
  gap: 3px 3px;
  margin: 5px 5px;
}

.sort-buttons {
  text-size-adjust: 75%;
  display: grid;
  margin-bottom: 10px;
  grid-template-columns: repeat(4, 1fr); /* Create a 5-column grid */
  gap: 5px; /* Space between sort-buttons */
  justify-content: center; /* Center the grid horizontally */
  margin: 20px auto; /* Add vertical spacing and center the container */
  max-width: 700px; /* Limit the width for better centering */
}
.sort-button {
  text-size-adjust: 75%;
  padding: 10px 20px;
  background-color: var(--bgcol3);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center; /* Center text inside the button */
  gap: 3px 3px;
  margin: 2px 2px;
  justify-content: center;
}
.sort-button:hover {
  background-color: #359edb
}
.sort-button.selected {
  background-color: #1c4f6d; /* Example: green background for the selected state */
  color: white; /* Ensure text is readable */
  font-weight: bold; /* Optional: emphasize the selected button */
}


/* -- Portfolio -- */
.projects {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}
.project {
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.project img {
  display: inline-block;
  width: 100%;
  object-fit:contain;
  object-position: center;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}
.project .content {
  padding: 10px;
  text-align: center;
}
.project .content h3 {
  margin: 10px 0;
  font-size: 1.2em;
}
.project .content p {
  color: #555;
}


ol.center {
  display: inline-block;
  text-align: center;
}
.section {
  opacity: .1;
  transition: opacity 1s ease-in-out; /* Smooth transition */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}



.fade-in {
  opacity: 1; /* When in view, fade in */
}

/* -- 2/3 Left and 2/3 Right Layout Elements -- */
.grid-container-r {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}
.grid-container-l {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.field {
  padding:10px;
  border: 0px;
  background-color: var(--bgcol2);
  padding: 12px 24px;
  border-width: 4px;
  border-radius: 8px;
}
.sectitle {
  text-align: center;
  font-size: 2em;
  padding: 0;
  padding: 0 4px;
}
.secsubtitle {
  text-align: center;
  font-size: 1em;
  font-weight: bold; 
  padding: 0;
}


