/**********************************/
/********  MIDDLE SECTION *********/
/**********************************/

/* COMMON FORMATTING FOR THE MIDDLE SECTION */
#middlesection {
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Set the gutter in the middlesection */
#middlesection #lateststructure,
#middlesection #newfeatures,
#middlesection #news {
    padding: 0;
}

#middlesection #lateststructure {
    padding-right: 5px;
}

#middlesection #newfeatures {
    padding: 0 5px;
}

#middlesection #news {
    padding-left: 5px;
}

/* Set the background color of the panel */
#middlesection .panel-default>.panel-heading {
    background-color: #325880;;
    color: #FFF;
}

/* Set the common format */
#middlesection ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#middlesection h3 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 5px;
    margin-top: 0;
    color: #FFFFFF;
}

#news .nav-tabs h3 {
    color: #5e94c3;
}

#news .nav-tabs .active h3 {
    color: #FFFFFF;
}

#middlesection .date,
.panel_content .date {
    font-size: 12px;
    font-style:italic;
    margin-bottom: 0;
    display: inline-block;
}


/* Set the tab section */
.tab-content {
    padding: 15px;
}

.nav-tabs {
    border-bottom: 0;
}

.nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus {
    background-color: #325880;
    border: 1px solid #5e94c3;
    color: #FFFFFF;
}

.nav-tabs .open>a, .nav-tabs .open>a:hover, .nav-tabs .open>a:focus, .nav-tabs>li>a:hover {
    border: 1px solid #DDD;
    background-color: rgba(94,148,195,.15);
    color: #FFFFFF;
}

/* FIRST COLUMN: LATEST ENTRIES */
#lateststructure .panel-body {
    padding: 10px;
}

#lateststructure .panel-heading {
    height: 45px;
}

#lateststructure .panel-heading h3 {
    display: block;
    float: left;
}

#lateststructure .date {
    display: block;
    float: right;
    margin-top: 3px;
}

#lateststructure .carousel-inner .feature_block h3 {
    text-transform: uppercase;
    color: #333;
}


#lateststructure #carousel-lateststructure {
    margin-top: 3px;
    height: 381px;
}

/* Align with Carousel indicators */
#seeAllStructures{
    margin-left: 3px;
    color: #FFFFFF;
    text-decoration: underline;
}

/* Carousel Left/Right Arrow Controls */
.carousel-control.right,
.carousel-control.left {
    background-image: none;
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(enabled = false)";
    filter: none;
}

.carousel-control {
    width: 5%;
}

.glyphicon-chevron-right,
.glyphicon-chevron-left {
    color: black;
}

/* Carousel Bottom Indicators */
#lateststructure .carousel-indicators {
    margin-bottom: 0;
    left: 50%;
}

#lateststructure .carousel-indicators li {
    background-color: #ddd;
}

#lateststructure .carousel-indicators .active {
    background-color: #666666;
}

#lateststructure .carousel-inner {
    /* Modify for Medium Size */
    min-height: 280px;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#lateststructure .item {
    padding: 0 35px;
}

#lateststructure img {
    margin: 0 5px;
}

#lateststructure hr {
    margin: 2px 0 1px 0;
}

#lateststructure h4 {
    font-size: 14px;
}

/* COMMON FORMATTING FOR LIST CONTENT */
.default-content-list h4 {
    margin-bottom: 5px;
    font-size: 15px;
    margin-top: 0;
    color: #333;
}

.default-content-list li {
    clear: both;
    padding: 5px 0;
}

.default-content-list li .news_img {
    width: 100px;
    float: left;
    margin-right: 10px;
}

/* SECOND COLUMN: NEW FEATURES */
#newfeatures .panel-body {
    height: 403px;
    overflow-x: hidden;
    display: block;
}

#newfeatures_content h4 {
    margin-top: 5px;
}

#newfeatures_content img {
    width: 120px;
    margin-right: 0;
    margin-top: 0;
}

#newfeatures_content .circle_icon {
    width: 100px;
    margin-right: 10px;
}

/* THIRD COLUMN: TWITTER NEWS */
/* Close the gap between tabs and content */
#news .nav-tabs>li {
    margin-bottom: -1px;
}

#news_content {
    padding: 0;
    border: 0;
}

#rcsbnews {
    position: relative;
}

#rcsbnews #weeklyRCSBnews {
    height: 405px;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    border: 1px solid transparent;
    border-color: #ddd;
    border-radius: 4px;
    border-top-left-radius: 0;
    padding: 10px 10px 0 10px;
}

#rcsbnews #wwPDBnews {
    height: 140px;
    overflow-y: scroll;
    overflow-x: hidden;
    display: block;
    border: 5px solid #8DBD8D;
    padding: 15px;
}

#rcsbnews #wwPDBnews .logo {
    width: 100px;
    margin-bottom: 20px;
    margin-top: 10px;
}

/* wwPDB news anchor colors */
#rcsbnews #wwPDBnews a {
    color: #0B810B;
}

#rcsbnews #wwPDBnews .top_wwpdbnews a {
    font-size: 14px;
    font-weight: bold;
}

#rcsbnews #wwPDBnews .date {
    font-weight: normal;
}

#rcsbnews .news_thumbnail {
    width: 160px;
}
/* Some other news related CSS can be found within secondary.css */

/* THIRD COLUMN: PUBLICATIONS */
#news_content .feature_block img {
    width: 43%;
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
}

#news_content .feature_block .img-heightlong {
    width: 40%;
}

#news_content h3 {
    color: #000000;
}

#featuredsystems,
#moleculeofthemonth,
#quarterlynews,
#annualreport {
    border: 1px solid #ddd;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 10px;
    height: 407px;
    margin-top: -3px;
}

#featuredsystems h4,
#moleculeofthemonth h4,
#quarterlynews h4,
#annualreport h4{
    font-size: 15px;
}

#quarterlynews .notes {
    font-size: 12px;
}

#news .dropdown .dropdown-menu hr {
    margin-top: 5px;
    margin-bottom: 5px;
}

#middlesection #psi_title {
    font-size: 17px;
}

#HomepageImage {
    padding: 0 15px 15px 15px;
}

.no-padding{
    padding: 0;
}

.min-LR-padding {
    padding: 0 3px 0 3px;
}

.eachFeatures {
    padding: 10px 10px 0 10px;
}
