:root {
  /* variables */
  --dark-red: rgb(83, 7, 7);
  --pink: rgb(255, 198, 198);
  --grey: rgb(243, 243, 243);
  --white: rgb(255, 255, 255);
  --text-background: rgb(255, 255, 255);
  --border: #ccc;
}

html {
  height: 100%;
}

body {
  background: var(--grey);
  position: relative;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* CSS for navigation */
.navbar {
  position: sticky;
  top: 0;
  /*always be at the top*/
  z-index: 100;
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--dark-red);
  color: var(--white);
  padding: 0px;
  margin-top: 0px;
  list-style: none;
  /* Debug border */
  /* border: solid red; */
}

.nav-list li {
  font-size: 20px;
  padding: 6px;
}

.nav-list li:nth-child(3) {
  margin-left: 20px; 
  margin-right: 15px;
}

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

.navbar a:hover, .navbar a:active {
  color: var(--pink);
  text-decoration: underline;
}

.navbar a img:hover {
  transform: scale(1.1);
  opacity: .8;
}

/* CSS for main */
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-size: 40px;
  font-family: Georgia;
}

/* CSS for portfolio grid */
.project {
  display: flex;
  flex-direction: row;
  max-width: 100%;
  margin: 1em 12em 2em 12em;
  transition: .25s ease-in;
  padding: 50px;
  border: 5px solid var(--dark-red);
  border-radius: 15px;

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

.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:hover{
  transform: scale(1.05);
}

.project-details {
  display: flex;
  background-color: var(--white);
  width: 100%;
  height: 500px;
  flex-shrink: 1;
  padding: 0 20px;
  margin: 0px;
  line-height: 1.5;
  overflow: scroll;

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

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

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

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

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

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

/* CSS for home page */
.home-image{
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid var(--white);
  margin: 5px;
  transition: .2s ease-in;
}

.about{
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px;
  background-color: var(--text-background);
  
  border: 1px solid var(--border);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,.1);
}

.about-image {
  max-width: 200px;
  text-align: center;
}

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

.about-image figcaption{
  font-size: 12px;
}

.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;
}

.icon-links {
  display: flex;
  justify-content: left;
}

.icon {
  width: 25px;
  height: 25px;
  padding-right: 5px;
  padding-left: 5px;
}

/* CSS for resume */
.resume{
  border: 5px,solid, var(--dark-red);
  border-radius: 15px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding-left: 20px;
  padding-right: 20px;
}

.separator{
  border: none;
  border-top: 2px solid var(--dark-red);
}

.section-title{
  padding-top: 20px;
  margin-bottom: 0px;
}

.button {
  background-color: var(--dark-red);
  border: none;
  color: var(--white);

  font-family: Georgia, 'Times New Roman', Times, serif;

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

  border-radius: 2px;
}

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

.resume h2 {
  font-family: Georgia;
}

/* CSS for contact form */
label {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia;
  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;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

.submit-button {
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* 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-color: var(--dark-red);
  color: var(--white);
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2.5rem;
}
