/* VARIABLES ________________________________________________________________________________________ */

:root {
  --gap-double: calc(var(--gap-standard) * 2);
  --gap-half: calc(var(--gap-standard) / 2);
  --gap-quarter: calc(var(--gap-standard) / 4);
  --gap-standard: 1.3rem;
  --theme-grey-dark: #242525;
  --theme-grey-light: #363838;
  --theme-grey-medium: #2d2e2e;
  /* --theme-orange-bright: #f8991d; */
  /* --theme-orange-dull: #b1701b; */
  /* --theme-orange-isha: #9b4932; */
  --theme-orange-logo: #ff5100;
  /* --theme-teal-bright: #0D98BA; */
  --theme-teal-logo: #0177a2;
}

/* PSUEDO ELEMENTS __________________________________________________________________________________ */

::-webkit-scrollbar {
  height: var(--gap-standard);
  width: var(--gap-standard);
}

::-webkit-scrollbar-thumb {
  background-color: var(--theme-grey-dark);
  border: var(--gap-quarter) solid var(--theme-grey-light);
  border-radius: 100vw;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--theme-orange-logo);
}

::-webkit-scrollbar-thumb:active { /* This is not in alphabetical order because it hase to appear below hover, or else only the hover effect will dispaly. */
  background-color: var(--theme-teal-logo);
}

::-webkit-scrollbar-track {
  background-color: var(--theme-grey-light);
  margin: calc(var(--gap-half) - var(--gap-quarter));
}


/* TAGS _____________________________________________________________________________________________ */

* {
  margin: 0;
}

a {
  color: var(--theme-orange-logo);
  font-weight: 900;
  text-decoration: none;
}

address {
  font-style: normal;
}

body {
  background-color: var(--theme-grey-light);
  color: #fff;
  min-height: 100vh;
  min-height: 100svh;
  min-width: 100vw;
  min-width: 100svw;
  overflow-x: hidden;
}

code {
  color: var(--theme-teal-logo);
  font-weight: 900;
}

footer {
  width: 100%;
}

footer:target {
  box-shadow: 0 0 25px 0 rgba(255, 255, 255, 0.3);
  transition-delay: 0.8s;
  transition-duration: 0.5s;
  transition-property: box-shadow;
}

h1 {
  font-size: 1.6rem;
}

h1, h2 {
  text-align: center;
}

header {
  width: 100%;
}

hr {
  background-image: url(../img/hr.svg);
  background-position: center;
  background-size: cover;
  border-style: none;
  height: 0.8rem;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--gap-standard);
}

li {
  display: inline;
  font-size: 1.2rem;
  list-style: none;
}

menu, ul {
  padding: 0;
}


/* BLOCKS ___________________________________________________________________________________________ */

.logo-main {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.15));
  height: 40vmin;
  transition-property: transform;
  transition-duration: 0.5s;
  transition-timing-function: ease-in-out;
}

.project {
  flex-flow: row wrap;
}

.résumé {
  width: min(35rem, 100%);
}


/* ELEMENTS _________________________________________________________________________________________ */

.header-main__picture {
  background-image: url(../img/ethan_alan_barnett_wide.jpg);
  background-image: -webkit-image-set(
    "../img/ethan_alan_barnett_wide.jxl" type("image/jxl"),
    "../img/ethan_alan_barnett_wide.avif" type("image/avif"),
    "../img/ethan_alan_barnett_wide.webp" type("image/webp"),
    "../img/ethan_alan_barnett_wide.jpg" type("image/jpg")
  );
  background-image: image-set(
    "../img/ethan_alan_barnett_wide.jxl" type("image/jxl"),
    "../img/ethan_alan_barnett_wide.avif" type("image/avif"),
    "../img/ethan_alan_barnett_wide.webp" type("image/webp"),
    "../img/ethan_alan_barnett_wide.jpg" type("image/jpg")
  );
  background-position: center;
  background-size: cover;
  border-radius: 50%;
  flex-grow: 0;
  flex-shrink: 0;
  height: 6rem;
  width: 6rem;
}

.project__title {
  line-height: 1;
  text-align: center;
}

.project__title-tag {
  color: var(--theme-teal-logo);
  font-size: small;
}

.project__image {
  border-radius: 10px;
  display: block;
  width: 100%;
}

.résumé__image {
  display: block;
  width: 100%;
}

.résumé__link {
  display: block;
}


/* MODIFIERS ________________________________________________________________________________________ */

.logo-main--spin {
  transform: rotate(-405deg) scale(0.5);
}

.project__item--first {
  width: min(35rem, 100%);
}

.project__item--second {
  flex-grow: 1;
  width: min(10rem, 100%);
}