@media (prefers-color-scheme: dark) {
  body {
    background-color: #1b1b1b;
    color: mintcream;
  }

  .header a.current {
    border: mintcream 1px solid;
  }
  .projects a {
    color: cornflowerblue;
  }

  .header a {
    color: mintcream;
  }

  a:hover {
    color: royalblue;
  }

  .grid .repo:nth-child(even){
    display: none;
  }


}

@media (prefers-color-scheme: light) {
  body {
    background-color: mintcream;
    color: #2a2a2a;
  }

  .projects a {
    color: cornflowerblue;
  }

  .header a {
    color: #1b1b1b;
  }

  .header a.current {
    border: #1b1b1b 1px solid;
  }
  a:hover {
    color: royalblue;
  }
  .grid .repo:nth-child(odd){
    display: none;
  }
}

/* Master */

html {
  margin-top: 20px;
	box-sizing: border-box;
}


/* Header */
.header {
  max-width: 1080px;
  margin: 0 auto;
}

.header h1 {
  margin: 0 20px;
}

.header a{
  text-decoration: none;
  margin: 0 20px;
  font-size: 1.5rem;
  display: inline-block;
  font-family: "Geist Mono", sans-serif;
  border-radius: 10px;
  padding: 5px 20px;
}

.navbar {
  margin: 0 auto;
  max-width:fit-content;
  padding: 10px 40px;
}

/* Content */

.content-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 30px 30px 30px;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.content-wrapper h2 {
  margin: 10px 20px 10px 0;
}
.content-wrapper h3 {
  margin: 0 0;
  font-size: 1.2rem;
}

p,h2,h3 {
  font-family: "Roboto", sans-serif;
}

p {
  line-height: 1.5;
}

h1 {
  font-family: "REM", sans-serif;
}
.date {
  font-size: 19px;
}

/* Github Repo Card */
.repo-single {
  max-width: 90%; 
  align-content: end;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 0.95fr));
  gap: 20px;
  justify-content: center;
}

/* Media Selector */
@media screen and (max-width: 600px) {
  .header a{
    font-size: 1rem;
    margin: 0 auto;
  }
  .navbar {
    margin: 0 auto;
  }
  p:first-of-type {
    margin-top:0;
  }
  .content-wrapper {
    padding: 0 20px 20px 20px;
  }
  .content-wrapper h3 {
    margin: 10px 0;
  }
}

.imgflex{
  display: flex;
  flex-wrap: wrap;
  margin: 10px;
  gap: 20px;
  justify-content: center;
  align-items: space-evenly;
  max-width: 150%;
  overflow: hidden;
}

.imgflex img {
  height: 220px;
  width: auto;
}

#img-cpu img {
  height: 240px;
}