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

:root {
    --linear-gradient: linear-gradient(90deg, #262626, #20878b, #1bb64c);
}

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

body {
    background-image: var(--linear-gradient);
    color: #fff;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

#main {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#container {
    display: flex;
    justify-content: center;
}

#eng-form {
    text-align: center;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.323);
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 400px;
    height: min-content;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(35px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.25);
    padding: 30px 30px 30px 30px;
    overflow: hidden;
}

#math-form {
    text-align: center;
    margin-left: 10%;
    text-align: center;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.323);
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 400px;
    height: min-content;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(35px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.25);
    padding: 30px 30px 30px 30px;
    overflow: hidden;
}

#eng-form input,
#math-form input {
    /* align-self: center; */
    width: 100%; /* Define a largura do input para ocupar todo o espaço disponível */
    height: 40px; /* Define a altura do input */
    padding: 10px; /* Adiciona preenchimento interno para melhorar a aparência */
    font-size: 16px; /* Define o tamanho da fonte do texto dentro do input */
    border: 1px solid #20878b; /* Adiciona uma borda ao input para destacá-lo */
    border-radius: 8px; /* Adiciona bordas arredondadas ao input */
}

label {
    font-size: 16px;
    margin-bottom: 8px;
    color: #ffffff;
}

input {
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

button {
    margin-top: 2%;
    display: flex;
    justify-content: center;
    background: #e3f6ea;
    border: none;
    padding: 10px;
    color: #20878b;
    font-weight: bold;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

button:hover {
    margin-top: 2%;
    display: flex;
    justify-content: center;
    background: #023f41;
    border: none;
    padding: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.im-button,
.ie-button,
.all-button{
    margin-top: 2%;
    display: flex;
    justify-content: center;
    background: #e3f6ea;
    border: none;
    padding: 10px;
    color: #20878b;
    font-weight: bold;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.im-button:hover,
.ie-button:hover,
.all-button:hover {
    margin-top: 2%;
    display: flex;
    justify-content: center;
    background: #023f41;
    border: none;
    padding: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

h1 {
    margin-top: 4%;
    font-size: 28px;
    text-align: center;
    color: #ffffff;
}

.sub {
    font-size: 14px;
    text-align: center;
    color: #ffffff;
}

.copy {
    font-size: 12px;
    color: #fcfcfc;
    margin-top: 33px;
}

.results {
    font-size: 14px;
    text-align: center;
    color: #ffffff;
}

footer {
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    justify-content: center;
    /* margin-top: 1%; */
    margin-bottom: 35%;
    padding: 20px;
}

footer img {
    display: flex;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 10px;
    cursor: pointer;
}

/* layout responsivo celular */

@media screen and (max-width: 767px) {    
    #calculator {
        max-width: 100%;
        padding: 20px;
    }

    .header {
        font-size: 15px;
    }

    .sub {
        font-size: 10px;
        text-align: center;
        color: #ffffff;
        margin-bottom: 19px;
    }

    label,
    input {
        font-size: 14px;
    }

    .copy {
        font-size: 8px;
        color: #fcfcfc;
        margin-left: 20px;
        margin-right: 20px;
    }

    button {
        margin-top: 8%;
        font-size: 16px;
    }

    button:hover {
        margin-top: 8%;
        font-size: 16px;
    }

    #main {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    footer {
        position: fixed;
        bottom: 2%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: row;
        margin-right: auto;
        margin-bottom: 5%;
        justify-content: space;
        text-align: center;
    }
}

/* layout responsivo ipad */

/* @media screen and (max-width: 1024px) { 
    #calculator {
        max-width: 100%;
        padding: 20px;
    }

    .header {
        font-size: 18px;
    }

    .sub {
        font-size: 14px;
        text-align: center;
        color: #ffffff;
        margin-bottom: 19px;
    }

    label,
    input {
        font-size: 16px;
    }

    .copy {
        font-size: 12px;
        color: #fcfcfc;
        margin-left: 20px;
        margin-right: 20px;
    }

    button {
        margin-top: 8%;
        font-size: 18px;
    }

    button:hover {
        margin-top: 8%;
        font-size: 18px; 
    }

    #main {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    footer {
        position: fixed;
        bottom: 2%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: row;
        margin-right: auto;
        margin-bottom: 5%;
        justify-content: center; 
        text-align: center;
    }
} */
