/**
 * File: tcmi_front_page.css
 *
 * Topic: Description
 * Implements CSS styles for elements on the front page of the website
 *
 * Topic: Author
 * Kenny Shields
 *
 * Topic: Copyright
 * The Children's Museum of Indianapolis
 */

/**
 * Style: #front-page-blocks-top
 * CSS identifier for the top row of content blocks on the front page, primarily used to
 * display hours and advertisements. This style is used to set the background color of the
 * row.
 */
#front-page-blocks-top {
    background: rgb(225, 225, 225);
}

/**
 * Style: #front-page-blocks-top-wrapper
 * CSS identifier for a wrapper within the top content blocks row, used mainly to set
 * a fixed width on the content of the row and center it horizontally on the page.
 */
#front-page-blocks-top-wrapper {
    width: 1540px;
    margin: auto;
}

/**
 * Style: #front-page-blocks-top-content
 * CSS identifier for the content wrapper of the top blocks row, with the purpose of
 * padding the content of the row.
 */
#front-page-blocks-top-content {
    padding: 20px;
}

/**
 * Style: .front-page-block
 * CSS class for front page blocks. Primarily used as content containers for sub-content.
 */
.front-page-block {
    background: #ffffff;
    border: 1px solid #b3b3b3;
    border-radius: 7px;
    width: 740px;
    height: 345px;
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
}

.front-page-block:nth-child(4),
.front-page-block:nth-child(5) {
    margin-top: 10px;
}

/**
 * Style: .front-page-block-content
 * CSS class for content areas contained withing front-page blocks.
 */
.front-page-block-content {
    padding: 10px;
    max-height: 340px;
    text-align: center;
}

/**
 * Style: .front-page-block-image
 * CSS class for general images contained within front-page blocks.
 */
.front-page-block-image {
    max-width: 350px;
    max-height: 325px;
}

/**
 * Style: #front-page-hours-block
 * CSS class for the large version of the front-page hours block. This is where
 * museum hours are displayed.
 */
.front-page-hours-block {
    width: 350px;
    display: inline-block;
    vertical-align: top;
}

/**
 * Style: .front-page-hours-block-content
 * CSS class for content areas contained within the front-page hours block.
 */
.front-page-hours-block-content {
    padding: 5px;
}

/**
 * Style: .front-page-hours-block-image
 * CSS class for images contained within the front-page hours block.
 */
.front-page-hours-block-image {
    text-align: center;
    border-bottom: 1px solid #b3b3b3;
}

.front-page-hours-block-image img {
    max-width: 220px;
}

/**
 * Style: .front-page-hours-block-text
 * CSS class for text contained within the front-page hours block.
 */
.front-page-hours-block-text {
    padding: 10px;
    height: 100px;
    text-align: center;
    margin-top: 15px;
}

/**
 * Style: .front-page-hours-block-divider
 * CSS class for displaying a vertical divider between content areas in the front-page
 * hours block.
 */
.front-page-hours-block-divider {
    border-left: 1px solid #b3b3b3;
    display: inline-block;
    width: 1px;
    height: 280px;
}

.front-page-block-header {
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 10px;
    padding-right: 10px;
    background: #0069AA;
    color: #ffffff;
    text-align: center;
    font-family: "Passion One";
    font-size: 32px;
}

.front-page-block-header img {
    width: 28px;
    height: 28px;
    margin-top: -2px;
    margin-right: 7px;
    vertical-align: middle;
}

#calendar-widget {
    margin-top: 10px;
    width: 740px !important;
    height: 345px !important;
    min-height: 345px !important;
    display: inline-block;
}

#calendar-ages h2,
#calendar-categories h2 {
    margin-top: 10px !important;
}

#front-page-hours-block-small {
    display: none;
    width: 370px;
}

.front-page-hours-block-row {
    text-align: left;
    padding: 5px;
    padding-left: 0px;
    padding-right: 0px;
}

.front-page-hours-block-row:nth-child(1) {
    padding-top: 10px;
}

.front-page-hours-block-row img {
    display: inline-block;
    max-width: 150px !important;
    border-right: 1px solid #b3b3b3;
    vertical-align: middle;
}

.front-page-hours-block-text-cell {
    display: inline-block;
    width: 170px;
    height: 120px;
    vertical-align: middle;
    font-size: 18px;
    line-height: 120px;
}

.front-page-hours-block-text-cell span {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

.front-page-hours-block-horizontal-divider {
    margin: 10px;
    border-bottom: 1px solid #b3b3b3;
}

#front-page-block-image-left {
    margin-right: 3px;
    display: inline-block;
}

#front-page-block-image-right {
    margin-left: 3px;
    display: inline-block;
}

#front-page-rotator-block {
    margin-top: 10px;
}

#front-page-calendar-widget-container {
    width: 740px;
    text-align: left;
    /* background-image: url(/sites/all/themes/tcmi/images/frontpage/Calendar-MAH-Large.jpg);
    background-size: cover;
    background-position: center; */
    cursor: pointer;
}

#frontpage-dig-deeper {
    background: rgb(225, 225, 225);
}

#frontpage-dig-deeper-content {
    padding: 30px;
    max-width: 1500px;
    margin: auto;
    text-align: center;
}

#frontpage-dig-deeper-header {
    font-size: 32px;
    font-family: "Passion One", sans-serif;
    margin-bottom: 10px;
    max-width: 1500px;
    margin: auto;
    text-align: left;
}

#frontpage-dig-deeper-seeall {
    display: inline-block;
    margin-left: 15px;
}

#frontpage-dig-deeper-seeall a {
    color: #ff9801 !important;
    text-decoration: none;
}

#frontpage-dig-deeper-seeall img {
    vertical-align: middle;
    width: 24px;
}

.frontpage-dig-deeper-panel {
    border-radius: 10px;
    position: relative;
    background: #ffffff;
    padding: 5px;
    border: 1px solid #b3b3b3;
    width: 340px;
    display: inline-block;
    margin-right: 10px;
    margin-top: 10px;
    overflow: hidden;
    vertical-align: top;
    text-align: left;
    cursor: pointer;
}

.frontpage-dig-deeper-panel-image-container {
    max-height: 340px;
    overflow: hidden;
}

.frontpage-dig-deeper-panel h2 {
    margin-top: 5px;
    margin-bottom: 5px;
}

.frontpage-dig-deeper-tag {
    position: absolute;
    color: #ffffff;
    font-family: "Passion One";
    font-size: 30px;
    padding: 10px;
    width: 300px;
    transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    left: -115px;
    top: 20px;
    text-align: center;
    text-transform: uppercase;
    z-index: 2;
}

.frontpage-dig-deeper-tag.game {
    background: #ff9900;
}
.frontpage-dig-deeper-tag.activity {
    background: #5ab300;
}
.frontpage-dig-deeper-tag.blog {
    background: #0069aa;
}
.frontpage-dig-deeper-tag.graphic {
    background: #5eb6e4;
}
.frontpage-dig-deeper-tag.video {
    background: #662d91;
}
.frontpage-dig-deeper-tag.pinterest {
    background: #ee1c24;
    font-size: 26px;
}
.frontpage-dig-deeper-tag.store {
    background: #ed008c;
}

#frontpage-crowdriff {
    background: rgb(225, 225, 225);
}

#frontpage-crowdriff-header {
    font-size: 32px;
    font-family: "Passion One", sans-serif;
    margin-bottom: 10px;
}

#frontpage-crowdriff-content {
    max-width: 1500px;
    margin: auto;
    padding: 30px;
}

#frontpage-exhibits-slider {
    background: #ffffff;
    padding-top: 20px;
    padding-bottom: 20px;
}

#front-page-sle-video-block {
    width: 100%;
    max-width: 1488px;
    background: #0069aa;
    /* border: 1px solid #562D8D; */
    text-align: initial;
    margin-top: 10px;
    color: #ffffff;
    height: 470px;
}

#front-page-sle-video-block a {
    color: #ffffff;
}

#front-page-sle-video-block-content {
    display: flex;
    height: 345px;
    align-items: stretch;
    flex-wrap: wrap;
}

#front-page-sle-video-block-content-text-header {
    font-size: 32px;
    font-family: "Passion One";
}

#front-page-sle-video-block-content iframe {
    width: 100%;
    height: 360px;
}

#front-page-sle-video-block-content div {
    flex-basis: 45%;
    padding: 15px;
}

#front-page-sle-video-block-content > div:first-of-type {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media(max-width: 1560px) {
    #front-page-blocks-top-wrapper {
        width: 100%;
        text-align: center;
    }
    .front-page-block {
        margin-top: 10px;
    }
}

@media(max-width: 1540px) {
    #front-page-hours-block-small {
        display: inline-block;
    }
    #front-page-hours-block-large {
        display: none;
    }
    #front-page-calendar-widget-container {
        width: 370px;
        /* background-image: url(/sites/all/themes/tcmi/images/frontpage/Calendar-MAH-Small.jpg); */
    }
    .frontpage-dig-deeper-panel:nth-child(4) {
        display: none;
    }
    #front-page-sle-video-block {
        max-width: 1121px;
    }
    #front-page-sle-video-block,
    #front-page-sle-video-block-content {
        max-height: none;
        height: auto;
    }
}

@media(max-width: 1260px) {
    #calendar-date-picker {
        display: none !important;
    }
    #front-page-sle-video-block {
        max-width: 1117px;
    }
}

@media(max-width: 1200px) {
    #front-page-hours-block-small {
        display: none;
    }
    #front-page-hours-block-large {
        display: inline-block;
    }
    #front-page-calendar-widget-container {
        width: 740px;
        /* background-image: url(/sites/all/themes/tcmi/images/frontpage/Calendar-MAH-Large.jpg); */
    }
    #front-page-sle-video-block {
        max-width: 740px;
    }
    #front-page-sle-video-block-content div:first-child {
        flex-basis: 100%
    }
    #front-page-sle-video-block-content div:last-child {
        padding-top: 0px;
        flex-basis: 100%;
    }
}

@media(max-width: 1160px) {
    .frontpage-dig-deeper-panel:nth-child(3) {
        display: none;
    }
}


@media(max-width: 780px) {
    #front-page-hours-block-small {
        display: inline-block;
    }
    #front-page-hours-block-large {
        display: none;
    }
    .front-page-block {
        width: 370px;
    }
    #front-page-calendar-widget-container {
        width: 370px;
        /* background-image: url(/sites/all/themes/tcmi/images/frontpage/Calendar-MAH-Small.jpg); */
    }
    #front-page-sle-video-block-content iframe {
        height: 200px;
    }
    #front-page-sle-video-block,
    #front-page-sle-video-block-content {
        max-width: 370px;
/*
        max-height: none;
        height: auto;
*/
    }
    #front-page-block-image-right {
        display: none;
    }
    #front-page-tickets-block {
        height: auto !important;
    }
    #front-page-tickets-block .front-page-block-content {
        max-height: none;
    }
    .frontpage-dig-deeper-panel {
        margin-right: 0px;
    }
}

@media(max-width: 400px) {
    .front-page-block {
        width: 354px;
        height: auto;
    }
    #front-page-calendar-widget-container {
        width: 354px;
        height: 345px;
        /* background-image: url(/sites/all/themes/tcmi/images/frontpage/Calendar-MAH-Small.jpg); */
    }
    #front-page-hours-block-small {
        width: 354px;
    }
    .front-page-hours-block-row img {
        max-width: 140px !important;
    }
    .front-page-hours-block-text-cell {
        width: 130px;
        font-size: 16px;
    }
    #frontpage-dig-deeper-content {
        padding: 10px;
    }
    #front-page-blocks-top-content {
        padding: 10px !important;
    }
}

@media(max-width: 375px) {
    .front-page-block {
        width: 300px;
        height: 275px
    }
    #front-page-calendar-widget-container {
        width: 300px;
        height: 275px
        /* background-image: url(/sites/all/themes/tcmi/images/frontpage/Calendar-MAH-Small.jpg); */
    }
    #front-page-hours-block-small {
        width: 300px;
        height: 275px
    }
    .front-page-hours-block-row {
        height: 80px;
    }
    .front-page-hours-block-row:nth-child(1) {
        padding-top: 0px;
        padding-bottom: 0px;
    }
    .front-page-hours-block-row:last-child {
        padding-top: 15px !important;
    }
    .front-page-hours-block-row img {
        width: 100% !important;
        height: auto !important;
        max-width: 130px !important;
        border-right: none;
    }
    .front-page-hours-block-horizontal-divider {
        display: none;
    }
    .frontpage-dig-deeper-panel {
        width: 300px;
    }
    #front-page-sle-video-block,
    #front-page-sle-video-block-content {
        max-width: 300px;
    }
}

@media(max-width: 330px) {
    .front-page-block {
        width: 280px;
    }
    #front-page-calendar-widget-container {
        width: 280px;
        /* background-image: url(/sites/all/themes/tcmi/images/frontpage/Calendar-MAH-Small.jpg); */
    }
    #front-page-hours-block-small {
        width: 280px;
    }
    .frontpage-dig-deeper-panel {
        width: 280px;
    }
    .front-page-hours-block-text-cell {
        width: 120px;
        font-size: 16px;
    }
    #front-page-sle-video-block,
    #front-page-sle-video-block-content {
        max-width: 280px;
    }
}
