:root {
  /* variables */
  --cg-black: rgb(30, 32, 32);
  --cg-blue: rgb(36, 94, 255);
  --cg-grey: rgb(243, 243, 243);
  --cg-white: rgb(255, 255, 255);
  --cg-foam-green: #3e796a;
}

html {
  height: 100%;
}

body {
  background: var(--cg-grey);
  position: relative;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  font-family: monospace;
}

/* CSS for navigation */

.navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  height: 7%;
  z-index: 10;

  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;

  /*background-color: var(--cg-black);*/
  background-image: linear-gradient(to right, var(--cg-foam-green), black);
  color: var(--cg-white);
  padding: 0px 0px;

  /* Debug border */
  /* border: solid red; */
}

.nav-list {
  display: flex;
  flex-direction: row;
  position: relative;
  right: 30px;
  list-style: none;

  /* Debug border */
  /* border: solid blue; */
}

.navbar a {
  color: var(--cg-foam-green);
  font-weight: bold;
  margin: 0 12px;
  text-decoration: none;
  letter-spacing: 2px;

  font-family: "Montserrat", serif;
  font-weight: 700;
}

.navbar a:hover {
  color: var(--cg-blue);
  text-decoration: underline;
}

.navbar a:active {
  color: var(--cg-blue);
}

.logo a {
  font-family: "Montserrat", serif;
  font-weight: 700;
  padding-left: 10px;
  color: black;
}

.logo a:hover {
  text-decoration: None;
}

main {
  padding: 0 20px 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-title {
  display: flex;
  justify-content: center;
  font-family: "Montserrat", serif;
  font-weight: 700;
  font-size: 50px;
}

/* CSS for portfolio grid */

.project {
  display: flex;
  flex-direction: row;
  max-width: 100%;
  margin: 1em 0 2em 0;
  /* border: 5px solid var(--cg-foam-green);
  border-radius: 10px; */
}

.item-link {
  width: 70%;

  /* Debug border */
  /* border: 2px solid red; */
}

.project-image {
  object-fit: cover;
  width: 100%;
  height: 500px;
  flex-basis: 50px;
  flex-grow: 2;

  /* Debug border */
  /* border: 2px solid black; */
}

.project-details {
  display: flex;
  background-color: var(--cg-white);
  width: 30%;
  height: 500px;
  flex-shrink: 1;
  padding: 0 20px;
  margin: 0px;
  line-height: 1.5;
  overflow: scroll;
  font-family: "Montserrat", serif;

  flex-direction: column;
  text-align: center;
  justify-content: center;

  /* Debug border */
  /* border: 2px solid green; */
}

.project-details a {
  color: var(--cg-black);
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
}

.project-details a:hover {
  color: var(--cg-blue);
  text-decoration: underline;
}

/* .project-details {
  font-weight: lighter;
} */

.project-description {
  color: black;
  font-size: px;
}

.project-name {
  font-weight: bold;
  font-size: 20px;
}

/* CSS for home page */

.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background-color: rgb(220, 220, 220);
  border: 5px solid var(--cg-foam-green);
  border-radius: 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.about-image img {
  flex: 2;
  max-width: 500px;
  border-radius: 3px;
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); */
}

.about-text {
  flex: 1;
  margin-left: 20px;
}

.about-text h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.5;
  font-family: "Montserrat", serif;
}

#about-links {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-link {
  font-family: "Montserrat", serif;
  font-weight: 700;
  padding: 10px;
  font-size: 30px;
}

.about-link:link {
  color: var(--cg-foam-green);
}

.about-link:visited {
  color: #063624;
}
/* CSS for resume page */

#download-resume {
  font-family: "Montserrat", monospace;
  color: var(--cg-foam-green);
}

.button {
  background-color: var(--cg-black);
  border: none;
  color: var(--cg-foam-green);

  font-family: "Montserrat", monospace;

  padding: 5px 7px;
  text-align: center;

  border-radius: 2px;
}

.button:hover {
  background-color: var(--cg-blue);
}

.resume h2 {
  font-family: "Montserrat", monospace;
}

.resume {
  font-family: "Montserrat", monospace;
}

/* CSS for contact form */

#contact-form {
  font-family: "Montserrat", serif;
}

#contact-form > input {
  font-family: "Montserrat", serif;
  align-self: center;
}

label {
  display: block;
  margin-bottom: 8px;
  font-family: "Montserrat", serif;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  resize: none;
}

/* Add some spacing to the form */
form {
  width: 500px;
  margin: 0 auto;
}

/* CSS for footer */

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(to right, var(--cg-foam-green), black);
  color: var(--cg-white);
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2.5rem;
}

#personal-website-image {
  background-color: var(--cg-white);
}

.blog-body > p {
  font-family: "Montserrat", serif;
}
