@import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');

html {
    --yellow-bg: #cbd3d8;
    --red: linear-gradient(45deg, #27b7fe, #0472ff);
    --hover-red: #0472ff;
    --gray-text: #919191;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;

    scroll-behavior: smooth;

    color: var(--gray-text);
    font-family: 'Rubik', sans-serif;
    scroll-padding: 8rem;
}

.mapboxgl-popup.mapboxgl-popup-anchor-top {
    max-width: none !important;
}

.mapboxgl-popup.mapboxgl-popup-anchor-bottom {
    max-width: none !important;
}

#markerWithExternalCss {
    background-image: url('./assets/marker.png');
    background-size: cover;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

.dropbtn {
    background: var(--red);
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
  }
  
.dropbtn:hover, .dropbtn:focus {
background: var(--hover-red);
}

#myInput {
width: 100%;
box-sizing: border-box;
background-image: url('./assets/search.png');
background-position: 14px 12px;
background-repeat: no-repeat;
font-size: 16px;
padding: 14px 20px 12px 45px;
border: none;
}

#myInput:focus {outline: 3px solid #ddd;}

.dropdown {
position: relative;
display: block;
}

.dropdown-content {
    opacity: 0.7;
display: none;

width: 100%;
position: absolute;
background-color: var(--yellow-bg);
min-width: 230px;
overflow: auto;
border: 1px solid #ddd;
z-index: 1;
}

.dropdown-content p {
color: #383737;
padding: 12px 16px;
text-decoration: none;
display: block;
display: none;

cursor: pointer;
}

.dropdown-content p.hidden {
    display: none;
}

.show {display: block;}

header nav {
    z-index: 4;

    position: fixed;
    top: 0;
    left: 0;

    height: 13vh;
    width: 100vw;

    display: flex;
    justify-content: space-around;
    align-items: center;

    padding: 0 10vw;

    background: #00284233;
    box-shadow: 0px 5px 15px 5px rgba(54, 54, 54, 0.1);
}

nav img {
    height: 50%;
}

nav .items {
    width: 60%;

    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

nav .items a {
    text-decoration: none;
}

nav .items a:hover {
    color: var(--hover-red);
    transition: 500ms;
}

nav .items button {
    font-size: 1rem;

    cursor: pointer;
    
    color: #fff;
    background: var(--red);

    padding: 8px 15px;
    border-radius: 5px;

    outline: 0;
    border: 0;
}

nav .items button:hover {
    background: var(--hover-red);
}

nav #mobile-toggle {
    display: none;

    cursor: pointer;

    z-index: 4;
}

main #bg-home {
   padding: 10vh 10vw 0 13vw;
    margin-bottom: 10px;
    width: 100%;
    height: 750px;
    background-image: url('./assets/bg-home.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

main #bg-home img {
    margin-bottom: 30px;

    max-width: 33%;
}

main #bg-home p {
    font-size: 1.5rem;
    color: #dddada;
    margin-bottom: 30px;
}

main #bg-home button {
    cursor: pointer;
    width: 150px;
    color: #fff;
    background: var(--red);
    font-size: 15px;
    padding: 15px 15px;
    border-radius: 5px;
    outline: 0;
    border: 0;
}

main #bg-home button:hover {
    background: var(--hover-red);
}

main #features {
    padding: 0 10vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding-top: 60px;
}

main #features .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    max-width: 170px;
}

main #features .card span {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #999999;
}

main #video-area {
    padding: 0 10vw;
    margin-top: 100px;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

main #video-area #video {
    width: 48.5%;
    height: 250px;
}

main #video-area #text {
    width: 40.5%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
}

main #video-area #text h2 {
    margin-bottom: 15px;
}

main #video-area #text button {
    cursor: pointer;

    margin-top: 15px;
    padding: 7px 25px;

    background: var(--red);
    color: #fff;
    border: 0;

    border-radius: 5px;
}

main #video-area #text button:hover {
    background: var(--hover-red);
}

main #screenshots {
    margin-top: 60px;
    padding: 50px 10vw;
    background-image: url('./assets/bg-banner.png');
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

main #screenshots h2 {
    font-size: 2.2rem;
    color: #fff;
}

main #screenshots p {
    color: #fff;
}

main #screenshots #images {
    margin-top: 20px;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

main #screenshots #images img {
    width: 24%;
}

main #faq {
    background-image: url('./assets/bg-faq.jpg');
    background-size: cover;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    padding: 170px 10vw 0 10vw;
}

main #faq #img-area {
    width: 50%;

    display: flex;
    justify-content: center;
    align-items: center;
}

main #faq #img-area img {
    width: 250px;
}

main #faq #questions {
    width: 50%;

    align-self: flex-start;

    margin-top: 30px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

main #faq #questions h3 {
    margin-bottom: 20px;

    font-size: 2rem;
}

main #faq #questions details {
    cursor: pointer;

    margin: 5px 0;

    width: 300px;
}

details[open] summary ~ * {
    animation: open 0.3s ease-in-out;
  }
  
  @keyframes open {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
}

details[open] summary:after {
    transform: rotate(45deg);
    font-size: 2rem;
    transform-origin: center;
    transition: 200ms linear;
}

main #faq #questions details summary {
    list-style: none;
    padding: 5px 10px 5px 30px;
    border: 1px solid var(--gray-text);
    border-radius: 50px;
}

main #faq #questions details summary::marker {
    display: none !important;
}

main #faq #questions details summary:after {
    content: "+";
    color: black;
    margin-left: 10px;
    font-size: 1.1rem;
}

main #faq #questions details[open] summary:after {
    content: "-";
    color: black;
    margin-left: 10px;
    font-size: 1.1rem;
}

main #faq #questions details p {
    margin-left: 30px;
    margin-top: 5px;
}

main #maps-area {
    margin-top: 60px;
}

main #maps-area #map {
    width: 100%;
    height: 400px;

    z-index: 0;
}

main #contact {
    background-image: url('./assets/bg-contact.jpg');
    background-size: cover;

    margin-top: 60px;
    padding: 50px 10vw;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}

main .container-texts {
    padding: 50px 3vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

main #contact h2 {
    font-size: 2.2rem;

    margin-bottom: 10px;
}

main #contact form {
    margin-top: 15px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

main #contact form input {
    background-color: transparent;
    border: 1px solid var(--gray-text);
    border-radius: 50px;
    padding: 7px 15px;

    outline: 0;
}

main #contact form #message {
    width: 90%;
    margin-bottom: 12px;
}

main #contact form .sided-inputs {
    margin-bottom: 12px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

main #contact form .sided-inputs input {
    margin: 0 20px;
}

main #contact form button {
    cursor: pointer;
    width: 130px;
    background: var(--red);
    color: #fff;
    border: 0;
    padding: 7px 10px;
    border-radius: 5px;
}

main #contact form button:hover {
    background: var(--hover-red);
}

footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;

    margin: 60px 10vw 60px 10vw;
}

footer #info {
    display: flex;
    max-width: 100%;
    height: 11rem;
    flex-direction: column;
    justify-content: flex-end;
}

footer #info img {
    margin-bottom: 5px;
    width: 50%;
}

footer #info .terms {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 1rem;
}

.container-terms {
    background-color: #f3f3f3;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 0 2rem 0;

}

.container-terms .content-terms {
    overflow: auto;
    width: 50vw;
    background-color: #f3f3f3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 5vw 2rem 5vw;
    border: 1px solid rgba(151, 151, 151, .5);
    border-radius: 5px;
}

.container-terms .content-terms h2 {
    text-align: center;
    margin-bottom: 1rem;
}
.container-terms .content-terms h1 {
    font-size: 20px;
}


.container-terms .content-terms p {
    text-align: justify;
    line-height: 2rem;
    margin: 1rem 0rem 1rem 0rem;
}

.container-terms .content-terms::-webkit-scrollbar-thumb {
    background-color: rgba(151, 151, 151, .5);
    border: 4px solid transparent;
    border-radius: 8px;
    background-clip: padding-box;
}

.container-terms .content-terms::-webkit-scrollbar {
    width: 15px;
}

footer #info #copyright {
    margin-top: 10px;
}

footer #help {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer #help img {
    margin-bottom: 15px;
}

footer #help #help-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

footer #help a {
    margin-top: 5px;
}

.back-to-top {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 3rem;
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 100%;
    transform: rotate(88deg);
    transition: all 300ms ease-in-out;
    background: #fff;
    opacity: 0.8;
    box-shadow: -2px 1px 4px 0.1px #57555594;
    z-index: 2;
}

.back-to-top:active {
    opacity: 1;
    transform: rotate(87deg) scale(1.1);
}

.back-to-top:hover {

    box-shadow: -2px 1px 4px 0.1px #575555;
}

@media screen and (max-height: 1024px) and (max-width: 768px) {
    .back-to-top {
        display: none !important;
    }
    main #bg-home img  {
        display: none;
    }
    footer #info {
        align-items: center;
    }
    footer #info .terms {
        align-items: center;
    }
    main #bg-home {
        justify-content: flex-start;
        padding-top: 7.5rem;
    }
}

@media (max-width: 1000px) {
    nav #mobile-toggle {
        display: inline;
    }

    nav .items {
        display: none;
        position: absolute;
        top: 0;
        left: 0;

        width: 100vw;
        height: 100vh;

        background-color: var(--yellow-bg);

        flex-direction: column;
    }

    main #bg-home {
        height: 600px;
    }

    main #features .card img {
        margin-top: 30px;
    }

    main #video-area {
        justify-content: center;
    }

    main #video-area #video {
        width: 100%;
    }

    main #video-area #text {
        width: 100%;
    }

    main #faq #img-area {
        width: 100%;
    }

    main #faq #questions {
        width: 100%;

        align-items: center;
    }
}

@media (max-width: 800px) {
    .container-terms .content-terms {
        width: 90vw;
    }
    main #bg-home {
        height: 500px;
    }

    main #screenshots #images {
        justify-content: center;
    }

    main #screenshots #images img {
        width: 70%;
        margin: 5px 0;
    }

    footer #info {
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 573px) {
 

    main #contact form .sided-inputs #name, main #contact form .sided-inputs #address {
        margin-bottom: 12px;
    }

    main #contact form #message {
        width: fit-content;
    }
}