* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #44f;
}


#main {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #44f;

}

#container {
    position: relative;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

.test-ball{
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 0 10px #fff;
    animation: shake 1s infinite;
}

.common {
    outline: none;
    padding: 20px;
    font-size: 24px;
    border-radius: 8px;
    min-width: 500px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

#inp {
    color: transparent;
    caret-color: black;
    border: 2px #333 solid;
}

#inp::selection {
    background: #44f8;
    color: transparent;
}

#inp_div {
    position: absolute;
    border: 2px #3330 solid;
    top: 0;
    left: 0;
    color: #333;
    pointer-events: none;
}

#inp_div span {
    animation: scale 0.3s linear forwards;
    display: inline-block;
}

/* animations */

@keyframes drop {
    0% {
        transform: translateY(-30px);
    }
    80% {
        transform: translateY(10px);
    }
    85% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes shake {
    0% {
        transform: translate(1px,2px) rotate(35deg);
    }
    20% {
        transform: translate(-2px,1px) rotate(-35deg);
    }
    40% {
        transform: translate(4px,-2px) rotate(35deg);
    }
    60% {
        transform: translate(-5px,2px) rotate(-15deg);
    }
    100% {
        transform: translate(0px);
    }
}

@keyframes color-bloom{
    0%{
        color: hsl(0,100%,50%);
        /*glow text*/
        text-shadow: 0 0 10px hsl(0,100%,50%);

    }
    20%{
        color: hsl(50,100%,50%);
        text-shadow: 0 0 10px hsl(50,100%,50%);

    }
    40%{
        color: hsl(100,100%,50%);
        text-shadow: 0 0 10px hsl(100,100%,50%);

    }
    60%{
        color: hsl(150,100%,50%);
        text-shadow: 0 0 10px hsl(150,100%,50%);
    }
    80%{
        color: hsl(200,100%,50%);
        text-shadow: 0 0 10px hsl(200,100%,50%);

    }
    100%{
        color: rgb(2, 1, 9);
        text-shadow: 0 0 0px rgb(2, 1, 9);
    }
}

@keyframes zoom {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* input animations */


/*controls*/


.controls button{
    padding:1rem;
    border:2px #333 solid;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;

}
.controls button:hover{
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
}
.controls button:active{
    transform: translateY(2px);
}