body {
    margin: 0;
    padding: 0;
     background: linear-gradient(92deg, #e7e7e7, #dde1e4);
    font-family: poppins;
    width: 100vw;
    margin-top: 80px;
   
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Seksjoner */
.section {
  position: relative;
  overflow: hidden;
  border-radius: 300px;
  height: 100vh;
  max-height: 500px;
  width: calc(100vw - 100px);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -1px 50px 0;
  padding: 0;
}

.section:first-child {
  margin-top: 100px;
}

/* Border på venstre halvdel */
/* Venstre side border på partall */
.section:nth-child(odd)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  border-top: 1px solid rgb(43, 43, 43);
  border-left: 2px solid rgb(43, 43, 43);
  border-bottom: 1px solid rgb(43, 43, 43);
  border-top-left-radius: 300px;
  border-bottom-left-radius: 300px;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 100;
}

/* Høyre side border på oddetall */
.section:nth-child(even)::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  border-top: 1px solid rgb(43, 43, 43);
  border-right: 2px solid rgb(43, 43, 43);
  border-bottom: 1px solid rgb(43, 43, 43);
  border-top-right-radius: 300px;
  border-bottom-right-radius: 300px;
  pointer-events: none;
  box-sizing: border-box;
  z-index: 100;
}



.large-background {
    font-family: 'Arial', sans-serif;
    background-image: url('https://github.com/Nordmann1997/Portefolio-glass/blob/main/glass2.jpg?raw=true');
    background-repeat: repeat-y;
    background-size: 200% 100%; /* dekker bredden, høyden følger bildet */
    background-position: top center;
    opacity: 1; /* NB: dette skjuler hele elementet hvis ikke endret */
    min-height: 610vh;
    color: white;
    overflow-x: hidden;
    filter: blur(1.1);
}





.oval {
    width: 100%;
    height: auto !important; /* Adjust height based on image */
    display: flex; /* Makes sure it wraps around the image */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all 0.5s ease;
    z-index: 10;
    
}

/* For odd sections, place the oval on the left side */
.section:nth-child(odd) .oval {
    clip-path: polygon(0% 0%, 50% 0%, 50% 100%, 0% 100%);
}

/* For even sections, place the oval on the right side */
.section:nth-child(even) .oval {
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
}

/* Enlarging effect on hover */
.oval:hover {
    transform: scale(1.05);
    z-index: 15;
}

.oval.toggled {
    transform: scale(1.05);
    z-index: 15;
}

.section:nth-child(odd) .oval.toggled {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.section:nth-child(even) .oval.toggled {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.section:nth-child(odd) .oval:not(.toggled) {
    clip-path: polygon(0% 0%, 50% 0%, 50% 100%, 0% 100%);
}

.section:nth-child(even) .oval:not(.toggled) {
    clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 50% 100%);
}

.oval img {
    width: 100%;
    height: auto; /* Ensure image maintains aspect ratio */
    object-fit: cover;
    min-width: 1700px;
} 

.toggleClip.img-woddy {
    margin-top: 00px; /* Juster etter behov */
}


    

/* Text Box */
.text-box {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Vertikal sentrering */
    width: 40%; /* Begrenset bredde for teksten */
    z-index: 10;
    text-align: center;
   /* Margin til høyre */
}

/* For odd sections, place text-box on the right side */
.section:nth-child(odd) .text-box {
    left: 75%; /* Midt i høyre halvdel */
    transform: translate(-50%, -50%); /* Sentrerer horisontalt og vertikalt */
}

/* For even sections, place text-box on the left side */
.section:nth-child(even) .text-box {
    left: 25%; /* Midt i venstre halvdel */
    transform: translate(-50%, -50%); /* Sentrerer horisontalt og vertikalt */
}

.description {
    font-size: 3rem;
    color: #000;
    
    font-weight: 300;
    
    text-align: left;
}

.small-description {
    font-size: 1.3rem;
    color: #5a5a5a;
    
    font-weight: 300;  
    text-align: left;
}

/* Explore-knapp */
#exploreButton {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20vw;
    padding: 15px 0;
    font-size: 1.1em;
    background-color: white;
    color: black;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;    
    border-radius: 50px;
}

#exploreButton:hover {
    background-color: #f7b162;
    color: white;
}

.hidden {
    display: none;
}

.mode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.mode-container .mode-text {
    font-size: 1em;
    margin-bottom: 5px;
}

.button-container {
    
    gap: 30px;
  }
  
  .btn1  {
    padding: 10px 20px;
    font-size: 0.8em;
    cursor: pointer;
    border-radius: 50px;
    border: none;
    color: white;
    width: 9rem;
    
    
  }
  
  .btn2  {
    padding: 10px 20px;
    font-size: 0.8em;
    cursor: pointer;
    border-radius: 50px;
    border: none;
    color: white;
    width: 9rem;

  }
  
  .btn1:hover {
    scale: 1.1;
    transition: all 300ms ease;
  }
  
  .btn2:hover {
    scale: 1.1;
    transition: all 300ms ease;
  }
  
  .btn-color-3 {
    background-color: #f0ad4e; /* Fun-stil */
  }
  
  .button-container .btn-color-4 {
    background: none; /* Serious-stil */
    border: black 2px solid; 
    color : black;
    
  }
  
  .btn-color-4 {
    background-color: #f0ad4e; /* Fun-stil */ /* Serious-stil, definert for referanse */
  }


/* Add specific styles for img-oval-1 */


/* Responsivitet */
@media (max-width: 768px) {
    
        .section {
            height: 100vh; /* Ensure sections still take full screen height */
        }
        .toggleClip.img-woddy {
            margin-top: 0px; /* Juster etter behov */
        }

    .description {
        font-size: 2rem;
    }

    .oval img {
        
        min-width: 1000px;
        height: 300px;
    } 

    .small-description {
        font-size: 1rem;
    }

    .text-box {
        width: 40vw /* Litt bredere på mobil */
    }

    #exploreButton {
        font-size: 1.0em;
        padding: 15px 30px;
        width: 55vw;
    }
    .mode-container .btn2 {
        padding: 10px 20px;
        font-size: 0.5em;
        cursor: pointer;
        color: black;
        width: 6rem;
    }
    .mode-container .btn1 {
        padding: 10px 20px;
        font-size: 0.5em;
        cursor: pointer;
        color: black;
        width: 7rem;
    }
    .mode-container {
        
      }
    .oval:hover {
        transform: none;
        
    }
    .section {
        height: auto; /* Adjust height to content on mobile */
    }

    .oval {
        height: auto; /* Adjust height to content on mobile */
    }
}


@media (min-width: 2300px) {
     
    .section {
        
        max-height: 700px;
        
    }



}

.expand-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    color: #535252;
    font-size: 0.8rem;
    font-family: poppins, sans-serif;
    z-index: 4; /* Over glass content men under header-ui */
    text-align: center;
    pointer-events: none;
    user-select: none;
    font-weight: 800;
}
