/* RESET CSS FROM https://www.joshwcomeau.com/css/custom-css-reset/ */

/* 1. Use a more-intuitive box-sizing model. */
*,
*::before,
*::after {
    box-sizing: border-box;
}
/* 2. Remove default margin */
* {
    margin: 0;
}
/* 3. Allow percentage-based heights in the application */
html,
body {
    height: 100%;
}
/* Typographic tweaks!
4. Add accessible line-height
5. Improve text rendering */
body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}
/* 7. Remove built-in form typography styles */
input,
button,
textarea,
select {
    font: inherit;
}
/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}
/* 9. Create a root stacking context */
#root,
#__next {
    isolation: isolate;
}

/* CSS GLOBAL FOR VIGIRESP */

/* Official Respe font */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: local('Lato Regular'), local('Lato-Regular'), url('/fonts/lato-v22-latin-regular.woff2') format('woff2'),
        /* Super Modern Browsers */ url('/fonts/lato-v22-latin-regular.woff') format('woff'),
        /* Modern Browsers */ url('/fonts/lato-v22-latin-regular.ttf') format('truetype'),
        /* Safari, Android, iOS */ url('/fonts/lato-v22-latin-regular.svg#Lato') format('svg'); /* Legacy iOS */
    font-display: swap;
}

:root {
    --text-color: #444;
    --blue: #224d67;
    --green: #3bb182;
    --orange: #eb5f20;
    --grey-light: #e6ecf3;
    --blue-dark: #093343;
    --blue-light: #2e4e61;
    --no-alert: #1f7747;
    /* --unknow-alert: #1f7747; */
    --unknow-alert: lightgrey;
    --low-alert: #e8be26;
    --medium-alert: #eb6a0e;
    --high-alert: #c11313;
    --grid-spacing-vertical: 0;
    --grid-spacing-horizontal: var(--spacing);
    --spacing: 1rem;
}

body {
    font: Lato, Helvetica Neue, Helvetica, Arial, sans-serif !important;
    font-style: normal !important;
    font-variant-ligatures: normal !important;
    font-variant-caps: normal !important;
    font-variant-numeric: normal !important;
    font-variant-east-asian: normal !important;
    font-weight: 400 !important;
    font-stretch: normal !important;
    font-size: 15px !important;
    line-height: normal !important;
    font-family: Lato, 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    color: var(--text-color);
}

.container {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    justify-content: flex-start;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}
@media (min-width: 1200px) {
    .container {
        max-width: 1180px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-transform: uppercase;
    text-align: center;
    overflow-wrap: break-word;
}

h1 {
    letter-spacing: 2px;
    font-size: 2em;
    line-height: 1.5em;
    margin-bottom: 0.5rem;
    font-weight: 400;
}
h2 {
    letter-spacing: 2px;
    font-size: 1.4em;
    line-height: 1.5em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
h3,
h4,
h5,
h6 {
    margin: 0.5rem;
}

.italic {
    font-style: italic;
}
/**
* Grid
* Minimal grid system with auto-layout columns
* From Pico.css
*/
.grid {
    grid-column-gap: var(--grid-spacing-horizontal);
    grid-row-gap: var(--grid-spacing-vertical);
    display: grid;
    /* grid-template-columns: 1fr; */
    grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
    margin: 0;
}
/* @media (min-width: 992px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
    }
} */
.grid > * {
    min-width: 0;
}

/* HEADER */

header {
    margin-bottom: 0rem;
}

header .top-logo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 576px) {
    header .top-logo {
        justify-content: space-around;
        align-items: flex-start;
    }
    .logo {
        margin: 10px 0 10px -15px !important;
    }
    .logo-respe {
        margin: 10px -20px 0 0 !important;
    }
}

header > nav {
    background-color: var(--blue);
    color: var(--grey-light);
}

.logo {
    margin: 30px 0 10px -15px;
}
.logo img {
    margin-left: 37px;
}

.main-navigation {
    list-style-type: none;
    display: flex;
    flex-direction: row;
}

.main-navigation li {
    height: 60px;
    display: inline-block;
}

.main-navigation li a {
    display: block;
    color: var(--grey-light);
    height: 60px;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 22px 10px 0;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    text-decoration: none !important;
}
.main-navigation li a:hover,
.main-navigation li a.active {
    background-color: var(--blue-dark);
}

@media (max-width: 576px) {
    .main-navigation {
        max-width: 540px;
        justify-content: center;
    }
    .main-navigation li {
        height: 40px;
    }
    .main-navigation li a {
        height: 40px;
        font-size: 9px;
        letter-spacing: 0px;
        text-transform: uppercase;
        padding: 15px 10px 0;
    }
}

/* MAIN CONTENT */

body > main {
    padding: 0px 0;
    color: var(--blue-dark);
}

/* User Location section */

.user-location-back {
    background-color: #fff;
    padding-top: 0px;
    padding-bottom: 10px;
    margin-bottom: -39px;
    position: relative;
    z-index: 3;
}
.user-location {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 5px;
}
.user-location-title {
    width: 50%;
    text-align: left;
}
.user-location-title h2 {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: left;
    color: #f35d19;
}
.user-location-title p {
    font-size: 1rem;
    text-align: left;
}

.user-location-form {
    width: 50%;
    display: flex;
    flex-direction: row;
}
.user-location-form div {
    margin-right: 1rem;
    width: 50%;
}
.react-autosuggest__container,
.react-autosuggest__suggestions-container--open {
    width: 100% !important;
}

.user-location-form h3 {
    color: #2e4e61;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
    text-align: left;
    font-size: 1.1rem;
}
.user-location-form select,
.user-location-form input {
    width: 100%;
    height: 35px;
    background-color: #fff;
    border: 2px solid #2e4e61;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 0 6px;
    font-size: 15px;
    -webkit-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (max-width: 992px) {
    .user-location {
        flex-direction: column;
    }
    .user-location-title {
        width: 100%;
    }
    .user-location-title h2 {
        font-size: 0.9rem;
        text-align: center;
    }
    .user-location-title p {
        font-size: 0.9rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    .user-location-form {
        width: 100%;
        display: flex;
        flex-direction: row;
    }
}
@media (max-width: 576px) {
    .user-location-form {
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .user-location-form div {
        margin-right: 1rem;
        width: 100%;
    }
    .user-location-form h3 {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    .user-location-back {
        padding-bottom: 10px;
    }
}

/* FOOTER */
body > footer {
    padding-top: 100px;
    position: relative;
    z-index: 5;
    color: #fff !important;
    height: 584px;
    overflow: hidden;
}

.footer-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
@media (max-width: 991px) {
    footer {
        min-height: 970px;
    }
    .footer-grid {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .footer-nav {
        min-height: 985px;
    }
    .footer-form {
        margin-top: 200px;
        width: 300px;
    }
    .footer-second-menu {
        margin-top: 20px;
    }
    .copyright {
        margin-top: -15px !important;
    }
}
@media (max-width: 575px) {
    .footer-form {
        width: 365px !important;
    }
    .footer-form-content h3 span {
        display: none !important;
    }
    .copyright {
        min-height: 36px;
        font-size: 0.7rem;
    }
}

.footer-form {
    border-top: 4px solid #f35d19;
    height: 370px;
    width: 500px;
    background-color: #fafafa;
    -webkit-transform: skewY(5deg) translateY(-150px);
    transform: skewY(5deg) translateY(-150px);
    box-shadow: 5px 5px 8px #303030;
    color: var(--blue-dark);
}

.footer-form-wrapper {
    margin-top: 30px;
    padding-top: 1px;
    -webkit-transform: skewY(-5deg);
    transform: skewY(-5deg);
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
}

.footer-form-content {
    height: 430px;
    background-color: #fafafa;
    background-repeat: no-repeat;
    background-size: 180px;
    background-image: url('/megaphone.png');
}

.footer-form-content h3 {
    color: #2e4e61;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 500;
}

.footer-form-content h3 span {
    display: inline-block;
    width: 50px;
    border-top: 2px solid #2e4e61;
    margin: 7px;
}

.footer-form-content p {
    color: #000;
    text-transform: unset !important;
    text-align: center;
    font-weight: 400;
    width: 90%;
    margin: 20px auto 0;
    font-size: 1rem;
    letter-spacing: 1px;
}

#alert-email {
    padding: 15px 0;
    width: 80%;
    margin: auto;
}
#alert-email label {
    color: #2e4e61;
    font-weight: 600;
    margin-bottom: 10px;
    display: inline-block;
}
#alert-email select,
#alert-email input {
    width: 100%;
    height: 35px;
    background-color: #fff;
    border: 2px solid #2e4e61;
    margin-bottom: 10px;
    padding: 0 6px;
    font-size: 15px;
    -webkit-transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
#submitAlertForm {
    width: 55% !important;
    display: table;
    margin: 1rem auto !important;
    border-radius: 4px;
    border: 2px solid #2e4e61;
    text-align: center;
    color: #fff;
    background-color: #022c3c !important;
    text-transform: uppercase;
    font-size: 1rem;
    height: unset;
    font-weight: 700;
    position: relative;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    padding: 8px 0;
}

.footer-nav {
    background-color: var(--blue);
    -webkit-transform: skewY(-2deg) translateY(14px);
    transform: skewY(-2deg) translateY(14px);
    min-height: 490px;
}

.footer-nav-wrapper {
    -webkit-transform: skewY(2deg);
    transform: skewY(2deg);
    padding-top: 80px;
}
.footer-nav p {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.footer-nav ul {
    list-style-type: none;
    padding-left: 0;
}
.footer-nav a {
    line-height: 20px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: #fff !important;
    text-decoration: none;
}
.copyright {
    text-align: center;
    padding: 10px;
    background-color: var(--blue-light);
    margin-bottom: 0;
    margin-top: -41px;
    z-index: 5;
    position: relative;
}

#error-page {
    min-height: 600px;
    margin-bottom: -200px;
}
@media (min-width: 992px) {
    #error-page {
        background-image: url(/error-background.jpg);
        background-repeat: no-repeat;
        background-size: contain;
        min-height: 800px;
        margin-bottom: -200px;
    }
}

#error-page article {
    padding-top: 100px;
}

#error-page article h1 {
    text-transform: uppercase;
    font-size: 36px;
}

#error-page article h2 {
    text-transform: inherit;
    font-size: 18px;
}
#error-page article img {
    margin-bottom: 2rem;
}
