/* Media Queries
   ========================================================================== */

@media only screen and (max-width: 1125px) {

    header {
        width: 100%;
        height: 7vw;

        margin-bottom: 4.8vw;

        background: url("/images/header.jpg") no-repeat top center;

        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        -webkit-background-clip: border-box;
        -moz-background-clip: border-box;
        -o-background-clip: border-box;
        background-clip: border-box;
    }

    footer {
        width: 100%;
        height: 11.46vw;

        margin-top: 4.8vw;
    }

    #wrapper {
        width: 100%;
    }

    .modal-content {
        width: calc(100% - 100px);
    }

}

@media only screen and (max-width: 768px) {

    section {
        /* padding: 1vw; /* non-iframe setting */
    }

    article {
        width: 100%;
        padding: 6.25vw;
    }

    /* Introduction */
    #introduction p {
        width: 100%;
    }

    /* Step 1 */
    .parentcombo_box {
        /*width: 31vw;
        height: 31vw;*/
    }

    .parentcombo_box img {
        width: 40%;
    }

    .parentcombo_box_text {
        top: 8%;
        margin-top: 7.5%;
    }

    #maternity_date_picker, #error_daddad, #error_dad, #error_adoption {
        width: 100%;
    }

    #maternity_date_picker article, #error_daddad article, #error_dad article, #error_adoption article {
        min-height: 26vw;

        padding: 10vw;
    }

    #flow_family {
        top: 6vw;
    }

    /* Step 7 */
    #flow_umbrella {
        bottom: 6.25vw;
        right: 6.25vw;
    }

    /* Flow */
    #warnings_section {
        width: 100%;
    }

    /* Modal */
    .modal-content {
        padding: 4vw 2vw;
        width: calc(100% - 25px);
    }

    /* Custom dot color in radio */
    input[type="radio"]:checked:before {
        position: inherit;
        top: inherit;
        left: inherit;
        width: inherit;
        height: inherit;

        content: inherit;
        display: inherit;

        border-radius: inherit;
        background-color: inherit;
    }

}

@media only screen and (max-width: 700px) {

    .color_box_container {
        flex-wrap: wrap;
    }

    .color_box {
        width: 50%;
    }

    .color_box:nth-child(1), .color_box:nth-child(2) {
        margin-bottom: 25px;
    }

}

@media only screen and (max-width: 650px) {

    .article_background_circle, .article_background_triangle {
        background-image: none;
    }
}

@media only screen and (max-width: 600px) {

    article {
        padding: 3%;
    }

    /* Step 5 */
    .agreement_overview_edit {
        right: 0px;

        width: auto;
    }

    #section_headers_mom .agreement_overview_type, #section_headers_dad .agreement_overview_type, #section_headers_mom .agreement_overview_text, #section_headers_dad .agreement_overview_text {
        display: none;
    }

    #section_headers_mom .agreement_overview_info, #section_headers_dad .agreement_overview_info {
        width: 62.5%;
    }

    #section_headers_mom .agreement_overview_using, #section_headers_dad .agreement_overview_using {
        width: 37.5%;
    }

    .agreement_overview_type, .agreement_overview_transfer {
        width: 100%;
        height: 40px;

        align-items: flex-end;
    }

    .agreement_overview_info, .agreement_overview_using {
        width: 33%;
    }

    .agreement_overview_amount {
        width: 35%;
    }

    .agreement_overview_text {
        width: 40%;
    }

    .agreement_overview_chosen {
        width: 25%;
    }

    .agreement_overview_chosen input, .agreement_transfer_chosen input {
        width: 35px;
        height: 35px;
    }

    #section_receive_mom .agreement_overview_text, #section_receive_part1_dad .agreement_overview_text, #section_receive_part2_dad .agreement_overview_text {
        width: 75%;
    }

    /* Flow */
    #overview_mom, #overview_dad, #overview_child {
        width: 100%;

        padding-left: 0;
        padding-bottom: 4vw;
        margin-bottom: 4vw;

        border-left-width: 0px;
    }

    #overview_mom, #overview_dad {
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-bottom-color: rgba(225, 225, 225, 1.0);
    }

    #overview_child {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    #controls_container {
        width: 94%;
    }

    #warnings_section article {
        padding: 0% 3%;
    }

    .maternity_flow_mom, .maternity_flow_dad {
        width: calc(50% - 7.5px);
    }

    .warning_flow_mom_text, .warning_flow_dad_text {
        width: calc(100% - 45px);
    }

    /* Misc */
    .icon_modal_sector, .icon_modal_contract, .icon_modal_distribute, .icon_modal_extension, .icon_modal_vacation {
        top: 3vw;
        right: 3vw;

        width: 20px;
        height: 20px;
    }
}

@media only screen and (max-width: 575px) {

    /* Flow */
    .maternity_flow_mom_text div, .maternity_flow_dad_text div {
        font-size: 14px;
    }

}

@media only screen and (max-width: 550px) {

    /* Step 1 */
    #flow_family {
        display: none;
    }

    /* Step 2 */
    .agreement_selection_input {
        width: calc(100% - 150px);
    }

    .agreement_selection_spacer {
        display: none;
    }

    #warning_box_maternity_fund_mom, #warning_box_unemployed_mom, #warning_box_selfemployed_mom, #warning_box_student_mom, 
    #warning_box_maternity_fund_dad, #warning_box_unemployed_dad, #warning_box_selfemployed_dad, #warning_box_student_dad {
        margin: 25px 0px 0px 0px;
        padding: 4vw;
    }

    /* Flow */
    #postpone_box_shared {
        width: 100%;
    }

}

@media only screen and (max-width: 525px) {

    /* Flow */
    .maternity_flow_mom_text div, .maternity_flow_dad_text div {
        font-size: 13px;
    }

}

@media only screen and (max-width: 510px) {

    /* Step 6 */
    .absence_text {
        width: calc(100% - 50px);
    }

    .absence_hide {
        display: none;
    }

    .absence_image, .absence_text {
        border-bottom-width: 0px;
    }

    .absence_spacer {
        width: 66%;

        padding-right: 25px;
        justify-content: flex-end;
    }

    .absence_chosen {
        width: 33%;
        justify-content: flex-end;
    }

}

@media only screen and (max-width: 485px) {

    /* Flow */
    .maternity_flow_mom_text div, .maternity_flow_dad_text div {
        font-size: 12px;
    }

}

@media only screen and (max-width : 460px) {

    /* Step 1 */
    .parentcombo_box {
        width: 46vw;
        height: 46vw;
    }

    /* Step 7 */
    .extension_select_input {
        width: calc(100% - 75px);
    }

    .extension_select_spacer {
        display: none;
    }

    /* Modal */
    .modal-content {
        width: calc(100% - 10px);

        padding: 2vw 0.5vw;
        font-size: 0.9em;

        hyphens: auto;
    }

}

@media only screen and (max-width: 450px) {

    html {
        font-size: 14px;
    }

    /* Step 1 */
    #maternity_date_icon {
        display: none;
    }

    /* Step 2 */
    .agreement_selection_text, .agreement_selection_input {
        width: 100%;
    }

    .agreement_selection_text {
        height: 40px;

        margin-bottom: 0px;
    }

    /* Step 4 */
    .infographic_overview_image {
        width: 10%;
    }

    .infographic_overview_image img {
        width: 100%;
        height: auto;
    }

    .infographic_overview_text, .infographic_overview_leave {
        display: inherit;

        width: 45%;

        padding: 10px 5px;

        text-align: center;
        hyphens: auto;
    }

    .infographic_overview_text b, .infographic_overview_leave b {
        width: 100%;
        display: inline-block;
    }

    /* Step 5 */
    .agreement_overview_amount {
        width: calc(40% - 45px);
    }

    .agreement_overview_text {
        width: calc(60% - 45px);
    }

    .agreement_transfer_text {
        width: calc(100% - 90px);
    }

    .agreement_overview_chosen, .agreement_transfer_chosen {
        width: 90px;
    }

    #section_receive_mom .agreement_overview_text, #section_receive_part1_dad .agreement_overview_text, #section_receive_part2_dad .agreement_overview_text {
        width: calc(100% - 90px);
    }

    /* Step 6 */
    .extension_select {
        width: calc(100% - 65px);
    }

    /* Step 7 */
    #flow_umbrella {
        width: 25vw;
    }

    /* Flow */
    .color_box {
        width: 100%;
        margin-bottom: 3.5% !important;
    }

    .color_box:last-of-type {
        margin-bottom: 0;
    }

}

@media only screen and (max-width: 320px) {

    .button_print {
        display: none;
    }

    /* Step 1 */
    #maternity_date_picker input {
        width: 100%;
    }

    /* Step 4 */
    .infographic_overview_leave {
        height: auto;
    }

    /* Step 7 */
    #flow_umbrella {
        display: none;
    }

}
