* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    color: #1e0411;
    background-color: #faeee7;
}

a {
    display: block;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

*::before,
*::after {
    box-sizing: inherit;
}

ul,
ol {
    list-style: none;
}

.main {
    max-width: 320px;
    margin: 50px auto 0;
    padding: 0 5px;
}

.tip-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    flex-direction: column;
}

.name-input {
    text-align: center;
    text-transform: capitalize;
}

.number-field {
    -moz-appearance: textfield;
    padding: 6px;
    margin-bottom: 15px;
    border-radius: 5px;
    border-color: #562349;
    outline: #562349;
}

.number-field::-webkit-inner-spin-button {
    display: none;
}

.btns-wrap {
    display: flex;
    align-items: center;
    text-align: center;
}

.btn-wrap {
    display: inline-table;
}

.btn {
    padding: 8px;
    cursor: pointer;
    outline: none;
    border: none;
    border-radius: 5px;
    background-color: #e6bbcf;
    text-transform: uppercase;
}

.btn:hover,
.btn:focus {
    background-color: #ad6989;
    transform: scale(1.1);
}

.btn-input {
    width: 50%;
    text-align: center;
}

.btn-result {
    margin: 0;
    margin-bottom: 15px;
}


/* results */

.result-wrap {
    text-align: center;
}

.result-type-wrap {
    margin-bottom: 15px;
}

.result-type-wrap:hover,
.result-type-wrap:focus {
    transform: scale(1.1);
    font-weight: bolder;
}

.result-type-title {
    margin-bottom: 5px;
}

.result-title {
    text-transform: uppercase;
}

.result-description {
    text-transform: lowercase;
}

.total {
    margin: 0;
}