@import url('https://fonts.googleapis.com/css?family=Quicksand:400,500,700');
html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
    font-size: 0.7em;
    overflow-x: hidden;
}

p{
    font-size: 20px;
    line-height: 1.5em;
}

h2{
    font-size: 24px;
}

.nav {
    width: 100%;
    height: 65px;
    position: fixed;
    line-height: 65px;
    text-align: center;
    background-color: #000;
    
}

.nav div.logo {
    float: left;
    width: auto;
    height: auto;
    padding-left: 2rem;
}

.nav div.logo a {
    text-decoration: none;
    color: #fff;
    font-size: 2rem;
}

.nav div.logo a:hover {
    color: #666;
}

.nav div.main_list {
    height: 65px;
    float: right;
}

.nav div.main_list ul {
    width: 100%;
    height: 65px;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav div.main_list ul li {
    width: auto;
    height: 65px;
    padding: 0;
    padding-right: 3rem;
}

.nav div.main_list ul li a {
    text-decoration: none;
    color: #fff;
    line-height: 65px;
    font-size: 2rem;
}

.nav div.main_list ul li a:hover {
    color: #666;
}


/* Home section */

.home {
    width: 100%;
    height: 100vh;
    background-image: url(img/header-bg.jpg);
    background-position: center top;
	background-size:cover;
  position: relative; 
}

.text-container {
  position: absolute; /* Position the text container relative to its containing element */
  top: 30%; 
  left: 5%; 
  max-width: 40%;
}

.text-container p {
  color: white !important;
  font-size: 3em ;
}


@media screen and (max-width: 420px) {
  .home {
    background-image: url(img/home-mobil.jpg);
}
  
  .text-container  {
    top: 18%;
    left: 5%;
    max-width: 75%;
  }

  .overskrift {
      padding-top: 15% !important;
      padding-bottom: 15% !important;
  }

}

.navTrigger {
    display: none;
}

.nav {
    padding-top: 20px;
    padding-bottom: 20px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    z-index: 2;
}

/* Media qurey section */

@media screen and (min-width: 880px) and (max-width: 1024px) {
    .nav-container {
        margin: 0;
    }
    
}

@media screen and (max-width:880px) {

    .navTrigger {
        display: block;
    }
    .nav div.logo {
        
    }
    .nav div.main_list {
        width: 100%;
        height: 0;
        overflow: hidden;
    }
    .nav div.show_list {
        height: auto;
        display: none;
    }
    .nav div.main_list ul {
        flex-direction: column;
        width: 100%;
        height: 100vh;
        right: 0;
        left: 0;
        bottom: 0;
        background-color: #000;
        background-position: center top;
    }
    .nav div.main_list ul li {
        width: 100%;
        text-align: right;
    }
    .nav div.main_list ul li a {
        text-align: center;
        width: 100%;
        font-size: 3rem;
        padding: 20px;
    }
    .nav div.media_button {
        display: block;
    }
}


.navTrigger {
    cursor: pointer;
    width: 30px;
    height: 25px;
    margin: auto;
    position: absolute;
    right: 30px;
    top: 0;
    bottom: 0;
}

.navTrigger i {
    background-color: #fff;
    border-radius: 2px;
    content: '';
    display: block;
    width: 100%;
    height: 4px;
}

.navTrigger i:nth-child(1) {
    -webkit-animation: outT 0.8s backwards;
    animation: outT 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

.navTrigger i:nth-child(2) {
    margin: 5px 0;
    -webkit-animation: outM 0.8s backwards;
    animation: outM 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

.navTrigger i:nth-child(3) {
    -webkit-animation: outBtm 0.8s backwards;
    animation: outBtm 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
}

.navTrigger.active i:nth-child(1) {
    -webkit-animation: inT 0.8s forwards;
    animation: inT 0.8s forwards;
}

.navTrigger.active i:nth-child(2) {
    -webkit-animation: inM 0.8s forwards;
    animation: inM 0.8s forwards;
}

.navTrigger.active i:nth-child(3) {
    -webkit-animation: inBtm 0.8s forwards;
    animation: inBtm 0.8s forwards;
}

@-webkit-keyframes inM {
    50% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(45deg);
    }
}

@keyframes inM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@-webkit-keyframes outM {
    50% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(45deg);
    }
}

@keyframes outM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@-webkit-keyframes inT {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(9px) rotate(135deg);
    }
}

@keyframes inT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(9px) rotate(0deg);
    }
    100% {
        transform: translateY(9px) rotate(135deg);
    }
}

@-webkit-keyframes outT {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(9px) rotate(135deg);
    }
}

@keyframes outT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(9px) rotate(0deg);
    }
    100% {
        transform: translateY(9px) rotate(135deg);
    }
}

@-webkit-keyframes inBtm {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(-9px) rotate(135deg);
    }
}

@keyframes inBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(135deg);
    }
}

@-webkit-keyframes outBtm {
    0% {
        -webkit-transform: translateY(0px) rotate(0deg);
    }
    50% {
        -webkit-transform: translateY(-9px) rotate(0deg);
    }
    100% {
        -webkit-transform: translateY(-9px) rotate(135deg);
    }
}

@keyframes outBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(135deg);
    }
}

.affix {
    padding: 0;
    background-color: #111;
}


.overskrift {
	text-align:center;
	font-size: 4rem;
    padding-top: 5%;
    padding-bottom: 5%;
}
.myP {
	text-align: justify;
	padding-left:15%;
	padding-right:15%;
	font-size: 20px;
}

.cardRow {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  min-height: 100vh;
}

.card {
  width: 400px;
  height: 400px;
  margin: 1em;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  backdrop-filter: blur(40px);
  border: solid 2px transparent;
  background-clip: padding-box;
  box-shadow: 0px 10px 10px rgba(46, 54, 68, 0.03);
}


*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  outline: none;
  appearance: none;
  border-style: none;
  color: #666;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



html,
.section-cards{
  width: 100%;
  height: 100%;
  background-color: #f7f7f7;
}

.section-cards {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2em;
  padding-bottom: 10%;
}



.section-cards .cardRow {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 1em;
}
.section-cards .cardRow .card {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 1em;
  background-color: #fff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  backdrop-filter: blur(40px);
  border: solid 2px #f2f2f2;
  background-clip: padding-box;
  box-shadow: 0px 10px 10px rgba(46, 54, 68, 0.03);
}
.section-cards .cardRow .card .content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0.5;
  transition: 0.5s;
}
.section-cards .cardRow .card .content .img {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.25);
}
.section-cards .cardRow .card .content .img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section-cards .cardRow .card .content .cardContent h3 {
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  font-size: 18px;
  text-align: center;
  margin: 20px 0 10px;
  line-height: 1.5em;
}
.section-cards .cardRow .card .content .cardContent h3 span {
  font-size: 12px;
  font-weight: 300;
  text-transform: initial;
}

.section-cards .cardRow .card:hover .content {
  opacity: 1;
  transform: translateY(-20px);
}


/* ------------------------- galleri ------------------------- */

/* Style the gallery */

.gallery-overskrift {
 margin: auto;
 font-size: 3.5rem;
 max-width: 1200px;
 padding-left: 8px;

}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 95%; /* Adjust as needed */
    padding: 10px;
    margin: auto;
  }

  .gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 1; /* Ensure a square aspect ratio for items */
  }

  .gallery-item img,
  .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
  }

  .lightbox-content {
    max-width: 90%;
    max-height: 90%;
    margin-top:4%;
    overflow: hidden;
  }

  .lightbox img,
  .lightbox video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .lightbox-btn {
    color: #fff;
    font-size: 4em;
    cursor: pointer;
  }

  .close-btn {
    position: absolute;
  top: 10%;
  font-size: 6em;
    right: 10px;
  }

  .prev-btn {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
  }

  .next-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
  }

  @media (min-width: 300px) {
    .gallery {
      grid-template-columns: repeat(1, 1fr);
    }
  }

  @media (max-width: 420px) {
   
    .close-btn {
      position: absolute;
    top: 20%;
      right: 25px;
    }

    .prev-btn {
      top: 75%;
      left: 20px;
    }
  
    .next-btn {
      top: 75%;
      right: 20px;
    }
  }

  @media (min-width: 600px) {
    .gallery {
      grid-template-columns: repeat(2, 1fr);
    }

  }

  @media (min-width: 900px) {
    .gallery {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (min-width: 1200px) {
    .gallery {
      grid-template-columns: repeat(4, 1fr);
    }
  }




/* ------------------------- cv sektion ------------------------- */

.cv-section{
    height: auto;
    background-color: #fff;
    padding-right: 50px;
    padding-bottom: 10%;
  }

  .vl {
    border-left: 3px solid black;
    height: 1600px;
    margin-left:100px;
    float: left;
  }
  

  .cv-underoverskrift{
    margin-left:130px;
    font-size: 24px;
   
  }

  .cv-element{
    margin-left:102px;
    margin-top: 2%;
   
  }
 
  .triangle{
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #000;
    
  }

 .year-box{
    margin-top:-2.5%;
    margin-left:40px;
  }

  @media screen and (max-width: 880px) {
    .vl {
      height: 220vh;
      margin-left:50px;
    }

    .cv-underoverskrift{
        margin-left:100px;
        margin-top: 2%;
        font-size: 24px;
        color: #000;
       
      }

    .triangle{
      margin-left:-50px;      
      }
  
    .year-box{
        margin-top:-6.5% !important;
        margin-left:0px !important;
      }
  }

  @media screen and (max-width: 420px) {
    .vl {
      height:480vh;
      margin-left:50px;
    }

    .cv-section{
      padding-right: 20px;
    }

    .cv-underoverskrift{
        margin-left:100px;
        margin-top: 2%;
        font-size: 24px;
        color: #000;
       
      }

    .triangle{
      margin-left:-50px;
      }
  
    .year-box{
        margin-top:-11% !important;
        margin-left:0px !important;
      }
  }

   /* ------------------------- om mig sektion ------------------------- */

   .om-section{
    padding-bottom: 10%;

  }

#omMigImg{
    display: block;
  margin-left: auto;
  margin-right: auto;
margin-bottom: 5%;
  }
  
  #omMigTeskt{
    margin: auto;
    max-width: 60%;
    margin-bottom: 5%;
    line-height: 1.5em;
  }

  @media screen and (max-width: 880px) {
    #omMigTeskt {
        max-width: 80%;
    }
}

  /* ------------------------- færdigheder sektion ------------------------- */

  .skills-section{
    background-color: #fff;
    padding-bottom: 5%;
  }

  .skills-text{
    margin-left: 42%;
  }

  .skillbar-wrapper {
    margin: 1.5em auto;
    max-width: 90%;
  }

  .skillbar-overskrift{
  margin-bottom: 2%;
  margin-top: 2%;
  }

  .skillbar {
    position: relative;
    margin-bottom: 15px;
    width: 100%;
    background: #B9BBB6;
    height: 35px;
    border-radius: 3px;
  }

  .skillbar-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    font-weight: bold;
    font-size: 13px;
    color: #fff;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    margin: 0;
    white-space: nowrap;

  }

  .skillbar-title span {
    display: block;
    background: #000;
    color: #fff;
    padding: 0 20px;
    height: 35px;
    line-height: 35px;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
  }

  .skillbar-bar {
    height: 35px;
    width: 0%;
    border-radius: 3px;
    transition: width 2000ms linear, background-color 2000ms linear;
  }

  .skill-bar-percent {
    position: absolute;
    right: 10px;
    top: 0;
    font-size: 11px;
    height: 35px;
    line-height: 35px;
    color: rgba(0, 0, 0, 0.4);
    transition: color 2000ms ease-out;
  }

  .complete .skill-bar-percent {
    color: #fff;
  }

  /* Customize the colors for each skill bar */

 .skillbar-bar {
    background: #7095b9;
  }

  .cms .skillbar-bar {
    background: #ff816e;
  }

  .software .skillbar-bar {
    background: #b0c27f;
  }

  @media screen and (max-width: 420px) {
    .skills-text{
      margin-left: 25%;
    }
}

    /* ------------------------- sub side sektion ------------------------- */

.sub-page {
height:100%;
margin: auto;
}

.sub-page-overskrift{
    text-align:center;
    font-size: 4rem;
    }

.top-sub{
    height: 10vh;
    }

        .grid-container {
            display: grid;
            grid-template-columns: 1fr 1fr; /* Two columns with equal width */
            gap: 20px; /* Gap between columns */
            margin: auto;
            margin-bottom: 3%;
            max-width: 90%;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            display: block inline;
            padding-bottom: 2%;
        }

        /* Style for text column */
        .text-column {
         margin-top: 5%;
        }

        .gallery-column {
         margin-top: 5%;
        }

      
        .sub-span{
            background-color: black;
            color: white;
            font-size: 24px;
            padding: 1%;
            margin-right: 2%;
            border-radius: 2%;  
            white-space: nowrap;
        }

        .sub-span-container {
            margin-bottom: 4%;
        }
        

#slider,
.wrap,
.slide-content {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 50vh;
  overflow-x: hidden;
}

.wrap {
  position: relative;
  margin-top: 5%;
}

.slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 2px solid #666; 
}

.slide-content span {
  font-size: 5rem;
  color: #fff;
}

.arrow {
  cursor: pointer;
  position: absolute;
  top: 50%;
  margin-top: -20px;
  width: 0;
  height: 0;
  border-style: solid;
}

#arrow-left {
  border-width: 15px 20px 15px 0;
  border-color: transparent #666 transparent transparent;
  left: 0;
  margin-left: 5px;
}

#arrow-right {
  border-width: 15px 0 15px 20px;
  border-color: transparent transparent transparent #666;
  right: 0;
  margin-right: 5px;
}

img[src="img/github-mark.png"]  {
    width: 50px; 
    height: 50px; 
}

.figma-logo{
  width: 50px; 
    height: 50px; 
}
@media (min-width: 768px) {
  .grid-container {
      grid-template-columns: 1fr 1fr; /* Keep the two columns for desktop */
  }

  /* Adjust the order of the columns for desktop */
  .text-column {
      order: 1;
  }

  .gallery-column {
      order: 2;
  }
}

@media screen and (max-width: 420px) {
    .grid-container {
      max-width: 100% !important;
  }

  .text-column {
         max-width: 90%;
         margin:auto;
  }

  #slider,
.wrap,
.slide-content {
  height: 30vh;

}

}

@media (max-width: 767px) {
  .grid-container {
      grid-template-columns: 1fr; /* Change to a single column layout on small screens */
  }

  }

  /* ------------------------- footer sektion ------------------------- */

  footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    bottom: 0;
    height: 250px;
}
.icon {
    width: 50px; /* Set the desired width */
    height: 50px; 
    margin-left: 0.5%;
    margin-top: 5%;
    margin-bottom: 2%;
}

@media screen and (max-width: 420px) {
  .icon {
    margin-left: 2%;
    margin-top: 20%;
    margin-bottom: 12%;
}
}
    
