@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

main {
    width: 100%;
    min-height: 100vh;
    background-image: url(../img/microphone.svg);
    background-position: center;
    background-size: cover;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-right: 20%;
    color: #fff;
    text-align: center;
    gap: 20px;

    h1 {
        font-size: 45px;
        font-weight: bold;
    }

    span {
        color: #757575;
    }

    p {
        font-size: 20px;
    }
}

#content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 70%;

    textarea {
        width: 70%;
        height: 125px;
        border: none;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        -ms-border-radius: 5px;
        -o-border-radius: 5px;
        font-size: 16px;
        outline: none;
        margin-bottom: 20px;
        padding: 10px 0 0 10px;
    }

    #label-file {
        display: flex;
        align-items: center;
        margin-left: 95px;
        top: 30px;
        justify-content: center;
        border: 1px solid #757575;
        border-radius: 15px;
        min-width: 150px;
        min-height: 50px;
        -webkit-border-radius: 15px;
        -moz-border-radius: 15px;
        -ms-border-radius: 15px;
        -o-border-radius: 15px;
        cursor: pointer;
        transition: 1s;
        -webkit-transition: 1s;
        -moz-transition: 1s;
        -ms-transition: 1s;
        -o-transition: 1s;

    }

    #label-file:active,
#listen-btn:active,
button:active {
        border: 2px solid #6c5ce7;
        color: #6c5ce7;
        cursor: pointer;
        animation: neon 1.5s infinite;

    }
}

@keyframes neon {

    0%,
    100% {
        box-shadow: 0 0 10px #6c5ce7;
    }

    50% {
        box-shadow: 0 0 20px #6c5ce7;
    }
}


input[type="file"] {
    display: none;
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 70%;
    margin-top: 5%;

    .box1 {
        margin-right: 30px;
    }

    .action-box {
        display: flex;
        flex-direction: column;
        gap: 30px;
        min-width: 200px;
    }

    .last-btn {
        display: flex;
        gap: 30px;
    }
}

#voice, #label-file,
#listen-btn,
button {
    font-size: 20px;
    padding: 10px 15px;
    background-color: transparent;
    border: 1px solid #757575;
    color: #757575;
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
    cursor: pointer;
    transition: 1s;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
}

#voice {
    width: 100%;
}

#voice:hover {
    color: #000;
    border: 1px solid #fff;
}

button:hover,
#listen-btn:hover,
#label-file:hover {
    color: #fff;
    border: 1px solid #fff;
}

@media screen and (max-width:1030px) {
    main {
        background-position: right;
        padding-right: 0%;
        padding-bottom: 25%;

    }

    #content {
        width: 90%;

        .actions {
            justify-content: space-between;
            width: 90%;

        }

        textarea {
            margin-bottom: 50px;
            margin-top: 50px;

        }

        #voice,
        #listen-btn,
        button,
        #label-file {
            font-size: 20px;
            padding: 10px 15px;
            background-color: #fff;
            border: 1px solid #757575;
            color: #757575;
            border-radius: 25px;
        }

        #voice:hover,
        button:hover,
        #label-file:hover,
        #listen-btn:hover {
            color: #000;
            border: 1px solid #d70505;
        }
    }
}

@media screen and (max-width:780px) {
    main {
        padding-bottom: 0%;
    }

    #label-file {
        margin-right: 120px;
        top: 30px;
    }

    .actions {
        flex-direction: column;
        gap: 30px;
    }
}

@media screen and (max-width:500px) {
    main {
        background-position: center;
    }
    

    h1 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }

    textarea {
        width: 90%;
    }

    #download-btn {
        width: 85%;
        margin-bottom: 15%;
    }

    #listen-btn {
        width: 85%;
        margin-left: 15%;
    }

    .ouvir-o {
        margin-left: 12%;
    }

    .arq {
        margin-right: 12%;
    }



}