* {
    box-sizing: border-box;
}

/* #region Container and Body */

body {
    font-size: 62.5%;
    height: 100%;
}

body,
.button,
.button:focus,
.button:hover,
.form-control,
label,
.select2-container{
    font-family: Arial, Helvetica, sans-serif;
}

.body-content,
.body-content-result,
.nav-tabs-option {
    height: 100%;
    padding-left: 5%;
    padding-right: 5%;
    width: 100%;
}

.container {
    max-width: 100% !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
    width: 100% !important;
}

.line-bottom,
.line-bottom-detail {
    border-bottom: 1px solid lightgray;
    width: 100%;
}

.line-top {
    border-top: 1px solid lightgray;
}

.main-content {
    background-color: #ffffff !important;
    padding-bottom: 5em !important;
    padding-top: 5em !important;
    width: 100%;
}

/* #endregion */


/* #region general Widths, Paddings, Margins, Align, Display */

.display-flex{
    display: flex;
}

.display-none {
    display: none;
}

.w-90 {
    width: 90%;
}

/* #endregion */


/* #region Labels */

label {
    color: black;
    font-size: clamp(0.8rem, 1.5vw, 1.2rem);
    font-weight: bold;
    margin-bottom: 2px !important;
}

.small-label {
    font-size: 1.6em;
}

.small-label-normal {
    font-weight: normal !important;
}

.title-label {
    color: #06a6c1;
    font-size: clamp(1rem, 1.7vw, 1.5rem);
    white-space: nowrap;
}

.note-label {
    flex: 1 1 100%;
    padding-bottom: 1em;
    padding-top: 1em;
    white-space: normal !important;
    word-wrap: break-word;
}

/* #endregion */


/* #region Inputs */

input.checkbox-larger {
    transform: scale(2);
}

.select2 {
    width: 100% !important;
    max-width: inherit !important;
}

.result-option-class-layout .select2 {
    width: 15em !important;
}

.form-control,
.select2-container {
    font-weight: normal;
    font-size: 1.6em;
    color: black;
    height: 40px !important;
}

.form-control,
.select2-container--default .select2-selection--single {
    border: 1px solid #dadada !important;
    border-radius: 10px !important;
}

.select2-container .select2-selection--single {
    height: 38px !important;
    font-size: 16px !important;
}

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 35px !important;
        width: 30px !important;
    }

/* #endregion */


/* #region layout */

.button-layout {
    justify-content: center;
    padding-top: 3em;
}

.button-item-layout {
    gap: 3em 3em;
    width: 100%;
}

.city-container > div {
    padding-bottom: 1em;
}

.city-container.with-saf > div:nth-child(2) {
    padding-bottom: 0;
}

.city-layout {
    display: flex;
    width: 100%;
}

.city-item-layout {
    align-items: center;
    display: flex;
}

    .city-item-layout label {
        white-space: nowrap;
    }

.city-item-delete-layout {
    display: flex;
    justify-content: flex-end;
    width: 10%;
}

.city-saf-layout {
    display: none;
}

.input-layout,
.input-weight-layout {
    padding-top: 2em;
    gap: 3em 5em;
}

.input-item-layout {
    gap: 0 3em;
}

    .input-item-layout label {
        white-space: nowrap;
    }

    .input-item-layout input {
        width: 150px;
    }


.loader-layout {
    animation: spin 2s linear infinite;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #06a6c1;
    height: 50px;
    width: 50px;
}

/* #endregion */


/* #region Buttons */

.back-button {
    background-color: transparent !important;
    background-image: url('../Images/Back.png');
    background-position: unset !important;
    background-size: contain !important;
    font-size: unset !important;
    width: 15em !important;
    height: 4em !important;
}

.button,
.button:focus,
.button:hover {
    background-color: #e6f6f9;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: none;
    border-radius: 10px;
    color: #38a79d;
    font-size: 2em;
    font-weight: bold;
    outline: none;
    text-align: center;
    width: 100%;
}

    .button.active,
    .button.active:focus,
    .button.active:hover {
        background-color: #06a6c1 !important;
        color: white !important;
    }

.calculate-button {
    font-size: clamp(1.2rem, 2vw, 1.8rem) !important;
    height: 2.6em !important;
}

.delete-button {
    background-image: url('../Images/Delete.png');
    height: 3em !important;
    width: 3em !important;
}

.destination-button {
    font-size: unset !important;
    height: 6em !important;
}

.destination-add-button {
    background-image: url("../Images/AddDestination.png");
}

.destination-delete-button {
    background-image: url("../Images/DeleteAll.png");
}

.map-button {
    background-color: transparent !important;
    border: 2px solid #38a79d !important;
    color: #38a79d !important;
    height: 2.5em !important;
    width: 11em !important;
}

.nav-tabs > li > button {
    margin-right: 0.5em !important;
}

.nav-tabs-option {
    display: flex !important;
    flex-direction: row !important;
}

    .nav-tabs-option > li > button {
        border-radius: 10px 10px 0px 0px !important;
        width: 9em !important;
    }

.nav-tabs-result {
    border-bottom: none !important;
}

    .nav-tabs-result > li > button {
        width: 11em !important;
    }

.small-button {
    background-color: transparent !important;
    background-size: contain !important;
    font-size: unset !important;
}

.tooltip-button {
    background-image: url('../Images/TooltipIcon.png');
    height: 2.5em !important;
    padding-left: 4em !important;
}

.trip-button {
    margin-right: 0.5em !important;
    padding: 6px 12px !important;
    width: 7em !important;
}

/* #endregion */


/* #region Result */

.arrow-image {
    margin-left: 4em;
    margin-right: 4em;
    height: 50%;
    width: 50%;
}

.flag-image {
    height: 5em;
    max-height: 5em;
    max-width: 7em;
    min-height: 5em;
    min-width: 7em;
    width: 7em;
}

.result-layout {
    align-items: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

    .result-layout > .result-item-layout:nth-child(2) {
        background-color: #e6f6f9;
    }

    .result-layout > .result-item-layout:nth-child(3) {
        background-color: #cdf2f2;
    }

.result-header-layout {
    align-items: center;
    display: flex;
    height: 8em;
}

    .result-header-layout > div:nth-child(2),
    .result-header-layout > div:nth-child(5) {
        margin-left: 1em;
        margin-right: 1em;
    }

.result-item-layout {
    align-items: center;
    display: flex;
    height: 6em;
    min-width: 0;
}

.result-item-label-layout,
.result-item-value-layout {
    flex: 1 1 auto;
}

.result-item-value-layout {
    padding-right: 1em;
    text-align: right;
}

.result-note-layout {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    height: auto;
}

.result-option-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 3em 0;
    justify-content: space-between;
}

    .result-option-layout > div {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

.result-option-class-layout {
    align-items: center;
    display: flex;
    gap: 3em;
}

.result-option-map-layout {
    align-items: center;
    display: flex;
    flex: 1 1 60%;
    gap: 2em;
    min-width: fit-content;
    padding-left: 1em;
    white-space: nowrap;
}

.map {
    height: 100vh;
    margin-left: 5%;
    margin-right: 5%;
    max-width: 100vw;
}

.tab-pane-result {
    display: none;
}

    .tab-pane-result.active {
        display: block;
    }

/* #endregion */


/* #region FAQ */

.faq-div {
    padding-top: 2em;
}

    .faq-div a {
        color: #05c3c3 !important;
        font-size: 16px !important;
        font-weight: 400 !important;
    }

.faq-item-div {
    padding-top: 1em;
}

/* #endregion */


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/*ipad*/
@media (max-width:1024px) {


    /* #region layout */

    .input-layout {
        flex-direction: column;
    }

    /* #endregion */


    /* #region Result */

    .result-layout {
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }

    .result-item-layout {
        border-bottom: 1px solid lightgray !important;
        width: 100%;
    }
        .result-item-layout.is-empty {
            display: none;
        }

    .body-content-result {
        padding-left: 0%;
        padding-right: 0%;
    }

    .body-content-result-responsive {
        height: 100%;
        padding-bottom: 1%;
        padding-left: 5% !important;
        padding-top: 1%;
        padding-right: 5% !important;
        width: 100%;
    }

    .result-layout > .result-item-layout:nth-child(2) {
        background-color: unset;
    }

    .result-layout > .result-item-layout:nth-child(3) {
        background-color: unset;
    }

    .line-bottom-detail{
        border-bottom: none;
    }

    .line-bottom-detail:first-child .result-layout > .result-item-layout:nth-child(odd) {
        background-color: #e6f6f9;
    }

    .line-bottom-detail:first-child .result-layout > .result-item-layout:nth-child(even) {
        background-color: #ffffff;
    }

    .line-bottom-detail:last-child .result-layout > .result-item-layout:nth-child(even) {
        background-color: #e6f6f9;
    }

    .line-bottom-detail:last-child .result-layout > .result-item-layout:nth-child(odd) {
        background-color: #ffffff;
    }

    .result-option-layout {
        flex-direction: column;
    }

    /* #endregion */


    /* #region Tabs */

    .nav {
        flex-wrap: unset !important;
    }

    .nav-item {
        margin-right: 0;
        padding-left: 0.5em;
        padding-right: 0.5em;
    }

    .nav-tabs-result > li > button {
        width: 100%!important;
        font-size: 1.8em;
    }

    /* #endregion */


    /* #region Map */

    .map {
        height: 50vh;
    }

    /* #endregion */

}

/*mobile*/
@media (max-width:768px) {

    body {
        font-size: 50%;
    }

    /* #region layout */

    .button-item-layout {
        flex-direction: column;
    }

    /* #endregion */
   
}

