*,
::after,
::before {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
/* Remove focus outline for mouse users */
*:focus {
  outline: none;
}
/* Basic */
html,
body {
  margin: 0;
}
body {
  transition: background-color 0.3s ease-in, color 0.3s ease-in;
}
body.dark {
  background-color: #191919;
  color: white;
}
body.dark a {
  color: #83abec;
}
a.open-external {
  position: relative;
  margin-right: 1rem;
}
.external {
  position: absolute;
  font-size: 0.8em;
  top: -2px;
}
[v-cloak] {
  display: none;
}
.controls {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin: 1rem;
}
.controls .flag {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease-in;
  width: 46px;
  height: 46px;
}
.controls .flag.selected {
  opacity: 1;
}
.copy-mail {
  padding: 0.5rem;
}
select,
button {
  font-size: 1rem;
  padding: 0.3rem 0.6rem;
}
#resume {
  opacity: 0;
  will-change: opacity;
  animation: fadeIn 0.7s forwards;
  font-size: 12pt;
  font-family: "Poppins", sans-serif;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
  max-width: 210mm;
  min-height: 297mm;
  margin: 10mm auto;
  padding: 0 10mm;
}
#resume p,
#resume li,
#resume dl {
  margin: 0;
}
#resume p {
  margin-bottom: 10px;
  word-break: auto-phrase;
}
#resume h1,
#resume h2,
#resume h3 {
  font-weight: bold;
}
#resume h1 {
  font-size: 2.13em;
}
#resume h2,
#resume h3 {
  margin: 5px 0;
  font-size: 1.2em;
}
#resume h2 {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  margin: 10px 0;
}
#resume ul,
#resume ol {
  padding-left: 1.5em;
  margin: 0.2em 0;
}
#resume ul {
  list-style-type: circle;
}
#resume ol {
  list-style-type: decimal;
}
#resume dl {
  display: flex;
}
#resume dl dt,
#resume dl dd:not(:last-child) {
  flex: 1;
}
@media print {
  .controls,
  .copy-mail,
  .external {
    display: none !important;
  }
  a.open-external {
    margin-right: unset;
  }
  #resume {
    padding: 0;
    margin: 0 auto;
    line-height: 1.25rem;
    font-size: 12pt !important;
    background-color: white !important;
    color: black !important;
    min-height: unset;
  }
  #resume h2 {
    line-height: 1.5rem;
  }
  #resume p,
  #resume li {
    color: grey;
  }
  #resume strong {
    color: black;
  }
  body {
    margin: 0px;
    padding: 0px;
  }
}
@page {
  size: A4 portrait;
  margin: 0 10mm;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
body {
  --bg-color: transparent;
  --text-color: #303030;
  --transition: all 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}
body.dark {
  --bg-color: transparent;
  --text-color: #ebeaf7;
}
@media (prefers-color-scheme: dark) {
  body {
    --bg-color: transparent;
    --text-color: #808080;
  }
  body.light {
    --bg-color: transparent;
    --text-color: grey;
  }
}
.theme-switch {
  display: flex;
  justify-content: center;
  align-items: center;
}
.theme-switch .checkbox {
  opacity: 0;
  position: absolute;
}
.theme-switch .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 50px;
  position: relative;
  height: 40px;
  width: 80px;
  cursor: pointer;
  box-shadow: 0 0 0 2px grey;
  transition: var(--transition);
}
.theme-switch .label:hover .moon,
.theme-switch .label:hover .sun {
  transform: rotate(360deg);
}
.theme-switch .ball {
  transition: var(--transition);
  background-color: var(--text-color);
  position: absolute;
  border-radius: 50%;
  top: 5px;
  left: 5px;
  height: 30px;
  width: 30px;
}
.theme-switch .moon {
  color: #f1c40f;
  transform-origin: center center;
  transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  transform: rotate(0);
}
.theme-switch .sun {
  color: #ff6b00;
  transform-origin: center center;
  transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  transform: rotate(0);
}
.theme-switch .ball {
  transform: translatex(0);
}
.dark .theme-switch .ball {
  transform: translatex(40px);
}
@media (prefers-color-scheme: dark) {
  .theme-switch .ball {
    transform: translatex(40px);
  }
  .light .theme-switch .ball {
    transform: translatex(0);
  }
}
