body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', sans-serif;
  color: white;
  height: 100vh;
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out;
  overflow: hidden;
}

.container {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  max-width: 280px;
  text-align: left;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

#status {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

#location {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: #eee;
}

#temp {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

#link {
  font-size: 0.7rem;
  opacity: 0.7;
}

#link a {
  color: #ccc;
  text-decoration: none;
}

#link a:hover {
  text-decoration: underline;
}

#rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  display: none; /* vises kun ved regn */
}

.drop {
  position: absolute;
  bottom: 100%;
  width: 2px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  animation: fall linear infinite;
}

@keyframes fall {
  to {
    transform: translateY(120vh);
  }
}

#lightning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}


/*Manuelt søk*/

.manual-search {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  display: none;
}

.manual-search input {
  padding: 0.4rem;
  border-radius: 0.4rem;
  border: none;
  width: 200px;
}

.manual-search button {
  padding: 0.4rem 0.7rem;
  border: none;
  border-radius: 0.4rem;
  background-color: #444;
  color: white;
  cursor: pointer;
}
 /* // Manuelt søk */



@media (max-width: 600px) {
  .container {
    bottom: 1rem;
    right: 1rem;
    max-width: 90%;
  }

  h1 {
    font-size: 1.2rem;
  }

  #status {
    font-size: 1rem;
  }

  #temp {
    font-size: 0.9rem;
  }
}
