:root {
  --background: white;
  --onBackground: black;
  /*--primary: linear-gradient(
     -15deg,
     rgb(182, 182, 182) 20%,
     40%,
     #e8e8e8 100%
   );*/
  --primary: black;
  --onPrimary: black;
  --onSecondary: black;
  --primaryColor: #3abb23;
  /*--colorTitle: linear-gradient(
     -15deg,
     rgb(182, 182, 182) 20%,
     40%,
     #e8e8e8 100%
   );*/
  --colorTitle: black;
  --primarySolid: #e8e8e8;
  --codeBlock: #f4f4f4;
  --borderPrimary: #000000;
  --lightBackground: #fefefe;
  --linkColorOnDark: skyblue;
  --linkColorOnLight: #2299ff;
  --profileTextColor: black;
  --projectContainerBackground: white;
  --shadowColor: black;
  --isDark: 0;
  --isLight: 1;
}

.darkMode {
  --background: #212124;
  --primary: #4d9a97;
  --codeBlock: #444444;
  --lightBackground: #4d9a97;
  --primaryColor: #44b075;
  --onSecondary: white;
  --onBackground: white;
  --primarySolid: #4d9a97;
  --onPrimary: black;
  --linkColorOnDark: skyblue;
  --linkColorOnLight: #3344aa;
  --profileTextColor: var(--colorTitle);
  --colorTitle: #75c2be;
  --projectContainerBackground: linear-gradient(
    -15deg,
    rgb(33, 32, 32) 10%,
    40%,
    rgb(59, 60, 64) 100%
  );
  --shadowColor: #000000;
  --isDark: 1;
  --isLight: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--onBackground);
  transition:
    background-color 0.2s,
    color 0.2s;

  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
    "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body h1,
body h2,
body h3 {
  letter-spacing: -0.05em;
}
body h1 {
  font-size: 2em;
}
body h2 {
  font-size: 1.5em;
}

img,
video {
  border-radius: 15px;
  width: 100% !important;
  border: 2px solid black;
  max-height: 350px;
  max-width: 350px;
}

p,
li {
  letter-spacing: -0.025em;
  line-height: 1.5em;
  font-weight: 500;
  font-size: 1.05em;
}

li {
  padding: 5px 0;
}

b {
  font-weight: 750;
}

ul {
  padding: 0 1em;
}

a {
  display: inline-block;
  text-decoration: underline;
  font-weight: 650;
  color: var(--linkColorOnDark);
}

/* Layout */
.hp-flex-row {
  display: flex;
  flex-direction: row;
}
.hp-flex-col {
  display: flex;
  flex-direction: column;
}
.hp-flex-one {
  flex: 1;
}
.hp-flex-zero {
  flex: 0;
}
.hp-space-between {
  justify-content: space-between;
}
.hp-space-evenly {
  justify-content: space-evenly;
}
.hp-center-x {
  justify-content: center;
}
.hp-center-y {
  align-items: center;
}
.hp-center-text {
  text-align: center;
}
.hp-no-padding {
  padding: 0;
}
.hp-no-margin {
  margin: 0;
}

/* Hero */
.hp-hero-box {
  justify-content: space-between;
  gap: 30px;
}

@media only screen and (max-width: 600px) {
  .hp-hero-box {
    flex-direction: column-reverse;
  }
  .hp-phone-flex-col {
    flex-direction: column !important;
  }
  .hp-phone-center-x {
    justify-content: center;
  }
}

@media only screen and (max-width: 768px) {
  .hp-tablet-flex-col {
    flex-direction: column;
  }
  .hp-tablet-flex-row {
    flex-direction: row;
  }
}

/* Header */
.hp-app-header {
  text-align: start;
  font-size: 1.5em;
  max-width: 1024px;
  line-height: 0.8;
  padding-top: 10px;
  width: 90%;
  margin: 0 auto;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.hp-theme-button {
  background-color: transparent;
  color: var(--onBackground);
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Content */
.hp-content-container {
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hp-main-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1024px;
  margin: 0 auto;
  text-align: start;
  width: 90%;
}

.hp-basic-container {
  width: 100%;
  border-radius: 15px;
  color: var(--onSecondary);
  z-index: 1;
  overflow: hidden;
  position: relative;
}

.hp-basic-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  z-index: -1;
  transform: translateY(20%);
  transition: transform 0.2s ease;
}

.hp-basic-container:hover::before {
  transform: translateY(-20%);
}

.hp-basic-container h1 {
  padding: 0;
  margin: 10px 0;
  z-index: 2;
}

.hp-dark-container {
  width: 100%;
  border-radius: 15px;
  padding: 20px 35px;
  /*color: white;*/
  border: 2px var(--borderPrimary) solid;
  z-index: 1;
  overflow: hidden;
  position: relative;
  box-shadow: 4px 4px var(--shadowColor);
}

@media only screen and (max-width: 600px) {
  .hp-dark-container {
    padding: 10px 25px;
  }
}

.hp-dark-container a {
  color: var(--linkColorOnDark);
}

.hp-dark-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  z-index: -1;
  background: var(--projectContainerBackground);
  transition: transform 0.2s ease;
}

.hp-dark-container:hover::before {
  transform: translateY(-10%);
}

.hp-dark-container h1 {
  padding: 0;
  margin: 10px 0;
  z-index: 2;
  color: var(--onSecondary);
}

.hp-blog-button {
  align-content: center;
  font-size: 0.6em;
}

.hp-light-container {
  width: 100%;
  border-radius: 15px;
  border: var(--borderPrimary) 2px solid;
  padding: 20px 35px;
  z-index: 1;
  overflow: hidden;
  position: relative;
  box-shadow: 4px 4px var(--shadowColor);
  color: var(--onPrimary);
}

@media only screen and (max-width: 600px) {
  .hp-light-container {
    padding: 8px 20px;
  }

  .hp-dark-container {
    padding: 8px 20px;
  }

  .hp-main-content {
    width: 95%;
  }
}

.hp-light-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  z-index: -1;
  transition: transform 0.2s ease;
  background: var(--lightBackground);
}

.hp-header-link {
  color: var(--onSecondary);
  text-decoration: none;
}

.hp-light-container a {
  color: var(--linkColorOnLight);
}

.hp-light-container h1 {
  padding: 0;
  margin: 10px 0;
  z-index: 2;
}

.hp-profile-container {
  width: 300px;
}

@media only screen and (max-width: 768px) {
  .hp-profile-container {
    width: 100%;
  }
}

.hp-profile-picture {
  object-fit: cover;
  width: 300px;
  height: 300px;
  border-radius: 15px;
  border: 2px solid black;
}

@media only screen and (max-width: 600px) {
  .hp-profile-picture {
    max-width: 170px;
    max-height: 170px;
    border-radius: 40px;
    border: 4px var(--primarySolid) solid;
    margin: 0;
  }
}

pre {
  border: 1px solid var(--onSecondary);
  border-radius: 5px;
  overflow-x: auto;
}

.hp-profile-text {
  color: var(--profileTextColor);
  /*-webkit-background-clip: text;
   -webkit-text-fill-color: transparent;*/
}

/* Icons */
.hp-social-link {
  padding-right: 10px;
}

.hp-link-icon {
  filter: contrast(100) grayscale(1) invert(var(--isDark));
  min-width: 32px;
  min-height: 32px;
  border: none;
}

.hp-link-icon-light {
  filter: contrast(100) grayscale(1) invert(var(--isLight));
  border: none;
}

.hp-link-icon-dark {
  filter: contrast(100) grayscale(1) invert(var(--isDark));
  border: none;
}

.hp-link {
  color: var(--linkColorOnDark) !important;
  text-decoration: underline;
}

/* Font gubbins */
.hp-title-chunky {
  font-size: 2.5em;
}

.hp-section-title {
  padding-top: 40px;
  padding-bottom: 10px;
  font-size: 2.75em;
}

.hp-color-title {
  color: (var(--colorTitle));
  /*background: var(--colorTitle);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;*/
}

.hp-ref-link {
  display: inline-block;
  color: #35c1e4;
  text-decoration: none;
}

.hp-title-link {
  color: #35c1e4;
  text-decoration: none;
}

/* Cards */
.hp-project-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-project-card {
  /* inherits hp-dark-container */
}

.hp-title-description-box {
  display: flex;
  flex: 1;
}

.hp-project-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: auto;
  margin-top: 20px;
  align-items: center;
  width: 100%;
}

@media only screen and (max-width: 768px) {
  .hp-project-card-content {
    margin: 0 auto;
  }
}

.hp-project-card-content img {
  width: auto;
  max-width: 400px;
  max-height: 400px;
  justify-self: center;
}

@media only screen and (max-width: 600px) {
  .hp-project-card-content img {
    width: 100%;
  }
}

.hp-posted-on {
  color: #666666;
}

.hp-project-card-content img,
video {
  max-height: 350px;
  max-width: 350px;
  justify-self: center;
}

/* Footer */
.hp-footer {
  padding-top: 20px;
  padding-bottom: 50px;
}

.hp-footer div {
  padding: 5px 0;
}

.hp-double-images {
  gap: 20px;
  align-content: center;
}

/* Helpers */
.hp-margin-top-0 {
  margin-top: 0px;
}
.hp-margin-top-1 {
  margin-top: 10px;
}
.hp-margin-top-2 {
  margin-top: 20px;
}
.hp-margin-top-3 {
  margin-top: 30px;
}
.hp-margin-top-4 {
  margin-top: 40px;
}
.hp-margin-top-5 {
  margin-top: 50px;
}
.hp-margin-top-6 {
  margin-top: 60px;
}
.hp-margin-top-7 {
  margin-top: 70px;
}
.hp-margin-top-8 {
  margin-top: 80px;
}
.hp-margin-top-9 {
  margin-top: 90px;
}
.hp-margin-top-10 {
  margin-top: 100px;
}

.hp-margin-bottom-0 {
  margin-bottom: 0px;
}
.hp-margin-bottom-1 {
  margin-bottom: 10px;
}
.hp-margin-bottom-2 {
  margin-bottom: 20px;
}
.hp-margin-bottom-3 {
  margin-bottom: 30px;
}
.hp-margin-bottom-4 {
  margin-bottom: 40px;
}
.hp-margin-bottom-5 {
  margin-bottom: 50px;
}

.hp-margin-left-0 {
  margin-left: 0px;
}
.hp-margin-left-1 {
  margin-left: 10px;
}
.hp-margin-left-2 {
  margin-left: 20px;
}

.hp-margin-right-0 {
  margin-right: 0px;
}
.hp-margin-right-1 {
  margin-right: 10px;
}
.hp-margin-right-2 {
  margin-right: 20px;
}

.hp-padding-top-0 {
  padding-top: 0px;
}
.hp-padding-top-1 {
  padding-top: 10px;
}
.hp-padding-top-2 {
  padding-top: 20px;
}

.hp-padding-bottom-0 {
  padding-bottom: 0px;
}
.hp-padding-bottom-1 {
  padding-bottom: 10px;
}
.hp-padding-bottom-2 {
  padding-bottom: 20px;
}

.hp-rounded-0 {
  border-radius: 0px;
}
.hp-rounded-1 {
  border-radius: 5px;
}
.hp-rounded-2 {
  border-radius: 10px;
}
.hp-rounded-3 {
  border-radius: 15px;
}
