/* roboto-regular - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('../fonts/roboto-v29-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/roboto-v29-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

/* roboto-700 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: local(''),
       url('../fonts/roboto-v29-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
       url('../fonts/roboto-v29-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Liberation Sans', 'Roboto', sans-serif;
  background-color: #eee;
  color: #222;
  transition: all 0.5s;
}

.page {
  max-width: 210mm;
  max-height: 297mm;
  background-color: white;
  margin: auto;
  margin-top: 2em;
  margin-bottom: 2em;
  filter: drop-shadow(0px 0px 5px lightgray);
}

.inner-page {
  padding: 2em;
  /* padding-bottom: 1.5em; */
}

.main-header {
  width: 100%;
}

.name {
  display: inline;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /* margin-top: 0.5em; */
}

.contact {
  margin-top: 0.5em;
  @media screen and (max-width: 380px) {
    flex: 0 0 25%;
    text-wrap: nowrap;
  }
}

.contacts a {
  color: inherit;
  text-decoration: none;
}

.contacts a:hover {
  text-decoration: underline;
}

.subheader {
  border-bottom: 2px dotted black;
  margin-bottom: 0.5em;
}

h2 {
  margin-bottom: 0.25em;
  font-size: 1.25em;
}

p {
  margin: 0.5em 0 0.5em 0;
}

.experience-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  /* column-gap: 2em; */
  justify-content: space-between;
  /* margin-bottom: -0.7em; */
}

.exp-item {
    width: 49%;
}

.exp-item:nth-child(odd):not(:nth-last-child(-n + 2)) + .exp-item, .exp-item:nth-child(odd):not(:nth-last-child(-n + 2)) {
  margin-bottom: 1em;
}

.period {
  float: right;
  margin-top: -1.5em;
  font-size: 0.7em;
}

.role {
  font-size: 1em;
  font-weight: bold;
  display: block;
}

.company {
  font-size: 0.9em;
  /* display: block; */
  /* width: 100%; */
}

.exp-item > p {
  margin-bottom: 0.25em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
}

.tag {
  border: 1px solid #aaa;
  border-radius: 0.2em;
  padding: 0.1em 0.5em;
  font-size: 0.8em;
  white-space: nowrap;
  margin-top: 0.25em;
}

.tag:not(:last-child) {
  margin-right: 0.2em;
}

.tag:hover {
  background-color: #eee;
}

.gradu-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5em;
}

.gradu-item {
  display: flex;
  justify-content: space-between;
  width: 49%;
}

.gradu-title {
  display: block;
  font-weight: bold;
}

.gradu-institution {
  font-size: 0.9em;
}

.gradu-period {
  float: right;
  font-size: 0.7em;
  white-space: nowrap;
}

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

.pro-dev-item {
  font-size: 0.8em;
  width: 49%;
  display: flex;
  justify-content: space-between;
}

.pro-dev-item:not(:nth-last-child(-n + 2)) {
  margin-bottom: 0.2em;
}

.pro-dev-header {
  display: flex;
  width: 100%;
}

.pro-dev-item > * > .title {
  width: 55%;
}

.pro-dev-item > * > .organizer {
  width: 45%;
}

.pro-dev-item > * > span.title {
  font-weight: bold;
}

.skills-and-languages {
  display: flex;
  width: 100%;
}

.skills__container {
    display: flex;
    font-size: 0.85em;
    gap: 0.5em;
}

.skills__column {
    min-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

.skills__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.skills__category {
    font-weight: bold;
}

.skills__item {
    /* padding: 0.1em 0; */
}

.skills {
  width: 70%;
  margin-right: 0.25em;
}

.languages {
  width: 30%;
}

.languages > p,
.skills > p {
  font-size: 0.8em;
}

h1 {
  margin-bottom: 0.2em;
}

.header {
  border-bottom: 2px solid black;
  display: flex;
  justify-content: space-between;
}

.skill-category {
  font-weight: bold;
  margin-bottom: 0;
  margin-top: 0;
}

.skill-desc {
  margin: 0;
}

.skill-desc:not(:last-child) {
  margin: 0 0 0.2em 0;
}

.language {
  font-size: 0.85em;
  margin-bottom: 0.2em;
}

.lang-name {
  font-weight: bold;
  width: 60%;
}

.level::before {
  content: " (";
}

.level::after {
  content: ")";
}

.hide {
  display: none !important;
}

footer {
  max-width: 210mm;
  margin: auto;
  margin-top: 1em;
  margin-bottom: 2em;
}
.cta {
  display: flex;
  justify-content: space-between;
  @media screen and (max-width: 768px) {
    padding: 0 0.5em;
  }
}

.cta > * {
  padding: 5px;
}

.cta a {
  color: black;
}

.cta a:hover {
  color: #333;
}

.age-location-nationality {
  font-size: 0.75em;
  white-space: nowrap;
  float: right;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}

/* Adjust for big screens */
@media screen and (min-width: 2560px) {
  body {
    transform: scale(1.2);
    transform-origin: top center;
    overflow-x: hidden;
  }
}

/* Adjust for tablets */
@media screen and (max-width: 768px) {
  body {
    margin: 0;
  }
  .page {
    margin: 0;
  }
  .exp-item {
    width: 100%;
    flex-grow: 1;
  }
  .page {
    max-height: 100%;
  }
  .pro-dev-item {
    width: 100%;
  }
  .gradu-container {
    flex-direction: column;
  }
  .gradu-item {
    width: 100%;
  }
  .gradu-item:not(:last-child) {
    /* margin-bottom: 0.5em; */
  }

  .exp-item:not(:nth-last-child(1)) {
    margin-bottom: 1em;
  }

  .skills__container {
      flex-wrap: wrap;
  }

  .skills__column {
      min-width: 100%;
  }
}

/* Adjust layout for small screens */
@media screen and (max-width: 480px) {
  .skills-and-languages {
    display: block;
  }
  .skills {
    width: 100%;
  }

  .languages {
    width: 100%;
  }
}

/* Adjust for old phones */
@media screen and (max-width: 360px) {
  .period {
    /* display: inline; */
    float: none;
    width: 100%;
    margin: 0;
  }
  .exp-item > p {
    display: block;
  }
  .company {
    display: block;
  }
  .role {
    display: block;
  }
  .gradu-item {
    display: block;
  }
  .gradu-period {
    float: left;
  }
  .pro-dev-header {
    display: block;
  }
  .pro-dev-header > .title {
    width: 100%;
    display: block;
  }
}

/* Adjust for page printing */
@media print {
  @page {
    margin: 0;
    size: letter;
  }

  .page {
    box-shadow: none;
    filter: none;
    height: 277mm;
    width: 210mm;
    margin-top: 0;
    margin-bottom: -2em;
    page-break-after: avoid;
  }
  footer {
    display: none;
  }

  div.contact:last-child {
    display: none;
  }
}

.icon {
  margin-right: 0.3em;
}

.icon::before {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.cta > .mail::before {
  font-family: "fontello";
  content: "\e801";
  margin-right: 0.3em;
}

.cta > .linkedin::before {
  font-family: "fontello";
  content: "\f0e1";
  margin-right: 0.3em;
}

.cta > .download::before {
  font-family: "fontello";
  content: "\f1c1";
  margin-right: 0.3em;
}

.cta > .abc::before {
  font-family: "fontello";
  content: "\f0e1";
  margin-right: 0.3em;
}

/* div.contact.mail::before {
  content: '\e801';
  font-family: 'fontello';
  font-size: 110%;
  margin-right: 0.3em;
}

div.contact.linkedin::before {
  content: '\f0e1';
  font-family: 'fontello';
  font-size: 110%;
  margin-right: 0.3em;
}
div.contact.site::before {
  content: '\e800';
  font-family: 'fontello';
  font-size: 110%;
  margin-right: 0.3em;
}
div.contact.pdf::before {
  content: '\f1c1';
  font-family: 'fontello';
  font-size: 110%;
  margin-right: 0.3em;
} */
