/* Typography */

/* Typography */
body {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
  }
  
 /* Skills classes */



/* Dark mode base styles */
body.dark-mode {
  background-color: #08181b;
  color: #f0f0f0;
}

body.dark-mode a {
  color: #fcfcfc;
}

body.dark-mode #menu a {
  color: #ffffff;
}

body.dark-mode #menu {
  background-color: #000000;
}


body.dark-mode .Namn {
  color: #ffffff !important;
}
body.dark-mode header,
body.dark-mode footer {
  background-color: #08181b;
}




/* Toggle Switch Styles */




.toggle-switch {
  display:block;
  margin:auto;
  
}

.toggle-switch-mobile{
  display:none;
}

.toggle-switch label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.toggle-switch input[type="checkbox"] {
  display: none;
}

.toggle-switch .slider {
  width: 50px;
  height: 24px;
  background-color: #ccc;
  border-radius: 34px;
  position: relative;
  transition: 0.4s;
}

.toggle-switch .slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.toggle-switch input:checked + .slider {
  background-color: #d89505;
}

.toggle-switch input:checked + .slider::before {
  transform: translateX(26px);
}
  
  /* Header styles */
  @keyframes dropHeader {
    0% {
      transform: translateY(-100%);
    }
    100% {
      transform: translateY(0);
    }
  }
  
  header {
    position:fixed;
    top: 0;
    left: 0;
    right: 0;
    text-align: left;
    z-index: 50;
    animation-name: dropHeader;
    animation-iteration-count: 1;
    animation-timing-function: ease;
    animation-duration: 0.55s;
  }
  
  header ul {
    display: flex;
    align-items: center;  
    background: hsl(0, 0%, 95%);
    text-align: left;
    margin: 0;
    width: 100%;
    padding-inline-start: 15px;
    list-style-type: none;

  }
  
  header li {
    padding:15px;
    
  }

  .toggle-switch-li{
    margin-left:auto;
  }

  
  
  header a {
    display: block;
    color: #6D6262;
    padding: 1px;
    font-size: 17px; 
    text-decoration:none;
  }
  
  header a:hover {
    color: #ffffff;
    text-decoration:none;
    background: #FFA800;
    border-radius: 1px;
  }
  

  /* Header Mobile Styles */
  /* ... (Mobile menu styles) ... */

  
  /* Top button styles */
  .top {
    text-align: center;
  }
  
  .top span {
    cursor: pointer;
    display: block;
    margin: 15px auto 0 auto;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid #b9bfc4;
    text-align: center;
  }
  
  .top i {
    color: #74808a;
  }
  
  /* Social media links */
  .social {
    text-align: right;
  }
  
  .social ul {
    margin: 5px 0 0 0;
    padding: 0;
  }
  
  .social li {
    display: inline-block;
    font-size: 1.25em;
    list-style: none;
  }
  
  .social a {
    display: block;
    color: #74808a;
    padding: 10px;
  }
  
  .social a:hover {
    color: #3498db;
  }



#mobile-menu {
  display:none;
}

  
  /* Headings */
  .heading {
    position: relative;
    display: inline-block;
    font-size: 2em;
    font-weight: 300;
    margin: 0 0 30px 0;
    
  }

  .heading h2 {
    color:#029aff;
    
  }
  

  .fullbody{

    background-color: #000000;
    overflow:hidden:
  }



  /* Background */
  .background-alt {
    background: #000000;
  }

  
  #lead-content {
    display: flex; 
    z-index: 10;
    align-items: center; 
    justify-content: center;
    padding: 1em;
    height:auto;
    margin-bottom: 30px;
    margin-top:30px;

}


/* Section Split */

.sectionsplit {
  height: 4px;
  background-color:rgba(61, 61, 61, 0.315);
  width:100%;
}


.lead-text {
    text-align: left; /* Align text to the left */
    max-width: 600px;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    margin-top:5%
    margin-bottom: 5%;
}


#lead-content h1 {
    color: #000000;
    font-weight: 900;
    font-size: 3em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 0.9em;
    
}

#lead-content h2 {
    color: #a0cfee;
    font-weight: 700;
    font-size: 2em;
    color: orange;
    margin-top:10px;
}

#lead-content h3 {
  margin-top: -30px;
  font-weight: 400;
  font-size: 1.25em;
  color: rgb(196, 126, 22);
  
  
}

#lead-content p {
  font-size: 1.0em;
  
}

  
*/
  
/* Media Queries for Very Small Screens (max-width: 450px) */
@media only screen and (max-width: 450px) {


  .lead-text {
    max-width: 90%; 
    min-width: auto; 
    padding: 0 10px; 
    text-align: center; 
  }

  #lead-content h1, #lead-content h2, #lead-content h3 {
    font-size: 1.2em; 
    line-height: 1.4em; 
  }

  #lead-content a {
    font-size: 0.4em;
    padding: 5px 10px; 
  }

  .a {
    font-size: 0.8em;
    padding: 5px 10px; 
  }


}



  

.image-gallery {
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 0px;
    padding-right:0px;
    width:100%;
    list-style-type: none;
    transform-origin: bottom center;


}

.image-gallery > li {
    cursor: pointer;
    position: relative;
}

.image-gallery > ul {
  cursor: pointer;
  position: relative;
  list-style-type: none;
}

.image-gallery li img {
    object-fit: contain;
    max-width:100%;     
    max-height: 720px;
    vertical-align: middle;
    border-radius: 5px;
    transform-origin: bottom center;
}


/* Dark mode styles */
body.dark-mode .image-gallery {
  background-color: #08181b; 
  gap: 10px; 
}

body.dark-mode .image-gallery li img {
  border: 2px solid #08181b; 
  border-radius: 5px; 
}

body.dark-mode .image-gallery {
  background-color: #08181b; 
  gap: 10px; 
}

.menu-item {
  margin-right: 75px;
}

.menu-item:hover {
  background-color: black; 
}


.menu-item:not(:last-child) {
  border-right: 2px solid #000; 
  margin-right: 20px; 
  padding-right: 20px;
}

.menu-content {
  display: flex;
  align-items: center;
}

.menu-content:hover {
  display: flex;
  align-items: center;
  color:rgb(255, 255, 255);
}

.icon {
  margin-right: 1px;
}



.grid, .grid-item {
  padding: 0;
  margin: 0;
}


.grid {
  width: 80%; 


}

.grid-item { 
  width: 200px;
  box-sizing: border-box; 
  
} 

.grid-item--width2 { width: 400px; }


.grid-item img, .grid-item--width2 img {
    max-width: 100%;
    display: block;
    height: auto;
}



  /* Menu Styles */
  header {
    top: 0;
    left: 0;
    right: 0;
    text-align: left;
    z-index: 50;
    animation: dropHeader 0.55s ease 1;
  }
  
  @keyframes dropHeader {
    0% {
      transform: translateY(-100%);
    }
    100% {
      transform: translateY(0);
    }
  }
  
  #menu {
    display: flex;
    align-items: center;
    background: hsl(0, 0%, 95%);
    text-align: left;
    margin: 0;
    width: 100%;
    padding-inline-start: 15px;
    list-style-type: none;
  }
  
  #menu li {
    padding: 15px;
  }
  
  .toggle-switch-li {
    margin-left: auto;
  }
  
  #menu a {
    display: block;
    color: #6D6262;
    padding: 1px;
    font-size: 17px;
    text-decoration: none;
  }
  
  #menu a:hover {
    color: #ffffff;
    background: #FFA800;
    border-radius: 1px;
  }
  
  /* Dark mode styles for menu */
  body.dark-mode #menu a {
    color: #ffffff;
  }
  
  body.dark-mode #menu {
    background-color: #000000;
  }
  
  /* Dark Mode */
  body.dark-mode {
    background-color: #08181b;
    color: #f0f0f0;
  }
  
  body.dark-mode a {
    color: #fcfcfc;
  }
  
  body.dark-mode .Namn {
    color: #ffffff !important;
  }
  
  body.dark-mode header,
  body.dark-mode footer {
    background-color: #08181b;
  }
  
  body.dark-mode #skills h2,
  body.dark-mode #graphicdesign h2,
  body.dark-mode #photography h2 {
    color: #fcfcfc;
  }
  
  /* Toggle Switch Styles */
  .toggle-switch {
    display: block;
    margin: auto;
  }
  
  .toggle-switch-mobile {
    display: none;
  }
  
  .toggle-switch label {
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  
  .toggle-switch input[type="checkbox"] {
    display: none;
  }
  
  .toggle-switch .slider {
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 34px;
    position: relative;
    transition: 0.4s;
  }
  
  .toggle-switch .slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
  }
  
  .toggle-switch input:checked + .slider {
    background-color: #d89505;
  }
  
  .toggle-switch input:checked + .slider::before {
    transform: translateX(26px);
  }
  
  /* Lead Section Layout */
  #lead-content {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 30px;
    padding: 40px 20px;


  }
  
  .lead-text {
    flex: 1 1 50%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .lead-gallery {
    flex: 1 1 45%;
    max-width: 50vw;
    flex-direction: row;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;

  }
  
  /* Image Grid */
  .image-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;

  }
  
  .image-gallery li {
    width: 100%;
  }
  
  .image-gallery img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    border: 2px solid transparent;
    object-fit: cover;


  }
  
  /* Dark mode for gallery */
  body.dark-mode .image-gallery {
    background-color: #08181b;
  }
  
  body.dark-mode .image-gallery img {
    border-color: #1b2b2d;
  }
  
  /* Responsive */
  @media (max-width: 880px) {
    #lead-content {
      flex-direction: column;
    }
  
    .lead-text,
    .lead-gallery {
      flex: 1 1 100%;
      max-width: 100%;
    }

    .image-gallery li img {
        object-fit: contain;
        max-width:100%;     
        max-height: 1200px;
  }


  .lead-text {
    max-width: 90%; 
    min-width: auto; 
    padding: 0 10px; 
    text-align: left; 
  }
  
  }

.project-split{
    width:100%;
    height:3px;
    background-color: #00000018 ;
  }
  
  body.dark-mode .project-split{

    width:100%;
    height:3px;
    background-color: #ffffff;
  }rgb(255, 255, 255)
  