/*
	Theme Name: relevantfi
	Theme URI: http://relevant.fi
	Description: relevant WP-THEME
	Version: 1.0
	Author: Mikko Rauhamäki)
	Author URI: mikkorauhamaki.fi
	Tags: HTML5Blank child, HTML5, CSS3, Relevant

	License: MIT
	License URI: http://opensource.org/licenses/mit-license.php
*/


/**
 * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
 * http://cssreset.com
 */

/* RESETS START */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;

}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}

ol, ul {
	list-style: none;
}


table {
	border-collapse: collapse;
	border-spacing: 0;
}


/* RESETS END */


/* TYPOGRAPHY RESETS */


h1, h2, h3, h4 {
	font-family: 'Sanchez', serif;
}

h1 {
	font-size: 36px;
	line-height: 42px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

h2 {
	font-size: 30px;
	line-height: 40px;
}

h3 {
	font-size: 20px;
	line-height: 30px;


}

p {
	font-size: 17px;
	line-height: 28px;
	margin: 5px 0px;
	font-weight: 300;

}

strong {
	font-weight: 600;
}

a,
.filter__reset-button {
	text-decoration: none;
	-webkit-transition: all ease-in-out .2s;
	-moz-transition: all ease-in-out .2s;
	-o-transition: all ease-in-out .2s;
	transition: all ease-in-out .2s;
	color: #02bdf1;
	font-weight: 600;
}

/* MAINSTYLES */

html {
	width: 100%;
	height: 100%;

}

body {
	width: 100%;
	height: 100%;
	font-weight: 400;
	background-color: #fff;
	color: #2d2d2d;
	font-family: 'Open Sans', sans-serif;
}


/* MAIN HEADER STYLES */

.main-header {
	z-index: 1000;
	position: fixed;
	top: 0;
	width: 100%;
	background-color: #fff;
	height: 75px;
	opacity: 1;

	-webkit-transition: all ease-in-out .5s;
	-moz-transition: all ease-in-out .5s;
	-o-transition: all ease-in-out .5s;
	transition: all ease-in-out .5s;
}

.main-header-follower {
	z-index: 1000;
	position: fixed;
	top: 0;
	width: 100%;
	opacity: .2;
	height: 40px;

	-webkit-transition: all ease-in-out .5s;
	-moz-transition: all ease-in-out .5s;
	-o-transition: all ease-in-out .5s;
	transition: all ease-in-out .5s;

}

.main-header-follower:hover {
	height: 75px;
	opacity: 1;
}

#relevant-logo {
	position: absolute;
	top: 50%;
	left: 60px;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	max-height: 60px;

	-webkit-transition: all ease-in-out .5s;
	-moz-transition: all ease-in-out .5s;
	-o-transition: all ease-in-out .5s;
	transition: all ease-in-out .5s;

	z-index: 2100;
}

.main-header-follower img#relevant-logo {

	max-height: 30px;


}

/* MAIN HEADER STYLES */


/* NAV STYLES */

#menu-button {
	display: none;
}

.main-nav {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);

	margin: 0 auto;
	text-align: center;
}

.secondary-nav {
	display: none;
	position: absolute;
	right: 60px;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);

	margin: 0 auto;
	text-align: center;
}

.main-menu-container {
	position: relative;
	height: 75px;
	-webkit-transition: all ease-in-out .5s;
	-moz-transition: all ease-in-out .5s;
	-o-transition: all ease-in-out .5s;
	transition: all ease-in-out .5s;


}

.main-menu-follower {
	height: 40px;
}

.main-header-follower:hover .main-menu-follower {
	height: 75px;
	opacity: 1;
}

.main-nav ul li {
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	display: inline-block;
	padding: 0px 20px;
}

.secondary-nav ul li {
	font-weight: 400;
	font-size: 14px;
	text-transform: uppercase;
	display: inline-block;
	padding: 0px 5px;
}


.main-nav li a,
.secondary-nav li a {
	color: #1d1d1d;
	text-decoration: none;
}

.main-nav ul li a:hover {
	color: #02BDF1;
}


.main-nav ul li ul {
	display: none;
	background: #02BDF1;
	text-align: left;
}

.main-nav li:hover ul {
	display: block;
	padding: 15px 5px;

	position: absolute;

}

.main-nav ul li ul li {
	display: block;
	padding: 5px 15px;
	margin: 0;
}

.main-nav ul li ul li a {

	font-size: 14px;
	font-weight: 400;
	color: #fff;
}

.main-nav ul li ul li a:hover {

	color: #fff;

}

.main-nav li.menu-item a {
	display: none;
}

.main-nav li.current-menu-item a {
	color: #02BDF1;
	display: initial;
}

.main-nav li.current-menu-item ul li a {
	color: #fff;
}

.main-nav li.current_page_ancestor a {
	color: #02BDF1;
}

.main-nav li.current_page_ancestor ul li a {
	color: #fff;
}

.main-nav .current_page_item a {
	font-weight: 800;
}

/* NAV STYLES ENDS */

/* FOOTER styles */

footer {
	width: 100%;
	overflow: hidden;
	padding: 40px 0px 80px 0px;
	background-color: #262f3d;
	color: #fff;


}

footer a {
	color: #fff !important;

}

footer p {
	line-height: 19px;
	font-size: 14px
}

footer img {
	width: 180px;
	max-width: 80%;
}


/*  Media Queries  */


@media only screen and (max-width: 1440px) {
	/* TYPOGRAPHY RESETS */
	h1 {
		font-size: 30px;
		line-height: 34px;
	}

	h2 {
		font-size: 22px;
		line-height: 28px;
	}

	h3 {
		font-size: 18px;
		line-height: 26px;
	}

	.main-nav ul li {
		font-size: 15px;
		padding: 0px 10px;
	}

	.secondary-nav ul li {
		font-size: 13px;
	}

	.secondary-nav ul li {
		font-size: 13px;
	}

	.main-nav ul li ul li {
		font-size: 14px;
	}

	#relevant-logo {
		left: 30px;
		max-height: 60px;
	}

	.secondary-nav {
		right: 30px;
	}


}


@media only screen and (max-width: 1260px) {
	/* TYPOGRAPHY RESETS */
	h1 {
		font-size: 24px;
		line-height: 30px;
	}

	h2 {
		font-size: 20px;
		line-height: 28px;
	}

	h3 {
		font-size: 18px;
		line-height: 26px;
	}


}


@media only screen and (max-width: 1024px) {


	/* MAINSTYLES ENDS */
	/* MAIN HEADER STYLES */
	.main-header-follower {
		opacity: 1;
		height: 75px;
	}

	.main-header-follower:hover {
		height: 75px;
		opacity: 1;
	}

	.main-header-follower img#relevant-logo {
		max-height: 60px;
	}

	/* MAIN HEADER STYLES */
	/* NAV STYLES */
	#menu-button {
		position: fixed;
		right: 0;
		top: 0;
		margin: 0px;
		width: 50px;
		height: 60px;
		display: inline-block;
		background: transparent;
		color: #000;
		font-family: arial;
		font-weight: bold;
		font-style: normal;
		font-size: 2.5em;
		text-align: center;
		cursor: pointer;
		z-index: 7000;
	}

	.main-nav,
	.secondary-nav {
		top: 0;
		-webkit-transform: translateY(0%);
		-ms-transform: translateY(0%);
		transform: translateY(0%);
	}

	.main-nav {
		position: static;
		width: 90%;
		text-align: left;
		margin: 75px auto 20px auto;
	}

	.main-menu-container {
		display: none;
		position: fixed;
		overflow: scroll;
		left: 0;
		right: 0;
		top: 0;
		height: 100%;
		background: #fff;
	}

	.main-menu-container.open {
		display: block;
	}


	.main-nav ul li {
		font-size: 17px;
		display: block;
		padding: 3px 0px;
	}


	.main-nav ul li ul {
		display: block;
		background: transparent;
		padding: 0px 30px 10px 35px;

	}

	.main-nav li:hover ul {
		display: block;
		padding: 0px 30px 10px 35px;
		position: static;

	}

	.main-nav ul li ul li {
		display: block;
		padding: 5px 0px;

		text-align: left;
	}

	.main-nav ul li ul li a {
		font-size: 14px;
		font-weight: 400;
		color: #2d2d2d;
	}

	.main-nav ul li ul li a:hover {
		color: #2d2d2d;
	}

	.main-nav li.current-menu-item ul li a,
	.main-nav li.current_page_ancestor ul li a {
		color: #2d2d2d;
	}


	.secondary-nav {
		position: static;
		width: 90%;
		text-align: left;
		margin: 0 auto;
	}

	.secondary-nav ul li {
		font-size: 14px;
		display: block;
		font-weight: 800;
		padding: 5px 0px;
	}

}


@media only screen and (max-width: 768px) {

	html {

		height: auto;

	}

	body {

		height: auto;


	}

	/* TYPOGRAPHY RESETS */
	h1 {
		font-size: 22px;
		line-height: 26px;
	}

	h2 {
		font-size: 19px;
		line-height: 25px;
	}

	h3 {
		font-size: 16px;
		line-height: 22px;
	}

	p {
		font-size: 15px;
		line-height: 24px;
	}

	.page-main-title {

		font-size: 40px;
		line-height: 40px;

	}

	/* TYPOGRAPHY RESETS END HERE */
	/* //////////// INDEX PAGE STYLES //////////////// */
	/* MAINSTYLES ENDS */
	/* MAIN HEADER STYLES */
	.main-header-follower {
		opacity: 1;
		height: 75px;
	}

	.main-header-follower:hover {
		height: 75px;
		opacity: 1;
	}

	#relevant-logo {
		left: 5%;
		max-height: 45px;
	}

	.main-header-follower img#relevant-logo {
		max-height: 45px;
	}

	/* MAIN HEADER STYLES */
	footer img {
		max-width: 135px;
	}

}


/* OWN CSS */
body {
	margin: 0;
	font-family: 'Open Sans', sans-serif;
	font-weight: 300;
	color: #2d2d2d;
}

a,
a:hover,
a:visited,
a:active {
	text-decoration: none;
	color: #02BDF1;
	font-weight: 600;
}

.container {
	max-width: 920px;
	margin: 0 auto;
	padding: 0 10px;
}

.container--select-category {
	max-width: 800px;
}

.select-category__heading {
	text-align: center;
}


@media (min-width: 601px) {
	.select-category__heading {
		text-align: left;
	}
}

.select-category__wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin-bottom: 20px;
	margin-top: 20px;
}

@media (min-width: 601px) {
	.select-category__wrapper {
		margin-bottom: 50px;
		margin-top: 50px;
	}
}

.select-category__category {
	width: 250px;
	height: 250px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #262f3d;
	background-size: cover;
	margin-bottom: 25px;
	text-transform: capitalize;
	color: #ffffff;
}

.select-category__category:hover {
	box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.3);
	color: #ffffff;
}

.select-category__category:visited {
	color: #ffffff;
}

.select-region__wrapper {
	display: flex;
	flex-direction: column;
	margin-bottom: 20px;
	margin-top: 20px;
}

@media (min-width: 601px) {
	.select-region__wrapper {
		flex-direction: row;
		margin-bottom: 50px;
		margin-top: 50px;
	}
}

.select-region__heading {
	margin-top: 30px;
}

.select-region__country {
	text-align: center;
	margin-bottom: 10px;
}

@media (min-width: 601px) {
	.select-region__country {
		width: 25%;
	}
}

.select-region__country__image {
	width: 60px;
}

.select-region__country__text {
	color: #1d1d1d;
}

.select-all__heading {
	margin-bottom: 50px;
	text-align: center;
}

.intro__title {
	font-family: Sanchez, sans-serif;
	font-weight: 400;
}

.filter__title {
	margin: 0 0 20px;
	font-family: Sanchez, sans-serif;
	font-weight: 400;
}

.filter__form {
	display: flex;
	flex-direction: column;
}

@media (min-width: 601px) {
	.filter__form {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.filter__form > *:not(:last-of-type) {
		margin-right: 15px;
	}
}

.filter__group {
	position: relative;
	margin: 0 0 15px;
	height: 40px;
	font-size: 16px;
	font-weight: normal;
	line-height: 22px;
	color: #33475b;
	background-color: #f5f8fa;
	border: 1px solid #cbd6e2;
	box-sizing: border-box;
	flex-grow: 1;
}

.filter__group-title {
	text-transform: uppercase;
	padding: 9px 10px;
	width: 100%;
	float: left;
	box-sizing: border-box;
	cursor: default;
}


.filter__group-title--disabled {
	color: #98a8b9;
}

.filter__dropdown {
	position: absolute;
	width: 100%;
	background: inherit;
	display: flex;
	flex-direction: column;
	border: 1px solid #cbd6e2;
	border-top: 0;
	z-index: 2;
	margin-top: 38px;
	margin-left: -1px;
	max-height: 300px;
	overflow-x: hidden;
	overflow-y: auto;
}

.filter__dropdown.filter__dropdown--hidden {
	display: none;
}

.filter__item {
	text-transform: capitalize;
	padding: 9px 10px 9px 30px;
	position: relative;
}

.filter__checkbox {
	position: absolute;
	left: 10px;
	top: 10px;
}

.filter__text {
	margin: 0 0 15px;
	padding: 9px 10px;
	height: 40px;
	font-size: 16px;
	font-weight: normal;
	line-height: 22px;
	color: #33475b;
	background-color: #f5f8fa;
	border: 1px solid #cbd6e2;
	flex-grow: 1;
	box-sizing: border-box;
	width: 100%;
}

.filter__result-meta {
	width: 100%;
	text-align: center;
	font-weight: 600;
}

.filter__reset-button {
	border: none;
	padding: 0;
	background: none;
	font-size: 100%;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
}

.segments {
	width: 100%;
	margin-bottom: 60px;
	font-weight: 300;
	cursor: default;
}

.segments__spacer {
	height: 20px;
}

.segments__group-header {
	padding: 8px;
	color: #fff;
	background: #02BDF1;
	font-family: Sanchez, sans-serif;
	text-transform: capitalize;
	font-weight: 500;
}

.segments__data,
.segments__header {
	vertical-align: top;
	padding: 7px 14px 7px 0;
}

.segments__header {
	text-align: left;
	font-weight: 400;
}

.segments__header a,
.segments__header a:hover,
.segments__header a:visited,
.segments__header a:active {
	color: #2d2d2d;
}

.segments__header--region,
.segments__data--region {
	display: none;
}

@media (min-width: 501px) {
	.segments__header--region,
	.segments__data--region {
		display: table-cell;
	}
}

.segments__header .icon {
	margin-left: 5px;
}

.segments__data--name > span {
	position: relative;
	text-decoration: none;
}

.segments__data--name > span:before {
	content: "";
	position: absolute;
	width: 100%;
	height: 1px;
	bottom: 0;
	left: 0;
	background-color: #262f3d;
	visibility: hidden;
	-webkit-transform: scaleX(0);
	transform: scaleX(0);
	-webkit-transition: all 0.2s ease-in-out 0s;
	transition: all 0.3s ease-in-out 0s;
}

.segments__data--name > span:hover:before {
	visibility: visible;
	-webkit-transform: scaleX(1);
	transform: scaleX(1);
}

.segments__data--name__new {
	text-transform: uppercase;
	color: #02BDF1;
	margin-left: 10px;
	font-weight: 600;
}

.segments__data--region--icon {
	width: 24px;
}

.segments__data--icon {
	width: 24px;
}

.segments__data--details-expander {
	padding-top: 10px;
}

.segments__header--audience,
.segments__data--size,
.segments__data--duration {
	white-space: nowrap;
	background-color: #262f3d;
	color: #ffffff;
	padding-left: 12px;
	padding-right: 12px;
}

.segments__header--audience a,
.segments__header--audience a:hover,
.segments__header--audience a:visited,
.segments__header--audience a:active {
	color: #ffffff;
}

.segments__header--audience {
	text-align: center;
}

.segments__data--size {
	background-color: #262f3d;
	color: #ffffff;
	text-align: right;
}

.segments__footer {
	border-bottom: 2px solid #262f3d;
}

.segment-details {
	display: none;
	border-left: 7px solid #02BDF1;
	padding: 14px 7px;
}

.segment-details--expanded {
	display: table-cell;
}

.segment-details__expander .icon-chevron-circle-right {
	transition: transform .3s;
}

.segment-details__expander--expanded .icon-chevron-circle-right {
	transform: rotate(90deg);
}

.segment-details__title {
	margin: 0;
	font-family: Sanchez, sans-serif;
	font-weight: 400;
	font-size: 1.5em;
}

.segment-details__tags {
	text-transform: uppercase;
}

.segment-details__description {
	margin: 10px 0;
}

.segment-details__dsp-name {
	margin-bottom: 10px;
}

.segment-details__dsp-guide a {
	font-family: Sanchez, sans-serif;
	font-weight: 400;
	color: #262f3d;
}

footer a {
	color: #ffffff !important;
}

.footer {
	background-color: #262f3d;
	color: #ffffff;
	font-size: 14px;
	font-weight: 300;
}

.footer__wrapper {
	display: flex;
	flex-direction: column;
	max-width: 920px;
	padding: 40px 10px 0;
	margin: 0 auto;
}

@media (min-width: 501px) {
	.footer__wrapper {
		flex-direction: row;
	}
}

.footer__section {
	margin-bottom: 40px;
}

@media (min-width: 501px) {
	.footer__section {
		width: 50%;
	}
}

.footer__section p {
	margin: 0 0 15px;
}

.footer__section strong {
	font-weight: 600;
}

.footer__icon {
	margin-bottom: 10px;
	filter: grayscale(100%);
	transition: filter ease-in-out .2s;
}

.footer__icon:hover {
	filter: none;
}

.footer__icon--home {
	display: block;
}

.footer__icon--social {
	margin-right: 10px;
}

.footer__icon--social img {
	width: 35px;
}

.footer__link {
	color: #ffffff;
}

/* STUFF ADDED WITH NAVIGATION */

/* NAVIGATION EXTRA PADDING */

.container {
	padding-top: 80px;
}

@media (min-width: 501px) {
	.container {
		padding-top: 120px;
	}
}

/* TEXT STYLING */

.intro__title {
	text-transform: none;
}

.intro__paragraph {
	margin: 15px 0px;
}

h1 {
	font-size: 36px;
	line-height: 44px;
	text-transform: none;
	margin-bottom: 20px;
}

@media only screen and (max-width: 1440px) {
	h1 {
		font-size: 30px;
		line-height: 34px;
	}
}

@media only screen and (max-width: 1260px) {
	h1 {
		font-size: 24px;
		line-height: 30px;
	}
}

.tailored-segments__paragraph {
	margin-bottom: 60px;
}

@media only screen and (max-width: 1260px) {
	.tailored-segments__paragraph {
		margin-bottom: 10px;
	}
}
