/* 
@include respond(tablet-p) {

}

@include respond(tablet-l) {

}

@include respond(desktop) {

}

@include respond(desktop-xl) {

} 
*/
:root {
  --white: rgba(255, 255, 255);
  --grey-light: rgba(225, 225, 225);
  --grey-midlight: rgba(200, 200, 200);
  --grey-midlight-2: rgba(175, 175, 175);
  --grey-midlight-3: rgba(150, 150, 150);
  --grey-mid: rgba(125, 125, 125);
  --grey-middark: rgba(100, 100, 100);
  --grey-middark-2: rgba(75, 75, 75);
  --grey-middark-3: rgb(50, 50, 50);
  --grey-dark: rgb(25, 25, 10);
  --black: rgba(0, 0, 0);
  --shadow: rgba(0, 0, 0, 0.75);
  --margin: 0.5rem;
}

.spincard__img {
  animation: rotateAnimation 4s linear infinite;
}

@keyframes rotateAnimation {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(180deg);
  }
  to {
    transform: rotateY(360deg);
  }
}
.projects__unit {
  perspective: 200px;
}

.card {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.card:hover {
  transform: translateZ(1rem);
  cursor: pointer;
}

@keyframes hoverExpand {
  from {
    transform: translateZ(0);
  }
  to {
    transform: translateZ(1rem);
  }
}
.popup:target > .popup__content {
  animation: raise 0.3s ease;
}

.popup:target {
  animation: fade 0.3s ease;
}

@keyframes raise {
  from {
    height: 0;
  }
  to {
    height: 85vh;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
:root {
  interpolate-size: allow-keywords;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Funnel Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  list-style: none;
}

html {
  font-size: 62.5%;
}
@media screen and (min-width: 37.5em) {
  html {
    font-size: 62.5%;
  }
}
@media screen and (min-width: 56.25em) {
  html {
    font-size: 67.5%;
  }
}
@media screen and (min-width: 75em) {
  html {
    font-size: 72.5%;
  }
}
@media screen and (min-width: 112.5em) {
  html {
    font-size: 77.5%;
  }
}

body {
  background-color: var(--white);
}

.heading-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: calc(var(--margin) * 12);
}
@media screen and (min-width: 56.25em) {
  .heading-primary {
    margin-top: calc(var(--margin) * 6);
    font-family: "Jacquard 24", system-ui;
    font-weight: 400;
    font-size: 10rem;
    font-style: normal;
  }
}
.heading-primary--main {
  font-family: "Jacquard 24", system-ui;
  font-weight: 400;
  font-size: 5.5rem;
  font-style: normal;
  text-shadow: 0.3rem 0.3rem 0 var(--grey-midlight-2);
  text-align: center;
  line-height: 2ex;
  margin-bottom: 1rem;
}
@media screen and (min-width: 56.25em) {
  .heading-primary--main {
    margin-top: calc(var(--margin) * 6);
    font-family: "Jacquard 24", system-ui;
    font-weight: 400;
    font-size: 10rem;
    font-style: normal;
  }
}
.heading-primary--sub {
  font-size: 2rem;
  font-family: "Funnel Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.heading-secondary {
  font-family: "Funnel Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 800;
  font-size: 3rem;
}

.heading-tertiary {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: calc(var(--margin) * 1.25);
}

.heading-quarternary {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--grey-dark);
  margin-bottom: calc(var(--margin) * 1.25);
}

.header__link {
  font-size: 1.5rem;
  font-weight: 600;
}

.paragraph {
  font-size: 1.75rem;
  margin-bottom: calc(var(--margin) * 1.25);
  hyphens: auto;
}
.paragraph__break {
  margin-bottom: 1rem;
}

.linktext {
  color: var(--black);
}

em {
  font-size: 125%;
  font-weight: 600;
}

/* Intro */
.intro__p {
  max-width: 65ch;
  margin-bottom: 10rem;
}

.hobby__h2 {
  margin-bottom: 3rem;
}

/* CV */
.cv__h1 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-block: calc(var(--margin) * 6);
}
.cv__h2 {
  font-size: 1.8rem;
  font-family: "Funnel Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  color: var(--grey-dark);
  display: inline;
  vertical-align: middle;
}
.cv__h3 {
  margin-bottom: 0;
  color: var(--grey-dark);
}
.cv__bodytext {
  font-style: italic;
  color: var(--grey-mid);
}
.cv__list-item {
  font-size: 1.75rem;
}
.cv__bodytext, .cv__h3, .cv__h4 {
  font-size: 75%;
  hyphens: auto;
}

/* Projects */
.projects__h2 {
  margin-block: calc(var(--margin) * 8);
}

.companies__p {
  text-align: center;
  margin-bottom: 1rem;
}

/* Popup */
.popup__h3 {
  margin-block: calc(var(--margin) * 4);
}

/* Essay */
.vrf__h1sub {
  text-align: center;
  margin-bottom: 7.5rem;
  width: 90vw;
}
@media screen and (min-width: 37.5em) {
  .vrf__h1sub {
    width: 66.6666667%;
  }
}
@media screen and (min-width: 56.25em) {
  .vrf__h1sub {
    width: 50%;
  }
}

.music-player__p {
  margin-top: 0.5rem;
  color: var(--grey-mid);
}
.music-player__p .linktext {
  color: var(--grey-mid);
}

.essay__p {
  columns: 1;
}
@media screen and (min-width: 56.25em) {
  .essay__p {
    columns: 2;
  }
}

/* Companies */
.companies__h2 {
  margin-bottom: 3rem;
}

.accordion {
  background-color: var(--grey-light);
  margin-bottom: 0.5rem;
  padding: 1rem;
  border-radius: 1rem;
  border: solid 1px var(--grey-midlight-2);
  height: 100%;
}

.accordion:hover {
  cursor: pointer;
}

.accordion__summary::marker {
  color: var(--grey-mid);
  font-size: 1.5rem;
}

.accordion__inliner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
}
.accordion__inliner > .heading-secondary--cv {
  margin-bottom: 0;
}

.accordion__pointer {
  width: 1.5rem;
}

.accordion:open .accordion__pointer {
  transform: rotate(180deg);
  transition: transform 0.2s;
}

.accordion:not(:open) .accordion__pointer {
  transform: rotate(90deg);
  transition: transform 0.2s;
}

.accordion__divider {
  margin: 1rem -1rem;
  border-top: solid 1px var(--grey-midlight-2);
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
}

@media screen and (min-width: 37.5em) {
  .accordion {
    width: 66.6666666667vw;
  }
}
.popup {
  width: 100%;
  height: 100%;
  background-color: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
}
.popup:target {
  opacity: 1;
  visibility: visible;
}
.popup__content {
  width: 100vw;
  height: 85vh;
  background-color: var(--grey-light);
  position: fixed;
  bottom: 0;
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  box-shadow: 0px -0.5rem 2rem var(--shadow);
  overflow: scroll;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.popup__img {
  width: 100%;
  border-block: solid 1px var(--grey-midlight-2);
  margin-bottom: calc(var(--margin) * 4);
}
.popup__textbox {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: start;
  flex-direction: column;
}
.popup__title {
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.popup__close {
  margin: auto 0;
  height: 3rem;
  width: 3rem;
  text-decoration: none;
  color: var(--grey-dark);
  border: solid 1px var(--grey-midlight-2);
  border-radius: 0.5rem;
  padding-inline: 1rem;
}
.popup__close:hover {
  background-color: var(--white);
}
@media screen and (min-width: 56.25em) {
  .popup .popup__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    border-radius: 0.5rem;
  }
}
@media screen and (min-width: 75em) {
  .popup .popup__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
  }
}

.btn {
  font-size: 1.75rem;
  margin-block: 1.5rem;
  padding: 1.25rem 2.5rem;
  color: var(--black);
  background-color: var(--grey-light);
  border: solid 1px var(--grey-midlight-3);
  border-radius: 0.5rem;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  width: auto;
}
.btn__img {
  height: 2.5rem;
  margin-bottom: 0.5rem;
  margin-right: 0.5rem;
}

.btn:hover {
  background-color: white;
}

.card {
  height: 26.4rem;
  width: 18.6rem;
  border-radius: 1.3rem;
  box-shadow: 0rem 0.2rem 0.8rem var(--shadow);
}
@media screen and (min-width: 37.5em) {
  .card {
    height: 28.6rem;
    width: 20.15rem;
  }
}
@media screen and (min-width: 56.25em) {
  .card {
    height: 30.8rem;
    width: 21.7rem;
  }
}
@media screen and (min-width: 75em) {
  .card {
    height: 33rem;
    width: 23.25rem;
  }
}
@media screen and (min-width: 112.5em) {
  .card {
    height: 35.2rem;
    width: 24.8rem;
  }
}

.header {
  z-index: 1;
  margin: 0;
  width: 99vw;
  position: fixed;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  border: solid 1px var(--grey-midlight-2);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--grey-light);
  flex-shrink: 0;
}
.header__container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4rem;
  flex-shrink: 0;
}
.header__link {
  color: var(--grey-dark);
  text-decoration: none;
  padding: 1.6rem 1.5rem;
}
.header__link:hover {
  background-color: var(--white);
}

@media screen and (min-width: 37.5em) {
  .header {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0.8rem;
    background-color: var(--grey-light);
    border-radius: 1rem;
    flex-shrink: 0;
    width: unset;
  }
  .header__link {
    padding: 1rem 2rem;
  }
}
@media screen and (min-width: 56.25em) {
  .header {
    position: relative;
    background-color: var(--white);
    margin: 0;
    border: unset;
    border-radius: 0;
    width: 100vw;
    flex-shrink: 0;
  }
  .header__link:hover {
    background-color: var(--grey-light);
    border-radius: 0.5rem;
  }
}
.foot {
  clip-path: polygon(0 0, 100% 15%, 100% 100%, 0% 100%);
  padding-top: 10rem;
  height: 33vh;
  width: 100vw;
  background-color: var(--grey-midlight);
  margin-top: 5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
}
.foot__gh-link {
  height: 4.5rem;
  margin-top: 1rem;
}
.foot__spaceadder {
  width: 100vw;
  height: 200px;
  background-color: var(--grey-midlight);
}
@media screen and (min-width: 37.5em) {
  .foot {
    clip-path: polygon(0 0, 100% 25%, 100% 100%, 0% 100%);
    padding-top: 7rem;
  }
}
@media screen and (min-width: 56.25em) {
  .foot {
    clip-path: polygon(0 0, 100% 25%, 100% 100%, 0% 100%);
    padding-top: 8rem;
  }
}
@media screen and (min-width: 75em) {
  .foot {
    clip-path: polygon(0 0, 100% 35%, 100% 100%, 0% 100%);
    padding-top: 9rem;
  }
}
@media screen and (min-width: 112.5em) {
  .foot {
    clip-path: polygon(0 0, 100% 45%, 100% 100%, 0% 100%);
    padding-top: 10rem;
  }
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 75vh;
}

.spincard {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  height: 26.4rem;
  width: 18.6rem;
  position: relative;
  perspective: 100rem;
  transform-style: preserve-3d;
}
@media screen and (min-width: 37.5em) {
  .spincard {
    height: 28.6rem;
    width: 20.15rem;
  }
}
@media screen and (min-width: 56.25em) {
  .spincard {
    height: 30.8rem;
    width: 21.7rem;
  }
}
@media screen and (min-width: 75em) {
  .spincard {
    height: 33rem;
    width: 23.25rem;
  }
}
@media screen and (min-width: 112.5em) {
  .spincard {
    height: 35.2rem;
    width: 24.8rem;
  }
}
.spincard__front, .spincard__back {
  height: 100%;
  width: 100%;
  position: absolute;
}
.spincard__front {
  z-index: 3;
  backface-visibility: hidden;
}
.spincard__back {
  z-index: 2;
}

.intro {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 90vw;
  text-align: center;
}

.hobby {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.hobby__listitem {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
@media screen and (min-width: 37.5em) {
  .hobby__listitem {
    margin: calc(var(--margin) * 6) calc(var(--margin) * 0.5);
    list-style-type: none;
    flex-direction: row;
    padding-left: 2rem;
  }
  .hobby__listitem:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: 0;
    padding-right: 2rem;
  }
}
.hobby__textbox, .hobby__textbox--short {
  margin: calc(var(--margin) * 4) 0 calc(var(--margin) * 12) 0;
  padding: 0 2rem;
  text-align: center;
}
@media screen and (min-width: 37.5em) {
  .hobby__textbox, .hobby__textbox--short {
    text-align: start;
    width: min(93.75vw, 50ch);
    padding: 0;
    margin: 0 calc(var(--margin) * 10);
  }
}
@media screen and (min-width: 56.25em) {
  .hobby__textbox, .hobby__textbox--short {
    width: 65ch;
  }
}

.cv {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.cv__body--open {
  display: none;
}
.cv__body--tucked {
  width: 90vw;
}
.cv__subsection {
  padding: 3rem;
  background-color: var(--grey-light);
  border: solid 1px var(--grey-midlight-2);
  border-radius: 1rem;
}
@media screen and (min-width: 37.5em) {
  .cv__body--tucked {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}
@media screen and (min-width: 56.25em) {
  .cv__body--open {
    display: grid;
    height: 55vh;
    width: 75vw;
    margin: 0;
    padding: 0;
    gap: var(--margin);
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    grid-template-areas: "box-2 box-2 box-1 box-1 box-1" "box-2 box-2 box-1 box-1 box-1" "box-2 box-2 box-1 box-1 box-1" "box-2 box-2 box-3 box-3 box-3";
  }
  .cv__body--tucked {
    display: none;
  }
  .cv__griditem-1 {
    grid-area: box-1;
  }
  .cv__griditem-2 {
    grid-area: box-2;
  }
  .cv__griditem-3 {
    grid-area: box-3;
  }
  .cv__list {
    display: flex;
    justify-content: flex-start;
    justify-items: center;
    align-items: center;
    flex-wrap: wrap;
  }
  .cv__list-item {
    padding-right: 1rem;
  }
  .cv__divider {
    margin-top: calc(var(--margin) * 4);
    width: 20%;
    border-top: solid 1px var(--grey-midlight-2);
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
  }
}
@media screen and (min-width: 75em) {
  .cv__body--open {
    width: 66.6666666667vw;
  }
}

.padding-adder {
  padding-bottom: calc(var(--margin) * 2);
}

.projects {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: calc(var(--margin) * 6);
  max-width: 90vw;
}

.projects__container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 90vw;
}

.projects__unit {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: calc(var(--margin) * 2);
}

.projects__card {
  scale: 85%;
  margin: 0;
}

.big-img {
  height: 45vh;
  margin-top: 8rem;
}

.music-player {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 90vw;
  margin-block: 3rem;
}
@media screen and (min-width: 37.5em) {
  .music-player {
    width: 66vw;
  }
}
@media screen and (min-width: 37.5em) {
  .music-player {
    width: 33vw;
  }
}

.essay {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.essay__textbox {
  width: 90vw;
}
.essay__p {
  width: 90vw;
}

.companies {
  background-color: var(--grey-midlight);
  width: 100vw;
  padding-block: 15rem;
  clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 85%);
}
.companies__container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 90vw;
  margin: 0 auto;
}
.companies__list {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
}
.companies__listitem {
  width: 90vw;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--margin);
  width: 100%;
}
.logo:hover {
  background-color: purple;
}
.logo__img {
  height: 3rem;
}

@media screen and (min-width: 37.5em) {
  .companies__container {
    width: 66.66667vw;
  }
  .essay__textbox {
    width: min(66.66667vw, 130ch);
    margin-bottom: 10rem;
  }
  .essay__p {
    width: 100%;
  }
}
@media screen and (min-width: 56.25em) {
  .companies__listitem {
    width: unset;
  }
  .logo {
    width: unset;
  }
}
@media screen and (min-width: 75em) {
  .companies {
    clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 70%);
  }
  .companies__container {
    width: 50vw;
  }
}
/* specific hover colors for brands */
.logo__img--white {
  height: 3rem;
  display: none;
}

.arbetsformedlingen:hover {
  background-color: #00005a;
}

.arbetsformedlingen:hover > .logo__img {
  display: none;
}

.arbetsformedlingen:hover > .logo__img--white {
  display: block;
}

.arbetsmiljoverket:hover {
  background-color: #ffd94d;
}

.dramatify:hover {
  background-color: #2f9ff1;
}

.dramatify:hover > .logo__img {
  display: none;
}

.dramatify:hover > .logo__img--white {
  display: block;
}

.ehalsomyndigheten:hover {
  background-color: #6e0e50;
}

.ehalsomyndigheten:hover > .logo__img {
  display: none;
}

.ehalsomyndigheten:hover > .logo__img--white {
  display: block;
}

.endra:hover {
  background-color: #000000;
}

.endra:hover > .logo__img {
  display: none;
}

.endra:hover > .logo__img--white {
  display: block;
}

.forsakringskassan:hover {
  background-color: #116a3e;
}

.forsakringskassan:hover > .logo__img {
  display: none;
}

.forsakringskassan:hover > .logo__img--white {
  display: block;
}

.ikea:hover {
  background-color: #ffdb00;
}

.lootlocker:hover {
  background-color: #436ec6;
}

.lootlocker:hover > .logo__img {
  display: none;
}

.lootlocker:hover > .logo__img--white {
  display: block;
}

.materialexchange:hover {
  background-color: #14141e;
}

.materialexchange:hover > .logo__img {
  display: none;
}

.materialexchange:hover > .logo__img--white {
  display: block;
}

.rerun:hover {
  background-color: #212121;
}

.rerun:hover > .logo__img {
  display: none;
}

.rerun:hover > .logo__img--white {
  display: block;
}

.skatteverket:hover {
  background-color: #003366;
}

.skatteverket:hover > .logo__img {
  display: none;
}

.skatteverket:hover > .logo__img--white {
  display: block;
}

/*# sourceMappingURL=style.css.map */
