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

.hero{
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #4f8cff 0%, #a259ff 100%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    flex-direction: column;
}

.header{
    text-align: center;
    color: #fff;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 30px;
    margin-top: -100px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.header span{
    color: #ffe066;
}
#text{
    width: 100%;
    max-width: 600px;
    height: 250px;
    outline: none;
    background: #403d84;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    font-size: 18px;
    resize: none;
    margin-bottom: 30px;
    border: 1.5px solid #a259ff; /* matches gradient accent */
    box-shadow: 0 4px 24px rgba(80, 80, 160, 0.15);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
#text:focus{
    outline: none;
    border-color: #4f8cff;
    box-shadow: 0 0 0 3px rgba(162, 89, 255, 0.25);
    background: #403d84;
}
#text::placeholder{
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    line-height: 1.6;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.row{
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 600px;
    gap: 20px;
}
button{
    background: #ff2964;
    color: #fff;
    font-size: 18px;
    padding: 12px 24px;
    border-radius: 36px;
    border: 0;
    outline: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
select{
    flex: 1;
    color: #fff;
    background: #403d84;
    height: 50px;
    padding: 0 20px;
    outline: 0;
    border: 0;
    border-radius: 35px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M5.516 7.548a1 1 0 0 1 1.415 0L10 10.617l3.07-3.07a1 1 0 1 1 1.415 1.415l-3.777 3.778a1 1 0 0 1-1.415 0L5.516 8.963a1 1 0 0 1 0-1.415z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 20px 20px;
}

.rate-control {
    width: 100%;
    max-width: 600px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 18px;
}
.rate-control label {
    min-width: 48px;
}
.rate-control button {
    background: #a259ff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.rate-control button:hover {
    background: #4f8cff;
}
.rate-control span {
    min-width: 32px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}
.volume-control {
    width: 100%;
    max-width: 600px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 18px;
}
.volume-control label {
    min-width: 64px;
}
.volume-control input[type="range"] {
    flex: 1;
    accent-color: #a259ff;
    height: 4px;
    border-radius: 2px;
}
.volume-control span {
    min-width: 32px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}
#stop {
    width: 100%;
    max-width: 200px;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 35px;
    font-size: 20px;
    transition: background-color 0.3s;
    text-align: center;
    display: inline-block;
}

#stop:hover {
    background-color: #fb4276;
}
