@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');



:root {
  --c1: #1f4571; /* tło / warstwa dolna */
  --c2: #3a72b5; /* warstwa środkowa */
  --c3: #e0592b; /* akcent / warstwa górna */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Lexend Deca', system-ui, sans-serif;
  background: var(--c-bg);
  color: #fff;
  transition: all 0.3s ease;
  overflow: hidden;
}

body { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

.app {
  position: relative;
  height: 100vh;
  height: 100dvh;
}

.weather {
  position: absolute;
  width: calc(100% - 32px);
  top:50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;

}

.weather__city {
  width: 100%;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 3%;
}

.weather__temp {
  width: 100%;
  text-align: right;
  font-size: 128px;
  letter-spacing: 5%;
  font-weight: 700;
  line-height: 1;
}

.weather__temp sup {
  display: inline-block;
  font-size: 0.38em;
  vertical-align: super;
  position: relative;
  top: -0.3em;
  line-height: 1;
  letter-spacing: 0%;
}

/* --- woda --- */
.waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 35vh;
  z-index: 1;
}

.sky {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 35vh;
  z-index: 1;
   background-image: url('img/clouds0.svg');
  z-index: 8;
  background-blend-mode: soft-light;
   background-color: var(--c-bg);

}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;         
  height: 100%;
  background-size: 100% 100%;
  background-position: left top;
}

.wave-1 {
  background-image: url('img/wavesY.svg');
  z-index: 10;
  

}
.wave-2 {
  background-image: none;
  background-color: var(--c-accent);
  -webkit-mask-image: url('img/wavesX.svg');
  mask-image: url('img/wavesX.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  z-index: 9;
}
.wave-3 {
  background-image: url('img/waves.svg');
  z-index: 8;
  background-blend-mode: soft-light;
   background-color: var(--c-bg);
  
}



/* --- deszcz --- */
.rain {
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  overflow: hidden;
}

.rain .drop {
  position: absolute;
  top: 0;
  width: 2px;
  height: 40px;
  border-radius: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.55));
}
