/* style.css */

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  overflow: hidden;
  color: white;
}

/* Background Video */
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100vw;
  min-height: 100vh;
  z-index: -1;
  object-fit: cover;
}

/* Welcome Container */
.welcome-container {
  text-align: center;
  margin-top: 20vh;
}

.welcome-container h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #fff;
}

/* Input Pelangi */
.rainbow-input {
  padding: 12px 20px;
  font-size: 1.2rem;
  border: 3px solid;
  border-image: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet) 1;
  background: transparent;
  color: white;
  border-radius: 10px;
  outline: none;
  margin-bottom: 20px;
}

/* Tombol Glow */
.glow-btn {
  padding: 12px 24px;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #ff0055, #ffcc00, #00ffcc);
  background-size: 200% auto;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 0 15px #00ffcc;
  animation: glowing 2s linear infinite;
}

@keyframes glowing {
  0% { background-position: 0% }
  100% { background-position: 200% }
}

/* Index Page Overlay */
.overlay {
  text-align: center;
  margin-top: 10vh;
  padding: 20px;
}

/* Input Box */
.input-box {
  display: flex;
  justify-content: center;
  margin: 20px;
}

#linkInput {
  width: 60%;
  padding: 12px;
  font-size: 1rem;
  border-radius: 10px;
  border: 3px solid;
  border-image: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet) 1;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.paste-btn {
  margin-left: 10px;
  padding: 12px 20px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* Popup */
.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.popup-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  border: 2px solid #fff;
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.popup-content button {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  background: linear-gradient(to right, #00f2ff, #ff00f2);
  color: white;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Loading Screen */
.loading-screen {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 20;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.rainbow-loader {
  width: 80px;
  height: 80px;
  border: 8px solid;
  border-image: linear-gradient(45deg, red, yellow, lime, cyan, blue, magenta, red) 1;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.5s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}