@font-face {
  font-family: Louis;
  src: url(../ttf/Louis-George-Cafe.ttf);
}

@font-face {
  font-family: Neue;
  src: url(../ttf/NeueHaasDisplayRoman.ttf);
}

@font-face {
  font-family: Bighried-Ranbell;
  src: url(../ttf/U-O/Bighried-Ranbell.otf);
}

@font-face {
  font-family: Distant-Stroke;
  src: url(../ttf/U-O/Distant_Stroke.otf);
}

:root {
  --color-theme-bg: #efeae5;
  --color-theme-font: #754b4d;
  --color-theme-font-dark: #4c3030;
  --color-theme-red: #a86a65;
  --color-theme-gold: #ddc797;
  --color-theme-border: #aaa;
  --color-value-light: #ebe9e9;
  --color-value-midlight: #ddd;
  --color-value-mid: #ccc;
  --color-value-middark: #333;
  --color-value-dark: #000;
  --selector: #973737;
  --text-main-sans: Neue;
  --text-main-sans2: Louis;
  --text-main-icon: Bighried-Ranbell;
  --text-calligraphy-2: Distant-Stroke;
}

[data-theme="dark"] {
  --color-theme-bg: #141413;
  --color-theme-font: #b3a59f;
  --color-theme-font-dark: #7c6b66;
  --color-theme-red: #4e2726;
  --color-theme-gold: #daaf77;
  --color-value-light: #111;
  --color-value-midlight: #555;
  --color-value-mid: #444;
  --color-value-middark: #dbd9d9;
  --color-value-dark: #fff;
  --selector: #973737;
}

::selection {
  background-color: var(--color-theme-red);
  color: var(--color-theme-font);
}

::-moz-selection {
  background-color: var(--color-theme-red);
  color: var(--color-theme-font);
}

*:focus {
  outline: none;
}

*:focus-visible {
  position: relative;
  box-shadow: inset 0 0 0 9999px color-mix(in srgb, var(--selector) 30%, transparent);
  border-radius: 4px;
}

*:focus-visible::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -12px;
  width: 8px;
  height: 8px;
  background-color: var(--selector);
  border-radius: 50%;
}

.theme-switch:focus-visible {
  box-shadow: 0 0 0 3px var(--selector);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--text-main-sans), Georgia, "Times New Roman", Times, serif;
  background-color: var(--color-theme-bg);
  color: var(--color-theme-font);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  font-size: 12px !important;
}



.theme-toggle-bar {
  display: grid;
  justify-items: end;
  padding-left: 20px;
}

.theme-switch {
  width: 48px;
  height: 20px;
  background-color: var(--color-theme-red);
  border: none;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
  outline: none;
}

.theme-switch .orb {
  width: 16px;
  height: 16px;
  background-color: var(--color-value-midlight);
  border-radius: 50%;
  position: absolute;
  top: 10%;
  left: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

html[data-theme="dark"] .theme-switch .orb {
  transform: translateX(26px);
}

.theme-switch:hover {
  filter: brightness(1.05);
}

section {
  margin: 0 20vw;
}

#software-portfolio {
  width: 100%;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: calc(10px + 5vh);
  font-family: var(--text-main-sans);
  color: var(--color-theme-font-dark);
}

#cv-snippet {
  width: 100%;
  height: 100%;
  padding: 8vw;
  margin: 0;
  text-align: right;
}

.column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
}

#full-gallery .column {
  display: grid;
  grid-template-columns: 1fr 5fr;
  gap: 4vw;
  transition: 0.3s;
}

#full-gallery .column.hide-aside {
  grid-template-columns: 1fr;
}

#full-gallery .column.hide-aside .content {
  display: none;
}

#full-gallery .column.hide-aside aside {
  height: 0px;
  padding: 0px;
}

#cv-snippet h2 {
  font-style: italic;
  font-family: var(--text-calligraphy-2), Georgia, Sans-serif;
  font-size: 70px;
  font-weight: 100;
  color: var(--color-theme-red);
  margin-bottom: 50px;
}

#cv-snippet ul li {
  list-style-type: none;
}

#cv-snippet a {
  text-decoration: none;
  color: var(--color-theme-font);
  display: block;
}

#cv-snippet a:hover {
  color: var(--color-theme-red);
  transition: 0.1s;
}

h3 {
  margin-bottom: 2vw;
  font-family: var(--text-main-sans2);
}

.headings {
  display: grid;
  grid-template-columns: 1.2fr auto 1fr;
  justify-items: stretch;
  align-items: end;
  margin: 10vh 2vw 0 2vw;
  text-transform: uppercase;
  border-bottom: #6a3f3f solid 1px;
  padding-bottom: 5px;
}

.headings h2 {
  font-family: var(--text-main-sans2);
  font-size: 18px;
  color: var(--color-theme-red);
}

.extend {
  font-family: var(--text-main-sans2);
  text-align: center;
  text-transform: lowercase;
  color: var(--color-theme-font);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.extend:hover {
  color: var(--color-theme-red);
  transition: 0.3s;
}

.category {
  font-family: var(--text-main-sans2);
  text-align: right;
  font-weight: 700;
  color: var(--color-theme-red);
}

#full-gallery .headings,
#full-downloads .headings {
  grid-template-columns: 1fr 1fr;
}

#full-gallery .extend,
#full-downloads .extend {
  text-align: right;
}

#full-gallery img:hover {
  scale: 105%;
  rotate: 0.4deg;
  transition: 0.2s ease-out;
  cursor: pointer;
}

.wide-img {
  height: 100%;
}

.slim-img {
  width: 100%;
}

.revealed-text {
  position: absolute;
  text-decoration: none;
  inset: 0;
  font-size: 14px;
  font-family: var(--text-main-sans);
  font-weight: 100;
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  color: var(--color-theme-gold);
  padding: 70% 10% 0 10%;
  background: color-mix(in srgb, var(--color-theme-red) 80%, transparent);
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 0.45s ease-out;
  z-index: 2;
}

.diag-reveal:hover {
  cursor: pointer;
}

.diag-reveal:hover .revealed-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.diag-reveal.is-revealed .revealed-text {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.gallery-4-pic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  margin: 4vh 2vw;
}

.gallery-4-pic div {
  overflow: hidden;
  aspect-ratio: 9 / 16;
  position: relative;
}

.gallery-9-pic {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin: 4vh 2vw;
}

.gallery-9-pic div {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  position: relative;
}

.gallery-1-pic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 400px;
  margin: 20px auto;
}

.big-icon {
  text-align: center;
  font-size: 4vw;
  border-radius: 50%;
  display: block;
  margin: 50% 20%;
  border: solid 2px var(--color-theme-font);
  font-family: var(--text-main-icon);
  text-decoration: none;
  color: var(--color-theme-font);
}

table {
  width: 92%;
  margin: 4%;
  border-collapse: collapse;
}

tr {
  background-image: linear-gradient(to right,
      var(--color-value-dark) 33%,
      transparent 0);
  background-size: 3px 1px;
  background-repeat: repeat-x;
  background-position: bottom;
}

.disabled {
  color: var(--color-theme-font-dark) !important;
  cursor: default;
}

td a {
  display: block;
  text-align: right;
  color: var(--selector);
}

td a:hover {
  color: color-mix(in srgb, var(--selector), var(--color-value-dark) 50%);
  cursor: pointer;
}

.tooltiptext {
  visibility: hidden;
  width: 130px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}


aside {
  height: 100vh;
  padding: 15px;
  display: grid;
  position: relative;
}

.close {
  position: absolute;
  left: -2vw;
  top: 2vh;
  user-select: none;
  font-size: large !important;
  padding-bottom: 10px;
  cursor: pointer;
}

aside h2 {
  margin-bottom: 15px;
  font-size: 100%;
}

.icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: max-content;
  margin: 15px auto;
}

.icon-box {
  width: 5vw;
  height: 6vw;
  border: 1px solid var(--color-theme-red);
  border-radius: 15px;
  display: grid;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.active {
  background-color: var(--color-theme-red);
}

.icon-box .material-symbols-outlined {
  font-size: 30px !important;
}

.tag-buttons p {
  text-align: center;
  margin: 4px 0;
  font-size: 12px;
  border: 1px solid var(--color-theme-red);
  border-radius: 10px;
  padding: 2px;
}

.tag-buttons p:hover {
  background-color: color-mix(in srgb, var(--color-theme-red), transparent 80%);
  cursor: pointer;
}

#lightbox-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
  color: white;
}

#lightbox-content {
  position: relative;
  max-width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-img-container {
  position: relative;
  display: inline-block;
}

#lightbox-img {
  max-width: 100%;
  max-height: 60vh;
  display: block;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 0 10px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

#lightbox-prev {
  left: -40px;
}

#lightbox-next {
  right: -40px;
}

#lightbox-title {
  margin: 0.5rem 0 0.2rem 0;
}

#lightbox-desc {
  margin: 0;
  font-size: 0.9rem;
}

#lightbox-counter {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.9rem;
}

#lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  cursor: pointer;
  user-select: none;
}