/*
Theme Name: What UK Thinks EU
Theme URI: https://www.whatukthinks.org/eu/
Author: dxw
Author URI: https://www.dxw.com
Description: Theme for What UK Thinks EU
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: natcen

*/

/* prevent content img overflow */

[class^="col-"] .wp-caption,
[class^="col-"] img {
	max-width: 100% !important;
	height: auto;
}


/* iphone - prevent table overflow */
.single-questions .container {
	overflow: hidden !important;
	position: relative;
}

.navbar .form-group {
	margin-bottom:0;
}

footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

footer li {
	margin-bottom: 8px;
}

.footer-right li {
	display:inline-block;
	margin-right: 10px;
}




.highcharts-range-selector-buttons {
	display:none;
}
.highcharts-legend, .highcharts-legend div, .highcharts-legend-item {
	width:100%;
}
.highcharts-tooltip span {
	white-space: normal !important;
	position: relative !important;
	display: block;
	width: 100%;
	max-width:250px;
	background:#F6f6f6;
}
.highcharts-legend-label {
	max-width: 250px;
	white-space: normal;
}
@media (min-width: 767px ) {
	.highcharts-tooltip span {
		max-width: 500px;
	}
	.highcharts-legend-label {
		max-width: 600px;
	}
}
@media (min-width: 992px ) {
	.highcharts-tooltip span {
		max-width: 800px;
	}
	.highcharts-legend-label {
		max-width: 800px;
	}
}
@media (min-width: 1200px ) {
	.highcharts-legend-label {
		max-width: 1000px;
	}
}


/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}



/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin: 0 auto;
}

.wp-caption-text {
	text-align: center;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
	margin-bottom: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-caption {
	display: block;
}

.media-body {
	width: auto;
}

.media-left {
	width: 60px;
}

#submit {
	background-color: #e82e8f;
	font-weight: bold;
	color: #fff;
	display: inline-block;
	padding: 6px 12px;
	margin: 1rem 0 0 0;
	font-size: 14px;
	line-height: 1.42857143;
	text-align: center;
	white-space: normal;
	vertical-align: middle;
	-ms-touch-action: manipulation;
	touch-action: manipulation;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	background-image: none;
	border: 1px solid #e31983;
}
