   /*import fonts*/
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=MedievalSharp&family=Roboto+Slab:wght@100..900&display=swap');
/* css for darkmode switch */
body {
    font-family: 'JetBrains Mono';
    font-size: calc(12px + 1.5vw);
    color: black;
    background: white;
    transition: background .5s, .5s;
    min-height: 100vh;
}

body.dark {
   color: white;
   background: #032326; 
   transition: background .5s, color .5s;
}

/* css for dark mode button/text */
.switch {
  width: 2.344vw;
  height: 2.361vh;

}

.switch input {
  position: absolute;
  opacity: 0;
  width: 2.344vw;
  height: 2.361vh;
}

.slider {
  position: absolute;
  width: 2.344vw;
  height: 2.361vh;
  cursor: pointer;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  top: 0.208vh;
  left: 0.156vw;
  height: 1.016vw;
  width: 1.016vw;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;

}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(1.016vw);
  -ms-transform: translateX(1.016vw);
  transform: translateX(1.016vw);
}


.slider.round {
  border-radius: 2.361vw;
}

.slider.round:before {
  border-radius: 50%;
}

/* text css */
#textcontainer1 {
display: flex;
  width: 100%;        
  height: 50vh;
  flex-direction: column;
  padding-top: 4rem;
}

#paragraph1 {
  font-family: 'Roboto Slab';
  font-size: large;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  order: 1;
}

#paragraph2 {
  font-family: 'Roboto Slab';
  font-size: large;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  order: 4;
}

  #paragraph3 {
    font-family: 'Roboto Slab';
    font-size: large;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    order: 6;
  }

    #paragraph4 {
    font-family: 'Roboto Slab';
    font-size: large;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    order: 8;
  }

    #paragraph5 {
    font-family: 'Roboto Slab';
    font-size: large;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    order: 10;
  }

   #paragraph6 {
    font-family: 'Roboto Slab';
    font-size: large;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    order: 13;
   }
   


/*topbar css*/
#topbar {
  display: flex;
  padding: clamp(8px, 2vw, 20px) clamp(12px, 3vw, 32px);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  background-color: rgb(235, 225, 225);
  transition: background-color .5s, color .5s;
  position: sticky;   
  top: 0;
  z-index: 1000;      
    min-height: clamp(50px, 8vh, 80px);
}

body.dark #topbar {
   background-color: #062c2f;
}

#iceland {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  white-space: nowrap;
  margin: 0;
}

#iceland h1 {
  margin: 0;          
  font-size: clamp(1.2rem, 3vw, 2.5rem);
}


#darkmodebutton {
  display: flex;
  flex-direction: row;   
  align-items: center;
  gap: 8px;
}

#darkmodebutton p {
  margin: 0;          
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  white-space: nowrap;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 1vw, 6px);
  background: none;
  border: none;
  cursor: pointer;
  padding: clamp(6px, 1.5vw, 10px);
  position: relative;
  z-index: 1005;      
  flex-shrink: 0;     
}

.hamburger span {
  display: block;
  width: clamp(20px, 3vw, 30px);   
  height: clamp(2px, 0.4vw, 4px);
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(calc(clamp(4px, 1vw, 6px) + clamp(2px, 0.4vw, 4px))) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(calc(-1 * (clamp(4px, 1vw, 6px) + clamp(2px, 0.4vw, 4px)))) rotate(-45deg); }

.nav-menu {
  position: fixed;
  top: 0;
  left: -350px;        
  width: 350px;
  height: 100vh;       
  background: #0d3b38; 
  list-style: none;
  padding: 80px 0 0 0; 
  padding-top: 90px;
  margin: 0;
  background: #081f1d;
  transition: left 0.3s ease;
  z-index: 998;
}

.nav-menu.open {
  left: 0;             
}

.nav-menu li a {
  display: block;
  padding: 14px 24px;
  text-decoration: none;
  color: #fff;
}

.nav-menu li a:hover {
  background: rgba(255,255,255,0.1);
}

.overlay {
  display: block;        
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;            
  pointer-events: none;  
  transition: opacity 0.3s ease;
}

.overlay.open {
  opacity: 1;
  pointer-events: all;   
}

body.dark .nav-menu {
  background: #081f1d;
}

body:not(.dark) .nav-menu {
  background: #d1c0c0; /
}

body:not(.dark) .nav-menu li a {
  color: #000;
}

body:not(.dark) .nav-menu li a:hover {
  background: rgba(0, 0, 0, 0.1);
}

body.dark .hamburger span {
  background: #ffffff;
}

body:not(.dark) .hamburger span {
  background: #000000;
}

body:not(.dark) .overlay {
  background: rgba(0, 0, 0, 0.3);
}

#contactgif {
 position:absolute;
 top: 20vh;
 right: 37.2%;
}

.image1 {
  order: 2;
  max-width: 80%;
  height: auto;
  justify-content: inherit;

}

.image2 {
  order: 11;
  max-width: 80%;
  height: auto;
  justify-content: inherit;

}

#header1 {
  order: 5;
  text-align: center;
}

#header2 {
  order: 7;
  text-align: center;
}
#header3 {
  order: 9;
  text-align: center;
}

#header4 {
  order: 12;
  text-align: center;
}