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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    user-select: none;
}

/* hero */

.hero {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(45deg, #010758, #490d61);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
}

/* heading */

.hero h1 {
    font-size: 45px;
    font-weight: 500;
    margin: -50px 0 50px;
}

.hero h1 span {
    color: #ff2963;
}

/* textarea */

textarea {
    width: 600px;
    height: 250px;
    background: #403d84;
    color: #fff;
    font-size: 15px;
    border: 0;
    outline: 0;
    padding: 20px;
    border-radius: 10px;
    resize: none;
    margin-bottom: 30px;
}

textarea::placeholder {
    font-size: 16px;
    color: #ddd;
}

/* container for button and select box */

.row {
    width: 600px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* listen to speech button */

.row button {
    background: #ff2963;
    color: #fff;
    font-size: 16px;
    padding: 10px 30px;
    border-radius: 35px;
    border: 0;
    outline: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.row button i {
    margin-right: 10px;
}

/* select box */

select {
    flex: 1;
    color: #fff;
    background: #403d84;
    height: 50px;
    padding: 0 20px;
    outline: 0;
    border: 0;
    border-radius: 35px;
    appearance: none;
    position: relative;
}

/* responsiveness */

@media (max-width: 650px) {

    .hero h1 {
        font-size: 40px;
        margin-bottom: 30px;
    }

    textarea,
    .row {
        width: 500px;
    }
}

@media (max-width: 550px) {

    .hero h1 {
        font-size: 35px;
        margin-top: 0;
        width: 400px;
        text-align: center;
    }

    textarea,
    .row,
    select,
    .hero h1 {
        width: 400px;
    }

    .row {
        flex-direction: column;
        align-items: flex-start;
    }

    select {
        height: 50px;
        flex: none;
    }
}

@media (max-width: 450px) {

    .hero h1 {
        font-size: 30px;
    }

    textarea,
    .row,
    select,
    .hero h1 {
        width: 300px;
    }
}

@media (max-width: 350px) {

    .hero h1 {
        font-size: 30px;
    }

    textarea,
    .row,
    select,
    .hero h1 {
        width: 280px;
    }
}