html, body{
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  overflow:hidden;
}
canvas{
  z-index:99;
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  right:0;
  width:100%;
  height:100%;
  background: linear-gradient(#B7B0E3, #FFD3D6);  
}

@keyframes cloud-drift {
  0% {
    transform: translateX(120vw);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(-140vw);
    opacity: 0;
  }
}

.sky {
  position:absolute;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  z-index:130;
}

.clouds {
  position:relative;
  width:100%;
  height:100%;
}

.clouds > div {
  position:absolute;
  will-change: transform;
  animation: cloud-drift var(--cloud-duration, 120s) linear infinite;
  animation-delay: var(--cloud-delay, 0s);
  opacity: 0;
  z-index: 131;
}

.c1,
.c2 {
  width: 800px;
  height: 700px;
  background: transparent url("../img/clouds.png") 0 0 no-repeat;
  background-size: 100%;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.12));
}

.c1 {
  --cloud-duration: 95s;
}

.c2 {
  --cloud-duration: 145s;
  transform: scale(1.1);
}

.c1.one  { top: -260px; left: 0;     --cloud-delay: -12s; }
.c1.two  { top: -200px; left: 140px; --cloud-delay: -46s; }
.c1.three{ top: -240px; right: 160px;--cloud-delay: -78s; }
.c1.four { top: -180px; right: 20px; --cloud-delay: -110s; }

.c2.one  { top: -240px; left: -180px; --cloud-delay: -28s; }
.c2.two  { top: -210px; left: 220px;  --cloud-delay: -92s; }
.c2.three{ top: -250px; right: 240px; --cloud-delay: -154s; }
.c2.four { top: -200px; right: 280px; --cloud-delay: -216s; }

@media (max-width: 1023px) {
  .c1,
  .c2 {
    width: 620px;
    height: 540px;
  }

  .c1.one  { left: -120px; }
  .c1.two  { left: -40px; }
  .c1.three{ right: 180px; }
  .c1.four { right: 120px; }

  .c2.one  { left: -220px; }
  .c2.two  { left: -80px; }
  .c2.three{ right: 200px; }
  .c2.four { right: 160px; }
}

/* UI Controls */
.ui {
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: 300px;
  margin-left: -150px;
  z-index: 1000;
}

.ui-button {
  width: 100%;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  border: 2px solid white;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ui-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.ui-button:active {
  transform: scale(0.95);
}

.ui-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Help Button */
.help {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 75px;
  height: 25px;
  text-align: center;
  font-size: 13px;
  line-height: 27px;
  font-weight: bold;
  cursor: pointer;
  background: #fff;
  color: #79a8ae;
  opacity: .9;
  z-index: 1001;
  transition: opacity 0.1s ease;
}

.help:hover {
  opacity: 1;
}

/* Overlay Panel */
.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 550px;
  height: 490px;
  margin: -260px 0 0 -275px;
  opacity: 0;
  transform: rotateY(90deg);
  transition: transform 0.7s cubic-bezier(0.694, 0.0482, 0.335, 1),
              opacity 0.7s cubic-bezier(0.694, 0.0482, 0.335, 1);
  perspective: 1000px;
  z-index: 1002;
}

.overlay--visible {
  opacity: 1;
  transform: rotateY(0);
}

/* Tabs */
.tabs-labels {
  margin-bottom: 9px;
}

.tabs-label {
  display: inline-block;
  background: #fff;
  padding: 10px 20px;
  font-size: 12px;
  line-height: 22px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  opacity: .9;
  cursor: default;
  margin-right: 2px;
}

.tabs-panel {
  display: block !important;
}

/* Names Panel */
.names-panel {
  opacity: .9;
  background: #fff;
  z-index: 2;
  border-radius: 8px;
}

.names-content {
  padding: 50px;
}

.names-content h1 {
  color: #111;
  margin: 0 0 12px 0;
  font-size: 24px;
  line-height: 1.5em;
  font-family: "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.names-content p {
  margin: 0 0 10px 0;
  font-family: "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #666;
}

.names-input {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  margin: 20px 0;
  font-family: "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;
  resize: vertical;
  box-sizing: border-box;
}

.names-input:focus {
  outline: none;
  border-color: #90c9d1;
}

.save-button {
  width: 100%;
  padding: 15px;
  background: #90c9d1;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.save-button:hover {
  background: #7ab8c0;
}

.save-button:active {
  transform: scale(0.98);
}
