@import url('colors.css');
@import url('fonts.css');

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input, select, textarea {
    -ms-box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box; 
    box-sizing: content-box;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

body {
    margin: 0;
    padding: 0;
    position: relative;

    & .FloatButtons {
        position: fixed;
        z-index: 10;
        bottom: 15px;
        right: 20px;

        & .WhatsApp, & .Facebook {
            border-radius: 50%;
            width: 45px;
            height: 45px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.3s background-color;
            cursor: pointer;

            & img {
                width: 30px;
                height: 30px;
                filter: var(--filter-white);
            }
        }

        & .WhatsApp {
            background-color: #218345;

            &:hover {
                background-color: #075E54;
            }
        }

        & .Facebook {
            background-color: #3C5898;

            &:hover {
                background-color: #29487D;
            }
        }
    }
}

a {
    color: black;
    text-decoration: none;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.DocumentTitle {
    display: none;
}

.Content {
    display: grid;
    grid-template-rows: max-content auto max-content;
    min-height: 100svh;
    height: fit-content;
    max-width: 100svw;
    background-color: var(--gray-20);
    position: relative;
    overflow: hidden;

    & h1 {
        margin: 0;
    }

    & nav {
        padding: 0;
        background-color: white;
        display: flex;
        position: relative;
        justify-content: space-between;
        z-index: 10;

        & .Contact {
            display: none;
        }

        & .LogoContainer {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 20px;
            height: 80px;

            & a {
                display: flex;

                & img {
                    height: 70px;
                    width: auto;    
                }
            }
        }

        & .MenuContainer {
            display: flex;
            align-items: center;
            flex-grow: 1;
            padding-left: 30px;
            background-color: white;

            & ul {
                padding: 0;
                display: flex;
                list-style: none;
                flex-grow: 1;
                align-items: center;
                margin: 0;

                & li {
                    font-size: 1.1rem;
                    font-family: "Outfit";
                    padding-right: 30px;

                    & a {
                        display: flex;
                        align-items: center;

                        &:hover {
                            color: var(--contrast-60);
                        }
                    }

                    & span {
                        display: none
                    }
                }
            }

            & .FunctionsContainer {
                display: flex;
                align-items: center;
                padding-right: 30px;

                & img {
                    height: 25px;
                    width: 25px;
                    cursor: pointer;
                }

                & span {
                    margin: 0 10px;
                    font-weight: 600;
                    font-size: 1.2rem;
                    color: var(--gray-50);
                }

                & button {
                    border: 0;
                    border-radius: 5px;
                    height: 40px;
                    padding: 3px 8px;
                    font-size: 0.9rem;
                    font-weight: 600;
                    font-family: "Montserrat";
                    background-color: transparent;
                    cursor: pointer;
                    transition: all 0.3s;
                    color: var(--contrast-60);

                    &:hover {
                        background-color: var(--gray-30);
                    }
                }
            }
        }

        & .MenuIconContainer {
            display: none;
            overflow: hidden;

            & img {
                height: 30px;
                width: 30px;
            }

            & #CloseIcon {
                display: none;

                &.Open {
                    display: block;
                }
            }

            & #MenuIcon {
                display: block;

                &.Open {
                    display: none;
                }
            }
        }
    }

    & footer {
        background-color: var(--contrast-50);
        color: var(--font-light);
        font-family: 'Outfit';
        font-size: 0.8rem;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        position: relative;
    }

    @keyframes fade {
        from {
            opacity: .4
        }

        to {
            opacity: 1
        }
    }


    & .SectionContent {

        .FrontPage {
            position: relative;
            display: flex;
            align-items: center;
            transition: all 0.5s;
            opacity: 1;
            overflow: hidden;
            background-repeat: no-repeat;
            background-size: cover;
            vertical-align: middle;
            object-fit: cover;
            min-height: 180px;

            & .Message1 {
                padding: 0 50px;
                font-family: "Montserrat";
                color: var(--font-light);

                & h1 {
                    font-size: 2.5rem;
                    line-height: 95%;
                }

                & h4 {
                    margin: 0;
                    color: var(--gray-50);
                }

                & p {
                    font-size: 1.3rem;
                    line-height: 95%;
                }
            }
        }

        & .Banner1 {
            width: 80%;
            min-height: calc(100% - 60px);
            font-family: "OpenSans";
            margin: auto;
            position: relative;
            padding: 30px;
            background-color: var(--font-light);
            box-shadow: 0 0 50px rgba(0, 0, 0, .2)
        }

        & .buttonsbar {
            height: fit-content;
            padding: 8px 15px;
            bottom: 0;
            min-height: calc(50px - 30px);
            width: calc(100% - 30px);
            background-color: var(--gray-80);
            display: flex;
            justify-content: right;
            align-items: center;
            position: sticky;
            position: relative;
            z-index: 10;

            & .ResponseMessage {
                min-height: 40px; 
                display: none;
                align-items: center;
                padding: 0 15px; 
                position: absolute;
                bottom: 100%;
                left: 0;
                right: 0;             
                width: calc(100% - 30px);
                background-color: var(--back-mess);
                color: var(--text-mess);
                font-family: 'Outfit';
                font-size: 0.9rem;
                font-weight: 600;
    
                & img {
                    height: 25px;
                    margin-right: 8px;
                    filter: var(--icon-filter);
                }
    
                & p {
                    margin: 0;
                    line-height: 95%;
                }
            }
    
            & button, & #FalseButton {
                background-color: var(--contrast-40);
                border: 0;
                color: var(--font-light);
                padding: 5px 8px;
                border-radius: 7px;
                height: fit-content;
                font-family: "DarkerGrotesque";
                font-weight: 600;
                font-size: 1.2rem;
                display: flex;
                align-items: center;
                cursor: pointer;
                overflow: hidden;
                transition: background-color 0.3s;
    
                &:hover {
                    background-color: var(--contrast-50);
                }
    
                & img {
                    filter: var(--filter-white);
                    height: 20px;
                }
    
                & span {
                    margin: 0 5px;
                    display: flex;
                    align-items: center;
                }
    
                & select {
                    border: 0;
                    background-color: var(--main-light-25);
                    color: var(--font1);
                    font-family: "DarkerGrotesque";
                    font-weight: 600;
                    font-size: 1rem;
                }
            }
        }
    }
}

@media only screen and (max-width: 1050px) {
    .Content {

        & nav {
            justify-content: space-between;
            padding: 0;
            padding: 0 20px 0 10px;
            z-index: 1000;

            & .MenuContainer {
                display: block;
                position: absolute;
                top: 100%;
                bottom: 0px;
                width: 100%;
                max-width: 100svw;
                height: 94svh;
                max-height: 94svh;
                right: -100%;
                padding: 0;
                transition: all 0.3s;
                overflow: hidden;
                flex-grow: unset;

                & ul {
                    display: block;

                    & li {
                        padding: 10px 40px;
                        font-weight: 600;
                        font-size: 1rem;

                        & a {
                            display: flex;
                            justify-content: space-between;
                        }

                        & span {
                            display: block;
                        }
                    }
                }

                & .FunctionsContainer {
                    padding: 0 30px;
                    justify-content: space-between;
                    margin-bottom: 10px;

                    & span {
                        display: none;
                    }
                }

                &.Open {
                    right: 0;
                }
            }

            & .MenuIconContainer {
                display: flex;
                align-items: center;
            }

            & .LogoContainer {
                padding: 0;
            }
        }

        & footer {
            position: relative;
        }

        & .SectionContent {

            & .FrontPage {
                & .Message1 {
                    padding: 0 20px;                    

                    & h1 {
                        font-size: 2rem;
                    }
                }
            }

            & .Banner1 {
                padding: 15px;
                width: calc(100% - 30px);
                min-height: calc(100% - 30px);             
            }

            & .buttonsbar {
                width: calc(100% - 16px);
                padding: 8px;
            }
        }
    }
}