* {
    margin: 0;
    font-family: "poppins", sans-serif;
    scroll-behavior: smooth;
}

/* GENERAL CSS */
h1{
  font-size: 26pt;
    font-weight: 800;
}
h2{
    font-weight: 700;
    font-size: 19pt;
}
h3{
  font-weight: 600;
  font-size: 15pt;
}
p{
  font-family: "lato", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 13pt;
}

.smaller-p{
  font-size: 11pt;
}

.small-p{
  font-size: 10pt;
}

.second-p{
  padding-top: 12px;
}

button{
  font-weight: 600;
  filter: brightness(80%);
  color: #151a24;
  background-color: #ffffff;
  border: none;
  font-size: 11.5pt;
  border-radius: 8px;
  padding: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2); /* Skugga */
  margin-top: 15px;
}
button:hover{
  filter: brightness(95%);
  cursor: pointer;
  box-shadow: 4px 8px 12px rgba(0, 0, 0, 0.3); /* Starkare skugga vid hover */
}

.selected-button{
  filter: brightness(95%);
}

.dark-button{
  filter: brightness(100%);
  background-color: #151a24;
  color: #ffffff;
}

.dark-button:hover{
  filter: brightness(120%);
}

form {
  position: relative;
}

.non-decoration{
  text-decoration: none;
}

.italic{
  font-style: italic;
}

.image-fill{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Colors */
.white{
  color: white;
}
.dark-blue{
  color: #131821;
}
.dark-background{
  background-color: #131821; /* Din blåa grundfärg */
}
.graybeige-background{
  background-color: #d3cfc7;
}


/* HERO CSS */
#hero-container-home{
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color:  #212938;
    background: linear-gradient(
        rgba(0, 0, 0, 0.0),  /* Mörk toning överst */
        rgba(0, 0, 0, 0.45)   /* Transparent toning nederst */
    ), #212938; /* Din blåa grundfärg */
    display: flex;
    z-index: 1; /* Placera hero längst bak så main-content kan överlappa */
    overflow: hidden;
  }
#left-hero{
    width: 70%;
    display: flex;
    justify-content: center;
    align-items: left;
    flex-direction: column;
}
#right-hero{
    width: 30%;
}
#hero-image{
    height: 100%;
    filter: brightness(80%);
}
#hero-h1-home{
    font-size: 48pt;
}
#hero-h2-home{
  filter: brightness(65%);
  opacity: 70%;
  margin-top: -15px;
}
#hero-p-home{
  filter: brightness(95%);
margin-top: 8px;
}
#hero-button-home{
  margin-top: 20px;
}
.hero-text-section{
  margin-left: 8vw;
  margin-right: 16vw;
}
#dl-logo-corner{
  width: 180px;
  position: absolute;
  right: 0px;
  top: 0px;
}
#white-logo-corner{
  position: absolute;
  right: 20px;
  top: 20px;
  height: 50px;
  display: none;
}
/* color: #212938; */


/* GENERAL CONTENT CSS (BELOW HERO) */
.main-content {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #d3cfc7;
    z-index: 2; /* Placera main content ovanpå hero när man scrollar */
  }
  .section-container{
    position: relative;
    display: flex;
    padding: 8vw;
    padding-top: 100px;
    padding-bottom: 110px;
  }
  .first-section-text{
    padding-left: 45px;
  }
  .column-flex{
    display: flex;
    flex-direction: column;
  }
  .row-flex{
    display: flex;
    flex-direction: row;
  }
  .new-intro{
    padding-top: 40px;
  }
  .top-line{
    height: 25px;
    width: 100%;
  }
  .text-box{
    width: 45vw;
  }


  /*PROJECTS CSS*/
  .projects-container{
    display: flex;
    flex-wrap: wrap; /* Gör att rader bryts när det behövs */
  }
  .project-box {
    position: relative; /* Gör att innehållet inuti kan positioneras relativt denna container */
    height: 300px;
    width: 300px;
    background-color: #ffffff;
    margin-top: 30px;
    margin-right: 30px;
    overflow: hidden; /* Döljer innehåll som går utanför rutan */
    cursor: pointer; /* Ger användaren en visuell cue att det är klickbart */
    border-radius: 5px;
    box-shadow: #00000077 3px 3px 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.project-box-image {
  transition: transform 0.3s ease; /* Gör en fin zoom-effekt när man hovrar */
}
.project-box:hover .project-box-image {
  transform: scale(1.1); /* Zoomar in bilden när man hovrar */
  filter: brightness(20%);
}
.project-box-header,
.project-box-description,
.project-box-year {
    position: absolute;
    left: 20px;
    margin-right: 20px;
    color: white; /* Gör texten vit för att synas bättre */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Lägg till skugga för att lyfta texten */
    opacity: 0; /* Dölj texten initialt */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Lägg till en smidig transition */
}
.project-box-header {
    top: 175px;
    transform: translateY(20px); /* Skjut texten nedåt initialt */
}
.project-box-description {
    top: 200px;
    transform: translateY(20px); /* Skjut texten nedåt initialt */
}
.project-box-year {
 top: 15px;
 transform: translateY(20px); /* Skjut texten nedåt initialt */
}
.project-box:hover .project-box-header,
.project-box:hover .project-box-description,
.project-box:hover .project-box-year {
    opacity: 1; /* Gör texten synlig vid hover */
    transform: translateY(0); /* Flytta tillbaka texten */
}


  /*EDUCATION CSS*/
  #ju-logo{
    filter: brightness(1000%);
    height: 50px;
    margin-right: 10px;
    margin-top: 7px;
  }


  /*SKILLS CSS*/
  .skills-container{
    display: flex;
    flex-wrap: wrap; /* Gör att rader bryts när det behövs */
  }
  .image-fill-skills{
    width: 100%;
    height: 100%;
  }
  .skills-header{
    margin-top: 20px;
    margin-bottom: 6px;
  }
  .skills-header-tools{
    margin-top: 10px;
    margin-bottom: 6px;
  }
  .image-add{
    width: 30%;
    height: 30%;
  }
  .skills-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    margin-bottom: 10px;
  }
  .skills-image-box{
    width: 50px;
    height: 50px;
    overflow: visible;
  }
  .skills-add-box{
    width: 50px;
    height: 50px;
    background-color: antiquewhite;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .skills-name {
    font-size: 9pt;
  }


  /* ABOUT ME CSS */
  #image-daniel-section{
    height: 310px;
    width: 225px;
    border-radius: 2px;
    box-shadow: #000000af 5px 5px 10px;
  }
  #guestbook{
    position: absolute;
    height: 80px;
    right: 7vw;
    bottom: 40px;
  }
  #guestbook:hover{
    cursor: pointer;
  }


/* Social icons*/
.social-icons {
  gap: 10px; /* Utrymme mellan ikonerna */
  margin-top: 10px;
  margin-left: 5px;
}
.social-icon {
  color: white; /* Anpassa färgen till din design */
  font-size: 27px; /* Justera storleken på ikonerna */
  text-decoration: none; /* Ta bort understrykning */
  filter: brightness(65%);
}
.social-icon:hover {
  filter: brightness(100%);
}


 /* FOOTER CSS */
  .footer-container{
    position: relative;
    height: auto;
    width: 100%;
    background-color: #131821;
    z-index: 50;
  }
  .footer-content{
    padding-left: 8vw;
    padding-right: 8vw;
    padding-top: 75px;
    padding-bottom: 25px;
    width: auto;
    display: flex;
  }
  .footer-logo-box{
    height: 80px;
    margin-left: auto; /* Flytta elementet längst till höger */
    margin-top: auto;
    margin-right: 10px;
  }
  .footer-section{
    padding-right: 8vw;
  }
  .footer-section a{
    text-decoration: none;
    color: white;
  }
  .footer-line{
    height: 2px;
    width: 84vw;
    background-color: white;
    place-self: center;
  }
  .footer-bottom{
    padding: 8vw;
    padding-top: 10px;
    padding-bottom: 50px;
    display: flex;
    justify-content: end;
  }


  




/* Project Specific*/
  .project-year-specific{
    margin-top: 5px;
    font-weight: 600;
  }
  .projet-image-specific{
    width: 75vw;
    box-shadow: #00000065 4px 4px 8px;
    margin-bottom: 10px;
  }
  .project-container-specific{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10vh;
    padding-bottom: 10vh;
  }
  .project-specific-intro{
    color: #131821;
    padding-bottom: 6vh;
    width: 40vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  #arrow-circle{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    width: 60px;
    border-radius: 100%;
    position: fixed;
    margin-left: 3vw;
    margin-top: 2vw;
    text-decoration: none;
    outline: 3px solid #131821;
  }
  #arrow-circle h1{
    font-size: 30pt;
  }
  #arrow-circle:hover {
    cursor: pointer;
    filter: brightness(150%);
    box-shadow: #00000093 3px 3px 5px;
  }





  /*Education-page CSS */
  .education-container{
    width: auto;
    min-height: 100vh;
    background-color: #d3cfc7;
    padding: 100px 10vw 100px 10vw;
  }

  .education-intro h2{
    filter: brightness(120%);
    opacity: 0.6;
    font-size: 22pt;
    margin-top: -5px;
    font-style: italic;
  }

  .education-intro {
    margin-bottom: 20px;
  }
  .education-course-box{
    margin-bottom: 12px;
  }
  .education-course-below {
    margin-top: 5px;
  }
  .education-content-header{
    margin-top: 25px;
    margin-bottom: 8px;
  }
  


/* HAMBURGER */
.hamburger-menu {
  position: fixed;
  top: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 22px;
  cursor: pointer;
  z-index: 15; /* Gör att menyn alltid är överst */
}
.bar {
  width: 100%;
  height: 2px;
  background-color: white;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu {
  display: none; /* Menyn är gömd från början */
  position: fixed; /* Gör att menyn förblir på samma plats även vid scrollning */
  top: 50px; /* Justera så att menyn hamnar direkt under hamburgermenyn */
  left: 30px;
  background-color: transparent; /* Transparent bakgrund */
  z-index: 14;
  transition: opacity 0.3s ease;
}
.menu.open {
  display: block;
  opacity: 1; /* Gör menyn synlig när den är öppen */
}
.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu ul li {
  margin: 5px 0;
}
.menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 12pt;
  transition: color 0.3s ease;
}
.menu ul li a:hover {
  color: #AFAFAF;
}
.hamburger-menu.open .bar:nth-child(1) {
  transform: translateY(12px); /* Flytta första strecket ner */
}
.hamburger-menu.open .bar:nth-child(2) {
  opacity: 0; /* Döljer det mellersta strecket */
}
.hamburger-menu.open .bar:nth-child(3) {
  transform: translateY(-12px); /* Flytta sista strecket upp */
}



/* GUEST BOOK */
.guest-container{
  min-height: 100vh;
  height: auto;
  width: auto;
  background-color: #d3cfc7;
}
.guest-top-section{
  height: 200px;
  background-color: #151a24;
  color: white;
  display: flex;
  align-items: center;
  padding-left: 10vw;
}
.guest-top-section h1{
  font-size: 32pt;
}
#arrow-circle-white{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 60px;
  border-radius: 100%;
  position: fixed;
  margin-left: 3vw;
  margin-top: 2vw;
  text-decoration: none;
  outline: 3px solid #ffffff;
}
.guest-form{
  display: flex;
  flex-direction: column;
  margin-left: 10vw;
  margin-right: 10vw;
  margin-top: 50px;
}
.guest-form input{
  width: 300px;
  margin-right: 20px;
  padding: 4px;
  border-radius: 4px;
}
.guest-form button{
  filter: brightness(100%);
  background-color: #151a24;
  color: white;
}
.guest-book{
  background-color: #131821;
  margin-top: 50px;
  padding: 25px;
  border-radius: 10px;
  border: 3px solid #000000;
  box-shadow: 3px 6px 8px #00000075;
  color: #ffffff;
}
.guest-book li{
  margin-bottom: 10px;
}
#guest-input{
  width: 80vw;
  max-width: 300px;
}
.games-header{
  margin-top: 40px;
}
.game-container{
  display: flex;
  margin-top: 50px;
}
.game-right{
  display: flex;
  flex-direction: column;
}
.game-image{
  height: 150px;
  width: 150px;
  margin-top: 25px;
  margin-right: 25px;
  object-fit: cover;
}

/* RESPONSIVENESS */

@media (max-width: 1020px) {
  h1{
    font-size: 25pt;
  }
  h2{
      font-size: 17pt;
  }
  h3{
    font-size: 14pt;
  }
  p{
    font-size: 12.5pt;
  }
  .smaller-p{
    font-size: 10.5pt;
  }
  .small-p{
    font-size: 9.5pt;
  }
  #hero-h1-home{
    font-size: 40pt;
  }
  
}

@media (max-width: 900px) {
  h1{
    font-size: 22pt;
  }
  h2{
      font-size: 15pt;
  }
  h3{
    font-size: 13.5pt;
  }
  p{
    font-size: 12pt;
  }
  
  .smaller-p{
    font-size: 10pt;
  }
  
  .small-p{
    font-size: 9pt;
  }
  .project-box{
    height: 200px;
  width: 200px;
  margin-top: 20px;
  margin-right: 20px;
  overflow: hidden;
  }

  .project-box-header {
    top: 60px;
    margin: 0;
}
.project-box-description {
  top: 85px;
}
.project-box-year {
 top: 15px;
}

  .first-section-text{
    padding-left: 0;
  }
  .text-box{
    width: 80vw;
  }
  .section-container{
    padding: 10vw;
    padding-top: 70px;
    padding-bottom: 80px;
  }
  #about-me-scroll{
    flex-direction: column;
  }
  #image-daniel-section{
    margin-bottom: 20px;
  }
  #guestbook{
    height: 70px;
  }

  #hero-h1-home{
    font-size: 36pt;
  }


  #hero-container-home{
    position: relative;
  }
  #left-hero{
    width: 100%;
  }
  #right-hero{
      display: none;
  }
  #hero-image{
    object-fit: cover;
      width: 100%;
      height: 100%;
      filter: brightness(80%);
  
  }

  #dl-logo-corner{
    display: none;
  }
  #white-logo-corner{
    display: block;
  }



    
}

@media (max-width: 850px) {
  .project-box{
    height: 180px;
  width: 180px;
  }

  .project-box-header {
    top: 50px;
    font-size: 11pt;
}
.project-box-description {
  font-size: 8pt;
  top: 70px;
}
.project-box-year {
 top: 15px;
}
}

@media (max-width: 750px) {

  .footer-content{
    display: flex;
    flex-wrap: wrap;
  }

  .footer-section{
    margin-bottom: 25px;
    margin-right: 50px;
  }

  .footer-content{
    padding-top: 60px;
  }

  .projet-image-specific{
    width: 98%;
    margin-bottom: 5px;
  }

  .project-specific-intro{
    width: 80vw;
  }

  #arrow-circle{
    height: 40px;
    width: 40px;
    margin-top: 20px;
    margin-left: 25px;
  }

  #arrow-circle h1{
    font-size: 22pt;
  }

  #arrow-circle-white{
    height: 40px;
    width: 40px;
    margin-top: 20px;
    margin-left: 25px;
  }

  #arrow-circle-white h1{
    font-size: 22pt;
  }

  .guest-top-section h1{
    font-size: 28pt;
    padding-top: 15px;
  }

  .project-box{
    height: 36vw;
  width: 36vw;
  }
  .project-box:nth-child(odd){
    margin-left: 0;
    margin-right: 0;
  }
  .project-box:nth-child(even){
    margin-left: 4vw;
    margin-right: 0;
  }

  .project-box-header {
    top: 50px;
    margin: 0;
    font-size: 10pt;
}
.project-box-description {
  top: 75px;
  font-size: 8pt;
}
.project-box-year {
 top: 15px;
}
}

@media (max-width: 650px) {

  #guestbook{
    height: 60px;
  }
}


@media (max-width: 550px) {

  .footer-content{
    display: flex;
    flex-direction: column;
  }

  .footer-logo-box{
    position: absolute;
    right: 8vw;
    top: 55px;
    height: 60px;
  }
  .footer-content{
    padding-top: 50px;
  }

  .guest-top-section h1{
    font-size: 26pt;
    padding-top: 22px;
  }
}

@media (max-width: 450px) {
  #guestbook{
    height: 50px;
  }
.project-box-description {
  display: none;
}
.project-box-header{
  font-size: 8pt;
}
}