/* temp google fonts */
@import url(https://fonts.googleapis.com/css?family=Anonymous+Pro);

html {
  scroll-behavior: smooth;
  
}

html, body {
  height: 100%;
  
}

body {
  margin: 0;
  font-size: 24px;
  font-family: Poppins, Inter, sans-serif;
  color: #E6E9EF;

  background-attachment: fixed;
  padding-bottom: 120px;
  
}

body::before {
  content: "";
  position: fixed;
  inset: 0; 
  background-image: url('newbg\(1\).png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: blur(2.75px); 
  transform: translateZ(0);
  z-index: -1;
  pointer-events: none;
  transform: scale(1.08);
}

.cursor{
    position: relative;
    width: 24em;
    margin: 0 auto;
    margin-top: 36px;
    border-right: 2px solid rgba(255,255,255,.75);
    font-size: 30px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    transform: translateY(-50%);
    font-family: Anonymous Pro, monospace;
    font-size: 3rem;
}

.welcome {
  animation: 
    typewriter 5s steps(50) 1s 1 normal both, 
    blinkingCursor 500ms steps(50) infinite normal;
}
@keyframes typewriter {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blinkingCursor{
  from { border-right-color: rgba(255,255,255,.75); }
  to { border-right-color: transparent; }
}

#om-mig-div,
#mina-projekt-div,
#kontakta-mig-div {
  padding: 32px 24px;
}

#BGgif {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  object-fit: cover;
  grid-row: 1/16;
  grid-column: 1/7;
  z-index: -1;
  animation: fadeIn 2s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#wrapper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: auto;
  row-gap: 160px;
  padding-top: 160px;  
  padding-bottom: 200px; 

}

#hero-spacer {
  grid-column: 1/-1;
  height: 100vh;
}

.div-header {
  text-decoration: underline;
}

#mina-projekt-div, #om-mig-div, #kontakta-mig-div {
  font-family: Inter, Poppins, sans-serif;
  background-color: #151922;
  border: 2px solid #242B3A;
  padding: 24px;
  border-radius: 25px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  scroll-margin-top: 140px;
}

#om-mig-div,
#kontakta-mig-div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  background-color: #151922;
  border: 2px solid #242B3A;
  padding: 12px;
  scroll-margin-top: 490px;
  border-radius: 25px;
}

#om-mig-div {
  grid-column: 3/5;
}

#mina-projekt-div {
  grid-column: 3/5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto repeat(3, 1fr);
  gap: 16px;
  background-color: #151922;
  border: 2px solid #242B3A;
  padding: 12px;
  scroll-margin-top: 245px;
    border-radius: 25px;
}

#kontakta-mig-div {
  grid-column: 3/5;
  display: inline-block;
}

#insta {
align-self: center;
width: 12%;
height: auto;
margin-top: 36px;
transform-origin: center;
transition: transform 0.3s ease;
}

#insta:hover {
cursor: pointer;
box-shadow: rgba(255, 255, 255, 0.9) 0px 0px 24px;
transition: text-shadow 0.25s ease;
transform: scale(1.08);
}

.project-title {
  position: absolute;
  z-index: 100;
  pointer-events: none;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.5);
}

#mina-projekt-div .div-header {
  grid-column: 1/-1;
  justify-self: center;
  align-self: start;
  margin-bottom: 12px;
  text-decoration: underline;
}

#projekt-1,
#projekt-2,
#projekt-3,
#projekt-4,
#projekt-5,
#projekt-6 {
display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;

  font-size: 36px;
  border-radius: 12px;
  background-color: #1C2230;
  overflow: hidden;

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#projekt-1:hover,
#projekt-2:hover,
#projekt-3:hover,
#projekt-4:hover,
#projekt-5:hover,
#projekt-6:hover {
 transform: scale(1.08);
 box-shadow: rgba(0, 0, 0, 0.5) 0 0 36px;
 cursor: pointer;
}

#projekt-1:active,
#projekt-2:active,
#projekt-3:active,
#projekt-4:active,
#projekt-5:active,
#projekt-6:active {
 transform: scale(1.00);
 box-shadow: rgba(0, 0, 0, 0.5) 0 0 36px;
 cursor: pointer;
}

#mockup {
  opacity: 0.7;
  max-width: 100%;
  height: auto;
}

.body-text {
  font-size: clamp(24px, 0.8vw + 0.8vh, 24px);
  text-align: center;
  padding: 8px 12px 0;
  margin: 0;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 100%;
  border-bottom: 2px solid #242B3A;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(21, 25, 34, 0.85);
}

#header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 640px;
}

#header-middle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-left: 100px;
  min-width: 0;
}

#header-left,
#header-middle {
  min-height: auto;
}

#header,
#header-middle,
#name {
  white-space: normal;
  word-wrap: break-word;
}

#name {
  font-size: 2rem;
  padding-left: 36px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

a,
a:visited {
  color: inherit;
  text-decoration: none;
}

#om-mig:hover,
#mina-projekt:hover,
#kontakta-mig:hover,
#tillbaka:hover {
  cursor: pointer;
  text-shadow: rgba(255, 255, 255, 0.9) 0 0 24px;
  transform: scale(1.08);
  transition: transform 0.25s ease, text-shadow 0.25s ease;
}

#om-mig:active,
#mina-projekt:active,
#kontakta-mig:active,
#tillbaka:active {
  cursor: pointer;
  transform: scale(1.00);
  transition: transform 0.25s ease, text-shadow 0.25s ease;
}

#tillbaka {
  position: fixed;
  left: 12px;
  bottom: 12px;
  background-color: #151922;
  padding: 8px;
  border: 2px solid #242B3A;
  border-radius: 25px;
}

@media (max-width: 1199px) {

  body {
    font-size: 22px;
  }

  #wrapper {
    padding-top: 140px;
    row-gap: 140px;
  }

  #om-mig-div,
  #mina-projekt-div,
  #kontakta-mig-div {
    grid-column: 2 / 6;
  }

  #mina-projekt-div {
    grid-template-columns: 1fr 1fr;
  }

  .project-title {
    font-size: 28px;
  }

  #insta {
    width: 18%;
  }
}


@media (max-width: 767px) {

  body {
    font-size: 20px;
  }

  #wrapper {
    padding-top: 180px;
    row-gap: 120px;
  }

  #header {
    flex-direction: column;
    height: auto;
    padding: 12px;
  }

  #header-left,
  #header-middle {
    min-height: auto;
    margin: 0;
  }

  #om-mig-div,
  #mina-projekt-div,
  #kontakta-mig-div {
    grid-column: 1 / -1;
  }

  #mina-projekt-div {
    grid-template-columns: 1fr;
  }

  .project-title {
    font-size: 22px;
  }

  #insta {
    width: 28%;
  }
}

