/* ------- General ------- */

:root {
    --text-color-white: #FFFFFF;
    --text-color-black: #000000;
    --text-color-primary: #BE4582;
    --text-color-secondary: #BFA1AC;
    --text-color-beige: #FFEFE3;
}

body #body_wrapper {
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    background-color: var(--text-color-secondary);
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    background-image: url("img/background.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

body header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 35px 0;
    text-align: center;
}

body header a {
    position: relative;
    z-index: 10;
}

body header .gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.00) 0%, #000 100%);
    opacity: 0.6;
    z-index: 5;
}

@media screen and (max-width: 576px) {
    body #body_wrapper {
        padding-top: 0;
        padding-bottom: 0;
        flex-direction: column;
        background-size: auto;
        background-position: bottom center;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    body header {
        position: relative;
        padding: 15px 0;
        margin-bottom: 35px;
    }

    body header img {
        width: 125px;
        height: auto;
    }
}


/* ------- Opening Screen ------- */

.opening_screen {
    width: 100%;
    max-width: 1440px;
    z-index: 1000;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 35px;
}

.opening_screen .website_title_container {
    text-align: center;
}

.opening_screen .website_title_container img {
    height: auto;
    max-width: 100%;
}

.opening_screen .badges_container {
    position: relative;
    width: fit-content;
    transition: opacity ease-in 500ms;
}

.opening_screen .badges_container_replace {
    opacity: 0;
    display: none;
    height: 700px;
    transition: height ease-in 500ms;
}

.opening_screen p {
    color: var(--text-color-white);
    margin-bottom: 0;
    font-family: 'Chicle', serif;
    font-style: normal;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
    width: 350px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 75px 70px;
    background-image: url("img/opening_screen/badge_blue.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}

.opening_screen button {
    width: 125px;
    height: 125px;
    background-image: url("img/opening_screen/badge_green.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    background-color: transparent;
    border: none;
    color: var(--text-color-white);
    margin: 0;
    font-family: 'Chicle', serif;
    font-style: normal;
    font-size: 26px;
    line-height: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 29px;
    position: absolute;
    bottom: 62px;
    right: -78px;
    transform: rotate(-9deg);
}

@media screen and (max-width: 576px) {
    .opening_screen {
        padding: 0 10px;
    }

    .opening_screen .badges_container {
        margin-top: 50px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .opening_screen .badges_container_replace.show {
        height: 500px;
    }

    .opening_screen p {
        font-size: 16px;
        line-height: 18px;
        width: 275px;
        height: 275px;
        padding: 45px 40px;
    }

    .opening_screen button {
        margin-top: -75px;
        position: initial;
        width: 100px;
        height: 100px;
        font-size: 22px;
        line-height: 18px;
        padding: 28px 19px;
    }
}


/* ------- Form Screen ------- */

.form_backdrop {
    z-index: 10000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: #000;
    transition: opacity ease-in 500ms;
    display: none;
}

#generate_form {
    z-index: 10010;
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 33px 42px 47px 42px;
    background-color: var(--text-color-beige);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity ease-in 750ms, top ease-in 500ms;
    border: 23px solid transparent;
    border-image: url("img/form_screen/border.svg") 23 / 23px;
}

#generate_form .form_fields {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    column-gap: 45px;
}

#generate_form .form_fields .form_fields_col {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    row-gap: 10px;
    position: relative;
}

#generate_form .form_fields .form_fields_col:first-child {
    padding-right: 45px;
    border-right: 1px solid var(--text-color-black);
}

#generate_form .form_fields .form_field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    row-gap: 10px;
}

#generate_form .form_fields .form_field label {
    color: var(--text-color-black);
    font-family: 'Corben';
    font-size: 22px;
    font-weight: 400;
    line-height: 36px;
}

#generate_form .form_fields .form_field #sender,
#generate_form .form_fields .form_field #recipient {
    padding: 5px;
    max-width: 280px;
    border: none;
    background-color: var(--text-color-white);
    border: 2px solid var(--text-color-black);
    /* font */
    color: var(--text-color-black);
    font-family: Corben;
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
}

#generate_form .form_fields .form_field #recipient {
    width: 335px;
    max-width: 100%;
}

#generate_form .form_fields .form_field #sender:focus,
#generate_form .form_fields .form_field #recipient:focus {
    box-shadow: none;
    outline: none;
}

#generate_form .form_fields .form_field .form_check_list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 15px;
}

#generate_form .form_fields .form_field .form_check_list.form_check_list_politeness {
    flex-direction: row;
    column-gap: 20px;
}

#generate_form .form_fields .form_field .form_check_list label {
    cursor: pointer;
    position: relative;
    color: var(--text-color-black);
    display: flex;
    align-items: center;
    column-gap: 12px;
    /* font */
    font-family: Corben;
    font-size: 22px;
    font-weight: 700;
    line-height: normal;
}

#generate_form .form_fields .form_field .form_check_list input {
    opacity: 0;
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#generate_form .form_fields .form_field .form_check_list label::before {
    content: '';
    width: 30px;
    height: 30px;
    background-image: url("img/form_screen/checkbox.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}

#generate_form .form_fields .form_field .form_check_list label.checked::before {
    background-image: url("img/form_screen/checkbox_check.svg");
}

#generate_form .form_fields .form_stamp {
    align-self: flex-end;
    max-width: 100%;
    height: auto;
}

#generate_form button {
    width: 190px;
    height: 190px;
    background-image: url("img/form_screen/badge.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    background-color: transparent;
    border: none;
    color: var(--text-color-beige);
    margin: 0;
    font-family: 'Chicle', serif;
    font-size: 37px;
    font-weight: 400;
    line-height: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 63px 33px;
    position: absolute;
    bottom: 0px;
    right: 11px;
    transform: translateY(calc(100% + 25px)) rotate(-9deg);
}

#generate_form button:disabled {
    filter: brightness(0.7);
    cursor: default;
}

@media screen and (max-width: 992px) {
    #generate_form .form_fields {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        column-gap: 25px;
    }

    #generate_form .form_fields .form_fields_col:first-child {
        padding-right: 25px;
        border-right: 1px solid var(--text-color-black);
    }

    #generate_form .form_fields .form_field label {
        font-size: 20px;
        line-height: 28px;
    }

    #generate_form .form_fields .form_field #sender,
    #generate_form .form_fields .form_field #recipient {
        width: auto;
        max-width: 100%;
        /* font */
        font-size: 16px;
    }

    #generate_form .form_fields .form_field .form_check_list label {
        font-size: 16px;
    }

    #generate_form .form_fields .form_field .form_check_list label::before {
        width: 25px;
        height: 26px;
    }

    #generate_form button {
        width: 130px;
        height: 130px;
        font-size: 25px;
        line-height: 28px;
        padding: 33px 18px;
        transform: translateY(calc(100% + 25px)) rotate(-9deg);
    }
}

@media screen and (max-width: 576px) {
    #generate_form {
        margin: 25px 0;
        width: 90%;
        padding: 20px 15px 120px 15px;
    }

    #generate_form .form_fields {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        row-gap: 15px;
    }

    #generate_form .form_fields .form_fields_col:first-child {
        padding-right: 0;
        border-right: none;
        flex-direction: column-reverse;
    }

    #generate_form .form_fields .form_field #sender,
    #generate_form .form_fields .form_field #recipient {
        width: 100%;
    }

    #generate_form .form_fields .form_stamp {
        display: none;
    }

    #generate_form button {
        left: 50%;
        right: initial;
        transform: translate(-50%, calc(100% + 10px)) rotate(-9deg)
    }
}


/* ------- Select Screen ------- */

#select_form {
    z-index: 10010;
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 48px 42px 133px 42px;
    background-color: var(--text-color-beige);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 45px;
    opacity: 0;
    transition: opacity ease-in 750ms, top ease-in 500ms;
    border: 23px solid transparent;
    border-image: url("img/form_screen/border.svg") 23 / 23px;
}

#select_form h4 {
    margin: 0;
    color: var(--text-color-black);
    text-align: center;
    font-family: Corben;
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
}

#select_form .images_list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    min-width: calc(426px * 2 + 15px);
}

#select_form .images_list label {
    overflow: hidden;
    width: 426px;
    height: auto;
    aspect-ratio: 16/9;
    transition: border ease-in 150ms;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
}

#select_form .images_list label input {
    opacity: 0;
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#select_form .images_list label.checked {
    border: 8px solid var(--text-color-primary);
}

#select_form .images_list label img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale ease-in 500ms;
}

#select_form .images_list label:hover img {
    scale: 1.2;
}

#select_form button {
    width: 190px;
    height: 190px;
    background-image: url("img/form_screen/badge.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    background-color: transparent;
    border: none;
    color: var(--text-color-beige);
    margin: 0;
    font-family: 'Chicle', serif;
    font-size: 37px;
    font-weight: 400;
    line-height: 32px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 63px 33px;
    position: absolute;
    bottom: -75px;
    left: 50%;
    transform: translateX(-50%) rotate(-9deg);
}

#select_form .download img {
    width: 400px;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: scale ease-in 500ms;
}

@media screen and (max-width: 992px) {
    #select_form .images_list {
        min-width: calc(250px * 2 + 15px);
    }

    #select_form .images_list label {
        width: 250px;
    }
}

@media screen and (max-width: 576px) {
    #select_form {
        margin: 25px 0;
        width: 90%;
        padding: 20px 15px 120px 15px;
    }

    #select_form .images_list {
        width: 100%;
        min-width: initial;
    }

    #select_form .images_list label {
        width: 100%;
    }

    #select_form button {
        width: 120px;
        height: 120px;
        font-size: 25px;
        line-height: 28px;
        padding: 30px 18px;
        left: 50%;
        bottom: -15px;
        right: initial;
        transform: translateX(-50%) rotate(-9deg)
    }
}


/* ------- Download Modal ------- */

#download_modal {
    z-index: 10010;
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 48px 42px 133px 42px;
    background-color: var(--text-color-beige);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 30px;
    opacity: 0;
    transition: opacity ease-in 750ms, top ease-in 500ms;
    border: 23px solid transparent;
    border-image: url("img/form_screen/border.svg") 23 / 23px;
}

#download_modal h4 {
    margin: 0;
    color: var(--text-color-black);
    text-align: center;
    font-family: Corben;
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
}

#download_modal img {
    width: 500px;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: scale ease-in 500ms;
}

#download_modal button {
    width: 190px;
    height: 190px;
    background-image: url("img/form_screen/badge.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    background-color: transparent;
    border: none;
    color: var(--text-color-beige);
    margin: 0;
    font-family: 'Chicle', serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 63px 33px;
    position: absolute;
    bottom: -75px;
    left: 50%;
    transform: translateX(-50%) rotate(-9deg);
}

@media screen and (max-width: 576px) {
    #download_modal {
        margin: 25px 0;
        width: 90%;
        padding: 20px 15px 130px 15px;
        row-gap: 15px;
    }

    #download_modal h4 {
        font-size: 15px;
    }

    #download_modal img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    #download_modal button {
        width: 120px;
        height: 120px;
        font-size: 22px;
        line-height: 27px;
        padding: 35px 15px;
        left: 50%;
        bottom: -15px;
        right: initial;
        transform: translateX(-50%) rotate(-9deg)
    }
}


/* ------- Footer ------- */
body footer {
    height: 100px;
    width: 100%;
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 17px;
}

body footer .logos_container {
    z-index: 975;
    display: flex;
    flex-direction: row;
    column-gap: 16px;
}

body footer .logos_container a {
    display: flex;
    align-items: center;
}


body footer .gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, #000 100%);
    z-index: 5;
}

@media screen and (max-width: 992px) {
    body footer {
        padding-top: 25px;
        height: auto;
    }

    body footer .logos_container {
        row-gap: 16px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    body footer {
        padding-top: 75px;
        position: relative;
        height: auto;
    }

    body footer .logos_container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}