body {
  margin: 0;
  font-family: 'Karla', sans-serif; 
  color: #1C1C1C;
  background: #fcfcfb
}

/* Hovedgrid: venstre/høyre */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* venstre og høyre halvdel */
  gap: 1rem;
  padding: 1rem 2rem;
  align-items: start;
}

/* Venstre side */
.weather-wrapper {
  padding-top: 2rem;  
}

.weather-card {
  margin: 1rem auto; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(62, 96, 111, 0.6); 
  color: #E9E3D5;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.weather-text {
  max-width: 300px;
}



.weather-uppercase {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.8;
}

.weather-temp {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;   
  font-weight: 700;
  margin: 0.5rem 0;
}

.weather-desc {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
  opacity: 0.9;
}

.weather-icon img {
  width: 250px;
  height: auto;
  opacity: 0.9;
}

/* Prognoser */
.glass-section {
  margin: 1rem auto;
  background: rgba(62, 96, 111, 0.6); 
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 500px;
}

.glass-section h2 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #181818;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.forecast-hour,
.forecast-day {
  text-align: center;
  background: rgba(192, 236, 248, 0.9);
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.forecast-hour img,
.forecast-day img {
  width: 60px;
  height: auto;
  margin-bottom: 0.5rem;
}

h2 {
  font-weight: 500;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Right side: visual-panel */
.visual-panel {
  padding-top: 1rem;  
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-height: 800px;   
  height: 100%;
  overflow: hidden; 
}


.bergen-img {
  opacity: 60%;
  width: 160%;
  margin-left: -35%;  
  height: auto;
  max-height: 100%;     
  object-fit: contain;
}


.custom-text,
.custom-figure {
  position: absolute;
  background: none;
}

/* Custom Weather-txt */
.custom-text {
  text-transform: uppercase;
  text-shadow: #333;
  left: 4%;
  top: 19%;
  width: 40%;             
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
}

/* Weather-girl */
.custom-figure {
  right: -2%;
  bottom: -2.7%;
  width: 45%;             
  display: flex;
  justify-content: center;
}

.custom-figure img {
  width: 100%;
  height: auto;
  max-height: 500px;   
}




/* -------------------------------------------------- */
/* FOOTER */
/* ------------------------------------------------- */
.site-footer {
  margin-top: 3rem;
  padding: 1rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6b6b6b;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #fcfcfb;
  letter-spacing: 0.03em;
  line-height: 1.6;

}


/* ----------------------------------------------- */
/* MEDIA QUERY*/
/* ------------------------------------------------ */
@media (max-width: 768px) {

  .main-grid {
    grid-template-columns: 1fr; 
    padding: 1rem;
  }

   .visual-panel {
    max-height: none;
    height: auto;
    overflow: visible;
  }

  /* .visual-panel {
    display: block;
    text-align: center; 
     max-height: none;
    height: auto;
    overflow: visible;
  } */

  .weather-card {
  flex-direction: column;
  text-align: center;
  gap: 1rem;
}

.weather-icon img {
  width: 150px;
}


  .bergen-img {
    width: 100% !important;      
    max-width: 320px; 
    margin:0 auto !important;
    display: block;      
  }

  
  .custom-text,
  .custom-figure {
    position: static;   
    max-width: 320px; 
    margin: 1rem auto;
    text-align: center; 
    display: block;
  }

  .custom-text {
    font-size: 1rem;    
  }

  .custom-figure img {
    max-width: 240px;     
    margin: 0 auto;
    display: block;
    height: auto;
  }
}

