html {
  /* Prevents iOS from changing the font size automatically */
  -webkit-text-size-adjust: 90%;
  text-size-adjust: 90%;
}

:root {
  --main-font: "Open Sans", sans-serif;
  --font-size-base: 0.65rem;
  --line-height-base: 1.5;
  --margin-page: 1in;
  --margin-header: 0.5in;
  --margin-footer: 0.5in;
  --sheet-width: 816px;
  --sheet-height: 1056px;
  --padding-side: 38px;
  --padding-top-bottom: 48px;
  --font-color: #444444;
}

html,
body {
  height: 100%;
  margin: 0;
  background-color: #bbbbbb;
  font-weight: 300;
}

.back {
  font-size: 0.65rem;
  display: flex;
  color: var(--font-color);
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  min-width: var(--sheet-width);
  padding: 2rem;
  box-sizing: border-box;
  overflow: visible;
}

.sheet {
  font-family: var(--main-font);
  height: var(--sheet-height);
  width: var(--sheet-width);
  min-width: var(--sheet-width);
  background-color: #ffffff;
  box-shadow: #666666 0px 0px 10px 2px;
  overflow-x: hidden;
  overflow-y: hidden;
  display: flex;
  flex-direction: row;
  font-size: var(--font-size-base);
}

section#main {
  width: 65%;
  padding-left: var(--padding-side);
  padding-right: 28px;
  padding-top: var(--padding-top-bottom);
  padding-bottom: var(--padding-top-bottom);
  box-shadow: #000000 0px 10px 0px 0px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.65rem;
}

.description {
  font-style: italic;
  font-size: 0.65rem;
}

p {
  margin: 0rem;
}

section#main .achievements {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

h4 {
  font-size: 0.7rem;
  font-weight: 550;
  margin: 0.2rem 0rem;
}

h2 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  font-size: 1.2rem;
  font-weight: 320;
  text-transform: uppercase;
  margin: 0rem 0rem 0.5rem 0rem;
}

h2 .icon-container {
  font-size: 1.3rem;
}

h1 {
  font-size: 1.4rem;
  text-transform: uppercase;
  margin: 0rem 0rem 0.25rem 0rem;
  font-weight: 300;
}

strong {
  font-weight: 580;
}

em {
  font-style: italic;
  /* text-decoration: #d7d7d7 underline dotted; */
}

code {
  font-size: 0.6rem;
}

.job-item .icon-container,
.education-item .icon-container {
  font-size: 0.65rem;
}

.job-heading,
.education-heading {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.job-heading a,
.education-heading a {
  text-decoration-line: none;
  text-decoration-style: solid;
  font-weight: 300;
  color: var(--font-color);
}

.job-company-role,
.education-school-degree {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.job-location-date,
.education-location-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.job-company .icon-container,
.education-school .icon-container,
.job-location .icon-container,
.education-location .icon-container {
  font-size: 0.95rem;
}

.job-role .icon-container,
.job-date .icon-container,
.education-degree .icon-container,
.education-date .icon-container {
  font-size: 0.85rem;
}

.job-company a,
.job-company,
.job-location,
.education-school a,
.education-school,
.education-location {
  font-size: 0.8rem;
  font-weight: 600;
}

.job-role,
.job-date,
.education-degree,
.education-date {
  font-size: 0.75rem;
  font-weight: 300;
  font-style: italic;
}

.job-list,
.education-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.job-item,
.education-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.job-content li ul {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.job-content ul {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.job-item ul {
  margin-top: 0rem;
  margin-bottom: 0rem;
  padding-left: 1rem;
}

li::marker {
  font-size: 0.65rem;
  color: var(--font-color);
  content: "•  ";
}

section#side {
  width: 27%;
  background-color: #dcdcdc;
  padding-top: var(--padding-top-bottom);
  padding-bottom: var(--padding-top-bottom);
  padding-left: 25px;
  padding-right: var(--padding-side);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  font-size: 0.75rem;
}

section .section-title {
  font-size: 1rem;
  font-weight: 400;
  /* letter-spacing: 2px; */
  margin-bottom: 0.5rem;
  /* border-bottom: 1px solid #888888;
    padding-bottom: 4px; */
  text-transform: uppercase;
}

#contacts {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.7rem;
}

.icon-text-wrapper {
  display: inline-flex; /* Keeps the wrapper only as wide as its content */
  align-items: center; /* Vertically centers the icon and text */
  gap: 5px; /* Space between icon and text */
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1em; /* Matches the height of the current text font-size */
  width: 1em; /* Keeps the icon container square */
  font-size: 0.85rem;
}

.skill-name-icon .icon-container {
  width: 1.4em;
}

a {
  text-decoration-line: none;
  text-decoration-style: solid;
  font-weight: 300;
}

.skill-list,
.language-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-category-title {
  font-weight: 700;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  /* border-bottom: 1px solid #888888;
    padding-bottom: 2px; */
}

.skill-item {
  position: relative;
  cursor: pointer;
}

.skill-description {
  position: absolute;
  width: 11.8rem;
  background-color: #e4e4e4;
  padding: 0.3rem;
  border: 2px solid #444444;
  border-radius: 0.5rem;
  left: 0;
  bottom: calc(100% + 0.35rem);
  z-index: 10;
  transform: translateY(0.25rem);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.skill-item:hover .skill-description {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.skill-name-level {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  /* gap: 0.5rem; */
  /* border: 2px solid #333333; */
}

/* Make the name+icon and level each take up available width */
.skill-name-level > .skill-name-icon {
  display: flex;
  min-width: 0;
}

.skill-level {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 0;
  min-width: 0;
}

.skill-level .icon-container {
  font-size: 1rem;
  height: 0.9rem;
  width: 0.9rem;
}

.web-component {
  display: inline;
}

.pdf-component {
  display: none;
}

@media print {
  @page {
    margin: 0;
  }

  html,
  body {
    height: auto;
    background: #ffffff;
    margin: 0;
  }

  /* Print only what is inside the sheet */
  body * {
    visibility: hidden;
  }

  .sheet,
  .sheet * {
    visibility: visible;
  }

  /* Remove screen-only framing */
  .back {
    display: block;
    min-height: auto;
    padding: 0;
    overflow: visible;
  }

  .sheet {
    box-shadow: none;
    margin: 0;
    width: var(--sheet-width);
    height: var(--sheet-height);
    overflow: hidden;
  }

  section#side {
    height: var(--sheet-height);
  }

  .web-component {
    display: none;
  }

  .pdf-component {
    display: inline;
  }
}

.tex sub,
.latex sub,
.latex sup {
  text-transform: uppercase;
}

.tex sub,
.latex sub {
  vertical-align: -0.5ex;
  margin-left: -0.1667em;
  margin-right: -0.125em;
}

.tex,
.latex,
.tex sub,
.latex sub {
  font-size: 0.75rem;
}

.latex sup {
  font-size: 0.75rem;
  vertical-align: 0.15em;
  margin-left: -0.36em;
  margin-right: -0.15em;
}
