/* Only what the floating effect needs — no design styling yet. */
html, body {
  margin: 0;
  height: 100%;
  background: #fff;
  overflow: hidden;
}

#sky {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* matches the visible area on phones, ignoring the address bar */
}

.cloud {
  position: absolute;
  left: 0;
  margin: 0;
  animation-name: drift;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  -webkit-tap-highlight-color: transparent; /* no grey flash when tapped on phones */
}

.cloud img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* Photos get a slightly stronger shadow so it shows against their busy edges */
.cloud.photo img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.cloud figcaption {
  margin-top: 2px;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 12px;
  text-decoration: underline;
  color: #4040FF; /* slightly lighter take on classic hyperlink blue */
}

/* Corner text (top left): title with the signature right under it */
#corner {
  position: fixed;
  top: 4px;
  left: 5px;
  z-index: 10; /* stays above the floating images */
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  color: #4040FF;
  /* White backdrop that feathers out, so images pass underneath it */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 18px 10px #fff;
}

#title,
#signature {
  margin: 0;
  font-size: inherit;
  font-weight: normal;
}

@keyframes drift {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100vw); }
}
