body {
    font-family: sans-serif;
}

.portion-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    #max-width: 1000px;
    width: 100%;
    margin: 20px auto;
}

.portion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.portion-rows {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}

.portion-box {
    box-sizing: border-box;
}

.portion-form-box {
    background: #fff;
    flex: 1;
    padding: 10px 20px;
}

.portion-result-box {
    background: #47023F;
    flex: 1;
    padding: 10px 20px;
}

/*.portion-form,
.portion-result {
    width: 100%;
}

.portion-widget {
    width: 100%;
}*/

.portion-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: rgb(242, 109, 4);
}

.portion-select {
    padding: 12px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;

    font-weight: 300;
    color: #666;
    font-size: 15px;
}

.portion-select:focus {
    outline: none;
    border-color: #47023F;
}

.portion-label {
    display: block;
    margin: 15px 0 8px;
    color: rgb(242, 109, 4);
    font-weight: 500;
}

.portion-agegroup,
.portion-servings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.portion-servings-label,
.portion-agegroup-label {
    font-weight: 300;
    color: #666;
    font-size: 15px;
}


.portion-agegroup .portion-agegroup-label,
.portion-servings .portion-servings-label {
    #flex: 0 0 60%;
}

.portion-input-wrap,
.portion-servings .portion-input-wrap {
    #flex: 0 0 40%;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    border: 1px solid #666;
}

.portion-input-wrap input[type=number],
.portion-servings input[type=number] {
    width: 50px;
    #border: 1px solid #ccc;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    margin: 0;
    height: 40px;
    box-sizing: border-box;
    padding: 10px;
    color: #000;
}

.portion-input-wrap button,
.portion-servings button {
    background: #fff;
    color: #666;
    font-size: 24px;
    #border: 1px solid #ccc;
    border: none;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 0;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.portion-input-wrap button:hover,
.portion-servings button:hover {
    #border-color: rgb(242, 109, 4);
    border-color: #666;
}

.portion-submit {
    #background: rgb(242, 109, 4);
    background: #fff;
    color: #47023F;
    border: none;
    padding: 14px 40px;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    box-sizing: border-box;
    margin-right: 10px;
    transition: all .3s;
}

.portion-submit:hover {
    #background: #e46d00;
    background: #fff !important;
    color: rgba(71, 2, 63, .8);
    transition: all .3s;
}

.portion-reset {
    background: #5cb85c;
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    display: none;
}

.portion-reset:hover {
    background: #4cae4c;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/*@media (max-width: 600px) {
    .portion-agegroup,
    .portion-servings {
        flex-direction: row;
        align-items: flex-start;
    }

    .portion-agegroup .portion-agegroup-label,
    .portion-servings .portion-servings-label {
        flex: none;
        width: 100%;
        margin-bottom: 6px;
    }

    .portion-input-wrap,
    .portion-servings .portion-input-wrap {
        flex: none;
        width: 100%;
        justify-content: flex-start;
    }

    .portion-input-wrap input[type=number],
    .portion-servings input[type=number] {
        width: 70px;
        height: 48px;
        font-size: 18px;
    }

    .portion-input-wrap button,
    .portion-servings button {
        height: 48px;
        width: 48px;
        font-size: 28px;
    }

    .portion-select {
        padding: 14px;
        font-size: 18px;
    }

    .portion-submit {
        font-size: 20px;
        padding: 16px 26px;
    }
}*/

.portion-result {
    color: #fff;
    width: 100%;
    height: 100%;
}

.portion-result.active {
    visibility: visible;
    opacity: 1;
}

/*.portion-result strong {
    display: inline-block;
    font-size: 3rem;
    color: #f26d04;
    margin: 15px 0;
}*/

.portion-success {
    color: #fff;
    height: 100%;
}

.portion-error {
    color: #f26d04;
    font-weight: bold;
}

.portion-error ul{
    list-style: none;
}

.empty-result-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
    padding: 50px 0;
    text-align: center;
}

.empty-result-container p {
    font-size: 34px;
}

.empty-result-img {
    width: 80%;
    margin: 0 auto;
    height: 300px;
    background: url('img/empty-result-graphics.png') no-repeat center center;
    background-size: contain;
}

.button-container {
    width: 100%;
    text-align: center;
}

.mobile-button-container {
    width: 100%;
    text-align: center;
    display: none;
}

.response-wrapper {
    text-align: center;
    box-sizing: border-box;
    padding: 20px 10px;
    color: #ccc;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.response-wrapper .message {
    font-size: 18px;
}

.response-wrapper .message strong {
    font-size: 42px;
    color: #fff;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .response-wrapper .message strong {
        font-size: 28px;
    }
}

.response-wrapper .separator {
    width: 100%;
    height: 2px;
    background: #fff;
    margin: 20px 0;
}

.response-wrapper .comment {
    font-size: 14px;
    color: #ccc;
}

.response-wrapper .table,
.response-wrapper .table table {
    width: 100%;
    font-size: 14px;
    color: #fff !important;
    border: none !important;
    border-collapse:collapse !important;
}

.response-wrapper .table table td {
    height: 50px;
    border: none !important;
}

.response-wrapper .table .tr-label {
    text-align: left;
}

.response-wrapper .table .tr-value {
    text-align: right;
}

@media (max-width: 900px) {

    .portion-rows {
        flex-direction: column;
    }

    .button-container {
        display: none;
    }

    .mobile-button-container {
        display: block;
    }
}

