/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* @import url(http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,400italic,700italic,900italic); */



@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,800,700,600,300);
@import url("giving-tuesday.css");
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   MSRI Homepage Tiles BG Images
   ========================================================================== */

.today { background-image: url('/sites/56a21bba96803b77c6000001/theme/images/triangles_sq.jpg?112a04f96e2fb2aeddb03ffcb7fd207a');}
.videos { background-image: url('/sites/56a21bba96803b77c6000001/theme/images/Intro_to_MSRI.jpg?997b59b573b0bb727dc902a8bb6ea72d');}
.proposals { background-image: url('/sites/56a21bba96803b77c6000001/theme/images/billiards.jpg?11b7567a70283e751062815f44c7a302');}
.lecture2 { background-image: url('/sites/56a21bba96803b77c6000001/theme/images/peterscholze2.jpg?9f8c6c3f6807c8c784aaaedaa2384205');}
.emmisary { background-image: url('/sites/56a21bba96803b77c6000001/theme/images/emmisary_fall2014.jpg?d366fefe960141280fcdb6d22691d3c1');}
.week { background-image: url('/sites/56a21bba96803b77c6000001/theme/images/fractal_sq.jpg?e8eb88fcc3fd3baef9329f39b2d26899');}
.prize { background-image: url('/sites/56a21bba96803b77c6000001/theme/images/scheinkman.jpg?582a71898f4004d5db48ff0fffabd005');}
.congratulations { background-image: url('/sites/56a21bba96803b77c6000001/theme/images/Maryam-Mirzakhani.jpg?768cead955cf301deb970a1173e1f43e');}
.concert { background-image: url('/sites/56a21bba96803b77c6000001/theme/images/trois_bois.jpg?76803f4502b5afc610002a47d3e0f9aa');}
.families { background-image: url('images/family-2.jpg');}
.lunch { background-image: url('/sites/56a21bba96803b77c6000001/theme/images/bagels2.jpg?daecc86216455d203c3bc752bb58dbfb');}

/* ==========================================================================
   MSRI Homepage custom styles
   ========================================================================== */
.container-full {
 padding-right: 0px;
 padding-left: 0px;
 *zoom: 1;
}

.container-full:before,
.container-full:after {
 display: table;
 line-height: 0;
 content: "";
}

.container-full:after {
 clear: both;
}

.container-masthead-nonproduction {
	min-height: 220px;
	padding-top: 140px; /* 140px to make the container go all the way to the bottom of the topbar */
	background-image: url('/sites/56a21bba96803b77c6000001/theme/images/blackboard5_inv_12opacity.jpg?4ae9de42e1a1d5af4fdcf6f126b3d4f2');
	background-size: 100%;
	color: white;
}

.container-masthead-production {
  min-height: 220px;
  padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
  background-image: url('/sites/56a21bba96803b77c6000001/theme/images/blackboard5_inv_12opacity.jpg?4ae9de42e1a1d5af4fdcf6f126b3d4f2');
  background-size: 100%;
  color: white;
}
.container-packery {
	padding-top: 20px;
	padding-bottom: 20px;
	max-width: 1200px;
	margin: 0 auto;
}

img.main-logo {
  max-width: 500px;
}

@media (max-width: 767px) {
  img.main-logo {
    margin-top: 30px;
    max-width: 280px;
  }
}

.header-button {
  min-width: 114px;
}

.header-button span{
	margin-left: 5px;
}

.header-button i {
	padding-top: 3px;
}

.dash-button {
	z-index: 555555 !important;
  right: 10px;
  top: 100px;
}

.top-search-nonproduction {
	z-index: 555 !important;
  right: 10px;
  top: 140px;
  width: 200px;
}

.top-search-production {
  z-index: 555 !important;
  right: 10px;
  top: 60px;
  width: 200px;
}

input.emmisary-form {
  width: 90%;
  margin-right: auto;
  margin-left: auto;
}


.buttons-fix {
	padding-left: 110px;
}

.static {
  border: 1px solid white;
}

.icon-flipped {
    transform: scaleX(-.5);
    -moz-transform: scaleX(-.5);
    -webkit-transform: scaleX(-.5);
    -ms-transform: scaleX(-.5);
}

.date {
	font-size: 10px;
	font-weight: 300;
	margin-bottom: 0px;
}

#calendar {
  margin-bottom: 20px;
}
.events-calendar {
}

.events-container {
  margin-right: auto;
  margin-left: auto;
  max-width: 960px;
}

.events-calendar h4 {
	margin-bottom: 5px;
}
.event {
	padding: 10px 10px 10px 10px;
	width: 300px;
	border-bottom: solid 1px black;
}
.event:hover {
  background-color: #fafafa;
}

.event h6 {
	margin-top: 5px;
	margin-bottom: 0px;
}

.event span.location {
	margin-left:20px;
}

.event-calendar-row-header {
	border-bottom: double black 3px;
	height: 70px;
	background: rgb(59, 152, 193); /* Fall-back for browsers that don't support rgba */
	background: rgba(59, 152, 193, .1);
	padding-top: 10px;
	padding-bottom: 10px;
}
.all-events-row {
  padding-left: 0px;
  padding-right: 0px;
  max-width: 960px;
}
.event-calendar-row-header h4{
	margin-top: 0px;
}
.event-calendar-row:first-of-type {
  margin-left: 0px;
}
.event-calendar-row {
	/* background-image: url('/sites/56a21bba96803b77c6000001/theme/images/glass_alpha20.jpg?e21dd727b1082ecaa38dae77fe25bda9'); */
  background-color: #eee;
	background-size: 300px;
	height: 490px;
  padding-left: 0px;
  padding-right: 0px;
  margin-left: 30px;
  width: 300px;
}

.event-calendar-scroll-container {
	height: 420px;
	overflow-y: scroll;
}


.event-modal {
	padding: 10px 10px 10px 10px;
	border-bottom: solid 1px black;
}

#WeeklyCalendarModal .modal-body {
	background-image: url('/sites/56a21bba96803b77c6000001/theme/images/glass_alpha20.jpg?e21dd727b1082ecaa38dae77fe25bda9');
}

#TodaysCalendarModal .modal-body {
	background-image: url('/sites/56a21bba96803b77c6000001/theme/images/hall_alpha20.jpg?b3155ce1a24711377b3270c7e5e47130');
}

.event-modal .date {
	font-size: 12px;
	font-weight: 300;
	margin-bottom: 0px;
}

.event-modal span.location {
	margin-left: 60px;
}


@media(min-width:768px) {
	.container-packery {
		margin: 0 auto;
	}
}

.gallery img {
	margin: 0px 15px 0px 15px;
}

.gallery img.thumbnail {
	display: inline;
}

.gallery {
	padding: 20px;
}

.overlay {
  position: absolute;
  top: 0; bottom: 0; right: 0; left: 0;
  opacity: 0;
  background-color:rgba(255,0,0,0);
  background: white;
  color: black;
  transition: 0.3s ease-out;
}
.box:hover .overlay {
    background-color:rgba(255, 255, 255, 0.7);
  }

  .box:hover .overlay {
      opacity: 1;
    }

.overlay p {
  width: 130px;
	    margin: 0;
	    text-align: center;
	    position: absolute;
	    top: 50%; left: 50%;
	    transform: translateX(-50%) translateY(-50%);
  }
.membership {
	padding-top: 20px;
}
.membership p {
  	    margin: 0;
		position: relative;
		transform: none;
		left: 0;
		top: 0;
		padding-top: 15px;
    }

#footer p.copyright {
	margin-top: 20px;
	margin-bottom: 10px;
}

.nav-collapse .dropdown-menu .divider {
	border-bottom: 1px solid #ddd;
}

/* ==========================================================================
   PACKERY STUFF
   ========================================================================== */

* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

.packery {
	position: relative;
	padding-left: 20px;
}

/* clearfix */
.packery:after {
  content: ' ';
  display: block;
  clear: both;
}

.packery a {
	color: #005983;
}

.packery a:hover {
	color: #003853;
	text-decoration: none;
}
.stamp {
	top: 0px;
}

.logo {
	margin-top: 50px;
}

.item {
  width:  150px;
  height: 150px;
  float: left;
  background-size: 100%;
  color: white;
}

.item h2, .item h3, .item h4, .item h5, .item h6 {
	position: absolute;
	margin: 0 0;
	bottom: 12px;
	left: 10px;
	line-height: 15px;
}

.item.width2 { width:  320px; }
@media (max-width: 767px) {
  .item.width2 {
    width:  150px;
  background-size: 200%; }
}

.item.height2{ height: 320px;  }
.item.height4 { height: 700px; }
.item.width4 { width:  700px;  }

.item:hover {

}

.item p {
	font-size: 13px;
	line-height: 17px;

}


/**  Start Bootstrap - Simple Sidebar HTML Template **/

#menu-buttons {
	z-index: 555 !important;
	min-height: 30px;
}

.dash-button {
	z-index: 555555 !important;
}

/* Toggle Styles */

#wrapper {
	background: black;
    padding-left: 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#wrapper.toggled {
    padding-left: 250px;
}

#sidebar-wrapper {
    z-index: 1000;
    position: fixed;
    left: 250px;
    width: 0;
    height: 100%;
    margin-left: -250px;
    overflow-y: auto;
    background: #002333;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

#wrapper.toggled #sidebar-wrapper {
    width: 250px;
}

#page-content-wrapper {
    width: 100%;
	background-color: #83acc0;
	/*#83acc0*/

}

#wrapper.toggled #page-content-wrapper {
    position: absolute;
    margin-right: -250px;
	background-color: #83acc0;
}

/* Sidebar Styles */

.sidebar-search-input {
  padding-left: 20px;
}

.sidebar-nav {
    position: absolute;
    top: 0;
    width: 250px;
    margin: 0;
    padding: 0;
    list-style: none;
	padding-top: 60px;
	padding-right: 20px;
}

.sidebar-nav-nonproduction {
  top: 80px;
}

.sidebar-nav h5 {
	margin-bottom: 5px;
	margin-left: 10px;
	color: #e88138;
	text-transform: uppercase;
	text-decoration: underline;
}

.sidebar-nav ul {
	list-style: none;
	margin: 0 0 10px 10px;
}

.sidebar-nav li {
    text-indent: 0px;
    line-height: 20px;
}

.sidebar-nav li a {
    display: block;
    text-decoration: none;
    color: #fff;
	font-size: 11px;
	line-height: 12px;
}

.sidebar-nav li a:hover {
    text-decoration: none;
    color: #8bb8cd;
}

.sidebar-nav li a:active,
.sidebar-nav li a:focus {
    text-decoration: none;
}

.sidebar-nav > .sidebar-brand {
    height: 65px;
    font-size: 18px;
    line-height: 60px;
}

.sidebar-nav > .sidebar-brand a {
    color: #999999;
}

.sidebar-nav > .sidebar-brand a:hover {
    color: #fff;
    background: none;
}

@media (min-width:768px) {

		#wrapper {
        padding-left: 0px;
    }

    #wrapper.toggled {
        padding-left: 250px;
    }

    #sidebar-wrapper {
        width: -250px;
    }

    #wrapper.toggled #sidebar-wrapper {
        width: 250px;
    }

    #page-content-wrapper {
		background-color: #83acc0;
    }

    #wrapper.toggled #page-content-wrapper {
        position: relative;
        margin-right: 0;
		background-color: #83acc0;
    }
}



/* Hover Styles
-------------------------------------------------- */

/* Trim */
.hvr-trim {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
.hvr-trim:before {
  content: '';
  position: absolute;
  border: white solid 4px;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  opacity: 0;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-property: opacity;
  transition-property: opacity;
}
.hvr-trim:hover:before, .hvr-trim:focus:before, .hvr-trim:active:before {
  opacity: 1;
}




#footer {
  margin-top: 50px;
  padding-top: 20px;
  min-height: 200px;
}
#footer {
  background-color: #f5f5f5;
}

#footer p {
  margin: 0;
}

ul.footer-nav {
  margin-bottom: 20px;
    margin-left: 0px;
    padding-left: 0px;
    list-style: none;
}
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}

.modal{
    z-index: 555556;
}

.cursor_pointer{
    cursor: pointer;
}

h1.server {
    background-color: #FFCC33;
    border: 10px solid #FFCC33;
    color: red;
    font-family: Georgia;
    font-size: 1.5em;
    line-height: 1.5em;
    margin: 0;
    text-align: center;
    font-weight: bold;
}

h1.server span {
    font-size: 12px;
    display: block;
    color: black;
    font-weight: bold;
}
