/* main elements */
html {
    font-size: 12px;
}

body, div, td {
    font-family: 'Poppins', sans-serif;
    color: #222222;
}

body {
    background-color: #fff;
    text-align: center;
}

#wrapper {
    width: 960px;
    min-width: 960px;
    max-width: 960px;
    margin-right: auto;
    margin-left: auto;
    display: block;
}

/* #header */
#header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 1em;
    margin-top: 22px;
}

#header a {
    margin-right: 13px;
}

#header input {
    width: 75px;
    font-size: 20px;
    border: 0;
    line-height: 30px;
    box-shadow: none;
    text-decoration: underline;
    height: 30px;
}

#yearPicker {
    display: inline-block;
    padding: 0 0 0 6px;
    cursor: pointer;
}

#country_select {
    font-size: 20px;
    border: 0;
    line-height: 30px;
    box-shadow: none;
    text-decoration: underline;
    height: 30px;
    padding-left: 15px;
    -webkit-appearance: none;
    background: url('../../img/arrow-down.svg') no-repeat right;
}

#country_select option:checked {
    background: #0044cc;
    color: #fff;
}

#country_select:focus {
    outline: none;
}

#input_cont {
    display: block;
    position: relative;
    width: 60px;
}

#input_cont::after {
    display: block;
    content: ' ';
    position: absolute;
    height: 8px;
    width: 12px;
    pointer-events: none;
    right: -9px;
    top: 11px;
    background: url('../../img/arrow-down.svg') no-repeat;
}

.datepicker-years td {
    width: 302px;
    height: 236px;
}

.datepicker-years span {
    font-size: 16px;
    line-height: 24px;
}

.datepicker-years .table-condensed thead {
    display: none
}

/* #main */
#main {
    display: flex;
    flex-direction: column;
}

.dot {
    border-radius: 50%;
    display: inline-block;
    height: 10px;
    width: 10px;
    margin-right: 10px;
    margin-left: 5px;
}

.line {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 40px;
}

/* text styles */

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: default;
}

h1 {
    font-size: 20px;
    line-height: 26px;
}

h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 30px;
    margin-top: 0;
    margin-bottom: 0;
    color: #222222;
}

h3 {
    font-size: 14px;
    line-height: 21px;
    font-family: 'Poppins', sans-serif;
    margin-top: 0;
    margin-bottom: 0;
    color: #222222;
    font-weight: 600;
}

h4 {
    font-size: 12px;
    line-height: 18px;
    font-family: 'Poppins', sans-serif;
    color: #222222;
    font-weight: 600;
}

h5 {
    font-size: 12px;
    line-height: 18px;
    font-family: 'Poppins', sans-serif;
    color: #9b9b9b;
}

.underlined {
    text-decoration: underline;
}

.past {
    color: #A5ADB7;
    background-color: #FFFFFF;
}

/* Tables */

.table {
    width: 100%;
    border: 1px solid #ECF0F0;
    border-radius: 4px;
    background-color: #FFFFFF;
    border-collapse: collapse;
    margin-top: 8px;
    margin-bottom: 0;
}

.table > tbody > tr > td {
    height: 28px;
    border: 1px solid #ECF0F0;
    border-radius: 4px;
    border-collapse: collapse;
    padding: 0;
    vertical-align: middle;
}

.table td:first-child {
    width: 110px;
}

.table span {
    display: flex;
    left: 0;
    margin-left: 15px;
}

#footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 22px;
    margin-bottom: 20%;
}

#topButton {
    visibility: hidden;
    position: fixed;
    width: 40px;
    height: 40px;
    z-index: 1030;
    outline: none;
    cursor: pointer;
    background: url('../../img/arrow_up_button.png') no-repeat center;
    background-size: contain;
    content: ' ';
    border: 0;
}

@media screen and (max-width: 980px) and (min-width: 768px) {
    html {
        font-size: 16px;
    }

    body {
        width: 100%;
    }

    #wrapper {
        width: 100%;
        min-width: 768px;
        max-width: 980px;
    }

    /* #header */
    #header {
        align-items: center;
        height: 72px;
        border: 1px solid #ECF0F0;
        margin: 0;
        box-shadow: 0 4px 8px rgba(186, 196, 209, 0.25);
    }

    /* #main */
    #main {
        min-width: 733px;
        margin: 0 20px 0 15px;
    }

    .line {
        margin-top: 35px;
        line-height: 24px;
    }

    /* text styles */
    h3 {
        font-size: 16px;
        line-height: 24px;
    }

    /* Tables */
    .table span {
        font-size: 14px;
        line-height: 21px;
    }

    .table td:first-child {
        width: 150px;
    }

    .table > tbody > tr > td {
        height: 50px;
    }

    #footer {
        margin-bottom: 5%;
    }

    /* years datepicker */
    .datepicker-dropdown {
        margin-top: -20px;
        margin-left: 7%;
    }

    .datepicker-years table tr td {
        width: 380px;
    }

    .datepicker-years table tr td span {
        height: 65px;
        width: 90px;
        margin: 0;
        padding: 15px 0 0 0;
        font-size: 22px;
        line-height: 30px;
    }

    #topButton {
        bottom: 25px;
        right: 25px;
    }

    .visible {
        visibility: visible !important;
    }
}

@media screen and (max-width: 768px) and (min-width: 320px) {
    html {
        font-size: 18px;
    }

    body {
        width: 100%;
    }

    #wrapper {
        width: 100%;
        min-width: 320px;
        max-width: 768px;
    }

    /* #header */
    #header {
        align-items: center;
        height: 72px;
        border: 1px solid #ECF0F0;
        margin: 0;
        box-shadow: 0 4px 8px rgba(186, 196, 209, 0.25);
    }

    /* #main */
    #main {
        min-width: 290px;
        margin: 0 15px 0 15px;
    }

    .line {
        margin-top: 35px;
        line-height: 24px;
    }

    /* text styles */
    h3 {
        font-size: 16px;
        line-height: 24px;
    }

    /* Tables */
    .table span {
        font-size: 14px;
        line-height: 21px;
    }

    .table td:first-child {
        width: 170px;
    }

    .table > tbody > tr > td {
        height: 75px;
    }

    #footer {
        margin-bottom: 5%;
    }

    /* years datepicker */
    .datepicker-dropdown {
        margin-top: -20px;
        margin-left: 7%;
    }

    .datepicker-years table tr td {
        width: 380px;
    }

    .datepicker-years table tr td span {
        height: 65px;
        width: 90px;
        margin: 0;
        padding: 15px 0 0 0;
        font-size: 22px;
        line-height: 30px;
    }

    .datepicker.datepicker-dropdown.dropdown-menu.datepicker-orient-right.datepicker-orient-bottom:after,
    .datepicker.datepicker-dropdown.dropdown-menu.datepicker-orient-right.datepicker-orient-bottom:before {
        display: none;
    }

    #topButton {
        bottom: 20px;
        right: 20px;
    }

    .visible {
        visibility: visible !important;
    }
}

@media screen and (max-width: 460px) and (min-width: 360px) {
    .datepicker.datepicker-dropdown.dropdown-menu.datepicker-orient-right.datepicker-orient-bottom {
        left: -45.562px !important;
    }

    .table span {
        display: block;
        left: 0;
        margin-left: 0;
    }
}

@media not all and (min-resolution:.001dpcm) {
    @media {
        .datepicker-days td.weekend-day,
        .datepicker-days td.working-day {
            outline: none;
        }
    }
}
