:root {
  --border-color: rgb(227, 227, 227);
  --accent-color: #50a3d9;
}

.material-symbols-outlined {
  scale: 0.8;
  width: 20px
}

.mail-positon {
  transform: translateY(7px);
}

h1,
h2,
h3,
h4,
ul,
p {
  padding: 0px;
  margin: 0px;
}

body {
  display: flex;
  font-family: "Open Sans";
  justify-content: center;
}

div.container {
  flex-direction: column;
  padding: 1rem;
  max-width: 1024px;
}

.bottom-border {
  border-bottom: 1px solid var(--border-color);
}

div.head_photo-name {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: inherit;
}

div.head {
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
  align-items: center;
}

div.name-title {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: inherit;
}

h2.head_name {
  font-size: 1.6rem;
  font-weight: 400;
}

h2.head_title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--accent-color);
}

img.head_photo {
  width: 100px;
  transform: translateY(-10px);
}

div.img-container {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  overflow: hidden;
}

div.img-shadow {
  position: absolute;
  top: 1rem;
  width: 100px;
  height: 100px;
  border-radius: 20px;
  z-index: 4;
  box-shadow: inset 0 0 2px white;
}

img.head_photo::before {
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  right: 100%;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    100% 100% at 50% 50%,
    #545c6f 0,
    #3e4452 40%,
    #ffffff00 50%
  );
  height: 300px;
  width: 300px;
}

header {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  height: 100px;
}

ul.contact-list {
  list-style-type: none;
  display: grid;
  grid-template-columns: auto auto;
  height: inherit;
  column-gap: 1rem;
  align-content: space-evenly;
}

li.head_link-item {
  display: flex;
  align-items: flex-end;
  gap: 0.4rem;
}

img.link-logo {
  width: 1rem;
  padding-left: 4px;
}

a.link,
a.link:visited {
  text-decoration: none;
  color: black;
}

a.link_underlined {
  text-decoration: underline;
}

h3.section-title {
  color: var(--accent-color);
  text-transform: uppercase;
  font-family: monospace;
  font-weight: 400;
  font-size: x-large;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

h3.main-section_subtitle {
  font-style: italic;
  text-decoration: underline;
  font-weight: 600;
}

h4.experience_title {
  padding-top: 1rem;
  font-weight: bold;
}

ul.experience_description {
  margin-bottom: 0.5rem;
}

span.experience_tech-stack {
  font-style: italic;
}

ul.experiences-list {
  display: flex;
  flex-direction: column;
  list-style-type: none;
  gap: 2rem;
}

li.experience_item {
  list-style-type: disc;
}

span.work-title {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
}

span.experience_period {
  font-weight: 600;
}

ul.list {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
  gap: 0.6rem;
  margin-left: 1rem;
}

section.skills,
section.education {
  margin-top: 1rem;
}

section.education_item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact_link {
  font-size: 0.9rem;
  text-align: center;
}

section.about-me {
  border: none;
}

section.experience {
  margin-top: 1rem;
}

ul.skills-list {
  margin-top: 0;
}

span.skill-name {
  font-weight: bold;
}

section.education {
  margin-top: 1rem;
}

br.print-extra{
  display: none
}

@media screen and (max-width: 768px) {
  header {
    height: auto;
    grid-template-columns: auto;
    grid-template-rows: auto auto;
    row-gap: 1rem;
  }

  ul.head_links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: space-around;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #202124;
    color: white;
  }

  a.link,
  a.link:visited {
    color: white;
  }

  div.img-shadow {
    box-shadow: inset 0 0 2px #202124;
  }

  img.link_github {
    content: url("./assets/github-mark-white.svg");
  }
}

@media print {
  div.img-shadow,
  div.img-container {
    display: none;
  }

  div.head {
    padding-bottom: 0;
  }

  br.print-extra{
    display: inline
  }
}
