:root {
  --bg: #def2ff;
  --bg-grad: linear-gradient(to bottom, #00eeff 0%, #00ffff 100%);
  --text: #222530;
  --blue-text: #225498;
  --skills-bg: #b1e0ff;
  --footer-text: rgb(58, 72, 255);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #222530;
    --bg-grad: linear-gradient(to bottom, #151621 0%, #222530 100%);
    --text: #e8e8e8;
    --blue-text: #b9e2ff;
    --skills-bg: #0f2264;
    --footer-text: rgb(104, 202, 255);
  }
}

html, body {
  font-family: Arial;
  margin: 0 auto;
  scroll-behavior: smooth;
  background-color: var(--bg);
  background: var(--bg-grad);
  color: var(--text);
}

nav {
  overflow: hidden;
  padding: 10px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  background: linear-gradient(45deg, #508dff 0%, #50FFC0 100%);
}

nav a {
  text-decoration: none;
  font-weight: bold;
  color: rgb(60, 60, 60);
  padding: 12px 22px;
  text-align: center;
  font-size: 15px;
  line-height: 3;
  transition: color 0.1s;
  -webkit-transition: color 0.1s;
}

nav a:hover {
  color: black;
}

nav a img {
  text-align: center;
  vertical-align: middle;
  padding: 0 28px;
  border-radius: 50%;
}

@media screen and (max-width: 600px) {
  nav #navlink {
    display: none;
  }

  nav a img {
    padding: 6px 6px;
  }
}

main {
  width: 95%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 0.5% 5%;
  margin-top: 5%;
}

.section h1 {
  font-size: 30px;
  color: var(--blue-text);
}


section {
  padding: 0.5% 5%;
  margin-top: 5%;
}

section h2 {
  font-size: 20px;
}

/* Section 1 - Intro */

.intro {
  padding-bottom: 5%;
}

/* Section 2 - Skills */

.skills span {
  color: var(--text);
  padding: 10px 15px;
  border: 1px hidden black;
  border-radius: 10px;
  background: var(--skills-bg);
  display: inline-block;
  margin-bottom: 10px;
}

.project-flex {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px 25px;
}

@media (max-width: 800px) {
  .project-flex {
    flex-direction: column;
  }
}

.project {
  flex-basis: auto;
  flex: 40%;
  padding: 15px 15px;
  border: 1px solid black;
  border-radius: 20px;
}

footer {
  text-align: center;
  padding: 0.5% 0;
  margin-bottom: 0px;
  margin-top: 6%;
  /*color: #74c5ff;*/
  color: var(--footer-text);
}
