/* layout */
main.main#main {
    padding-left: 0;
    padding-right: 0;
    min-height: 71vh;
}
main:focus {
    outline: 0;
}


body {
    /* CAS accepted dark blue #0c223f */
    /*    background-color: #0c223f;  */ 
    background-color: #fff;
}
body {
    overflow-x: hidden; /* none of that horizontal stuff */
}
header, main, .main {
    background-color: #fff
}


/* colors for non-special links */
a, a:link, a:visited {
    color: #d44500;
    text-decoration: none;
}

a:hover, a:focus {
    color: #d44500;
    text-decoration: underline;
}

aside.sidebar img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* colors for sidebar links */
.sidebar a,
.sidebar a:link,
.sidebar a:visited {
    color: #d44500; /* was 3e3d3c */
    text-decoration: none;
    font-weight: 900;
}

.sidebar a:hover,
.sidebar a:focus {
    color: #d44500;
    text-decoration: underline;
}




/* news */
div.news-img {
    text-align: center;
    background-color: #E8EAEB;
    margin-right: 15px;
}

div.row.news-item {
    padding-bottom: 30px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 15px;
    padding-right: 15px;
}
div.news-page-listing {
    margin-left: -15px; /* hacky */
}
.row.news-item .col-xs-12 {
    padding-left: 0;
}

/* Accordion */
h3.panel-title a {
    display: block;
    text-transform: uppercase;
    font-size: 20px; /* accessibility fix */
}

footer#site-footer {
    width: 100%;
    margin: 0;
    margin-top: 10px;
} 
div.event-item-row {
    display: inline-block;
    width: 100%;
}
div.event-item-row div.event-type {
    margin-top: 2.25em;
}
img.event-image {
    float: right;
    margin-top: 20px;
    max-width: 200px;
    height: auto;
}

.event-circle {
    position: relative;
    border-radius: 20px;
    width: 40px;
    height: 40px;
    float: left;
    margin: 8px;
    box-shadow: 0 0 0 2px white;
}

.event-legend > li {
    margin-left: 1em;
    margin-bottom: 8px;
}

.legend-text {
    display: inline-block;
    padding-top: 15px;
}

.legend-text-img {
    display: inline-block;
    padding-top: 15px;
}

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2) {
    .event-circle {
      margin-left: -1em;
    }
    .legend-text-img {
    display: initial;
    padding-top: initial;
    }
}

.event-circle-text {
	color: #fff;
    font-size: 20px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.bleed-orange-bg {
  background-color: #d44500;
}
.as-blue-bg {
    background-color: #0c223f;
    border-color: #fff;
/*    background-color: #118833;  */
}
.dark-gray-bg {
  background-color: #6F777D;
}
.extra-dark-gray-bg {
  background-color: #3E3D3C;
}
.lite-gray-bg {
  background-color: #E8EAEB;
}
.med-gray-bg {
  background-color: #ADB3B8;
}
div.event-legend p {
    padding-top: 12px;
}

div.event-legend {
	clear: both;
}

h3 a.event-listing-title,
h3 a.event-listing-title:link,
h3 a.event-listing-title:visited {
    color: #555;
}
h3 a.event-listing-title:hover,
h3 a.event-listing-title:focus {
    color: #d44500;
    text-decoration: underline;
}

footer section.event-section {
    padding-bottom: 2.25em;
}

a.index-email,
a.index-email:link,
a.index-email:visited {
    color: #3E3D3C;
    text-decoration: underline;
}

a.index-email:hover,
a.index-email:focus {
    color: #d44500;
    text-decoration: underline;
}

.personnel-photo-right {
    padding-left: 10px;
    padding-bottom: 3px;
}
.personnel-photo-left {
    padding-right: 10px;
    padding-bottom: 3px;
}


section.row.personnel-entry {
    padding-bottom: 33px;
}

.row-padding {
    padding-bottom: 25px;
    /* used on some pages w/ images */
}


aside.sidebar {
    background-color: #FFF;
    border: 1px solid #d44500;
    margin-top: 10px;
    padding: .8rem;
    font-size: .75em;
}

.affix {
    top: 0;
    left: 0;
    z-index: 9001; /* yeah, it's over 9000 */
}
div#legend {
  background-color: #d44500;
}

div#legend a, div#legend a:link, div#legend a:visited {
  background-color: #d44500;
  color: white;
}

div#legend a:hover, div#legend a:focus {
  color: #fff;
  text-decoration: underline;
}



.alert {
    padding: 1em 2em;
    margin-bottom: 20px;
    border: 2px solid #d44500;
    border-radius: 4px;
    margin-top: 20px;
    text-shadow: 0 1px 0 rgba(0,0,0,0.05);
    color: #d44500;
    background-color: transparent;
}

.alert a, .alert a:link, .alert a:visited {
    color: #d44500;
    font-weight: bold;
    text-decoration: underline;
}

.alert a:hover, .alert a:focus {
    color: #3e3d3c;
}


/* keep footer at the bottom */
html {
    height: 100%;
}
body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
main.main#main {
    min-height: 95vh;
    width: 100%;
}
footer#site-footer {
    margin-top: 10px;
}

/* search page */
input.gsc-input,
.gsc-input-box,
.gsc-input-box-hover,
.gsc-input-box-focus,
.gsc-search-button {
    box-sizing: content-box; 
    line-height: normal;
}



div#research-areas h2 {
 text-align: center;
}


div.home-individual-event h3 {
    padding-right: 15px;
}
h3.home-event-title {
    display: inline;
    font-family: ShermanSans, Georgia, serif;
    font-size: 1.3em;
}

div.home-individual-event p { clear: both; }
.home-individual-event { padding-top: 1.3em;}
.home-event-location { font-size: .9em;}
.home-event-abstract { font-size: 1em;}
.eventdate {
    line-height: 1.1;
	margin-top: 20px;
	margin-bottom: 10px;
	display: inline-table;
}

.home-eventdate {
    
}


h3 a.event-listing-title,
h3 a.event-listing-title:link,
h3 a.event-listing-title:visited {
    color: #555;
}
h3 a.event-listing-title:hover,
h3 a.event-listing-title:focus {
    color: #d44500;
    text-decoration: underline;
}


.TextWrap {
    float:right;
    margin: 10px;
    }
    
.TextWrapLeft {
    float:left;
    margin: 10px;
    }  
    

.home-column-title {
 text-align: center;
 text-transform: uppercase
}

.home-cal-icon {
   font-size: 1.57em;
   padding-right: 4px;
}







div#home-events {
    background-color: #e8eaeb;
    margin-top: 20px;
    border-top: 1px #000 solid;
    border-bottom: 1px #000 solid;
    -webkit-box-shadow: 0px 1px 2px rgba(50, 50, 50, 0.75);
    -moz-box-shadow: 0px 1px 2px rgba(50, 50, 50, 0.75);
    box-shadow: 0px 1px 2px rgba(50, 50, 50, 0.75);    
}
div#research-areas {
    background-color: #e8eaeb;
    margin-top: 20px;
    margin-bottom: 20px;
    border-top: 1px #000 solid;
    border-bottom: 1px #000 solid;
    -webkit-box-shadow: 0px 1px 2px rgba(50, 50, 50, 0.75);
    -moz-box-shadow: 0px 1px 2px rgba(50, 50, 50, 0.75);
    box-shadow: 0px 1px 2px rgba(50, 50, 50, 0.75);
}

div#research-areas img.img-circle {
 width: 150px;
 height: 150px;
}
.btn-xl {
    padding: 40px 22px;
    line-height: 1.0;
    font-size: 22px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    text-transform: uppercase;
}

#home-cta-row {
 margin-top: 15px;
}
#home-h2title { margin-top: 0; }
.no-top-margin { margin-top: 0; }

h4 a.event-listing-title,
h4 a.event-listing-title:link,
h4 a.event-listing-title:visited {
	color: #555	
}

h4 a.event-listing-title:hover,
h4 a.event-listing-title:focus {
    color: #d44500;
    text-decoration: underline;
}


/* cage cards */
#cage {
    padding: 15px 0;
    margin: 0;
}

h2 {
    /* text-transform: uppercase; */
    text-align: center;
}

.card {
    width: 20%;
    height: auto;
    /* background-color: rgba(232,234,235,1);*/
    margin: 0;
    padding: 0;
    position: relative;
    display: block;
    overflow: hidden;
    float: left;
}
.card:after {
    content: "";
    position: absolute;
    display: block;
    background-color: rgba(212,69,0,0.75);
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: visibility 0.5s, opacity 0.5s;
    transition: visibility 0.5s, opacity 0.5s;
}
.card:hover::after,
.card:focus::after {
    visibility: visible;
    opacity: 1;
}

.card_image {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
    -webkit-transition: -webkit-transform 0.5s;
    transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.card:hover .card_image,
.card:focus .card_image {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
}

.card_content {
    top: 50%;
    right: 0;
    left: 0;
    position: absolute;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    color: #fff;
    font-size: .8em;
    text-align: center;
    -webkit-transition: visibility 0.5s, opacity 0.5s;
    transition: visibility 0.5s, opacity 0.5s;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    margin: 10px;
}

.card:hover .card_content,
.card:focus .card_content {
    visibility: visible;
    opacity: 1;
}
@media (max-width: 1200px) {
    #cage .card {
        width: 25%;
        height: auto;
    }
    #cage .card:nth-child(n+5) {
        display: none;
    }
}
@media (max-width: 1000px) {
    #cage .card {
        width: 33.33333%;
        height: auto;
    }
    #cage .card:nth-child(n+4), #cage img:nth-child(n+5) {
        display: none;
    }
}
@media (max-width: 800px) {
    #cage .card {
        width: 50%;
        height: auto;
    }
    #cage .card:nth-child(n+3), #cage .card:nth-child(n+4), #cage img:nth-child(n+5) {
        display: none;
    }
}  
