/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body{
  display: flex;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #000;
  overflow: hidden;
  /* background: linear-gradient(to bottom, #d6609b, #E0F6FF); */
}

.bubbles {
  position: relative;
  width: 100%;
  height: 100%;
}

.bubble {
  position: absolute;
  bottom: -100px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: float 4s infinite ease-in;
}

.bubble:nth-child(1) {
  left: 10%;
  animation-duration: 6s;
}

.bubble:nth-child(2) {
  left: 20%;
  animation-duration: 5s;
}

.bubble:nth-child(3) {
  left: 30%;
  animation-duration: 7s;
}

.bubble:nth-child(4) {
  left: 40%;
  animation-duration: 4.5s;
}

.bubble:nth-child(5) {
  left: 50%;
  animation-duration: 6.5s;
}

.bubble:nth-child(6) {
  left: 60%;
  animation-duration: 5.5s;
}

.bubble:nth-child(7) {
  left: 70%;
  animation-duration: 7.5s;
}

.bubble:nth-child(8) {
  left: 80%;
  animation-duration: 6s;
}

.bubble:nth-child(9) {
  left: 90%;
  animation-duration: 5s;
}

.bubble:nth-child(10) {
  left: 95%;
  animation-duration: 4s;
}

@keyframes float {
  0% {
    bottom: -100px;
    transform: translateX(0);
  }
  50% {
    transform: translateX(100px);
  }
  100% {
    bottom: 100%;
    transform: translateX(-100px);
  }
}


.container {
  background-color: #000;
  padding: 50px;
  /* border-radius: 9em 2em; */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 446px;
  margin: auto;
  height: 93vh;
  width: 100%;
  color: #fff;
  position: relative;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.container::after, .container::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(from var(--angle), #ff4545, #00ff99, #006aff, #ff0095, #ff4545);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 10px;
  /* border-radius: 9em 2em; */
  animation: 3s spin linear infinite;
}

.container::before {
  filter: blur(1.5 rem);
  opacity: 0;
}

@keyframes spin {
  from {
      --angle: 0deg;
  }

  to {
      --angle: 360deg;
  }
}
.container h2 {
  font-size: 25px;
  font-weight: 500;
  text-align: center;
  padding: 16px 25px;
  border-bottom: 4px solid blueviolet;
}
.container .content{
  margin: 25px 20px 35px;
}
.content .word {
  user-select: none;
  font-size: 25px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 24px;
  margin-right: -24px;
  word-break: break-all;
  text-transform: uppercase;
  white-space: nowrap;
    color: #fff;
    font-size: 2rem;
    letter-spacing: 3px;
    text-shadow: 0 0 5px #f8a24f,0 0 10px #f8a24f,0 0 15px #f8a24f;
    transition: background-color .3s ease,text-shadow .3s ease;
}

.content .details{
  margin: 25px 0 20px;
}
.details p{
  font-size: 18px;
  margin-bottom: 10px;
}
.details p b{
  font-weight: 500;
}
.content input{
  width: 100%;
  height: 60px;
  outline: none;
  padding: 0 16px;
  font-size: 18px;
  border-radius: 5px;
  border: 1px solid #9C27B0;
}
.content input:focus{
  box-shadow: 0px 2px 4px rgba(0,0,0,0.08);
}
.content input::placeholder{
  color: #aaa;
}
.content input:focus::placeholder{
  color: #bfbfbf;
}
.content .buttons{
  display: flex;
  margin-top: 20px;
  justify-content: space-between;
}
.buttons button{
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
  padding: 15px 0;
  font-size: 17px;
  border-radius: 5px;
  width: calc(100% / 2 - 8px);
  transition: all 0.3s ease;
}
.buttons button:active{
  transform: scale(0.97);
}
.buttons .refresh-word{
  background: #E91E63;
}
.buttons .refresh-word:hover{
  background: #5f666d;
}
.buttons .check-word{
  background: #3F51B5;
}
.buttons .check-word:hover{
  background: #2c52ed;
}

@media screen and (max-width: 470px) {
  .container h2{
    font-size: 22px;
    padding: 13px 20px;
  }
  .content .word{
    font-size: 30px;
    letter-spacing: 20px;
    margin-right: -20px;
  }
  .container .content{
    margin: 20px 20px 30px;
  }
  .details p{
    font-size: 16px;
    margin-bottom: 8px;
  }
  .content input{
    height: 55px;
    font-size: 17px;
  }
  .buttons button{
    padding: 14px 0;
    font-size: 16px;
    width: calc(100% / 2 - 7px);
  }
}