/*
 Theme Name:     divi-bme
 Theme URI:      https://bme.udel.edu/
 Description:    Custom Divi theme for the College of Engineering. Divi theme *MUST* be installed.
 Author:         Vicky Tosh-Morelli
 Template:       Divi
 Version:        1.0.0
*/
 

@font-face {
    font-family: 'greycliff-bold';
    src: url('/wp-content/themes/divi-bme/fonts/GreycliffCF-Bold.woff2') format('woff2'),
         url('/wp-content/themes/divi-bme/fonts/GreycliffCF-Bold.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'greycliff-light';
    src: url('/wp-content/themes/divi-bme/fonts/GreycliffCF-Light.woff2') format('woff2'),
         url('/wp-content/themes/divi-bme/fonts/GreycliffCF-Light.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


/* UD HEADER START*/

body { margin: 0; }

/* This header max-width may be altered to match the width of your site content/container */
header#udHeader #udHeaderContainer, div#udHeader-collegeBar { max-width: 1280px; }

/* UD Banner */
header#udHeader { position: relative; width: 100%; background-color: #00539f; border-bottom: 2px solid #ffd300; float: left; }
header#udHeader #udHeaderContainer { width: 100%; margin: auto; overflow: hidden; position: relative; }
header#udHeader #udHeaderWrapper { position: relative; width: 100%; float: left;}
header#udHeader #udHeaderLogo img { height: 70px; float: left; margin: 20px 20px 20px 0px; }

/* College Banner */
div#udHeader-collegeOuterWrapper { width: 100%; background: #003c71; overflow: hidden; position: relative; z-index: 1000; }
div#udHeader-collegeBar { width: 100%; margin: auto; padding: 15px 25px 15px 0px; font-size: 18px; box-sizing: border-box; background: #003c71; overflow: hidden; position: relative; z-index: 1000; line-height: normal; }
div#udHeader-collegeBar #udHeader-collegeWrapper a { font-family: 'greycliff-bold', 'open sans'; letter-spacing: 1px; text-transform: uppercase; color: #FFF; text-decoration: none; line-height: normal;
font-weight: normal; -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
div#udHeader-collegeBar #udHeader-collegeWrapper a:hover { text-decoration: none; }

div#udHeader-deptIdentity { font-size: 22px;  }





/* Hide Mobile Elements in Desktop */
header#udHeader #udHeaderMenuTrigger { display: none; }

@media only screen and (max-width: 1024px) {
    /* UD Banner */
    body header#udHeader #udHeaderMenuTrigger { display: none; }
    body header#udHeader #udHeaderLogo img { height: 40px; margin: 15px; }
    body header#udHeader .udHeaderMenuTrigger { position: absolute; top: 23px; right: 28px; width: 25px; cursor: pointer; }
    body header#udHeader .udHeaderMenuTrigger span {  height: 5px; width: 5px; margin: auto; background-color: #FFF; border-radius: 50%; display: block; clear: left; }
    body header#udHeader .udHeaderMenuTrigger span + span { margin-top: 5px; }
    body header#udHeader .udHeaderMenuTrigger.udHeaderOn span { background: #fed600; }
    body header#udHeader .udHeaderMenu { text-align: center; background: #003c71; margin: 0; display: none; position: relative; }
    


    /* College Banner */
    body div#udHeader-collegeBar #udHeader-collegeMenuTrigger { display: block; position: absolute; top: 50%; transform: translateY(-50%); right: 25px; width: 32px; margin-top: -5px; }
    body div#udHeader-collegeBar #udHeader-collegeBar { font-size: 14px!important; }
    div#udHeader-collegeBar {padding: 15px 25px 15px 15px; }


    /* Hide desktop search elemetns in mobile regardless of desktop state */
    body header#udHeader #udHeaderSearchTrigger a { display: none !important; }
}

/* END UD HEADERS*/

/* UD FOOTER START*/

            footer#udFooter { 
                width: 100%;
                margin-top: 33px;
                background-color: #fff;
                border-top: 3px solid #ffd300; 
                clear: both;
            }
            
            /* This footer max-width may be altered to match the width of your site content/container */
            footer#udFooter .udFooter-container {  max-width: 1280px; }
            
            footer#udFooter .udFooter-container { width: 100%;  margin: auto; position: relative; }
            footer#udFooter #udFooterLogo { width: 129px; position: absolute; top: -33px; left: 0; z-index: 2; }
            
            footer#udFooter .udFooterHeader { float: right; width: 100%; }
            footer#udFooter ul.udFooterSocial-icons { padding: 0; margin: 8px 5px 0 0;  list-style: none; float: right; }
            footer#udFooter ul.udFooterSocial-icons li { padding: 0;
                display: inline-block;
                margin: 0;
                width: 44px; height: 44px;
                padding-left: 0;
                
            }
            footer#udFooter ul.udFooterSocial-icons li a {  width: 44px; padding: 12px 0 12px 0; display: block; }
            
            footer#udFooter .udFooterSocial-icons img {
                height: 20px;
                width: 20px;
                object-fit: contain;
                margin: auto;
                display: block;
            }
    
            footer#udFooter .udFooterLinks { width: 100%; margin: 124px auto 0 auto; background-color: #eee; clear: both; }
            
            footer#udFooter .udFooterLinks div {
            font-family: Arial;
            font-size: 10px;
            color: #000000;
            margin: auto;
            text-align: center;
            
            }
    
            footer#udFooter .udFooterLinks div a { color: #005AAD; }
            footer#udFooter .link-item { padding: 8px 10px 10px 0; display: inline-block; margin: auto; }
            footer#udFooter .container-fluid { width: 80%; text-align: center;}
            
            
            @media only screen and (max-width: 1200px) { 
                footer#udFooter #udFooterLogo  { left: 15px;}
            }
            
            @media only screen and (max-width: 980px) { 
                footer#udFooter .udFooterHeader { float: none; width: auto; }
                footer#udFooter ul.udFooterSocial-icons { float: none; text-align: center; padding-top: 50px; }
                footer#udFooter ul.udFooterSocial-icons li { text-align: center; }
                footer#udFooter .udFooterLinks { margin-top: 5px; }
                footer#udFooter #udFooterLogo { width: 65px; top: -25px; margin: auto; left: 50%; transform: translateX(-50%);}

            }
/* UD FOOTER END*/            

.yt_breadcrumbs {
	font-size: 14px;
}

.emergency_Wrapper {
    background: #ffd200;
    font-size: 16px;
    text-align: center;
    padding: 10px;
    font-family: greycliff-light;
}

/*Accessibility Changes*/
p a, li a , .et_pb_text_inner a { 
    text-decoration: underline !important;
    font-weight: bold;
}

p a:hover, li a:hover, p a:focus, li a:focus, .et_pb_text_inner a:hover {
    text-decoration: none!important;
}

td a:hover {
    text-decoration: underline!important;
}

:focus {
    outline: 3px solid #00aa00;
}

.et_pb_post h2 a:hover, .et_pb_post .entry-title a:hover, .et_pb_portfolio_item h3 a:hover, .et_pb_portfolio_item .et_pb_module_header a:hover {
    text-decoration: underline;
}
/*End Accessibility Changes*/

/*
Welcome to Custom CSS!

To learn how this works, see http://wp.me/PEmnE-Bt
*/
/*------ UNIVERSIAL CHANGES ------*/
html, body {
    -webkit-text-size-adjust: 100%;
/* Prevent font scaling in landscape while allowing user zƒoom */
}

/* Widgets */

.ud-footer-widget h4 {
    border-bottom: 4px solid #ffd200;
    width: 100%;
    margin-bottom: 20px;
    font-size: 24px;
}

.ud-footer-widget .et_pb_text ul {
    list-style: none;
}
.et_pb_widget_area ul {
    list-style: none!important;
    padding: 0 0 0 12px!important;
    line-height: inherit!important;
}

.ud-footer-widget li {
    padding: 5px;
    list-style-type: none;
    color: #fff!important;
    font-weight: bold;
    font-size: 18px;
    line-height: 1em;
}

.ud-footer-widget li:before {
    border-color: #ffd200;
    border-radius: 3px;
    border-style: solid;
    border-width: 3px;
    content: "";
    left: 0;
    position: absolute;
    margin-top: 4px;
}

.ud-footer-widget li a {
    color: #fff!important;
}

/* End Footer Widget Style*/

.lwn0 /* code for date in UD Events code*/ {
    line-height: 1.9em;
}

/* code for alternating table rows*/
tr:nth-child(even) {
    background: #EDEDED;
}

tr:nth-child(odd) {
    background: #FFF;
}

/* end for alternating table rows */
/*----------------------------------------------*/
/*----------------------------------------------*/
/*----------------------------------------------*/
/* hide the word 'skills' on the projects page */
.et_project_meta_title {
    display: none;
}

.et_full_width_portfolio_page .et_project_meta {
    display: none;
}

/* end skills hiding */



/* code for equalizing width for 3 with a 80% width setting for tabs */
/*---------- [Equalise the Tabs] ----------*/
.equal-tabs .et_pb_tabs_controls li {
    width: 33.3%;
/*change width of tabs here depending on the number of tabs you have*/
    text-align: center;
}

@media screen and (max-width: 768px) {
    /*change device breakpoint here depending on the number of tabs you have*/
    .equal-tabs .et_pb_tabs_controls li {
        width: 100%;
        text-align: center;
    }
}

/* styles of a HR */
hr {
    color: #ffd200;
    background-color: #ffd200;
    height: 5px;
    border-style: solid;
    border-color: #ffd200;
    border-width: 1px 0 0;
    border-radius: 10px;
}

/* end code for HR */ 



.dot {vertical-align: -15%;}

/*Equalize Blog Columns: https://divi-sensei.com/blog/2017/11/07/equalize-blog-grid-column-height/*/
 
.bloggrid .et_pb_salvattore_content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

 
.bloggrid article {
        margin-bottom: 20px !important;
	-webkit-box-flex: 1;
	    -ms-flex: 1 0 auto;
	        flex: 1 0 auto;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
}
 
.bloggrid .post-content {
	-webkit-box-flex: 1;
	    -ms-flex: 1 0 auto;
	        flex: 1 0 auto;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
}
 
.bloggrid .post-content-inner {
	padding-bottom: 10px;
} 
.bloggrid .column {
        margin-bottom: 20px !important;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
}

.bloggrid .et_pb_image_container, .et_pb_blog_grid .et_main_video_container, .et_pb_blog_grid .et_audio_content, .et_pb_blog_grid .et_pb_post .et_pb_slider {
    margin: -20px -20px 0px;
    }
    
.bloggrid .et_pb_post h2 {
    text-transform: uppercase!important;
    }
    

/* Add styling to captions to look like UDaily Featured Image Caption is added to single.php file*/
.wp-caption {
    border: 1px solid #ddd;
    text-align: left;
    background-color: #555;
    margin-bottom: 10px;
	padding: 0;
	padding-top: 0;
}

figure.wp-caption > figcaption {
	font-size: 14px;
	text-align: left;
	line-height: 1.5em;
	padding: 0 10px;
	color: #fff;
}

.wp-caption p.wp-caption-text , .featured-caption-text{
    font-size: 14px;
	text-align: left;
	line-height: 1.5em;
	padding: 0 10px 10px 10px;
	color: #fff;
}

.featured-caption-text {
    max-width: 100%;
    margin-top: -10px;
    padding: 10px!important;
}



h1.entry-title {
	font-weight: 700;
	font-size: 40px;
	line-height: 1em;
}

.entry-content h2 {
	font-size: 30px;
	font-weight: 400;
}

.entry-content h3 {
	font-size: 24px;
	font-weight: 400;
}



