@import "load.scss";
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300;600;700&display=swap');
@import "colors.scss";
@import "mixin.scss";


body {
    font-size: 1.25rem;
    font-family: 'Libre Franklin', sans-serif;
    @include flex(flex, center, center, column);
    position: relative;

    main {
        padding: 1.25rem;
        text-align: center;

        .mainContent {
            @include flex(flex, center, center, column);

            .logo {
                width: 100%;
                max-width: 5.625rem;
                height: 1.6875rem;
                margin-bottom: 2.5rem;
            }

            h1 {
                font-size: 2.625rem;
                color: $Gray;
                font-weight: 400;
                margin-bottom: 0.75rem;

                strong {
                    color: $Very-Dark-Blue;
                }
            }

            p {
                font-size: 1.25rem;
                margin-bottom: 2.5rem;
            }

            form {
                margin-bottom: 4.375rem;
                width: 100%;

                input[type="email"] {
                    width: 100%;
                    max-width: 26.25rem;
                    font-size: 1.0625rem;
                    height: 3.5rem;
                    border: 1px solid $Pale-Blue;
                    border-radius: 2em;
                    padding: 10px 32px;
                }

                #res {
                    color: red;
                    position: absolute;
                    top: 32%;
                    left: 41.8%;
                    -ms-transform: translate(-50%, -50%);
                    transform: translate(-50%, -50%);
                }

                button {
                    max-width: 12.5rem;
                    height: 3.5rem;
                    border: none;
                    border-radius: 2em;
                    box-shadow: 0 5px 10px 2px rgb(76 123 243 / 20%);
                    background-color: $Blue;
                    cursor: pointer;
                    padding: 12px;
                    width: 100%;
                    color: $white;
                    font-weight: 600;
                    font-size: 1.125rem;
                    &:hover {
                        background-color: $Pale-Blue;
                    }
                }
            }

            .mainImage {
                width: 100%;
                max-width: 39.75rem;
                height: 24.25rem;
            }

            .socialIcons {
                @include flex(flex, center, center, row);
                margin-top: 4.0625rem;
                gap: 0.625rem;

                li {
                    padding: 0.625rem;
                    border: 0.0625rem solid $Blue;
                    border-radius: 50%;

                    &:hover {
                        background-color: $Blue;

                        img {
                            filter: invert(100%);
                        }
                    }

                    img {
                        width: 100%;
                        max-width: 1.25rem;
                        filter: invert(38%) sepia(96%) saturate(1137%) hue-rotate(208deg) brightness(98%) contrast(94%);
                        height: 1.25rem;
                    }
                }
            }

            span {
                margin-top: 1.25rem;
                font-size: 0.875rem;
            }
        }

        #card {
            width: 100%;
            max-width: 25rem;
            height: 9.375rem;
            font-size: 1.125rem;
            color: #000;
            position: absolute;
            top: 50%;
            left: 50%;
            -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
            background: $Blue;
            border-radius: 0.9375rem;
            opacity: 0;
            @include flex(flex, center, center, column);
            gap: 0.625rem;
            padding: 1.25rem;
            z-index: -1;

            p {
                color: #fff;
                font-size: 1.0625rem;
                font-weight: 600;
            }

            button {
                width: 12.5rem;
                height: 3rem;
                background: #fff;
                box-shadow: 0.125rem 0.1875rem 0.375rem rgba(7, 4, 59, 0.157043);
                border-radius: 1.5rem;
                font-weight: 600;
                border: none;
                cursor: pointer;
                &:hover {
                    background-color: $Pale-Blue;
                }
            }
        }
    }
}

@media (max-width: 41.875rem) {
    main {
        .mainContent {

            .logo {
                max-width: 3.75rem !important;
                height: auto !important;
            }

            h1 {
                font-size: 1.375rem !important;

                strong {
                    color: $Very-Dark-Blue;
                }
            }

            p {
                font-size: 0.8125rem !important;
            }

            form {
                max-width: 26.25rem;

                input[type="email"] {
                    width: 100%;
                    font-size: 0.9375rem;
                }

                #res {
                    top: 19% !important;
                    left: 39% !important;
                }

                button {
                    margin-top: 0.9375rem;
                    max-width: 100% !important;
                    height: auto;
                }
            }

            .mainImage {
                width: 100%;
                max-width: 39.75rem;
                height: auto !important;
            }
        }
    }
}