/*-----------------------------Global reset start----------------------------*/

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/*---------------------------Global reset end--------------------------*/

html,
body,
.container {
  scroll-behavior: smooth;
}

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

:root {
  /*--main-bg-color: #f0edee;*/
  --main-bg-color: #f4f0f1;
  --secondary-bg-color: white;
  --main-margin: 10vw;
}

body {
  font-family: "Montserrat", sans-serif;
}

img {
  margin-top: 2em;
  max-width: 100%;
  transition: 0.5s ease;
}

figcaption {
  font-style: italic;
}

h1 {
  font-size: 1.8em;
  line-height: 150%;
  /*max-width: 25em;*/
}

h2 {
  font-size: 1.5em;
  margin-top: 0.3em;

  text-transform: uppercase;
}

h3 {
  font-size: 1.2em;
  text-transform: uppercase;
}

h4 {
  font-style: italic;
  font-size: 1.2em;
}

p {
  margin-top: 0.83em;
  margin-bottom: 0.83em;
  line-height: 140%;
  font-size: 1em;
  max-width: 40em;
}

br {
  margin-bottom: 0.25em;
}

strong {
  font-weight: bold;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 2em var(--main-margin) 2em var(--main-margin);
  align-items: center;
  text-align: center;
  background-color: var(--main-bg-color);
}

video {
  width: 100%;
}

ul {
  list-style: disc;
  padding-inline-start: 40px;
}

ul h4 {
  font-size: 1em;
  font-weight: bold;
}

li p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.footer_adjust {
  height: calc(100vh - 5em - 2px);
}

footer p {
  margin: 0;
}

i {
  font-size: 2em;
  margin: 0 0.1em 0 0.1em;
}

iframe {
  width: 100%;
  height: 60vw;
}

q {
  padding-left: 1.2em;
  font-style: italic;
  font-size: 1.2em;
  line-height: 150%;
  border-left: 6px solid var(--main-bg-color);
  display: inline-block;
  /*max-width: 45em;*/
  margin-bottom: 0.5em;
  margin-top: 2em;
}

.greyline {
  border-left: 6px solid var(--secondary-bg-color);
}

mark {
  background-color: pink;
}

picture {
  width: 100%;
  height: 100%;
}

.grey {
  background-color: var(--main-bg-color);
}

.white {
  background-color: var(--secondary-bg-color);
  color: #2f2f2f;
}

.line {
  background-color: var(--secondary-bg-color);
  color: #2f2f2f;
  border-top: 1px solid #d9d9d9;
}

/*---------------------------------Startpage---------------------------------*/

/*NY HERO*/
canvas {
  width: 100%;
  height: 100%;
  z-index: -1;
  position: absolute;
}

.dummy {
  height: 100vh;
}

.intro {
  padding: 0 var(--main-margin) 0 var(--main-margin);
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.fa-chevron-down {
  padding: 0 var(--main-margin) 0 var(--main-margin);
  position: absolute;
  top: 90%;
  left: 50%;
  -ms-transform: translate(-90%, -50%);
  transform: translate(-50%, -50%);
}

/*------*/

.startpage_text {
  top: 55%;
  position: relative;

  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);

  width: 65%;
  padding: 0 var(--main-margin) 0 var(--main-margin);
}

.container {
  perspective: 1px;
  transform-style: preserve-3d;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
  position: relative;
  background-color: white;
  transition: 0.4s;
}

/*-----------------------------------Header-----------------------------------*/

header {
  transition: 0.4s ease-in-out;
  font-size: 1em;
  padding: 1.8em var(--main-margin) 1.8em var(--main-margin);
  position: fixed;
  top: 0;
  z-index: 3;
  width: 100vw;
  opacity: 0.9;
  mix-blend-mode: difference;
}

header.logga_parent {
  background-color: var(--main-bg-color);
  mix-blend-mode: normal !important;
}

nav {
  display: flex;
  justify-content: space-between;
}

.menu {
  justify-content: flex-end;
  margin-top: auto;
  margin-bottom: auto;
}

nav a {
  color: white;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 2.2px;
  padding-bottom: 0.2em;
}

.menu-item:hover {
  border-bottom: 1px solid grey;
}

nav a.logga_parent {
  color: black;
}

a {
  text-decoration: none;
  color: black;
}

.link {
  color: #ec9398;
}

footer > *,
footer div a {
  color: black;
}

.menu-item {
  margin-left: 2em;
}

.logga {
  display: block;
  text-align: center;
  width: 3em;
  margin-top: 0;
}

svg {
  fill: white;
}

/*-----hamburger-menu----*/
nav .menu-btn {
  display: none;
}

/*-------------------------------Portfolio-------------------------------*/
article h2 {
  font-size: 2.3em;
}

.case1,
.case2,
.case3 {
  background-color: var(--main-bg-color);
  padding: 2em var(--main-margin) 2em var(--main-margin);
}

.case2 {
  background-color: var(--secondary-bg-color);
}

.case1 div {
  grid-column: 1/6;
}

.case1 .case_text,
.case3 .case_text {
  grid-column: 2/5;
}
.case2 .case_text {
  grid-column: -2/-5;
  margin-right: 0;
  margin-left: auto;
}

.case_titel {
  font-size: 2em;
}

.case1 img,
.case3 img {
  grid-column: 6/13;
  margin-top: 0;
}

a:hover img {
  opacity: 0.6;
}

.case2 img {
  grid-column: 1/8;
  margin-top: 0;
}

/*------------------------------Case-sidor----------------------------------*/

.casepage_text {
  top: 75%;
  position: relative;
}

.case_header {
  font-size: 2em;
  text-transform: uppercase;
  font-weight: bold;
}

.textwhite {
  color: white;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 1em;
  padding: 2em var(--main-margin) 2em var(--main-margin);
  position: relative;
  z-index: 1;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  /*Buggfix för att motverka att bakgrunden hamnar framför texten*/
}

.case_info_left {
  grid-column-start: 2;
  grid-column-end: 5;
  padding-right: 2em;
  margin-top: -1em;
}

.case_info_right {
  grid-column-start: 5;
  grid-column-end: 12;
  margin-top: -1.3em;
}

.case_left {
  margin-top: auto;
  margin-bottom: auto;
  grid-column-start: 2;
  grid-column-end: 8;
}

.case_left_img {
  grid-column-start: 9;
  grid-column-end: 12;
  margin-bottom: auto;
  margin-top: auto;
}

.case_right_img {
  margin-bottom: auto;
  margin-top: auto;
  grid-column-start: 2;
  grid-column-end: 5;
}

.case_right {
  grid-column-start: 6;
  grid-column-end: 12;
  margin-top: auto;
  margin-bottom: auto;
}

.wide_less {
  grid-column-start: 2;
  grid-column-end: 12;
  width: 100%;
}

.wide {
  grid-column-start: 1;
  grid-column-end: 13;
}

.image_wide_left {
  grid-column-start: 1;
  grid-column-end: 11;
}

.image_narrow_left {
  grid-column-start: 11;
  grid-column-end: 13;
}

.process {
  grid-column-start: 3;
  grid-column-end: 10;
}

.fullheight {
  padding-top: 3.5em;
  padding-bottom: 3.5em;
}

.minheight {
  min-height: 100vh;
}

.halfheight {
  min-height: 50vh;
  padding-top: 3.5em;
  padding-bottom: 3.5em;
}

.adjust_margin {
  margin-left: calc(-1 * var(--main-margin));
}

.half_left {
  grid-column-start: 1;
  grid-column-end: 7;
}

.half_right {
  grid-column-start: 7;
  grid-column-end: 13;
}

.nextpast {
  margin-top: 2em;
  margin-bottom: 2em;
  display: flex;
  justify-content: space-between;
}

.nextpast i {
  font-size: 1em;
}

.next {
  margin-left: auto;
}

.fa-chevron-left {
  margin-right: 0.5em;
}

.fa-chevron-right {
  margin-left: 0.5em;
}
/*-------------------------------*/

/*--------------------------- PARALLAX-------------------------------*/

.parallax {
  background-size: cover;
  padding: 0 var(--main-margin) 0 var(--main-margin);
  position: relative;
  height: 70vh;
  background-position: center;
  -webkit-transform: translate3d(-20px, -50vh, -3px) scale(4);
  transform: translate3d(-20px, -50vh, -3px) scale(4);
  z-index: -1;
}

.case1_background {
  background-image: url("images/Econans_background.jpg");
  background-attachment: scroll;
}

.case2_background {
  background-image: url("images/pralinboden_bakgrundsbild_3.jpg");
}

.about_background {
  background-image: url("images/about_bakgrundsbild.jpg");
}

.case3_background {
  background-image: url("images/hero_shot_cloth_bigger_dist.jpg");
}

.case4_background {
  background-image: url("images/bostadskoparresan.jpg");
}

.startpage {
  background-image: url("images/trianglar.jpg");
  height: calc(95vh - 4em);
  background-position: 10% 70%;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translateZ(-7px) scale(8);
}
/*---------------------------------------------------------------------------*/
/*------------------------------Illustrationer-------------------------------*/

.illustrationer {
  padding: 8em var(--main-margin) 2em var(--main-margin);
  background-color: var(--secondary-bg-color);
}

.illustration_container {
  display: flex;
  justify-content: space-between;
}

.no_uppercase {
  text-transform: none;
}

.column1 {
  width: calc(39% - 1em);
}

.column2 {
  width: calc(60.55% - 1em);
}

.center {
  align-items: center;
}

.adjust_image {
  margin-top: 0;
  padding-top: 0;
}

.adjust_image_tight {
  margin-top: -2em;
}

.rows {
  grid-template-rows: repeat(7, 1fr);
}
.img1 {
  grid-column: 1/6;
}

.img2 {
  grid-column: 6/9;
}

.img3 {
  grid-column: 9/13;
}

.img4 {
  grid-column: 2/5;
}

.img5 {
  grid-column: 5/10;
}

.img6 {
  grid-column: 10/12;
}

.img7 {
  grid-column: 1/7;
  grid-row: 2/6;
}

.img8 {
  grid-column: 10/13;
  grid-row: 3/6;
}

.img9 {
  grid-column: 3/9;
  grid-row: 4/8;
}

.text_center {
  margin-top: auto;
  margin-bottom: auto;
  max-width: 55em;
}

/*--------------------------------About-page----------------------------*/

.about_img {
  grid-column-start: 1;
  grid-column-end: 5;

  margin-bottom: 2em;
}

.about {
  grid-column-start: 6;
  grid-column-end: 13;
}

.about_container {
  align-items: center;
}

.ingress {
  font-weight: bold;

  font-size: 1.1em;
}

.flex {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: baseline;
  gap: 4vw;
}

.text_center {
  grid-column-start: 1;
  grid-column-end: 13;
  margin-left: auto;
  margin-right: auto;
}

.author {
  text-align: right;
  max-width: 55em;
}

@media only screen and (orientation: portrait) {
  .startpage {
    background-size: auto 100%;
    background-position: center;
  }
}

@media only screen and (max-width: 1600px) {
  .flex {
    grid-column-start: 1;
    grid-column-end: 13;
  }
}

@media only screen and (max-width: 1100px) {
  .case_info_left,
  .case_right_img,
  .case_left,
  .wide_less,
  .case1 .case_text,
  .case3 .case_text {
    grid-column-start: 1;
  }

  .flex {
    flex-direction: column;
  }

  .case_info_right,
  .case_left_img,
  .case_right,
  .wide_less {
    grid-column-end: 13;
  }
  .case2 .case_text {
    grid-column: -1/-6;
  }
}

@media only screen and (max-width: 900px) {
  :root {
    --main-margin: 6vw;
  }

  .startpage_text {
    width: 100%;
    top: 50%;
    font-size: 1.7em;
    margin: 0.5em;
  }

  .startpage {
    background-size: auto 100%;
    background-position: center;
  }
  .case1,
  .case2,
  .case3 {
    display: flex;
    flex-direction: column;
  }

  .case1 .case_text,
  .case3 .case_text {
    order: 3;
  }
  .case1 .case_text,
  .case2 .case_text,
  .case3 .case_text {
    text-align: center;
    margin-left: 0;
  }

  .illustration_container {
    flex-direction: column;
  }

  .illustrationer h2 {
    margin-bottom: 0;
  }

  .column1,
  .column2 {
    width: 100%;
  }

  .container404 {
    display: block;
  }
  .container404 img {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .about {
    max-width: 100%;
  }

  .grid {
    display: flex;
    flex-direction: column;
  }

  .about_container {
    flex-direction: column-reverse;
  }

  .case_right {
    order: -1;
  }

  iframe {
    width: 100%;
    height: 80vw;
  }

  footer {
    flex-direction: column;
    padding-top: 1.5em;
    padding-bottom: 1.5em;
  }

  footer > * {
    padding: 0.5em;
  }

  .column1:first-child {
    margin-top: -1.5em;
  }
  /*-------Hamburger-menu ---------*/
  /* menu */

  nav {
    width: 100%;
    display: block;
  }

  nav .menu {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    /*background-color: #fff;*/

    clear: both;
    max-height: 0;
    transition: max-height 0.2s ease-out;
  }

  /* menu icon */
  nav a {
    text-align: right;
    display: block;
  }

  .logga_parent {
    float: left;
  }

  nav .menu-icon {
    cursor: pointer;
    /*display: inline-block;*/
    float: right;
    padding: 8px 0px 28px 20px;
    position: relative;
    user-select: none;
  }

  nav .menu-icon .navicon {
    background: #fff;
    display: block;
    height: 2px;
    position: relative;
    transition: background 0.2s ease-out;
    width: 18px;
  }

  nav .menu-icon .navicon:before,
  nav .menu-icon .navicon:after {
    background: #fff;
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    transition: all 0.2s ease-out;
    width: 100%;
  }
  nav .menu-icon .navicon:before {
    top: 5px;
  }

  nav .menu-icon .navicon:after {
    top: -5px;
  }

  /* menu btn */

  nav .menu-btn {
    display: none;
  }

  nav .menu-btn:checked ~ .menu {
    max-height: 240px;
  }

  nav .menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
  }

  nav .menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
  }

  nav .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
  }

  nav .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
  nav .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
    top: 0;
  }

  /*--*/
  .menu-item:hover {
    border-bottom: none;
  }
}

@media only screen and (max-width: 540px) {
  header {
    padding-top: 1em;
    padding-bottom: 1em;
  }

  .fa-chevron-down {
    top: 85%;
  }
}

@media only screen and (max-width: 430px) {
  .menu {
    flex-direction: column;
  }

  .menu-item {
    margin-left: auto;
  }

  nav a {
    margin-top: auto;
    margin-bottom: auto;
  }

  .logga {
    margin-bottom: -0.2em;
  }
}

@media only screen and (max-width: 370px) {
  :root {
    --main-margin: 4.6vw;
  }

  .startpage_text {
    font-size: 1.4em;
    width: 100%;
  }

  nav a {
    letter-spacing: 1.8px;
  }
}

@supports (-webkit-touch-callout: none) {
  .parallax,
  .startpage {
    transform: none;
  }
}
