/* ---------------------------------------------------------
   Grunnoppsett
   --------------------------------------------------------- */
:root{
  --gap: 1vw;
  --card-radius: 20px;
  --card-pad: 8%;
}

* { box-sizing: border-box; }

body{
  background-color: #DAF7FE;  
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* la siden kunne scrolle vertikalt */
  
}
.skyline{
  width: 100%;
  position: fixed;
  top:0vh;
  padding-top:10vh;
  overflow: hidden;
  max-height: 35vh;
  z-index: -900;
  background-color: #cdf2ff;
  
  
}
.skyline img{
  width: 100%;  
}

.tre{
  
  position: absolute;  
  padding-left:1vw;
  top: 36vh;   
  z-index: 800;
}
.tre img{
  height: 10vh;  
}


div.sign{
  background-color: #1B1E3E;
  color: white;  
  border: 0.5vw double white;
  padding: 1vw 1.5vw;  
  background-size: 20;
  background-repeat: no-repeat;
  background-position: top center;
  position: absolute;
  top: 1vw;
  right:1vw;
}

div.field{
  display: block;    
  height: 100vh;
  width: 100%;
  margin:0;
  padding:0;
  z-index: -1000;
  position: fixed;
  
  background: 
  radial-gradient(200% 20% at 50% 100%, #5c804b 0 50%, transparent 0%),
  radial-gradient(200% 60% at 100% 70%, #99af79 0 55%, transparent 0%),
  radial-gradient(120% 40% at 20% 60%, #9fc85a 0 55%, transparent 0%),
  radial-gradient(200% 20% at 50% 41%, #b7b9b6 0 50%, transparent 0%),

   linear-gradient(
    to bottom,
    #B8E9F5 28%,
    #cfe8a3 28%,
    #b7db7b 40%,    
    #9fc85a 100%
  );
  

 

}

h1{
  margin: 0;
  padding: 0;
  
  font-size: 2vh;
}
h1 .subtitle{
  font-weight: 400;
 

}

h3{  
  color: #1B1E3E;
  font-size: clamp(1.2rem, 4vh, 1.2rem);
  font-weight: strong;
  margin: 1vh 0 1vh;
}
h4{
  text-align: center;
  color: #ffffff;
  background-color: #1B1E3E;
  border: double 5px white;
  font-size: clamp(1rem, 4vw, 1rem);
  font-weight: strong;  
  padding: 1vh 0;
  margin: 1vh 0;
  border-radius: 5px; 
}

p{
  margin: 0;
  padding: 0;
  font-size: clamp(1rem, 4vw, 1rem);
  
}

/* ---------------------------------------------------------
   Grid & Unit
   --------------------------------------------------------- */

.scroller{
  width: 100vw;
  height: 100vh;
  position: absolute;
  overflow-x: scroll;

}   
.grid{  
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--gap);
  align-items: end;  
  margin: 12vh 2vw 0;
}
.tower{
  height: var(--tower-h);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* bunnjuster */
  align-items: center;
  height: 30vh;
   /* Ny fasade */
  background-image: url('../images/Kran.svg');
  background-repeat: no-repeat;
  background-size:contain;             /* dekker hele flaten, følger høyden */
  background-position: right bottom;
}

.unit{
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
 


}


.step5,
.step4,
.step3,
.step2,
.step1{
  display: flex;
  justify-content: center;
  align-items: flex-end;  
}

.step5{
  width: 60%;
}

.step4{
  width: 70%;
}

.step3{
  width: 80%;
}

.step2{
  width: 90%;
}

.step1{
  width: 100%;    
}

.building{
 
  min-height: 2px;
  width: 80%;
  display: block;

  border-top: 5px solid #113d4c;
  border-right: 2px solid #113d4c;
  border-left: 2px solid #113d4c;
  border-bottom: 2x solid #113d4c;
  /* Ny fasade */
  background-image: url('../images/fasade20.svg');
  background-color: rgb(217, 217, 217);
  background-color: #ab8f5b;
  background-repeat: repeat;
  background-size:14% 1.8vh;             /* dekker hele flaten, følger høyden */
  background-position: left bottom;

  
}



.step2 .building{
  background-size:20% 1.8vh;
}

.step3 .building{
  background-size:25% 1.8vh;    
}

/* ---------------------------------------------------------
   Kort & info
   --------------------------------------------------------- */
.cards{  
  padding: var(--card-pad);  
  margin-top: 1vh;
  height: 1vh;
}
  

.info{  
  background-color: white;
  padding:1vw;
  border-radius: 5px;
  position: relative;
  z-index:750;
  min-height: 15vh;
  
}
.materials{
  margin-bottom: 1vh;
  background-color: rgba(253, 248, 236);
  padding: 1vw;
  border-radius: 5px;
  height: 25vh;
  overflow: hidden;
    
}

.icon{
  max-width: 100%;  
  display: none;
  margin: 0 0 0px;
  padding: 0;
  transform: scale(1);
  transition: transform 0.3s ease;
}
.icon.pop {
  transform: scale(1.2);         /* litt større pop */
  
}

.icon.normal {
  transform: scale(1);           /* tilbake til vanlig */
  
}
/* ---------------------------------------------------------
   Materialer
   --------------------------------------------------------- */
.brick, .plank, .rod{
  
  text-align: center;
  margin: 2%;  
  width: 21%;
  height: auto;
  display: inline-block;
}

/* ---------------------------------------------------------
   Sky/“blob” animasjon
   --------------------------------------------------------- */
.moving-box {
  position: fixed;
  top: 40px;
  width: 20vw;
  height: 10vh;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7) 0 40%, transparent 50%),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,0.7) 0 40%, transparent 50%),
    #e0f7ff;
  border-radius: 50% 60% 40% 70% / 60% 50% 70% 40%;
  filter: blur(6px);
  animation: LeftToRight 40s linear infinite;
}

@keyframes LeftToRight {
  0%   { left: -300px; }
  60%  { left: calc(100vw - 0px); }
  100% { left: calc(100vw - 0px); }
}

@keyframes truck {
  0%   { left: -80vH; }
  60%  { left: calc(100vw - 0px); }
  100% { left: calc(100vw - 0px); }
}

@keyframes rightToLeft {
  0%   { right: -200px; }
  60%  { right: calc(100vw - 0px); }
  100% { right: calc(100vw - 0px); }
}

@keyframes moveSideToSide {
    from { left: 0; }
    to   { left: calc(100% - var(--w)); } /* stopper før høyrekanten */
  }

@keyframes autoScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-100% + 100vw)); }
}




.truck{
  position: fixed;
  top: 50vh;
  height: 50vh;
  width: 80vh;
  z-index: 8700;  
  animation: truck 10s linear 1 forwards;

}
.truck img{
 max-width: 100%;
}

.digger{
  position: fixed;
  top: 35vh;
  width: 20vh;
  height: 10vh;  
  z-index: 700;
  animation: rightToLeft 80s linear infinite;
}
.digger img{
 max-width: 100%;
}


/* ---------------------------------------------------------
   Responsivitet
   --------------------------------------------------------- */

@media (max-width: 1500px){
 x.stretch{ min-width: 1500px;}  
}


@media (max-width: 1400px){
 
  
}

@media (max-width: 992px){
    .stretch{ min-width: 1500px;} 
}

@media (max-width: 768px){
 
  
}

@media (max-width: 520px){
 
  

}
