* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

* + * {
  margin-top: 2rem;
}

html {
  font-size: 10px;
}

body {
  font-size: 1.6rem;
  max-width: 90rem;
  margin: 0 auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

  display: grid;
  grid-template-areas:
    "header"
    "main";
  grid-template-columns: 5fr;
  column-gap: 5%;

  margin-bottom: 10rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

h1 {
  font-size: 3.6rem;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 2rem;
}

.intro {
  grid-area: header;

  padding-top: 20vh;
}

.content {
  grid-area: main;
  margin-top: 0rem;
}

.content p {
  line-height: 1.6;
}

.content section {
  margin-top: 2rem;
}

nav {
  grid-area: sidebar;
}

/** Skills **/
.sec-skills {
  display: grid;
  column-gap: 2rem;
  grid-template-columns: 1fr;

  & h1 {
    grid-column: 1;
  }
}

@media (width > 700px) {
  .sec-skills {
    grid-template-columns: repeat(2, 1fr);

    & h1 {
      grid-column: 1 / span 2;
    }
  }
}

.sec-skills ul {
  margin-left: 2rem;

  & * + * {
    margin-top: 1rem;
  }
}

/** Projects **/
.sec-projects ul {
  list-style: none;
}

/* Code */
.sec-projects .proj-code .project {
  font-weight: bold;
  font-size: 1.2em;
}

.sec-projects .proj-code .period {
  color: #777;
  margin-top: 0;
}

.sec-projects .proj-code .description {
  margin-top: 0;
}

.sec-projects .proj-code .link {
}

/* IRL */
.sec-projects .proj-irl {
  margin-left: 8rem;
  position: relative;
}

.sec-projects .proj-irl .project {
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 0;
}

.sec-projects .proj-irl .icon {
  max-width: 6.3rem;
  margin: auto auto;
  /* border: 1px solid #ccc; */
  padding: 0.5rem;
  position: absolute;
  left: -7rem;
}

.sec-projects .proj-irl .period {
  color: #777;
  margin-top: 0;
}

.sec-projects .proj-irl .description {
  margin-top: 0.5rem;
}

/* Roblox */
.sec-projects .proj-game {
  margin-left: 8rem;
  position: relative;
}

.sec-projects .proj-game .icon {
  max-width: 6.3rem;
  margin: auto auto;
  /* border: 1px solid #ccc; */
  padding: 0.5rem;
  position: absolute;
  left: -7rem;
}

.sec-projects .proj-game .project {
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 0;
}

.sec-projects .proj-game .period {
  color: #777;
  margin-top: 0;
}

.sec-projects .proj-game .title {
  color: #777;
  margin-top: 0;
}

.sec-projects .proj-game .description {
  margin-top: 0;
}

/** Education **/
.sec-education ul {
  list-style: none;
}

.sec-education .education {
  display: grid;
  grid-template-columns: 7rem 1fr;
  column-gap: 1rem;
}

.sec-education .education p {
  margin-top: 0;
}

.sec-education .education .icon {
  grid-column: 1 / 1;
  width: 90%;
  margin: auto auto;
  /* border: 1px solid #ccc; */
  padding: 0.5rem;
}

.sec-education .education .details {
  grid-column: 2 / 2;
  margin-top: 0rem;
}

.sec-education .education .details .institution {
  font-weight: bold;
  font-size: 1.2em;
}

.sec-education .education .details .period {
  color: #777;
}

/** Contact **/
.contact ul {
  list-style: none;
  display: flex;
  flex-direction: row wrap;
  gap: 1rem;
  align-items: center;
}

.contact ul li {
  margin-top: 0rem;
  position: relative;
}

.contact ul li a {
  padding-left: 2.5rem;
}

.contact ul li img {
  margin-top: 0rem;
  height: 2rem;
  position: absolute;
}

.contact ul :nth-child(2) ::after {
  width: 100%;
}

/** Links **/
a {
  color: rgb(30, 73, 138);
  text-decoration: underline;
  font-style: italic;
}

a:link {
}

a:hover {
  text-decoration: dashed;
}

a:visited {
}

a:active {
  text-decoration: underline;
}

/** Media query **/
/* hide navbar and flush content on mobile devices */
@media (max-width: 600px) {
  body {
    grid-template-areas:
      "header"
      "main"
      "sidebar";
    column-gap: 0;
  }

  nav {
    display: none;
  }

  .content {
    margin-top: 0;
  }
}
