* {
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    font-size: 15px;
    border-collapse: collapse;
    box-sizing: border-box;
}

:root {
    --cor-primaria: rgb(28, 42, 92);
    --cor-secundaria: rgb(0, 223, 45);
    --cor-sections: rgb(255, 255, 255);
    --input-color: #ccc;
    --bg-color: rgb(246, 246, 246);

    --radious-1: .5rem;
    --radious-2: 1rem;

    --shadow: 1px 1px 10px rgba(0, 0, 0, 0.157);
}

body {
    background-color: var(--bg-color);
}

header {
    background-color: var(--cor-primaria);
    height: 4rem;
    display: flex;
    align-items: center;
    padding-left: 1rem;
}

header h1 {
    font-size: 2rem;
    color: rgb(255, 255, 255);
    position: relative;
    bottom: .1rem;
}

.divisao {
    background-color: var(--cor-secundaria);
    height: .2rem;
}

.conteiner {
    width: 95%;
    max-width: 1280px;
    margin: 0 auto;
}

.layout {
    max-width: 100%;
    display: flex;
    margin-top: 2rem;
    flex-direction: row;
}

.entradas {
    display: flex;
    flex-direction: column;
    width: 30%;
    background-color: var(--cor-sections);
    padding: 3rem;
    border-radius: var(--radious-2);
    box-shadow: var(--shadow);
}

.entradas input {
    text-align: center;
    height: 2.5rem;
    font-size: 1.2rem;
    border: 1px solid var(--input-color);
    width: 85%;
    border-top-right-radius: var(--radious-1);
    border-bottom-right-radius: var(--radious-1);
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

label {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.campo {
    height: 2rem;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.prefixo {
    width: 15%;
    text-align: center;
    background-color: var(--input-color);
    height: 2.5rem;
    border-top-left-radius: var(--radious-1);
    border-bottom-left-radius: var(--radious-1);
}

.prefixo b {
    position: relative;
    top: .5rem;
    font-weight: 400;
}


.botao {
    background-color: var(--cor-primaria);
    border: none;
    color: white;
    height: 3rem;
    margin-top: 1rem;
    border-radius: var(--radious-1);
    position: relative;
    z-index: 0;
    transition: .3s;
}

.botao:hover {
    background-color: var(--cor-secundaria);
}

.botao:hover b  {
    letter-spacing: .2rem;
}

/* .calcular::after {
    content: "";
    height: 3rem;
    background-color: var(--cor-secundaria);
    position: absolute;
    width: 0;
    left: 0;
    top: 0;
    z-index: 1;
    transition: .15s;
}

.calcular:hover::after {
    width: 20rem;
} */

.botao b {
    z-index: 2;
    position: relative;
    font-size: 1.2rem;
    transition: .3s;
}

.resultados {
    width: 67%;
    margin-left: 3%;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: var(--cor-sections);
    border-radius: var(--radious-2);
    box-shadow: var(--shadow);
    padding: 3rem;
}

.resultados h2 {
    font-size: 1.2rem;
}

.cards {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 1rem;
}

.card {
    height: 5rem;
    width: 30%;
    background-color: var(--bg-color);
    border: 1px solid var(--input-color);
    border-radius: var(--radious-1);
    text-align: center;
    padding-top: 1rem;
}

.card h4 {
    font-weight: 400;
}

.valor-resultado b {
    font-size: 1.2rem;
    font-weight: 700;
}

.listaResultado {
    margin: 3rem 0;
    width: 100%;
    padding: 2rem;
    text-align: center;
    border-radius: var(--radious-2);
    background-color: white;
    box-shadow: var(--shadow);
}

.listaResultado th {
    font-size: 1.2rem;
    height: 3rem;
    color: white;
    padding: 5px
}
.listaResultado td {
    border-collapse: collapse;
    font-size: 1.2rem;
    height: 3rem;
}
.listaResultado tr:nth-child(odd) {
    background-color: rgba(24, 24, 24, 0.05);
    
}
.listaResultado tr:last-child td:nth-child(1) {
    border-bottom-left-radius: var(--radious-2);
}
.listaResultado tr:last-child td:nth-child(5) {
    border-bottom-right-radius: var(--radious-2);
}
.table-th-1 {
    background-color: var(--cor-primaria);
    width: 5%;
    border-top-left-radius: var(--radious-2);
}
.table-th-2, .table-th-3, .table-th-4, .table-th-5 {
    width: 22.5%;
    background-color: var(--cor-primaria);
}

.table-th-5 {
    border-top-right-radius: var(--radious-2);
}
/* .table-th-2 {
    background-color: rgb(195, 255, 0);
    
}
.table-th-3 {
    background-color: rgb(0, 255, 64);
    
}
.table-th-4 {
    background-color: rgb(0, 140, 255);
    
}
.table-th-5 {
    background-color: rgb(47, 0, 255);
    
}*/
/* .table-td-1 {
    background-color: rgba(194, 194, 194, 0.5);
}
.table-td-2 {
    background-color: rgb(195, 255, 0, 0.5);
}
.table-td-3 {
    background-color: rgb(0, 255, 64, 0.5);
}
.table-td-4 {
    background-color: rgb(0, 140, 255, 0.5);
}
.table-td-5 {
    background-color: rgb(47, 0, 255, 0.5);
} */

@media(max-width: 1300px) {
    *{
        font-size: 13px
    }
}

@media(max-width: 1150px) {
    .entradas {
        width: 40%;
    }

    .resultados {
        width: 57%;
    }
}

@media(max-width: 850px) {

    .cards {
        flex-direction: column;
    }

    .card {
        width: 100%;
        margin-bottom: 1rem
    }
}

@media(max-width: 750px) {
    .layout {
        flex-direction: column;
    }
    .entradas {
        width: 100%;
    }
    .resultados {
        width: 100%;
        margin-top: 2rem;
        margin-left: 0;
    }

    .cards {
        flex-direction: row;
    }

    .card {
        width: 30%;
        margin-bottom: 0;
    }
}

@media(max-width: 550px) {
    .cards {
        flex-direction: column;
    }
    .card {
        width: 100%;
        margin-bottom: 1rem
    }

    th {
        font-size: 12px !important;
    }
}

@media(max-width: 400px) {
    .entradas {
        padding: 2rem;
    }
    .resultados {
        padding: 2rem;
    }
}

@media(max-width: 350px) {
    .cards {
        flex-direction: column;
    }

    .card {
        width: 100%;
        margin-bottom: 1rem
    }
}