:root {
  --color1: #f22b29;
  --color2: #140f2d;
  --color3: #d72638;
  --color4: #3f88c5;
  --color5: #f49d37;
  --border-width: 0.1em;
  --theme-color: var(--color5);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #161616;
    --bg-color2: #232323;
    --fg-color: #ededed;
    --fg-color2: #d0d0d0;
  }
}
@media (prefers-color-scheme: light) {
  :root {
    --bg-color: #fefefe;
    --bg-color2: #efefef;
    --fg-color: #222222;
    --fg-color2: #999999;
  }
}
body {
  background: var(--bg-color);
  color: var(--fg-color);
  min-width: 350px;
  max-width: 500px;
  width: 90%;
  margin: 2em auto;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--theme-color);
}

.item-url {
  color: var(--fg-color);
  text-decoration: none;
}

.disabled-link {
  pointer-events: none;
}

div.title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  margin: 20px;
}

.contact {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
}
.contact .item {
  background-color: transparent;
  border: 0px;
}
.contact .item .name {
  font-weight: 600;
}
.contact .item + .item {
  margin-left: 10px;
}

section {
  margin-bottom: 10px;
}
section h2 {
  position: relative;
  width: fit-content;
}
section h2:after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 65%;
  left: -5%;
  width: 110%;
  height: 35%;
  background-color: var(--theme-color);
  opacity: 0.75;
}
section .item {
  display: flex;
  flex-direction: column;
  color: var(--fg-color);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--fg-color2);
}
section .item .info {
  display: flex;
  flex-direction: column;
  margin-bottom: 5px;
}
section .item .info .primary {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1px;
}
section .item .info .secondary {
  font-style: oblique;
  margin-bottom: 1px;
}
section .item .info .duration {
  color: var(--fg-color2);
  width: fit-content;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 10px;
}
.experience {
  display: grid;
  row-gap: 20px;
}

.education {
  display: grid;
  row-gap: 20px;
}

.project {
  display: grid;
  row-gap: 20px;
}

.skill {
  display: grid;
  row-gap: 10px;
}
.skill .item {
  border: 0px;
  padding: 0px;
  display: list-item;
  list-style: square inside;
  color: var(--theme-color);
}
.skill .item span {
  color: var(--fg-color);
}
