/* Define CSS variables for colors */
:root {
  --primary-color: #232323;
  --secondary-color: #fcfcfc;
  --header-color: #ffffff;
  --text-color: #626c7c;
  --highlight-color: #FBF4F1;
  --link-color: #000000;
  --link-hover-color: #606060;
  --navbar-color: #959faf;
  --navbar-hover-color: #585f6b;
  --navbar-active-color: #626d7c;
  --footer-bg-color: #333;
  --footer-text-color: #ebebeb;
  --footer-link-hover-color: #929292;

  --header-height-small: 55px;
  --header-height-large: 130px;

  --max-width: 550px;

  --page-margin: 10%;
}

img {
  border-radius: 2px;
}

@font-face {
  font-family: 'OPTITrimRoman';
  src: url('OPTITrimRoman.otf') format('opentype');
}

/* Base styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: var(--header-height-small);
  color: var(--primary-color);
  background-color: var(--secondary-color);
  line-height: 1.4;
  min-height: 100vh
}

/* Header styles */
header {
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10% 0 5%;
  background-color: var(--header-color);
  color: var(--text-color);
}

/* Typography */

ul,
h2,
h3,
h4{
  color: var(--primary-color);
  margin-left: var(--page-margin);
  margin-right: var(--page-margin);
}

h2{
  font-size: 18px;
}

h3 {
  font-size: 16px;
  margin-bottom: 0px;
}

h4 {
  font-style: italic;
  font-weight: normal;
  margin-top: 0px;
}

/* Image and color styles */
.splash,
.splash-strip {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.splash-strip {
  background-image: url(pfp.avif);
  background-color: var(--highlight-color);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-size: 100% auto;
  background-position-y: center;
}

.splash-strip {
  background-color: var(--highlight-color);
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
}

/* START OF TEST STUFF */

/* Color strip containing two rows of icons */
.color-strip {
  margin: 0px;
  padding-bottom: 10px;
  flex: 1;
  display: flex;
  flex-direction: row;
  background-color: var(--highlight-color);
  justify-content: center;
  align-items: center;
}

/* Styling for the icons */
.color-strip .row img {
  width: 80px;
  margin: 10px
}

.color-strip .row.lower-row {
  transform: translateX(60px) translateY(30px);
}


@media screen and (max-width: 600px) {

  /* Styling for the icons */
  .color-strip .row img {
    width: 40px;
    margin: 5px
  }

  .color-strip .row.lower-row {
    transform: translateX(30px) translateY(20px);
  }
}

/* END OF TEST STUFF */

#empty_color {
  height: auto;
}

#spacer {
  height: 55px;
}

p {
  margin-left: var(--page-margin);
  margin-right: var(--page-margin);
}

/* Special sections */
.over-header {
  color: white;
  background-color: #333;
  margin-bottom: 6px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 30px;
  padding-right: 30px;
  border-radius: 5px;
}

.logo img {
  padding-top: 14px;
  padding-bottom: 10px;
  max-height: 25px;
  width: 150px;
}

/* Navbar styles */
.navbar ul {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  padding-right: 115px;
  margin: 0;
  min-height: 50px;
}

.navbar ul li {
  margin: 0 15px;
}

.navbar ul li a {
  color: var(--navbar-color);
  text-decoration: none;
}

.navbar ul li a:hover {
  color: var(--navbar-hover-color);
}

.navbar ul li a.active {
  color: var(--navbar-active-color);
  font-weight: 510;
}

/* Responsive design */
@media screen and (max-width: 600px) {
  .navbar ul {
    flex-direction: column;
    padding-right: 75px;
    padding-top: 5px;
    padding-bottom: 2px;
  }

  .navbar ul li {
    margin: 1px 0;
  }
}

@media screen and (max-width: 600px) {
  body {
    padding-top: var(--header-height-large);
  }
}

/* Grid Formatting */
.grid {
  padding: 5%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3%;
}

@media screen and (max-width: 500px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.square {
  aspect-ratio: 1/ 1;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10%;
  background-color: #1E1E1E;
  color: #fff;
  margin: 0;
  filter: saturate(1.1);
  filter: contrast(1.1);
}

.square:hover {
  aspect-ratio: 1/ 1;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  filter: saturate(0.7);
  filter: contrast(1.3);
  filter: brightness(1.25);
  align-items: flex-start;
  padding: 10%;
  background-color: #1E1E1E;
  color: #fff;
  margin: 0;
}

.square img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.square.fullImg {
  padding: 0;
  position: relative;
  width: auto;
}

.square.fullImg img {
  object-fit: cover;
  border-radius: 5px;
}

/* Grid Item */

.top-row {
  display: flex;
  position: absolute;
  align-items: center;
  padding: 3px;
  width: 20%;
  height: auto;
  border-radius: 5px 0px 5px 0px;
  background-color: #000000aa;

}

.item1 {
  align-items: center;
  height: auto;
  width: 30px;
}

.item1,
.item2 {
  /* Style your items here */
}


/* Other elements */
section {
  margin: 20px;
  padding: 3px;
}

.project {
  background-color: #f4f4f4;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 20px;
}

/* Footer styles */
footer {
  background-color: var(--footer-bg-color);
  color: white;
  text-align: center;
  font-size: 12px;
  margin-top: 55px;
  padding-top: 5px;
  padding-bottom: 2px;
  bottom: 0;
  width: 100%;
}

a {
  color: var(--link-color);
}

a:hover {
  color: var(--link-hover-color);
}

footer a {
  color: var(--footer-text-color);
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  color: var(--footer-link-hover-color);
}

/* Project Pages */
.content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: row;
  height: 100vh;
  flex-wrap: wrap;
}

.left-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 20px;
  padding-top: 100px;
  min-width: 200px;
  background-color: #f0f0f0;
}

.right-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
  padding-top: 100px;
  background-color: #333;
  min-width: 210px;
  max-width: 42%;
}

.right-column-pdf {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: left;
  padding: 20px;
  padding-top: 30px;
  background-color: #333;
  min-width: 210px;
}

.title {
  font-size: 3em;
  margin-bottom: 20px;
}

.description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

.order-button {
  background-color: #444;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 1.2em;
  border: none;
  cursor: pointer;
  margin: 10px;
  max-width: 250px;
  border-radius: 2px;
}

.order-button:hover {
  background-color: #555;
}

.book-stack img,
.book-stack video {
  max-width: 100%;
  height: auto;
  max-height: 60%;
}

.book-stack .pdf {
  padding: 0px;
  margin: 0px;
  width: 100%;
  height: 700px;
}


.icon {
  background-color: #333;
  padding: 8px;
  margin-bottom: 20px;
  border-radius: 3px;
  width: 60px;
}

@media (max-width: 600px) {

  .right-column {
    padding-top: 50px;
    max-width: 100%;
  }

  .left-column {
    padding-top: 50px;
  }

  .icon {
    width: 40px;
  }

  .title {
    font-size: 2.2em;
  }

  .description {
    font-size: 1em;
  }

  .order-button {
    font-size: 1em;
  }
}

.vert-spacer {
  height: 300px;
}