/* remove horizontal scroll bar */
body {
    overflow-x: hidden;
}

.javascript-training-buttons {
    background: #fff;
    padding: 25px;
    position: relative;
    margin-top: 0px;
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.javascript-training-buttons-text > .heading {
    font-size: 16px;
    color: #2f2f2f;
    line-height: 1em;
    font-weight: 800;
    margin-bottom: 10px;
    margin-right: 0;
    width: 420px;
}

.javascript-training-buttons-text > .description {
    font-size: 14px;
    color: #2f2f2f;
    line-height: 1.5em;
    margin: 0;
    width: 460px;
}

.javascript-training-buttons-text p {
    float: none;
}

.javascript-training-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.javascript-training-section button {
    background: #ffd814;
    border-color: #fcd200;
    border: 0px;
    font-size: 1em;
    border-radius: 50px;
    font-size: 12px;
    display: block;
    font-weight: 800;
    text-shadow: 0 -1px 1px rgb(0 0 0 / 25%);
    cursor: pointer;
    text-transform: uppercase;
    height: 40px;
    width: 240px;
    margin: 1rem;
}

.javascript-training-section button:hover {
    background-color: #f8ca00;
}

/* heading for "React Native Apps with FileMaker - JavaScript Training" */
.javascript-training-schedule-heading {
    font-size: 20px !important;
    margin-bottom: 10px !important;
}

/* add dash to heading on desktop */
.javascript-training-schedule-heading::after {
    content: "React Native Apps with FileMaker - JavaScript Training";
}

/* grey button that says "Click Here for More Info */
.grey-button {
    background-color: #f0f0f0 !important;
    color: #2466c8 !important;
}

.grey-button:hover {
    background-color: hsl(0, 0%, 84%) !important;
}

/* button in option 1 box */
.javascript-training-option-1-buttons {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    min-height: 60px;
}

.javascript-training-option-1-buttons button {
    width: 240px !important;
}

#fmcert {
    display: block;
    margin: 10px auto 40px;
    max-width: 400px;
    width: 100%;
}


.CERT-bg {
    width: 100%;
    min-width: 100%;
    background: url(../images/product/javascript-training-blue.jpg);
    background-size: cover;
    overflow: hidden;
    background-repeat: no-repeat;
    position: relative;
    display: block;
}

/* container for patch image */
.patch-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* patch image */
.patch-image-container > img {
    max-width: 160px;
}

/* patch text */
.patch-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media only screen and (max-width: 719px) {
    /* patch image size on mobile */
    .patch-image-container > img {
        max-width: 160px;
    }

    .left-wing2 {
        flex-direction: column;
    }

    .patch-image-container {
        margin-bottom: 30px;
    }
}

@media only screen and (min-width: 960px) {
    #fmcert {
        position: absolute;
        top: 100px;
        left: 55vw;
    }

    .CERT-bg {
        width: 100%;
        min-width: 100%;
        background: url(../images/product/javascript-training-blue.jpg);
        background-size: cover;
        overflow: hidden;
        background-repeat: no-repeat;
        position: relative;
        display: block;
    }
}

@media only screen and (min-width: 1500px) {
    #fmcert {
        left: 70vw;
        bottom: -5px;
    }
}

@media only screen and (min-width: 1200px) {
    #fmcert {
        display: block;
        left: 71vw;
        top: 46px;
        width: 323px;
    }

    .contact-us {
        width: 323px !important;
    }

    .footer {
        padding: 20px;
    }

    .CERT-bg {
        height: 343px;
    }
}

@media only screen and (max-width: 1199px) {
    .javascript-training-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .javascript-training-buttons-text p {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* fix buttons for option 1 and 2 on mobile */
    .javascript-training-section a,
    .javascript-training-section button,
    .javascript-training-option-1-buttons {
        margin: auto !important;
    }

    /* heading for "React Native Apps with FileMaker - JavaScript Training" */
    .javascript-training-schedule-heading {
        max-width: 264px;
    }

    /* removes dash from heading on mobile */
    .javascript-training-schedule-heading::after {
        content: "React Native Apps with FileMaker - JavaScript Training";
    }

    .patch-text-container {
        align-items: flex-start;
        margin-left: 27px;
    }

    .patch-text-container > p {
        width: 100%;
    }
}
