: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-dark-green: rgb(62, 122, 62);
}

html {
  height: 100%;
}

body {
  background: var(--cg-grey);
  position: relative;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  font-family: monospace;
  /*
  display: flex;
  flex-direction: column;
  */
}
/* 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);
  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-white);
  font-weight: bold;
  margin: 0 12px;
  text-decoration: none;
  letter-spacing: 2px;

  font-family: monospace;
}

.navbar a:hover {
  color: var(--cg-dark-green);
  text-decoration: none;
}

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

.logo a {
  font-family: Georgia;
}

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

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

.page-title {
  display: flex;
  justify-content: center;
  font-size: 40px;
  font-family: Georgia;
}

/* CSS for portfolio grid */


.projects {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  margin: 1em 0 2em 0;
  border: 1px solid black;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  
  justify-content: center;
  align-items: center;
  

  /* 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-details {
  display: flex;
  background-color: var(--cg-white);
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 1;
  margin:20px 0px;
  padding: 0 20px;
  line-height: 1.5;
  overflow: hidden;

  flex-direction: column;
  text-align: center;
  justify-content: center;
  /* Debug border */
  /* border: 2px solid green; */
}

.project-details p {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.project-details p ::-webkit-scrollbar-button{
  display: none;
  width: 0;
  height: 0;
}

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

.project-details a:hover {
  color: var(--cg-dark-green);
  text-decoration: none;
}

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

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

/* CSS for home page */

.about {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 20px;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 5px;
  /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}

.about-image img {
  max-width: 300px;
  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;
}

/* CSS for resume page */
.resume{
  padding: 20px;
  border: 1px solid #ccc;
  display: inline;
  border-radius: 5px;
}

a[href = "https://github.com/Penguin114/Lightweight-Spam-Classifier"]{
  color: black;
  text-decoration: none;
}

div.entry a[href = "index.html"]{
  color: black;
  text-decoration: none;
}


a[href = "resume.pdf"]{
  position: relative;
  margin: 0 auto 30px;
  color: green;
}

a[href = "resume.pdf"]:hover{
  color: rgb(38, 61, 38);
}

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

  font-family: monospace;

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

  border-radius: 2px;
}

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

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

/* Add some spacing to the form */
form {
  width: 500px;
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #ccc;
  display: inline;
  border-radius: 5px;
}

.contact-info{
  text-align: center;
  font-family: Georgia;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.contact-info a{
  color: green;
  text-decoration: none;
}

/* CSS for footer */

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

h1.page-title {
  color: green;
  font-family: "Sans Serif";}