*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: "Poppins";
    background: radial-gradient(circle,rgba(174, 238, 209, 1) 0%, rgba(233, 148, 210, 1) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container{
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 5px 5px 15px 5px rgba(0,0,0,0);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

h1{
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.converter-form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.currency-row{
    display: flex;
    gap: 20px;
    align-items: end;
}

.currency-input{
    flex: 2;
}

.currency-select{
    flex: 1;
}

input, select{
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all .5s ease;
}

input:focus, select:focus{
    outline: none;
    border-color: #d74ce0;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 5px 5px 15px 5px rgba(255, 23, 240, 0.126);
}

label{
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    text-align: left;
}

.converter-btn{
    background: radial-gradient(circle,rgba(174, 238, 209, 1) 0%, rgba(233, 148, 210, 1) 100%);
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.5s ease;
}

.converter-btn:hover{
    background: rgb(233, 148, 210);
    box-shadow: 5px 5px 15px 5px rgba(255, 23, 240, 0.126);
    transform: translateY(-2px);
}

.loading{
    margin: 12px;
    display: none;
}

.spinner{
    border: 3px solid #fff;
    border-top: 3px solid cornflowerblue;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    margin: 0 auto;
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    0%{transform: rotate(0deg);}
    100%{transform: rotate(360deg);}
}

.snack-cat{
    opacity: 0%;
    position: fixed;
    top: 12px;
    left: 12px;
    width: 50px;
    transition: 1s;
}
.snack-cat:hover{
    opacity: 100%;
    box-shadow: 5px 5px 15px 5px #0fff3f74;
    animation: floating 2s linear infinite;
    transition: 1s;
}

@keyframes floating {
    0%{
        transform: translateY(0px);
        
    }
    50%{
        transform: translateY(-5px);
        
    }
    75%{
        transform: translateY(5px) ;
        
    }
    100%{
        transform: translateY(0px) ;
        
    }
}

.info{
    margin-top: 30px;
    font-size: 12px;
    color: #515151;
    background: linear-gradient(90deg,rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(255, 0, 191, 1) 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bg 3s linear infinite;
}

@keyframes bg{
    0%{
        background-position: 0% 50%;
    }
    50%{
        background-position: 100% 100%;
    }
    0%{
        background-position: 0% 50%;
    }
}