html, body {
  height: 100%;
  color: rgb(43, 42, 41)
}

/* Media Queries for Responsiveness */
@media only screen and (min-width: 1200px) {
  body {
    max-width: 1200px;
  }
}

@media only screen and (min-width: 800px) and (max-width: 1199px) {
  body {
    max-width: 800px;
  }
}

body {
  /* General body styles */
  font-family: Arial, sans-serif;
  font-size: 16px;
  margin: 0 auto;
  padding: 0 auto;
  max-width: 1000px;
  background-color: #f4f4f4;

  /* Grid layout */
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr 1fr 1fr;
}

#contact-page {
  height: 100%;
    /* Grid layout */
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: 1fr 1fr 1fr;
}

/* Navigation Bar Styles */
nav {
  grid-row-start: 1;
  grid-column: 1 / span 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid grey;
}

nav h2 {
  margin: 0;
}

#logo-name {
  text-decoration: none;
  color: rgb(43, 42, 41)
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-item {
  text-decoration: none;
  font-weight: bold;
  color: darkslategrey;
}

.nav-item:hover {
  text-decoration: underline;
}

.nav-item:active {
  text-decoration: underline;
  color: teal;
}

.nav-contact-selected {
  text-decoration: underline;
  font-weight: bold;
  color: teal;
  margin: 0;
  padding: 0;
}

/* Main Section Styles */
main {
  grid-row: 2 / span 1;
  grid-column: 1 / span 3;
  display: grid;
  grid-template-rows: auto auto 1fr;
  grid-template-columns: auto;
}

.section-bar {
  margin: 0 50px;
  padding-bottom: 25px;
  border-bottom: 1px solid grey;
}

/* About Me Section Styles */
#about-me {
  grid-row: 1 / span 1;
  grid-column: 1 / span 1;
  padding-bottom: 20px;
}

#about-me-container {
  display: flex;
}

#about-me-text-container {
  padding-right: 10px;
}

#about-me-image-container img {
  margin-top: 10px;
}

about-me-image-container p {
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
}

/* Projects Section Styles */
#projects {
  grid-row: 2 / span 1;
  grid-column: 1 / span 1;  
  padding-bottom: 20px;
}

#projects h2 {
  margin-top: 0;
}

.project {
  margin-top: 10px;
  cursor: pointer;
}

.project-title {
  font-size: 1.1rem;
}

.project-description {
  cursor: default;
}

.project-img {
  cursor: default;
}

/* Skills Section Styles */
#skills {
  grid-row: 3 / span 1;
  grid-column: 1 / span 1;  
  padding-bottom: 20px;
}

#skills h2 {
  margin-top: 0;
}

.fa-brands {
  font-size: 2rem;
  margin: 5px 20px 0px 0px;
}

.fa-square-envelope {
  font-size: 2rem;
  margin: 5px 20px 0px 0px;
}

/* Footer Styles */
footer {
  grid-row: 3 / span 1;
  grid-column: 1 / span 3;
  display: flex;
  justify-content: center;
  margin-top: auto;
}

/* Contact Page Specific Styles */
.logo-link {
  text-decoration: none;
  color: rgb(43, 42, 41);
}