/* ––––––––––––––––––––––––––––––––––––––––––––––––––----------------------- */
/* Copy pasta to match width with padding */
* {
  box-sizing: border-box;
}

/* width */
::-webkit-scrollbar {
  width:  8px;
  height: 8px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ––––––––––––––––––––––––––––––––––––––––––––––––––----------------------- */
/* Typography */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(/src/fonts/static/roboto-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/src/fonts/static/roboto-mono-latin.woff2') format('woff2'),
       url('/src/fonts/static/roboto-mono-regular.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

h1, h2, h3, h4, h5, h6 {
  margin-top:    0;
  margin-bottom: 0;
}

h1 {
  font-size:      3.0em;
  line-height:    1.2;
  letter-spacing: -.05em;
  margin-bottom:  0.5em;
}

h2 {
  font-size:      2.5em;
  line-height:    1.25;
  letter-spacing: -.05em;
  margin-bottom:  0.5em;
  margin-top:     0.3em;
}

h3 {
  font-size:      2.0em;
  line-height:    1.3;
  letter-spacing: -.03em;
  margin-bottom:  0.5em;
  margin-top:     0.3em;
}

h4 {
  font-size:      1.3em;
  line-height:    1.35;
  letter-spacing: -.03em;
  margin-bottom:  0.5em;
  margin-top:     0.3em;
}

h5 {
  font-size:      1.0em;
  line-height:    1.5;
  letter-spacing: -.03em;
  margin-bottom:  0.5em;
  margin-top:     0.3em;
}

h6 {
  font-size:      0.9em;
  line-height:    1.6;
  letter-spacing: 0;
  margin-bottom:  0.5em;
  margin-top:     0.75em;
}

p {
  margin-top: 0;
}

ul {
  padding-left: 0.3em;
}

a {
  font-family: 'Roboto Mono', 'monospace', 'Roboto', 'sans';
  color:       #66d9ef;
}
a:hover {
    font-weight: bold;
}

/* ––––––––––––––––––––––––––––––––––––––––––––––––––----------------------- */
/* Base Styles */
html {
  font-size: 62.5%;
  height:    100%;
}

body {
  margin:           0;
  padding:          1.8em;
  font-size:        1.6em; /* currently ems cause chrome bug misinterpreting rems on body element */
  line-height:      1.5;
  font-weight:      400;
  font-family:      'Roboto Mono', 'monospace', 'Roboto', 'sans';
  color:            #d4d4d4;
  background-color: #d4d4d4;
  min-height:       100%;
  height:           100%;
  transition:       padding 0.5s;
}

hr {
  margin-top: 0.8em;
  margin-bottom: 0.2em;
  border: 0;
  height: 2px;
}

hr.gradient {
  margin: 1.6em 0 1.0em 0;
  background: linear-gradient(to left, rgba(56, 57, 52, 0), rgba(100, 100, 100, 255), rgba(56, 57, 52, 0)) 100%;
}

hr.border {
  margin: 1.6em 0 1.0em 0;
  border: 1px solid #555652;
  background-color: #555652;
}

/* ––––––––––––––––––––––––––––––––––––––––––––––––––----------------------- */
/* Tables and lists */

table {
  border-collapse: collapse;
  width:           100%;
}

td, th {
  border:     1px solid #dddddd;
  text-align: left;
  padding:    0.35em;
}

tr:nth-child(even) {
  background-color: #dddddd;
}

ul, li {
  padding: 0.3em;
}

table.num {
  counter-reset: rowNumber;
}

table.num tr:not(:first-child) {
  counter-increment: rowNumber;
}

table.num tr td:first-child::before {
  content:      counter(rowNumber);
  min-width:    1em;
  margin-right: 0.5em;
}

/* ––––––––––––––––––––––––––––––––––––––––––––––––––----------------------- */
/* Main page */

#div-body-wrapper {
  display:                  grid;
  grid-template-columns:    1fr 2.4fr 1fr;
  grid-auto-rows:           minmax(1.5em, auto);
  grid-gap:                 0 0em;
  max-width:                1280px;
  -webkit-box-shadow:       0 2em 4em rgba(0, 0, 0, 0.3);
  -moz-box-shadow:          0 2em 4em rgba(0, 0, 0, 0.3);
  box-shadow:               0 2em 4em rgba(0, 0, 0, 0.3);
  margin:                   0 auto;
  background-color:         #282923;
  min-width:                0;
  border-radius:            20px;
}

#div-body-wrapper > div {
  padding: 1.5em;
}

#div-header-logo {
  grid-row:         1;
  grid-column:      1 / 5;
  min-width:        0;
  /*max-height:       4em;*/
  padding:          0.8em !important;
  height:           auto;
  text-align:       center;
  background:       #3c3b37;
  border-radius:    20px 20px 0px 0px;
}

#div-title {
  font-family: monospace;
  color:       #a6e22e;
  font-size:   1.6em;
}

#div-footer {
  height:      7em;
  grid-row:    3;
  grid-column: 1 / 5;
  padding:     2em 4em 2em 4em;
  background:  #272822;
  font-family: monospace;
  color:       #f8f8f2;
  text-align:  center;
  overflow: hidden;
  border-radius: 20px;
}
/* ––––––––––––––––––––––––––––––––––––––––––––––––––----------------------- */
/* Columns */

#div-col-01 {
  grid-row:   2;
  background: #272822;
  width:      auto;
  height:     100%;
  min-height: 800px;
  max-width:  30vw;
  color:      #d4d4d4;
}

#div-body-wrapper > #div-col-01 {
  padding: 8%;
}


.container-block-title {
  color: #a6e22e;
}

#div-profile-pic {
  width: 100%;
  height: 0;
  max-height: 500px;
  padding-bottom: 100%;
  position: relative;
  overflow: hidden;
}

.profile-pic {
  /* width:            auto; */
  /* height:           auto; */
  padding:          0.5em;
  max-width:        100%;
  max-height:       100%;
  border-radius:    20px;

  /* Avoid layout shift (needed due to the parent div) */
  position: absolute;
  top: 0;
  left: 0;

  /* Center (absolute) profile pic */
  margin: auto;
  right: 0;
  text-align: center;
  z-index: 1;
}

video.profile-vid {
  padding: 0.5em;
  max-width: 100%;
  max-height: 100%;
  border-radius: 20px;

  /* Avoid layout shift (needed due to the parent div) */
  position: absolute;
  top: 0;
  left: 0;

  /* Center (absolute) profile pic */
  margin: auto;
  right: 0;
  text-align: center;
  z-index: 1;
}

.whereabouts {
  white-space: nowrap;
}

.current-position {
  padding:    0.1em 0.1em 0em 0.1em;
  margin-bottom: 0em;
  text-align: center;
}

.professional-background {
  text-align: center;
  padding-left: 0.6em;
  font-size: 85%;
}

.location {
  text-align: left;
  padding-left: 0.6em;
  font-size:  85%;
}

li.contact {
  width: 100%;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.contact a {
  display: inline-block;
  height: fit-content;
}

.contact > span {
  letter-spacing: -1px;
  font-size: 84%;
  display: inline-block;
  white-space: nowrap;
}

#div-col-02 {
  margin-top: 1.5em;
  padding:    0 2em 0 2em;
  grid-row:   2;
}

#div-col-02 ~ .gradient {
  display: none;
}

#div-col-03 {
  padding:  0 2em 0 2em;
  grid-row: 2;
}

/* ––––––––––––––––––––––––––––––––––––––––––––––––––----------------------- */
/* Education */

/* .education-container {} */

.education-container > div {
  padding-left: 0.5em;
}

.education-container > div.item {
  border: 1px solid #383934;
  margin: 1em 0 1em 0;
}

/* TODO(bkind): rename this "meta" class */
.education-container > div.item > .meta {
  font-size:  80%;
  text-align: right;
}

.meta, .meta > a {
  text-decoration: none;
  color: #e4d873;
}

.education-container > div.item > .time {
  font-size:  80%;
  text-align: right;
  color:      #ac80ff;
}

/* ––––––––––––––––––––––––––––––––––––––––––––––––––----------------------- */
/* Achievements */

.achievements-container {
  padding-left: 0.3em;
}

.achievements-container > div {
  padding-left: 0.5em;
}

.achievements-container > div.item {
  border: 1px solid #383934;
  margin: 1em 0 1em 0;
}

.achievements-container > div.item > .achievement-desc {
  font-size: 80%;
  display:   inline-block;
  color:     #d4d4d4;
}

.achievements-container > div.item > .meta {
  font-size:  80%;
  color:      #e4d873;
  text-align: right;
}

.achievements-container > div.item > .time {
  font-size:  80%;
  text-align: left;
  color:      #ac80ff;
}

/* ––––––––––––––––––––––––––––––––––––––––––––––––––----------------------- */
/* Skills */

.skills-container {
  padding-left: 0.2em;
}

.skills-container > .skill-tier {
  color:   #fff;
  padding: 0 0 0.2em 0.3em;
}

.skills-list {
  width:           100%;
  display:         flex;
  justify-content: flex-start;
  flex-wrap:       wrap;
}

.skills-list > .skill {
  margin:        0.2em;
  padding:       0.1em 0.3em;
  border:        1px solid #555751;
  border-radius: 0.3em;
}

.skills-list > .skill:hover {
  color: #fd971f;
  border: 1px solid #d4d4d4;
}

#golang > a,
#golang > a:link,
#golang > a:visited {
  color: #d4d4d4;
}

#golang:hover > a {
  color: #fd971f;
}

#golang > a:active {
  color: #66e9df;
}

/* Experience and projects */

.project {
  border:  1px solid #383934;
  margin:  1em 0 1em 0;
  padding: 0.3em 0.45em 0.2em 0.45em;
}

.project-name {
  display:    inline-block;
  text-align: left;
  color:      #ff478b;
  width:      50%;
}

.project-loc {
  display:    inline-block;
  text-align: right;
  color:      #e4d873;
  width:      50%;
}

.project-desc {
  display: inline-block;
  color:   #d4d4d4;
}

.project-desc > li:before {
  content: '$ ';
  color:   #a6e22e;
}

.project-duration {
  display:    inline-block;
  width:      100%;
  font-size:  80%;
  text-align: right;
  color:      #ac80ff;
}

/* Hobbies */

.misc-container {
  padding-left: 0.2em;
}

.misc-container > .misc-category-title {
  color: #fff;
  padding: 0 0 0.2em 0.3em;
}

/* .misc-container > div {
  padding: 0 0 0.2em 0.3em;
} */

.misc-list {
  width:           100%;
  display:         flex;
  justify-content: flex-start;
  flex-wrap:       wrap;
}

.misc-list > .misc-item {
  margin:        0.2em;
  padding:       0.1em 0.3em;
  border:        1px solid #555751;
  border-radius: 0.3em;
}

.misc-list > .misc-item:hover {
  color: #fd971f;
  border: 1px solid #d4d4d4;
}
