@charset "UTF-8";
/*https://www.freecodecamp.org/news/how-to-use-sass-with-css/*/
/* file import */
nav {
  overflow: hidden;
  padding: 30px;
}
nav li {
  margin-top: 40px;
}
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: none;
  flex-direction: column;
  margin-top: 65px;
}
nav a {
  display: block;
  color: black;
  text-align: center;
  text-decoration: none;
}
nav {
  /* Styling for when nav is active */
}
nav.active {
  position: fixed;
  width: 100%;
  z-index: 99;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
nav.active ul {
  display: flex;
  padding-top: 20px;
  text-align: center;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  0% {
    transform: translateY(-15%);
  }
  100% {
    transform: translateY(0);
  }
}
ul a.underline {
  display: inline-block;
}

/* To prevent scrolling of the body when the nav is active 
body.nav-active,
html.nav-active {
  overflow: hidden;
}*/
.menu-logo {
  float: left;
  cursor: pointer;
}
.menu-logo img {
  max-height: 40px;
}

/* Styling for the hamburger icon */
.hamburger-cross {
  float: right;
  cursor: pointer;
  margin-right: 13px;
  pointer-events: auto;
}

/* Styling for the bars in the hamburger icon */
.bar1,
.bar2,
.bar3 {
  width: 28px;
  height: 3.5px;
  background-color: black;
  margin: 5px 0;
  transition: 0.4s;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
}

/* Styling for the bars when the hamburger icon is clicked */
.change .bar1 {
  transform: translate(0, 8px) rotate(-45deg);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: translate(0, -8px) rotate(45deg);
}

/*#lang-toggle {
  background-color: #816E81;
  border-radius: 25px;
  padding: 4px 12px;
  border: none;
  color: white;
  font-size: smaller;
}*/
/* Media query for larger screens */
@media only screen and (min-width: 770px) {
  /* Display the ul list as a horizontal row and align it to the right */
  nav ul {
    display: flex;
    flex-direction: row;
    float: right;
    margin-top: 10px;
  }
  /* Add margin to the left of each list item */
  nav li {
    margin-left: 40px;
    margin-top: 0;
  }
  /* Hide the hamburger icon on larger screens */
  .hamburger-cross {
    display: none;
  }
}
.solution.luna,
.header.luna {
  background-color: #485F45;
  color: white;
}

.luna .short-underline::before {
  background-color: #485F45;
  color: #485F45;
}

.solution.saltpepper,
.header.saltpepper {
  background-color: #231A26;
  color: white;
}

.saltpepper .short-underline::before {
  background-color: #231A26;
  color: #231A26;
}

.solution.myrsund,
.header.myrsund {
  background-color: #ac2022;
  color: white;
}

.myrsund .short-underline::before {
  background-color: #ac2022;
  color: #ac2022;
}

.solution.IDG2012,
.header.IDG2012 {
  background-color: #006081;
  color: white;
}

.IDG2012 .short-underline::before {
  background-color: #006081;
  color: #006081;
}

.solution.IDG2000,
.header.IDG2000 {
  background-color: #14733d;
  color: white;
}

.IDG2000 .short-underline::before {
  background-color: #14733d;
  color: #14733d;
}

.solution.IDG3750,
.header.IDG3750 {
  background-color: #d4af37;
  color: black;
}

.IDG3750 .short-underline::before {
  background-color: #d4af37;
  color: #d4af37;
}

.solution.norkart,
.header.norkart {
  background-color: #15804E;
  color: white;
}

.norkart .short-underline::before {
  background-color: #15804E;
  color: #15804E;
}

.solution.IDG3009,
.header.IDG3009 {
  background-color: #0076DA;
  color: white;
}

.IDG3009 .short-underline::before {
  background-color: #0076DA;
  color: #0076DA;
}

.solution.IDG2200,
.header.IDG2200 {
  background-color: #F7F4ED;
  color: black;
}

.IDG2200 .short-underline::before {
  background-color: #F7F4ED;
  color: #F7F4ED;
}

.solution.IDG3002,
.header.IDG3002 {
  background-color: #3F9475;
  color: white;
}

.IDG3002 .short-underline::before {
  background-color: #3F9475;
  color: #3F9475;
}

.solution.IDG3006,
.header.IDG3006 {
  background-color: #4FAD74;
  color: black;
}

.IDG3006 .short-underline::before {
  background-color: #4FAD74;
  color: #4FAD74;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -400px;
  /* Position off-screen */
}

.skip-to-content:focus {
  position: relative;
  top: 0;
  /* Bring into the visible area when focused */
}

nav,
.welcome {
  background-color: white;
}

/* Styles for container */
.container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  /* Apply grid with 2 columns */
  display: grid;
  grid-template-rows: auto;
  text-align: center;
  /* Arrange items vertically within the grid */
}

/* Styles for index cards */
.index-card {
  display: grid;
  grid-gap: 20px;
  margin: 20px 0;
  border-radius: 5px;
}

.welcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 80vh;
  padding: 0 24px;
  margin-bottom: 40px;
}

/*NYTT*/
.ny-hero {
  display: flex;
  justify-content: flex-start; /* Høyrestiller bildene */
  margin-top: 40px; /* Luft under bildet */
}

.ny-hero img {
  width: 30px;
  height: 30px;
}

.welcome-header {
  margin: 0 auto;
  max-width: 850px;
  text-align: left;
  animation: fadeIn 1.5s ease-in-out;
}
.welcome-header h1 {
  font-size: 1.45rem;
  margin-top: 20px;
  margin-bottom: 20px;
}
.welcome-header p {
  max-width: 750px;
  margin-bottom: 15px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
span.welcome-design,
span.welcome-design2 {
  font-weight: lighter;
  font-size: 1rem;
}

span.welcome-design2 {
  color: #816E81;
}

/* Styles for button */
.button-project {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  /* Knappe-styling */
  border-radius: 4px;
  border: 0.2px solid #816E81;
  background-color: #ffffff;
  margin-top: 16px;
  padding: 5px 10px;
  /* Tekst-styling */
  font-size: 12px;
  color: black;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.button-project img {
  width: 15px;
  height: auto;
  margin: 0;
}
.button-project:hover {
  background-color: #816E81;
  color: white;
}
.button-project:hover img {
  filter: brightness(0) invert(1);
}

.year {
  font-size: 14px;
  font-style: italic;
  color: #816E81;
  margin-top: -5px;
  margin-bottom: 4px;
}

.button-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  flex: 1 1 auto; /* allows buttons to grow and shrink */
  max-width: 45%;
  min-width: 100px;
}

.spacing {
  margin: 90px 55px;
}

.line {
  position: relative;
  width: 80%;
  max-width: 700px;
}
.line::after {
  content: "";
  display: block;
  border-top: 1.4px solid #dadedf;
}

/* Styles for portfolio section heading */
h2#portfolio {
  margin: 0 0 40px 0;
}

.text {
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.text h3 {
  padding-top: 0;
}

/* Typewriter */
.typewriter {
  overflow: hidden;
  border-right: 0.15em solid #816E81;
  white-space: nowrap;
  letter-spacing: 0.04em;
  width: fit-content;
  line-height: 1.25;
  animation: typing 2.2s steps(25, end) forwards, blink-caret 0.75s step-end 5 forwards;
}

/* Selve skriveeffekten */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 19ch;
  }
}
/* Markøren som blinker */
@keyframes blink-caret {
  from {
    border-color: #816E81;
  }
  to {
    border-color: transparent;
  }
  50% {
    border-color: transparent;
  }
}
/* Media queries for larger screens */
@media only screen and (min-width: 770px) {
  .index-card {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 50px;
    align-items: center;
  }
  .spacing {
    margin: 125px;
  }
  span.welcome-design,
  span.welcome-design2 {
    font-size: 1.3rem;
  }
  .welcome-header h1 {
    font-size: 1.6rem;
  }
}
/* Media queries for even larger screens */
@media only screen and (min-width: 1000px) {
  .index-card.three-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Make the body background fixed 
body {
    background: rgb(255,255,255);
background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(160,149,175,1) 50%, rgba(255,255,255,1) 100%);
background-attachment: fixed;
}*/
footer {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
footer img {
  width: 40px;
  height: 40px;
  margin: 0 10px;
}
footer img:hover {
  opacity: 0.5;
}
footer div {
  padding: 10px;
}
footer p {
  margin: 0;
}

.footer {
  width: 100%;
}

/* Styles for top section of footer */
.top-footer {
  padding: 30px 0;
  background-color: #dadedf;
}

/* Styles for bottom section of footer */
.bottom-footer {
  background-color: white;
}

/* Styles for footer text and links */
footer,
footer a {
  color: #000000;
  text-decoration: none;
}

.scroll a {
  text-decoration: underline;
}

.social-media {
  display: flex;
  gap: 10px; /* Adjust the spacing between icons as needed */
  justify-content: center;
  align-items: center;
}

/* Styles for copyright text */
.copyright {
  font-size: 0.833rem;
}

/* Style the list */
ul.breadcrumb {
  padding: 10px 0px;
  list-style: none;
  margin-left: 0;
}

/* Display list items side by side */
ul.breadcrumb li {
  display: inline;
  font-size: 9px;
}

/* Add a slash symbol (/) before/behind each list item */
ul.breadcrumb li + li:before {
  padding: 8px;
  color: #ffffff;
  content: "/ ";
}

ul.breadcrumb a {
  font-size: 9px;
}

/* Add a color to all links inside the list */
ul.breadcrumb li a {
  color: #ffffff;
  text-decoration: none;
}

/* Style the last li with the primary color */
ul.breadcrumb li:last-child {
  color: #ffffff;
}

/* Add a color on mouse-over */
ul.breadcrumb li a:hover {
  color: #dadedf;
  text-decoration: underline;
}

p {
  margin-top: 7px;
  margin-bottom: 15px;
}

.header {
  padding: 40px 24px 20px 24px;
  margin-bottom: 24px;
}

.header-max {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.header-text {
  margin: 0 auto;
}

.header-img {
  height: 300px;
  width: auto;
  object-fit: contain;
}

.title {
  font-size: 1.8rem;
  margin: 45px 0 7px 0;
}

.tools-icon {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  width: max-content;
  padding-left: 0;
}

.tools-icon img {
  height: 32px;
  width: auto;
  object-fit: fill;
  display: block;
}

.problem-statement,
.design-process,
.solution,
.learned,
.my-work {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.solution,
video {
  border-radius: 5px;
  margin-top: 20px;
}

.display {
  align-items: center;
  justify-content: center;
}
.display h2 {
  margin-top: 10px;
}
.display img {
  margin: 10px 0;
}

.solution-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px; /* Adjust the gap between images if needed */
}

.mobile-mockup {
  max-height: 350px;
  width: auto;
  margin: 0 auto;
  display: flex;
  justify-self: center;
}

.button-container {
  margin-top: 30px;
  margin-bottom: 40px;
}

.button-github {
  background-color: #dadedf;
  padding: 13px 23px;
  border-radius: 5px;
  margin-top: 40px;
  border: none;
}
.button-github a {
  color: #000000;
  text-decoration: none;
}
.button-github {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto; /* Centers the button horizontally */
}

ul {
  margin-left: 30px;
}

.solution {
  text-align: center;
  padding: 20px;
}

.showcase1,
.showcase2 {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  box-shadow: 3px 1px 11px 2px rgba(115, 115, 115, 0.2);
  -webkit-box-shadow: 3px 1px 11px 2px rgba(115, 115, 115, 0.2);
  -moz-box-shadow: 3px 1px 11px 2px rgba(115, 115, 115, 0.2);
}
.showcase1 p,
.showcase2 p {
  margin: 10px 13px;
}

.my-work {
  display: grid;
  grid-template-areas: "work" "showcase1" "showcase2";
  gap: 30px;
  margin-bottom: 50px;
}
.my-work a {
  text-decoration: none;
  color: black;
}
.my-work a:hover {
  text-decoration: underline;
}

.work {
  grid-area: work;
}

.showcase1 {
  grid-area: showcase1;
  display: grid;
  grid-template-rows: auto;
  text-align: center;
}

.showcase2 {
  grid-area: showcase2;
  display: grid;
  grid-template-rows: auto;
  text-align: center;
}

.wireframing {
  grid-gap: 25px;
}

.wireframing div:nth-child(1) {
  margin-right: 10px;
}

/* Separator line styles */
.line {
  margin: 20px auto;
}

.case-box {
  font-family: sans-serif;
  border-radius: 12px;
  padding: 24px;
  max-width: 800px;
  margin-bottom: 12px;
}

.section {
  margin-bottom: 20px;
}

.section:last-child {
  margin-bottom: 0;
}

.challenge-title {
  color: #8d3a1a; /* Mørkere brunrød farge */
  margin: 0 0 8px 0;
}

.solution-title {
  color: #005a44; /* Mørkegrønn farge */
  margin: 0 0 8px 0;
}

/* Media queries for larger screens */
@media only screen and (min-width: 770px) {
  .time {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 40px;
  }
  .wireframing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .mobile-mockup {
    max-height: 400px;
  }
  .solution-showcase {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 40px;
    grid-gap: 50px;
  }
  .my-work {
    grid-template-areas: "work work" "showcase1 showcase2";
  }
  .showcase1,
  .showcase2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .line {
    margin: 40px auto;
  }
}
/*BUTTON*/
.about,
.skills-general,
.skills,
.education,
.experience,
.resume {
  margin-bottom: 20px;
}

.header-about {
  margin-bottom: 12px;
}

.about-img {
  height: 300px;
}

.skills > div:nth-child(2) {
  margin-top: 25px;
}

.education,
.experience,
.education > div:nth-child(2),
.experience > div:nth-child(2) {
  margin-top: 25px;
}

.experience {
  margin-bottom: 50px;
}

.education > div:nth-child(3) {
  margin-top: 24px;
}

.education h3, .experience h3 {
  padding-top: 5px;
}

.cursiv {
  font-style: italic;
  font-size: 13px;
}

/*BUTTON*/
.resume {
  display: block;
  border: none;
  background-color: #ffffff;
}
.resume a {
  color: black;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

.span,
.skills-design {
  display: inline-block;
  background-color: #816E81;
  color: #ffffff;
  border-radius: 12px;
  padding: 5px 15px;
  max-width: max-content;
  font-size: 0.833rem;
  margin: 6px 6px 6px 0;
}

/* Media queries for larger screens */
@media only screen and (min-width: 700px) {
  .skills-general,
  .skills,
  .education,
  .experience {
    padding: 25px 0 0 0;
  }
  .education h3, .experience h3 {
    padding-top: 15px;
  }
  .about-text {
    display: grid !important; /* !important for å sjekke om noe annet overstyrer */
    grid-template-columns: auto 1fr;
    align-items: center; /* Vertikal sentrering */
    justify-content: start; /* Horisontal sentrering til venstre */
    gap: 60px;
  }
  .about-img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    justify-self: start;
  }
  .skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    grid-gap: 30px;
  }
  .skills > div:nth-child(2) {
    margin-top: 0;
  }
}
:root {
  /*base font size */
  font-size: 16px;
}

@font-face {
  font-family: "poppinsRegular";
  src: url("../assets/fonts/Poppins/Poppins-Regular.ttf");
}
@font-face {
  font-family: "poppinsLight";
  src: url("../assets/fonts/Poppins/Poppins-Light.ttf");
}
@font-face {
  font-family: "poppinsMedium";
  src: url("../assets/fonts/Poppins/Poppins-Medium.ttf");
}
@font-face {
  font-family: "interLight";
  src: url("../assets/fonts/Inter/Inter-Light.ttf");
}
@font-face {
  font-family: "playfairRegular";
  src: url("../assets/fonts/Playfair_Display/PlayfairDisplay-Regular.ttf");
}
/* Apply outline to all elements
* {
  outline: 1px solid red; 
}*/
/* Reset and default styles for all elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: poppinsLight;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

*:focus {
  outline: 3px solid #816E81;
}

/* Body and HTML styles */
html {
  margin: 0 auto;
  width: 100%;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  margin: 0 auto;
}

main {
  margin: 0 auto;
  max-width: 900px;
  padding: 0 24px;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Lightbox bilder */
.click-open {
  cursor: zoom-in;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.click-open:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

#dynamic-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

#dynamic-lightbox.active {
  display: flex;
}

/* Selve bildet */
#dynamic-img {
  max-width: 90%;
  max-height: 90%;
  transform-origin: center;
  cursor: grab;
}

#dynamic-img:active {
  cursor: grabbing;
}

/* Lukkekrysset */
#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

#lightbox-close:hover {
  color: #816E81;
}

video {
  width: 100%;
  height: auto;
  max-width: 100%; /* Ensures it doesn't exceed the container's width */
  display: block; /* Removes any default inline spacing */
}

iframe {
  max-width: 100%;
  min-height: 450px;
  width: 100%;
}

header {
  margin: 0 auto;
  max-width: 1280px;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 5px;
}

h1 {
  font-size: 1.9rem;
  font-family: poppinsRegular;
  word-spacing: 0.05em;
}

h2 {
  font-size: 1.5rem;
  padding-top: 15px;
}

h3 {
  font-size: 1.3rem;
  padding-top: 15px;
}

h4 {
  font-size: 1.1rem;
}

p {
  font-size: 1rem;
}

a:hover {
  font-weight: 600;
  /*text-decoration: underline;*/
}

/*active link */
.underline {
  border-bottom: 2px solid #816E81;
  border-radius: 2px;
}

/*heading*/
.short-underline {
  position: relative;
  display: inline-block;
}

.short-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 20%;
  height: 3px;
  background-color: #816E81;
  border-radius: 2px;
}

.design-process h2 {
  font-size: 1.6rem;
}

.swap-content {
  display: grid;
  grid-template-areas: "swapimg" "swaptext";
}

.swap-img {
  grid-area: swapimg;
}

.swap-text {
  grid-area: swaptext;
}

/* Animasjon*/
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

/* Tilstanden som aktiveres når man scroller til kortet */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Media queries for larger screens */
@media only screen and (min-width: 770px) {
  h1 {
    font-size: 2.4rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.2rem;
  }
  .swap-content {
    display: grid;
    grid-template-areas: "swaptext swapimg" "swaptext swapimg";
    row-gap: 0; /* Removes the gap between rows */
  }
}/*# sourceMappingURL=style.css.map */