/*###########################*/
/*### ---GLOBAL STYLES--- ###*/
/*###########################*/

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/MaterialIcons-Regular.eot'); /* For IE6-8 */
    src: local('Material Icons'),
    local('MaterialIcons-Regular'),
    url('../fonts/MaterialIcons-Regular.woff2') format('woff2'),
    url('../fonts/MaterialIcons-Regular.woff') format('woff'),
    url('../fonts/MaterialIcons-Regular.ttf') format('truetype');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;  /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}

html {
    height: 100%;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    width: 100%;
}

#wrapper {
    flex: 1 0 auto;
    margin: 0px auto;
    width: 100%;
    max-width: 1000px;
    min-width: 320px;
}

h1 {
    line-height: 1.25em;
}

h2 {
    color: #9c27b0 !important;
}

h3 {
    color: #9c27b0;
    font-size: 21px;
}

table {
    font: inherit;
}

th {
    color: #9c27b0;
    font-weight: normal;
    border-bottom: 1px solid #9c27b0;
}

hr
{
    border-color: #9c27b0;
    margin: 10px 0 10px 0;
}

ul 
{
    list-style-type: none;
    padding-left: 0px;
}

ul 
{
    list-style: none;
    padding: 0;
    margin: 0;
}

li 
{
    padding-left: 1em; 
    text-indent: -.7em;
}

li::before 
{
    content: "•";
    color: #9c27b0;
    margin-right: 20px;
}

label
{
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
}

input[type="radio"]:checked+label
{
    text-decoration: underline;
}

form {
    margin: 0px;
}


/*##############################*/
/*### ---UNIVERSAL CLASSES--- ###*/
/*##############################*/

.custom-grey
{
    background-color: #d8d8d8;
}

.custom-center 
{
    vertical-align: middle;
}

.custom-left
{
    float: left;
}

.custom-right
{
    float: right;
}

.custom-error-message
{
    display: inline-block;
    padding: 5px 10px 5px 10px;
    background-color: #ffdddd;
    border-left: 6px solid #f44336;
}

.custom-inline-center {
    text-align: center !important;
}

/*---RESPONSIVE MARGIN AND PADDING---*/

@media only screen and (min-width: 1001px) {
    /* ---MARGIN--- */
    .custom-margin {
        margin: 15px !important;
    }
    
    .custom-margin-t {
        margin-top: 15px !important;
    }
    
    .custom-margin-b {
        margin-bottom: 15px !important;
    }
    
    /* ---PADDING--- */ 
    
    .custom-padding {
        padding: 15px !important;
    }
    
    .custom-padding-lr {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .custom-padding-tb {
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }
    
    .custom-padding-t {
        
        padding-top: 15px !important;
    }
    
    .custom-padding-b {
        padding-bottom: 15px !important;
    }
    
    .custom-padding-l {
        padding-left: 15px !important;
    }
    
    .custom-padding-r {
        padding-right: 15px !important;
    }
}

@media only screen and (min-width: 601px) and (max-width: 1000px) {
    /* ---MARGIN--- */
    .custom-margin {
        margin: 10px !important;
    }
    
    .custom-margin-t {
        margin-top: 10px !important;
    }
    
    .custom-margin-b {
        margin-bottom: 10px !important;
    }
    
    /* ---PADDING--- */ 
    
    .custom-padding {
        padding: 10px !important;
    }
    
    .custom-padding-lr {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .custom-padding-tb {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    
    .custom-padding-t {
        
        padding-top: 10px !important;
    }
    
    .custom-padding-b {
        padding-bottom: 10px !important;
    }
    
    .custom-padding-l {
        padding-left: 10px !important;
    }
    
    .custom-padding-r {
        padding-right: 10px !important;
    }
}

@media only screen and (max-width: 600px) {
    /* ---MARGIN--- */
    .custom-margin {
        margin: 5px !important;
    }
    
    .custom-margin-t {
        margin-top: 5px !important;
    }
    
    .custom-margin-b {
        margin-bottom: 5px !important;
    }
    
    /* ---PADDING--- */ 
    
    .custom-padding {
        padding: 5px !important;
    }
    
    .custom-padding-lr {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .custom-padding-tb {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }
    
    .custom-padding-t {
        
        padding-top: 5px !important;
    }
    
    .custom-padding-b {
        padding-bottom: 5px !important;
    }
    
    .custom-padding-l {
        padding-left: 5px !important;
    }
    
    .custom-padding-r {
        padding-right: 5px !important;
    }
}


/*###################*/
/*### ---LINKS--- ###*/
/*###################*/

a.custom-link:link
{
    color: black;
    text-decoration: underline;
    transition: color 150ms ease-in-out;
}

a.custom-viand-link:link
{
    color: black;
    text-decoration: none;
    transition: color 150ms ease-in-out;
}

a.custom-link:visited, a.custom-viand-link:visited
{
    color: black;
    text-decoration: underline;
}

a.custom-link:hover, a.custom-link:active, a.custom-viand-link:hover, a.custom-viand-link:active
{
    color: #9c27b0;
}

a.custom-title-link:link, a.custom-title-link:visited, a.custom-title-link:hover , a.custom-title-link:active
{
    text-decoration: none;
    color: white;
}


/*#####################*/
/*### ---BUTTONS--- ###*/
/*#####################*/

.custom-button, .custom-button-icon-left, .custom-button-icon-right {
    display: inline;
    padding: 5px 10px;
    border: 2px solid #9c27b0;
    border-radius: 3px;
    box-sizing: border-box;
    text-decoration: none;
    font-weight: 300;
    color: #9c27b0;
    text-align: center;
    outline-width: 0;
    background-color: #f1f1f1;
    cursor: pointer;
    -webkit-transition: all 0.2s cubic-bezier(.14, .59, 1, 1.01);
    transition: all 0.2s cubic-bezier(.14, .59, 1, 1.01);
}

@media only screen and (min-width: 600px) {
    .custom-button:hover, .custom-button-icon-left:hover, .custom-button-icon-right:hover {
        transform: scale(1.05) !important;
    }
}

.custom-icon-left {
    font-size: 28px;
    position: absolute;
    transform: translateX(-60px);
    opacity: 0;
    -webkit-transition: all .15s cubic-bezier(.14, .59, 1, 1.01);
    transition: all .15s cubic-bezier(.14, .59, 1, 1.01);
    margin: 0;
    padding: 0 5px;
}

.custom-button-icon-left:hover i {
    width: 24px;
    opacity: 1;
    transform: translateX(-40px);
}

.custom-icon-right {
    font-size: 28px;
    position: absolute;
    transform: translateX(20px);
    opacity: 0;
    -webkit-transition: all .15s cubic-bezier(.14, .59, 1, 1.01);
    transition: all .15s cubic-bezier(.14, .59, 1, 1.01);
    margin: 0;
    padding: 0 5px;
}

.custom-button-icon-right:hover i {
    width: 24px;
    opacity: 1;
    transform: translateX(3px);
}

/*
.custom-form-button
{
    background-color: #cccccc;
    border: 1px solid #9c27b0;
    transition: background-color 150ms ease-in-out;
    width: 100%;
}

.custom-form-button:hover, .custom-form-button:active
{
    background-color: #9c27b0;
    color: white;
    border: 1px solid #9c27b0;
}*/


/*#####################*/
/*### ---DEFAULT--- ###*/
/*#####################*/

.custom-transition
{
    transition: background-color 150ms ease-in-out;
}

/*####################*/
/*### ---HEADER--- ###*/
/*####################*/

#header 
{
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0px;
}

.custom-title {
    line-height: 1.25em;
    font-weight: 400;
    font-family: "Segoe UI", Arial,sans-serif;
}


/*########################*/
/*### ---NAVIGATION--- ###*/
/*########################*/

#hamburger 
{
    margin-left: 20px;
    z-index: 9999;
}

.hamburger .line
{
    width: 50px;
    height: 5px;
    background-color: #ecf0f1;
    display: block;
    margin: 8px auto;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.hamburger:hover
{
    cursor: pointer;
}

#hamburger.is-active .line:nth-child(2)
{
    opacity: 0;
}

#hamburger.is-active .line:nth-child(1)
{
    -webkit-transform: translateY(13px) rotate(45deg);
    -ms-transform: translateY(13px) rotate(45deg);
    -o-transform: translateY(13px) rotate(45deg);
    transform: translateY(13px) rotate(45deg);
}

#hamburger.is-active .line:nth-child(3)
{
    -webkit-transform: translateY(-13px) rotate(-45deg);
    -ms-transform: translateY(-13px) rotate(-45deg);
    -o-transform: translateY(-13px) rotate(-45deg);
    transform: translateY(-13px) rotate(-45deg);
}


/*##################################*/
/*### ---ALERTS/NOTIFICATIONS--- ###*/
/*##################################*/

#cookiesDisabledAlert {
    display: none;
}

.notification p {
    margin: 0px 0px 16px !important;
}


/*##########################################*/
/*### ---IODINE INTAKE RECOMMENDATION--- ###*/
/*##########################################*/

.custom-iodineIntakeRecommendation
{
    max-height: 0px;
    transition: max-height 300ms ease-in-out;
    overflow: hidden;
}

.custom-iodineIntakeRecommendation.custom-open
{
    max-height: 180px;
}

.custom-radioButton
{
    max-height: 30px;
    overflow: hidden;
    transition: max-height 200ms ease-in-out;
}

.custom-radioButton.custom-close
{
    max-height: 0px;
    overflow: hidden;
}

.custom-radioButton.custom-hide
{
    display: none;
}


/*########################*/
/*### ---VIAND FORM--- ###*/
/*########################*/

/* ---VIAND LIST--- */

#subpage-wrapper .custom-category-wrapper {
    border: 1px solid #ccc;
    border-bottom: 0px;
    /*overflow: hidden;*/
}

#subpage-wrapper .custom-viand-category-header {
    padding: 5px;
    border-bottom: 1px solid #9c27b0;
    color: #9c27b0;
    background-color: white;
    font-size: 1.2em;
    text-align: center;
}

#subpage-wrapper .custom-list-row {
    position: relative !important;
    padding: 8px 5px;
    border-bottom: 1px solid #ccc;
}

#subpage-wrapper .custom-list-row.custom-white {
    background-color: white;
}

#subpage-wrapper .custom-viand-name {
    background: transparent;
    display: inline-block;
    width: 47%;
}

#subpage-wrapper .custom-viand-input {
    position: absolute !important;
    top: 50%;
    right: 0px;
    transform: translateY(-50%);
    background: transparent;
    display: table-cell;
    width: 53%;
    text-align: right;
    vertical-align: middle;
}

[class^="custom-serving-icon-wrapper"] {
    display: inline-block;
    /*position: relative !important;*/
}

.custom-serving-icon {
    width: 35px !important;
    height: 25px !important;
    cursor: pointer;
}

#subpage-wrapper .custom-viand-unit-container {
    display: inline-block;
    width: 25px;
    font-size: 1em;
    text-align: left;
}

/*grid styles for selected viands list*/

#subpage-wrapper #selected-viands .custom-list-row {
    padding: 3px 8px;
    display: grid;
    grid-template-columns: auto 35px 3em 1em 35px;
    align-items: center;
    column-gap: 1.25%;
}

#subpage-wrapper #selected-viands .custom-clear-viand-icon {
    font-size: 40px;
    height: 35px;
    cursor: pointer;
}

@media only screen and (max-width: 400px) {
    #subpage-wrapper #selected-viands .custom-list-row {
        grid-template-columns: 30% 3em 30% auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "name name name clear-icon"
            "serving-icon input unit  clear-icon";
        column-gap: 3%;
        row-gap: 5px;
        padding-bottom: 8px;
    }
    
    #subpage-wrapper #selected-viands .custom-list-row a {
        font-size: 17px !important;
    }
    
    #subpage-wrapper #selected-viands .custom-viand-link {
        grid-area: name;
        justify-self: center;
        text-align: center;
    }

    #subpage-wrapper #selected-viands .custom-serving-icon {
        grid-area: serving-icon;
        justify-self: end;
    }

    #subpage-wrapper #selected-viands input[id^="selected-viand-input"] {
        grid-area: input;
    }

    #subpage-wrapper #selected-viands .custom-viand-unit-container {
        grid-area: unit;
    }

    #subpage-wrapper #selected-viands .custom-clear-viand-icon {
        grid-area: clear-icon;
    }    
}

@media only screen and (max-width: 600px) {
    #subpage-wrapper a, #subpage-wrapper input, #subpage-wrapper span:not(.custom-card-title) {
        font-size: 16px;
    }
    
    #subpage-wrapper .custom-viand-category-header {
        font-size: 1em;
    }

    /* Different width for selected viand list because of aditional "delete from list"-icon */
    #selected-viands .custom-viand-name {
        display: block !important;
        text-align: center;
        position: static !important;
        width: 100%;
    }
    
    #selected-viands .custom-viand-name a {
        font-size: 1.2em !important;
    }
    
    /* Different width for selected viand list because of aditional "delete from list"-icon */
    #selected-viands .custom-viand-input {
        display: flex !important;
        justify-content: center;
        transform: unset;
        position: static !important;
        width: 100%;
        margin-top: 5px;
    }
    
    #selected-viands .custom-viand-input > * {
        margin: 0px 5px !important;
    }
}

/* ---ADDITIONS FOR SELECTED VIAND LIST AND SEARCH VIAND LIST--- */

#selected-viands-list, #found-viands-list {
    border: 1px solid #ccc;
    border-bottom: 0px;
}

/* ---HINTS--- */

.custom-hint-viand-form, .custom-hint-viand-form p {
    margin-top: 0px !important;
}

.custom-hint-viand-form {
    height: auto;
    max-height: 800px;
    overflow: hidden;
    position: relative !important;
    background-color: #f1d5f6;
    transition: all 0.4s !important;
    -webkit-transition: all 0.4s ease-in-out !important;
}

.custom-hint-viand-form.hidden {
    max-height: 0px;
    border-color: #f1f1f1 !important;
    margin: 0px !important;
    background-color: #f1f1f1;
}

.custom-icon-close-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

#viand-form-hint .custom-icon-close-hint {
    font-size: 32px;
    color: #9c27b0;
}

/*hints for actionbar and viand list*/

.hint {
    width: 300px;
    background-color: #555;
    color: #fff;
    padding: 8px 8px;
    position: absolute;
    z-index: 1;
    bottom: 128%;
    font-size: 19px !important;
    line-height: 1.5 !important;
    animation: fadein 200ms;
    transition: opacity 200ms ease-in-out;
    -webkit-transition: opacity 200ms ease-in-out;
}

.serving-icon-hint {
    position: absolute;
    left: 0px !important;
    width: 300px;
    left: 0px !important;
    background-color: #555;
    color: #fff;
    padding: 8px 8px;
    z-index: 100;
    font-size: 19px !important;
    line-height: 1.5 !important;
    animation: fadein 200ms;
    transition: opacity 200ms ease-in-out;
    -webkit-transition: opacity 200ms ease-in-out;
}

.serving-icon-hint::before {
    content: "";
    position: absolute;
    top: -20px;
    margin-left: 163px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #555 transparent;
}

.hint .heading, #serving-icon-hint .heading {
    display: block;
    margin-bottom: 10px;
    font-size: 27px !important;
    font-family: "Segoe UI",Arial,sans-serif;
}

/* arrow */
.hint::after {
    content: "";
    position: absolute;
    top: 100%;
    margin-left: -5px;
    border-width: 10px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.middle.hint::after {
    left: 50%;
}

.hint.left {
    margin-left: -45px;
}

.left.hint::after {
    left: 12px !important;
}

.hint.right {
    margin-left: -295px;
}

.right.hint::after {
    right: 18px !important;
}

#actionbar .custom-icon-close-hint {
    color: white;
    font-size: 20px;
}

.fadeout {
    opacity: 0;
}

.hidden:not(#viand-form-hint) {
    display: none;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---SUBPAGES--- */

#subpage-wrapper {
    overflow: hidden;
    transition: all 0.4s !important;
    -webkit-transition: all 0.4s ease-in-out !important;
}

.custom-viand-form-subpage {
    display: none !important;
    opacity: 0;
    -webkit-animation: fadeEffect 0.4s;
    animation: fadeEffect 0.4s;
}

.custom-viand-form-subpage.active {
    display: block !important;
    opacity: 1;
}

@-webkit-keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* ---CATEGORY CARDS--- */

#viand-selection
{
    position: relative !important;
    transition: all 0.4s !important;
    -webkit-transition: all 0.4s ease-in-out !important;
}

.custom-category-selected
{
    position: static;
    height: auto;
}

.custom-card
{
    position: absolute;
    transition: all 0.4s;
    -webkit-transition: all 0.4s ease-in-out;
    padding: 5px;
    z-index: 10;
    cursor: pointer;
}

.custom-card img
{
    height: 140px;
    object-fit: cover;
    object-position: 50%;
}

#viand-selection .custom-card-title
{
    font-weight: bold;
    transition: all 400ms ease-in-out;
    -webkit-transition: all 400ms ease-in-out;
}

.custom-card-transition
{
    top: 0px !important;
    left: 0px !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0px !important;
}

.custom-card-selected
{
    position: static;
    width: 100% !important;
    height: 100% !important;
    padding: 0px !important;
    z-index: 90;
}

.custom-card-selected div
{
    position: static !important;
    box-shadow: none !important;
    background-color: #f1f1f1;
}

.custom-card-transition span
{
    max-width: 95%;
    overflow-wrap: break-word;
    font-size: 60px;
    top: 0px;
}

.custom-card-selected span
{
    max-width: 95%;
    overflow-wrap: break-word;
    font-size: 60px;
    top: 0px;
    max-height: 140px;
}

.custom-card-transition img
{
    height: 140px;
    object-fit: cover;
    object-position: 50%;
}

/*.custom-card-selected img
{
    height: 140px;
    object-fit: cover;
    object-position: 50%;
}*/

.custom-card-hidden
{
    top: 0px !important;
    z-index: -1;
}

.custom-card-container
{
    width: 100%;
    height: 100%;
    background-color: #f1f1f1;
    overflow: hidden;
}

.custom-card-container img
{
    width: 100%;
}

.custom-card-container span:not(.custom-viand-unit-container):not(.hint)
{
    position: absolute;
    left: 8px;
    bottom: 4px;
    color: white;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

/* ---SEARCH SUBPAGE--- */

#search-result-list-wrapper {
    overflow-y: scroll;
}

/* ---ACTIONBAR--- */

#actionbar-wrapper {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    bottom: 0;
    z-index: 99;
    width: 100%;
    max-width: 1000px;
    padding: 10px 5px;
    margin-top: 10px;
    background-color: #f1f1f1;
    color: black;
}

#actionbar-wrapper.fixed {
    position: fixed;
    bottom: 46px;
    width: 100%;
    max-width: 1000px;
}

#actionbar-wrapper.transition {
    transition: all 150ms ease-in-out;
    -webkit-transition: all 150ms ease-in-out;
} 

#actionbar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

#actionbar > * {
    margin: 0px 2.5px !important;
}

#actionbar #custom-help-icon-wrapper {
    position: relative;
    width: 42px;
    height: 42px;
    order: 2;
}

#actionbar #custom-help-icon {
    display: inline-block;
    text-align: center;
    line-height: 36px;
    font-size: 35px;
    width: 100%;
    height: 100%;
}

#actionbar .custom-search-wrapper {
    order: 1;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: white;
    border: 1px solid grey;
    border-radius: 3px;
    padding: 0px 5px;
    margin-bottom: 5px !important;
    height: 42px;
}

#actionbar .custom-search-wrapper i {
    width: 30px;
    text-align: center;
}

#actionbar .custom-search-wrapper input {
    flex-grow: 1;
    border: none;
}

#actionbar .viand-search-input:focus {
    outline-width: 0 !important;
    border: 0px !important;
}

#actionbar .custom-search-wrapper .viand-search-clear-icon {
    visibility: hidden;
    width: 30px;;
    text-align: center;
    opacity: 0;
    cursor: pointer;
    transition: all 400ms ease-in-out;
    -webkit-transition: all 400ms ease-in-out;
}

#actionbar .custom-search-wrapper .viand-search-clear-icon.display {
    visibility: visible;
    opacity: 1;
}

#actionbar .custom-arrow-back-wrapper {
    position: relative;
    z-index: 10;
    order: 5;
    width: 0px;
    margin: 0px !important;
    transition: all .25s cubic-bezier(.14, .59, 1, 1.01);
    -webkit-transition: all .25s cubic-bezier(.14, .59, 1, 1.01);
}

#actionbar .custom-arrow-back-wrapper i:not(.custom-icon-close-hint) {
    opacity: 0;
    width: 42px;
}

#actionbar .custom-arrow-back-wrapper.display {
    width: 42px;
    margin: 0px 2.5px !important;
}

#actionbar .custom-arrow-back-wrapper.display i {
    opacity: 1;
}

#actionbar .custom-button-wrapper {
    order: 3;
    flex-grow: 1;
}

#actionbar button {
    width: 100%;
    padding: 7px 10px;
}

#actionbar .custom-navigation-icon {
    cursor: pointer;
    font-size: 38px;
    color: #9c27b0;
    border: 2px solid #9c27b0;
    border-radius: 3px;
    transition: all .15s cubic-bezier(.14, .59, 1, 1.01);
    -webkit-transition: all .15s cubic-bezier(.14, .59, 1, 1.01);
}

#actionbar .custom-navigation-icon:hover {
    background-color: #e8e8e8;
}

#actionbar .custom-show-viand-selection-wrapper {
    order: 4;
    margin-left: 5px;
    position: relative;
    display: inline-block;
}

#actionbar .custom-show-viand-selection-wrapper.hide {
    opacity: 0;
    width: 0px;
    margin: 0px !important;
}


@media only screen and (min-width: 601px) {
    #actionbar {
        flex-wrap: nowrap;
        justify-content: space-around;
        height: 46px;
    }
    
    #actionbar > * {
        margin: 0px 5px !important;
    }
    
    #actionbar #custom-help-icon-wrapper {
        width: 46px;
        height: 46px;
        order: 0;
    }

    #actionbar #custom-help-icon-wrapper span {
        line-height: 40px;
        font-size: 38px;
    }
    
    #actionbar .custom-arrow-back-wrapper.display {
        margin: 0px 5px !important;
        width: 46px;
    }
    
    #actionbar .custom-arrow-back-wrapper.display i:not(.custom-icon-close-hint) {
        transform: translateX(0px);
        opacity: 1;
        width: 46px;
    }
    
    #actionbar .custom-navigation-icon {
        font-size: 42px;
    }
    
    #actionbar .custom-navigation-icon:hover {
        background-color: #e8e8e8;
        transform: scale(1.1) !important;
    }
    
    #actionbar .custom-search-wrapper {
        width: auto;
        flex-grow: 2;
        height: 100%;
    }

    #actionbar .custom-button-wrapper {
        flex-grow: 1;
    }
}

/*--- VIAND FORM OLD ---*/ 

.custom-actionbar-wrapper
{
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 0 10px 0 10px;
}

.custom-actionbar
{
    max-width: 980px;
    min-width: 320px;
    background-color: #f1f1f1;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 35px !important;
    border-bottom: 0px !important;
    box-shadow: 0 -2px 4px 0 rgba(0,0,0,0.16)!important;
}
.custom-row-wrapper
{
    height: 100px;
}

.custom-row
{
    width: 100%;
    height: 50%;
    padding-bottom: 16px;
}


/*####################*/
/*### ---RESULT--- ###*/
/*####################*/

.custom-border-sum
{
    border-style: solid;
    border-color: black;
    border-width: 2px 0px 0px 0px !important;
}

.custom-fine-print
{
    font-size: 14px;
}


/*########################*/
/*### ---VIAND LIST--- ###*/
/*########################*/

#search-result {
    overflow-y: scroll;
    max-height: 100%;
}

#search-result, #viand-list {
    opacity: 1;
    display: block;
    transition: all 200ms ease-in-out !important;
    -webkit-transition: all 200ms ease-in-out !important;
}

#search-result .hidden, #viand-list .hidden {
    opacity: 0;
    display: none;
}

#custom-viand-list-search-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 5px;
    border: 1px solid #9c27b0;
    border-radius: 100px;
}

#viand-list-search-input {
    flex-basis: 90%;
    margin: 0px 5px;
    border: 0px;
}

#viand-list-search-clear-icon {
    visibility: hidden;
    opacity: 0;
    cursor: pointer;
    transition: all 400ms ease-in-out !important;
    -webkit-transition: all 400ms ease-in-out !important;
}

#viand-list-search-clear-icon.display {
    visibility: visible;
    opacity: 1;
}

.viand-list-category {
    border-radius: 3px;
    background-color: white;
}

.viand-list-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 10px;
    cursor: pointer;
    background-position: center;
    background-size: 100%;
    color: white;
    font-weight: bold;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.custom-viand-name-td {
    width: 50%;
}

.custom-viand-iodine-concentration-td {
    text-align: right !important;
    padding-right: 16px !important;
}

.viand-list-wrapper {
    width: 100%;
    flex-basis: 1px;
    overflow: hidden;
    max-height: 0px;
    transition: all 500ms ease-in-out !important;
    -webkit-transition: all 500ms ease-in-out !important;
}

.viand-list-open-icon {
    text-align: center;
    font-size: 4rem;
    transition: all 200ms ease-in-out !important;
    -webkit-transition: all 200ms ease-in-out !important;
}

.viand-list-open-icon.opened {
    transform: rotate(180deg);
}

.custom-viand-table {
    border: 0px;
}

.custom-viand-table tr {
    background-color: white !important;
}
    
.custom-viand-table tr:hover:not(.category-title) {
    background-color: #f1f1f1 !important;
}

.viand-list-category-title {
    font-size: 2.7rem;
    display: inline-block;
}

@media only screen and (max-width: 1001px) {
    .viand-list-category-title {
        font-size: 2.7rem;
    }
}

@media only screen and (max-width: 601px) {
    .viand-list-category-title {
        font-size: 1.8rem;
    }
}
    

/*####################*/
/*### ---FOOTER--- ###*/
/*####################*/

#footer-wrapper {
    flex-shrink: 0;
    font-size: 85%;
}

#footer
{
    padding: 3px 6px 3px 6px;
    margin: 0px auto;
    width: 100%;
    max-width: 1000px;
    min-width: 320px;
}

#footer a
{
    text-decoration: none;
}

.custom-copyright
{
    float: right;
}


/* For desktop */
@media only screen and (min-width: 1001px)
{
    body
    {
        font-size:19px !important;
    }

    .custom-padding
    {
        padding: 15px;
    }

    .custom-button-width
    {
        width: 200px;
    }

    .custom-startbutton-width
    {
        width: 240px;
    }

    #header
    {
        padding: 15px 0px;
    }

    .custom-navbar-border
    {
        border-style: solid;
        border-color: #9c27b0;
        border-width: 1px 1px 1px 1px;
    }

    .custom-card-selected img
    {
        height: 200px;
    }

    .custom-card-transition img
    {
        height: 200px;
    }
}

/* For tablets */
@media only screen and (min-width: 601px) and (max-width: 1000px)
{
    body
    {
        font-size:19px !important;
    }

    #content
    {
        margin-left: 10px;
        margin-right: 10px;
    }

    .custom-padding
    {
        padding: 15px;
    }

    .custom-button-width
    {
        width: 210px;
    }

    .custom-startbutton-width
    {
        width: 240px;
    }

    #header
    {
        padding: 15px 0px;
    }

    .custom-navbar-border
    {
        border-style: solid;
        border-color: #9c27b0;
        border-width: 1px 0px 1px 0px;
    }

    .custom-card-selected img
    {
        height: 180px;
    }

    .custom-card-transition img
    {
        height: 180px;
    }
}

/* For mobile phones: */
@media only screen and (max-width: 600px)
{
    .custom-card-transition span, .custom-card-selected span {
        font-size: 31px;
    }

    .card-link {
        font-size: 20px;
    }

    body
    {
        font-size: 16px !important;
    }

    h1, h2, h3, h4, h5, h6
    {
        line-height: 1.2em;
        text-align: center;
    }
    
    h2 {
        font-size: 1.5em;
    }

    #content
    {
        margin-left: 5px;
        margin-right: 5px;
    }

    .custom-padding
    {
        padding: 5px;
    }

    .custom-button-width
    {
        width: 145px;
    }

    .custom-startpage-form {
        width: 100%;
    }

    .custom-startbutton-width
    {
        display: block;
        margin: 0 auto;
        width: 240px;
    }

    .custom-navbar-border
    {
        border-style: solid;
        border-color: #9c27b0;
        border-width: 1px 0px 1px 0px;
    }

    #navigation
    {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 999;
        top: 0;
        left: 0;
        background-color: #111 !important;
        border: 0;
        overflow-x: hidden;
        padding-top: 60px;
        opacity: 0.95;
        transition: all 0.5s ease-in-out;
        -webkit-transition: all 0.5ms ease-in-out;
    }

    #navigation div
    {
        margin-top: 50px;
        margin-left: auto;
        margin-right: auto;
    }

    #navigation a
    {
        padding: 8px 40px 8px 8px;
        text-decoration: none;
        height: 55px;
        font-size: 25px;
        color: #818181;
        display: block;
        text-align: right;
        transition: 0.3s;
        width: 100%;
    }
    
    #header {
        padding: 10px 0px;
    }
}

.calc-link-wrapper {
    display: flex;
    justify-content: center;
}

.calc-link {
    display: block;
    margin: auto;
    background-color: #9c27b0;
    text-decoration: none;
    font-weight: bold;
    padding: 10px;
    color: #fff;
}