@charset "utf-8";
/* CSS Document */

#reading-panel{
    max-height: 85%;
    height: auto;
    max-width: 800px;
    width: 93%;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: 50%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), 0 -1px 0px rgba(0,0,0,0.02);
    /*border-radius: 2px;*/
    display: none;
    z-index: 3002;
    transform: translate(0%, -50%);
    /*padding-bottom: 173px;*/

    overflow: auto;
    border-radius: 5px;
}

/* READING PANEL HEADER*/

.reading-panel-header{
	background-color: #455560!important;
	color:#fff;
}

.btn-close-reading-panel {
    position: absolute;
    right: 8px;
	top: 9px;
    font-size: 32px;
	height: 40px;
    width: 40px;
	border-radius: 46px;
	font-weight: 700;
    background-color: #F5F5F5;
    color: #455560;
	border: none;
	line-height: 1;
}
.btn-close-reading-panel:hover{
	background-color: #f0ad4e;
	color: white;
}

/* Event Title, date and mini desc styling*/
.event-title-container {
	padding: 1px 10px;
	height:115px;
}

.reading-panel-title {
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reading-panel-desc {
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tab Switch buttons*/
.reading-panel-btns-container {
	padding: 10px 0;
	display: flex;
	justify-content: space-evenly;
	background-color: lightgray;
}

.btn-panel-switch, .btn-panel-switch.active{
	outline-color: transparent;
}

.btn-panel-switch.active, .btn-panel-switch:hover,  .btn-panel-switch.active:focus, .btn-panel-switch.active:hover {
	background-color: #f0ad4e;
	color: white;
}

/* PANEL CONTENT*/

.reading-panel-content {
	height: 100%;
	display: flex;
    justify-content: center;
    background-color: gainsboro;
}

#reading-panel-iframe {
	height: 100%;
	width: 100%;
	display: table;
	border: none;
	outline: none;
	margin: 0;
	background-color: #fff;
}

#event-summary {
    background-color: #F5F5F5;
    color: #444;
    padding: 10px 50px;
	overflow: auto;
}



/* hide small header for used for mobile landscape view*/

.reading-panel-title-inline-wrapper{display: none}



/*RESPONSIVE - MOBILE*/

@media only screen and (max-device-width: 790px){
/* Make panel open fullscreen*/
	#reading-panel {
		height: 80%;
		width: 100%;
		padding-bottom: 100px;
	}
	/*re-position close btn*/
	.btn-close-reading-panel{
		bottom: 20px;
		right: 20px;
		top: auto;
		background-color: #455560;
    	color: #F5F5F5;
	}
	/*extra padding for mobile*/
	#event-summary {padding-bottom: 100px}

}



/*RESPONSIVE - MOBILE - Remove reading panel header & replace with mini inline header for mobile Landscape */
@media only screen and (max-device-height: 450px) {

	.reading-panel-title-inline-wrapper {
		display:inherit;
		padding-left:5px;
	}

	.reading-panel-title-inline{
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		max-width: 270px
	}

	.reading-panel-header {
		margin-top: 0px
	}

	#reading-panel{
		height: 100%;
		width: 100%;
		padding-bottom: 54px;
	}
	.reading-panel-btns-container{
		padding: 6px 0
	}

	.event-title-container {
		display: none;
	}

}
