* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Animated gradient background */

body {
    height: 100vh;

    background: linear-gradient(
        -45deg,
        #667eea,
        #764ba2,
        #ff6a88,
        #ffb199
    );

    background-size: 400% 400%;

    animation: gradientBG 12s ease infinite;

    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes gradientBG {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* Glass container */

.container {

    width: 900px;

    padding: 30px;

    border-radius: 20px;

    background: rgba(255,255,255,0.15);

    backdrop-filter: blur(15px);

    box-shadow: 0 8px 30px rgba(0,0,0,0.3);

    text-align: center;

}


h1 {

    color: white;

    margin-bottom: 20px;

    font-weight: 600;

}


/* API BOX */

.api-box {

    display: flex;
    gap: 10px;

    margin-bottom: 15px;

}

.api-box input {

    flex: 1;

    padding: 10px;

    border-radius: 10px;

    border: none;

}


/* LANGUAGE BOX */

.lang-box {

    display: flex;

    gap: 10px;

    margin-bottom: 15px;

}

.lang-box select {

    flex: 1;

    padding: 10px;

    border-radius: 10px;

    border: none;

}

#swapBtn {

    padding: 10px 15px;

    border-radius: 10px;

    border: none;

    cursor: pointer;

    background: white;

}


/* TEXT BOX */

.text-box {

    display: flex;

    gap: 10px;

    margin-bottom: 15px;

}

textarea {

    width: 100%;

    height: 150px;

    padding: 10px;

    border-radius: 15px;

    border: none;

    resize: none;

}


/* BUTTONS */

.btn-box {

    display: flex;

    gap: 10px;

}

button {

    flex: 1;

    padding: 12px;

    border-radius: 12px;

    border: none;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;

}


#translateBtn {

    background: #00c9ff;

    color: white;

}

#translateBtn:hover {

    transform: scale(1.05);

}


#copyBtn {

    background: #ff6a88;

    color: white;

}

#copyBtn:hover {

    transform: scale(1.05);

}