@font-face {
    font-family: 'Robota-LightItallic';
    src: url(../fonts/Roboto/Roboto-LightItalic.ttf);
}

@font-face {
    font-family: 'Roboto-Regular';
    src: url(../fonts/Roboto/Roboto-Regular.ttf)
}

@font-face {
    font-family: 'Roboto-Bold';
    src: url(../fonts/Roboto/Roboto-Bold.ttf);
}

header {
    background-color: #1F2937;  
    display: flex;
    flex-direction: row; 
    justify-content: space-around;
    align-items: center;
    user-select: none;
}

.logo p {
    font-family: 'Roboto-Regular', sans-serif;
    font-size: 24px;
    color: #F9FAF8;  
    padding-top: 0.8em;
}

.menu {
    width: 200px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 0.8em;
    list-style: none;
}

.menu a {
    text-decoration: none;
    font-size: 18px;
    color: #E5E7EB;
    font-family: 'Robota-Regular', sans-serif;
    transition: all 0.3s linear;
}

.active {
    pointer-events: none;
    color: #cef1ff !important;
}

.menu a:hover {
    color: #cef1ff;
}

#hero {
    height: 50vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: #1F2937;
    user-select: none;
}

.hero_text {
    padding-left: 17%;
    padding-right: 3%;
    padding-bottom: 5%;
}

.hero_text h2 {
    font-family: 'Roboto-Bold', sans-serif;
    font-size: 48px;
    color: #F9FaF8;
    margin: 0.2em 0;
}

.hero_text p {
    font-family: 'Robota-Regular', sans-serif;
    font-size: 18px;
    color: #E5E7EB;
    text-align: start;
    margin: 0.2em 0;
}

.hero_text button {
    background-color: #3882F6;
    color: #fff;
    height: 5vh;
    width: 8vw;
    padding: 5px 25px;
    border-radius: 8px;
    margin-top: 1%;
    transition: all 0.3ms linear;
    cursor: pointer;
}

.hero_text button:hover {
    background-color: #fff;
    color: #1770ff;
}

.hero_image {
    padding-right: 17%;
    padding-bottom: 5%;
}

.hero_image img {
    width: 33vw;
    height: 33vh;
    opacity: 0.8;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.hero_image img:hover {
    opacity: 1;
}

#services {
    margin-top: 1em;
    padding-top: 0.5em;    
}

#services h2 {
    font-family: 'Roboto-Bold', sans-serif;
    font-size: 36px;
    text-align: center;
    color: #1F2937;
}

.services_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.services_content {
    margin: 0 0.5em;
    padding: 0 0.5em;
    display: flex;
    flex-direction: column;
}

.services_container img {
    height: 14vh;
    width: 7vw;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.075, 0.152, 0.155, 0.25);
}

.services_container img:hover {
    transform: scale3d(1.1, 1.1, 1.1)
}

.services_content figcaption {
    display: flex;
    width: 7vw;
    padding-top: 0.4em;
    font-family: 'Robota-Regular',  sans-serif;
    user-select: none;
}

.services_content small {
    flex: 1;
    text-align: center;
}

article {
    margin-top: 5em;
    background-color: #E5E7EB;
    display: flex;
}

.article_content {
    padding: 1em 0;
    width: 40%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.article_content p {
    font-family: 'Robota-LightItallic', sans-serif;
    font-size: 36px;
    color: #1F2937;
    margin-bottom: 0.5em;
}

.article_content span {
    align-self: flex-end;
    padding-right: 4em;
    padding-bottom: 3em;
    font-family: 'Roboto-Bold', sans-serif;
}

#call_to_action {
    margin: 5em 12em;
    padding: 1em 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background-color: #3882F6;
    user-select: none;
}

#call_to_action h3 {
    margin-bottom: 0.2em;
    color: #fff;
    font-family: 'Robota-Regular', sans-serif;
}

#call_to_action p {
    margin-top: 0.2em;
    color: #fff;
    font-family: 'Robota-Regular', sans-serif;
}

#call_to_action button {
    color: #fff;
    font-family: 'Robota-Regular', sans-serif;
    border-color: #fff;
    border-radius: 5px;
    background-color: #3882F6;
    height: 4vh;
    width: 8vw;
    cursor: pointer;
    transition: all 0.3ms linear;
}

#call_to_action button:hover {
    background-color: #F9FaF8;
    color: #1770ff;
}

footer {
    background-color: #1F2937;
    display: flex;
    height: 10vh;
}

footer p {
    margin: auto;
    color: #fff;
    user-select: none;
}

/* Contact us */

.contact-section {
    background: url() no-repeat center;
    background-size: cover;
    padding: 40px 0;
}

.contact-section h1 {
    text-align: center;
    color: #ddd;
}

.border {
    width: 100px;
    height: 10px;
    background: #1F2937;
    margin: 40px auto;
}

.contact-form {
    height: 590px;
    max-width: 600px;
    margin: auto;
    padding: 0 10px;
    overflow: hidden;
}

.contact-form-text {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 16px 0;
    border: 0;
    background: #1F2937;
    padding: 20px 40px;
    outline: none;
    color: #ddd;
    transition: 0.5s;
}

.contact-form-text:focus {
    box-shadow: 0 0 10px 4px #1F2937;
}

textarea.contact-form-text {
    resize: none;
    height: 260px;
}

.contact-form-btn {
    float: right;
    border: 0;
    background: #1F2937;
    color: #fff;
    padding: 12px 50px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.5s;
}

.contact-form-btn:hover {
    background: #2980b9;
}

/* Juan Story Page */

.ourstory h1 {
    text-align: center;
    color: #ddd;
}

@keyframes slidy {
  0% { left: 0%; }
  20% { left: 0%; }
  25% { left: -100%; }
  45% { left: -100%; }
  50% { left: -200%; }
  70% { left: -200%; }
}

div#slider { 
    border-radius: 5%;
    overflow: hidden;
    width: 30%;
    position: relative;
    left: 35%;
    box-shadow: 0 0 10px 10px #E5E7EB;  
}

div#slider figure {
    position: relative;
    width: 500%;
    margin: 0;
    left: 0;
    text-align: left;
    animation: 30s slidy infinite;
}

  div#slider figure img { 
    width: 20%;
    height: 100%;
    float: left;
}

div.text1 {
    padding: 15px;
    margin: 3em;
    text-align: center;
}

div.text1 p {
    font-size: 20px;
    font-family: 'Robota-Regular',  sans-serif;
}


/* Responsiveness */
@media only screen and (max-width: 1241px) {

#hero {
    flex-direction: column;
    height: auto;
    }
    .hero_image{
        padding-right: 0;
    }
    .hero_image img{
        width: 72vw;
        height: 33vh;
    }
    .services_container {
        flex-direction: column;
        align-items: center;
    }
    .services_container img{
        height: 200px;
        width: 200px;
        border-radius: 10px;
        cursor: pointer;
    }
    .services_content figcaption {
        display: flex;
        width: auto;
        padding-top: 0.4em;
        font-family: 'Robota-Regular',  sans-serif;
        user-select: none;
        margin-bottom: 15px;
    }
    .services_content {
        display: block;
    }

    div#slider { 
        left: 10%;
        width: 80%;
        position: sticky;
    }

    .hero_text button {
        padding: 0;
    }

    #call_to_action button {
        height: auto;
        width: auto;
    }

    #call_to_action {
        margin: auto;
    }

    .article_content p {
        font-size: 22px;
    }
    
    .contact-section {
        padding: 0;
    }

}

@media only screen and (max-width: 630px) {
    header {
        flex-direction: column; 
    }

    .logo p {
        font-family: 'Roboto-Regular', sans-serif;
        font-size: 24px;
        color: #F9FAF8;  
        padding-top: 0.8em;
    }

    .menu {
        width: 200px;
        display: flex;
        flex-direction: row;
        padding-top: 0.8em;
        list-style: none;
    }
    .hero_text button {
       width: 54px;
    }

}

