/* Overview styles.

   developer:   marionm
   requires:    nothing
   ========================================================================== */

/* ==========================================================================
   global overrides
   ========================================================================== */

html { font-family: 'Source Sans Pro', Arial, sans-serif; }

/* ==========================================================================
   shared page styles
   ========================================================================== */

.width {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

/* ==========================================================================
   header
   ========================================================================== */

#header {
    background: #0f3245;
    padding: 5rem 1rem 4rem 1rem;
}

#header h1 {
    color: #afd0de;
    font-size: 1.625rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

#header h1 span {
    color: #fff;
    display: block;
    font-size: 3.0625rem;
    font-weight: 600;
    text-transform: none;
}

#header p:first-of-type {
    color: #b7ced8;
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 640px;
}

#header p:last-of-type {
    color: #fff;
    font-size: 1rem;
    max-width: 640px;
    display: inline-block;
    padding-top: 8px;
}

#header p:last-of-type a { color: #e74e3a; }

#header p:last-of-type a:hover { color: #ff7361; }

#header .headerbuttonbox {
    display: inline-block;
    vertical-align: top;
    border-right: 1px solid #fff;
    margin-right: 1rem;
	padding-right: 1rem;
	max-width: 170px;
}

a#headerbutton, a#headerbutton:link, a#headerbutton:visited {
   background: #e74e3a;
   border-radius: 0.25rem;
   border: 1px solid #e74e3a;
   color: #fff;
   display: inline-block;
   font-size: 1.1rem;
   padding: 0.5rem;
}
a#headerbutton:hover {background: #ff7361;}

/* ==========================================================================
   main content
   ========================================================================== */

#content { padding: 4.875rem 1rem; }

#content .width {
    column-count: 2;
    column-gap: 4rem;
}

#content h2 {
    color: #242424;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

#content p {
    color: #4e4e4e;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

#content ul {
    color: #076b8d;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    margin-left: .8rem;
}

#content li { margin-bottom: .5rem; }

#content li:before {
    color: #076b8d;
    content: '\203A';
    display: inline-block;
    font-family: Arial;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 0;
    margin-left: -.8rem;
    margin-right: .25rem;
}

#content li.all {
    font-size: .9375rem;
    text-transform: uppercase;
}

#content li.all:before {
    color: #076b8d;
    content: '+';
    display: inline-block;
    font-family: Arial;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 0;
    margin-left: -.8rem;
    margin-right: .25rem;
}

#content li a { color: #076b8d; }

/*#content li:hover,
#content li:hover:before,
#content li.all:hover:before,*/
#content li a:hover { color: #cb4e49; }


/*logos*/
#content #trusted {
    column-count: 1;
}
#trusted h2 {
    color: #076b8d; 
    margin-top: 2.75rem;
    text-align: center;
}
#trusted div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 4rem;
    justify-content: space-evenly;
}



/* ==========================================================================
   code gallery
   ========================================================================== */

#code-gallery {
    background: #e1e1e1;
    padding: 4rem 1rem;
}

#code-gallery .width { max-width: 1500px; }

#code-gallery h2 {
    color: #377590;
    font-size: 2.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

#code-gallery .flex > * {
    background: #fff;
    border-radius: .5rem;
    padding: .5rem;
    text-align: center;
}

#code-gallery .flex > *:hover { outline: 2px solid #1b6a94; }

#code-gallery .flex h3 {
    border-bottom: 1px solid #d4d4d4;
    color: #505050;
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
}

/* ==========================================================================
   online courses
   ========================================================================== */

#online-courses {
    background: #1a455c;
    padding: 4rem 1rem;
}

#online-courses .width { max-width: 1100px; }

#online-courses h2 {
    color: #fff;
    font-size: 2.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

#online-courses .flex { column-gap: 30px; }

#online-courses .flex > * { width: 322px; }

#online-courses .flex > div > * > div {
    background: #4c5d6a;
    border-radius: .5rem;
    display: inline-block;
    line-height: 0;
    margin-bottom: 1rem;
    padding: 4px;
}

#online-courses .flex a:hover > div { background: #ff384d; }

#online-courses .flex p:first-of-type {
    color: #bddffa;
    font-size: .8rem;
    letter-spacing: 1px;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

#online-courses .flex p:last-of-type {
    color: #fff;
    font-size: 1.25rem;
}

#online-courses .flex p:last-of-type a {
    color: #fff;
    font-size: 1rem;
}

#online-courses .flex a:hover p:last-of-type,
#online-courses .flex p:last-of-type a:hover { color: #ff384d; }

#online-courses .flex p:last-of-type span {
    color: #bddffa;
    font-size: 1rem;
    margin: 0 .25rem;
}

/* ==========================================================================
   resources
   ========================================================================== */

#resources {
    background: #0f3245;
    padding: 4rem 1rem;
}

#resources .width { max-width: 900px; }

#resources h2 {
    color: #fff;
    font-size: 2.125rem;
    margin-bottom: 2rem;
    text-align: center;
}

#resources ul {
    color: #076b8d;
    column-count: 3;
    column-gap: 2rem;
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    margin-left: .8rem;
}

#resources li { margin-bottom: .5rem; }

#resources li:before {
    color: #9fc7e4;
    content: '▪';
    display: inline-block;
    font-family: Arial;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 0;
    margin-left: -.8rem;
    margin-right: .25rem;
}

#resources li a { color: #fff; }

#resources li a:hover { color: #ff384d; }

/* ==========================================================================
   footer
   ========================================================================== */
.footer {
    background-color: #cf2436;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 400;
    padding: 1rem 2rem;
    width: 100%;
}
.sticky {
    bottom: 0;
    position: fixed;
    z-index: 999999999;
}
.footer a, .footer span {
    align-items: center;
    display: flex;
    justify-content: center;
}
.footer a { color: #fff; }
.footer a:hover { color: #ffdd6f; }
.footer svg { 
    height: 1.75rem;
    margin: 0.25rem 0.625rem 0 0.875rem; 
    width: 1.75rem;
}
.footer a:hover .a { fill: #ffdd6f; }

/* ==========================================================================
   responsive breakpoint styles
   ========================================================================== */

@media all and (max-width: 1200px) {
    #trusted div {
        gap: 1rem 2rem;
    }
    #trusted > div > img {
        height: 45px;
        width:auto;
        margin:0px 10px
    }
}

@media (max-width: 1050px) {
    #trusted > div > img {
        height: 42px;
        width:auto;
        margin:0px 5px
    }
}

@media all and (max-width: 900px) {
    .width,
    #online-courses .width,
    #resources .width { max-width: 725px; } /* i hate this but doing it "correctly" would be tedious, so leave it be */

    #header img {
        max-width: 350px;
        width: 100%;
    }
    #trusted > div > img {
        height: 35px;
        width:auto;
        margin:0px 10px
    }
}


@media all and (max-width: 600px) {
    #content .width { column-count: 1; }
    
    #header .headerbuttonbox {
    display: block;
    border-right: none;
    margin: 0 0 2rem 0;
    padding-right: 0;
    max-width: 100%;
    }

    #trusted > div > img {
        height: 30px;
        width:auto;
        margin:0px 4px
    }

    #resources ul { column-count: 2; }

    /*footer*/
    .footer a { display: block; }
}

/* printer styles
   ========================================================================== */

@media print {
}
