/*============================================================================================
                                        Basic Reset
==============================================================================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  perspective: 1200px;
  overflow: hidden;
}

.root {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

body:hover .root {
  transform: rotateY(10deg) rotateX(5deg);
}

/* Floating layers for 3D depth */
.layer {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 20px;
  pointer-events: none;
}

.layer.one {
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), transparent);
  transform: translateZ(40px);
  animation: float 6s ease-in-out infinite;
}

.layer.two {
  background: linear-gradient(135deg, rgba(255, 75, 43, 0.1), transparent);
  transform: translateZ(20px);
  animation: float 8s ease-in-out infinite;
}

.userInput {
  position: relative;
  z-index: 10;
  text-align: center;
}

.userInput h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 10px;
}

.userInput h3 {
  color: #ddd;
  font-size: 1rem;
  margin-bottom: 30px;
}

.userInput input {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.userInput input:focus {
  transform: translateZ(20px);
  box-shadow: 0 5px 25px rgba(255, 255, 255, 0.3);
}

.btn {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(45deg, #ff416c, #ff4b2b);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-5px) translateZ(15px);
  box-shadow: 0 10px 30px rgba(255, 75, 43, 0.4);
}

.UserOutput {
  margin-top: 30px;
  padding: 20px;
  min-height: 50px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-align: center;
  font-size: 1.2rem;
  transition: all 0.4s ease;
}

/* GLOW COLORS */
.gradeAplus { box-shadow: 0 0 25px #00ff88; color: #00ff88; }
.gradeA { box-shadow: 0 0 25px #00ffff; color: #00ffff; }
.gradeB { box-shadow: 0 0 25px #0066ff; color: #66b3ff; }
.gradeC { box-shadow: 0 0 25px #ffff00; color: #ffff66; }
.gradeD { box-shadow: 0 0 25px #ff9900; color: #ffb84d; }
.gradeF { box-shadow: 0 0 25px #ff0033; color: #ff4d4d; }

.userInput input::selection {
  background-color: #fff;
  color: black;
}

@keyframes float {
  0%, 100% { transform: translateZ(40px) translateY(0); }
  50% { transform: translateZ(40px) translateY(-10px); }
}