/*
 * A one-to-one conversion of VismaSpcsCore/ClientApp/src/scss/minsida/minsida.scss —
 * the only source of webpack's minsida.*.css bundle, which is all _LayoutMinSida loads.
 * Same rules, same order, same values, so the product pages render exactly as Min Sida
 * does. Do not "tidy" a rule here without changing the legacy page too: several look
 * redundant but carry the look (e.g. the `a` rule colours an <a> with no href).
 *
 * Variables resolved inline:
 *   $neutral-white = #FFFFFF
 *   $neutral-black = #000000
 *   $secondary-800 = #441774   rgba($secondary-800, x) = rgba(68, 23, 116, x)
 *   $neutral-80    = #494A4A
 *   $neutral-90    = #252626
 *   $blue-60       = #116FAE
 *   $green-70      = #2D7048
 *   $green-90      = #254934
 *
 * The only addition is the ProductHub landing page at the bottom, which Min Sida has
 * no counterpart for; it is scoped to #product-index so it cannot touch a product page.
 */

@font-face {
	font-family: 'icomoon-min-sida';
	src: url('/icons/icomoon/MinSida/icomoon-min-sida.eot');
	src: url('/icons/icomoon/MinSida/icomoon-min-sida.eot?#iefix') format('embedded-opentype'),
	     url('/icons/icomoon/MinSida/icomoon-min-sida.woff') format('woff'),
	     url('/icons/icomoon/MinSida/icomoon-min-sida.ttf') format('truetype'),
	     url('/icons/icomoon/MinSida/icomoon-min-sida.svg#icomoon-min-sida') format('svg');
	font-weight: normal;
	font-style: normal;
	font-display: block;
}

[class^="icon-min-sida-"], [class*=" icon-min-sida-"] {
	font-family: 'icomoon-min-sida' !important;
	speak: never;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

[class^="icon-min-sida-"]::before, [class*=" icon-min-sida-"]::before {
	font-family: 'icomoon-min-sida' !important;
	font-weight: normal;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}

.icon-min-sida-book:before { content: "\e924"; }
.icon-min-sida-books:before { content: "\e64b"; }
.icon-min-sida-chat:before { content: "\e633"; }
.icon-min-sida-close-circle:before { content: "\e94d"; }
.icon-min-sida-cloud-download:before { content: "\e955"; }
.icon-min-sida-cloud-no-circle:before { content: "\e647"; }
.icon-min-sida-gavel:before { content: "\e6db"; }
.icon-min-sida-group:before { content: "\e93f"; }
.icon-min-sida-headphones:before { content: "\e658"; }
.icon-min-sida-headphone-no-circle:before { content: "\e648"; }
.icon-min-sida-home:before { content: "\e938"; }
.icon-min-sida-house:before { content: "\e63f"; }
.icon-min-sida-idea:before { content: "\e641"; }
.icon-min-sida-info:before { content: "\e6d9"; }
.icon-min-sida-light:before { content: "\e93d"; }
.icon-min-sida-movie:before { content: "\e92c"; }
.icon-min-sida-ok-circle:before { content: "\e94c"; }
.icon-min-sida-settings:before { content: "\e649"; }
.icon-min-sida-questionmark:before { content: "\e64f"; }
.icon-min-sida-web:before { content: "\e92e"; }

.display-none {
	display: none;
}

h1 {
	font-family: 'Ubuntu', sans-serif;
	font-size: 34px;
}

h2 {
	margin: 15px 0px 15px 0px;
	color: #252626;
	font-family: Ubuntu, sans-serif;
	font-size: 18px;
	align-self: flex-start;
	max-width: 100%;
	word-wrap: break-word;
}

p {
	max-width: 100%;
	margin: 24px;
	word-wrap: break-word;
	font-size: 12px;
	margin-top: 12px;
}

a {
	text-decoration: none;
	max-width: 100%;
	word-wrap: break-word;
	color: #116FAE;
	font-size: 12px;
}

body {
	min-height: 100vh;
	margin: 0;
	font-family: 'Open Sans', sans-serif;
	font-weight: 300;
	color: #FFFFFF;
	background-color: #FFFFFF;
}

nav {
	height: 60px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	background-color: #FFFFFF;
}

#nav-right {
	padding-right: 5px;
}

#nav-left {
	padding-left: 20px;
}

.navbar-icons {
	display: flex;
	flex-direction: column;
}

.navbar-icons i {
	align-self: center;
	font-size: 30px;
	color: #000000;
}

.button {
	display: flex;
	justify-content: center;
	align-items: center;
	color: #FFFFFF;
	font-size: 16px;
	background-color: #2D7048;
	border-radius: 80px;
	padding: 8px 20px 8px 20px;
}

.button:hover {
	background-color: #254934;
}

#main-content {
	margin-bottom: 20px;
}

#mid {
	position: relative;
}

#flex-area {
	display: flex;
}

#left-column {
	flex: 2;
	margin-top: 5px;
	margin-left: 20px;
	margin-right: 25px;
}

#right-column {
	flex: 3;
	margin-top: 5px;
	margin-left: 25px;
}

.message-list-item {
	border-radius: 6px;
	display: flex;
}

.message-list-item:hover {
	background-color: rgba(68, 23, 116, 0.08);
	box-shadow: 0px 0px 5px 2px rgba(68, 23, 116, 0.08);
}

.message-icon-container {
	align-self: center;
	display: flex;
	flex-direction: column;
	width: 26px;
	padding-left: 4px;
	margin-right: 8px;
}

.message-icon {
	color: #494A4A;
	font-size: 24px;
	align-self: center;
}

.message-text {
	margin: 0;
	margin-top: 3px;
	color: #252626;
}

#information-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.information {
	width: 100%;
	padding: 8px 3px 8px 3px;
	display: block;
	transition: background-color 0.1s ease;
	font-size: 14px;
}

.information-title {
	margin: 0;
}

#tips-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tip {
	width: 100%;
	padding: 8px 3px 8px 3px;
	display: block;
	transition: background-color 0.1s ease;
	font-size: 14px;
}

.tip-title {
	margin: 0;
}

#sfl {
	color: #252626;
}

.article-item {
	display: inline-block;
}

.emulated-flex-gap > * {
	margin: 20px 0 0 20px;
}

.emulated-flex-gap {
	display: inline-flex;
	flex-wrap: wrap;
	margin: -20px 0 0 -20px;
	width: calc(100% + 20px);
}

#sfl-articles, .puffar {
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
}

.sfl-puff {
	background-color: #FFFFFF;
	border-radius: 6px;
	width: 200px;
	box-shadow: 2px 2px 25px 5px rgba(68, 23, 116, 0.10);
}

.sfl-puff:hover {
	box-shadow: 2px 2px 25px 5px rgba(68, 23, 116, 0.22);
}

.sfl-puff a {
	color: #252626;
}

.sfl-puff figure {
	display: block;
	margin: 0;
}

/* Deliberate deviation from minsida.scss, which also has `min-height: 120px` here. With
   the width fixed at 200px, that stretched every image wider than 5:3: the 600x265 the
   editors use came out as 200x120 instead of 200x88, squashed sideways. Without it the
   image keeps its own proportions. */
.sfl-puff figure img {
	display: block;
	max-width: 200px;
	width: 100%;
	border-top-left-radius: 6px;
	border-top-right-radius: 6px;
}

/* Deliberate deviation from minsida.scss, which fixes the big puff at 640px. The
   editors' images are 600px wide, so 640 scaled them up — or, with an intro too short
   to stretch the link to the full width, left a white strip beside them. At 600 a
   600x265 image is shown pixel for pixel.
   The width is a percentage capped at 600 rather than a fixed 600 so the puff follows
   the column in a narrow window instead of pushing it wider and squeezing the left
   column, as the fixed 640 did. The 20px is the left margin .emulated-flex-gap puts on
   the puff. */
.bigpuff {
	width: calc(100% - 20px);
	max-width: 600px;
}

.bigpuff .sfl-puff {
	width: 100%;
}

/* The link is an inline-block that would otherwise shrink to its content; this makes
   the image span the puff whatever the length of the text under it. */
.bigpuff .article-item {
	width: 100%;
}

.bigpuff figure {
	margin: 0;
}

.bigpuff img {
	max-width: 100% !important;
	height: auto;
	object-fit: cover;
}

.text-container {
	display: flex;
	flex-direction: column;
	color: #252626;
	word-wrap: break-word;
	height: 100%;
}

.title {
	margin-top: 24px;
	margin-bottom: 0px;
	font-weight: bold;
	font-size: 16px;
}

.course-title {
	margin-top: 24px;
	margin-bottom: 12px;
	font-weight: bold;
	flex-grow: 1;
}

.description {
	flex-grow: 1;
}

#course-container {
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
}

.course {
	background-color: #FFFFFF;
	border-radius: 6px;
	width: 200px;
	box-shadow: 2px 2px 25px 5px rgba(68, 23, 116, 0.10);
}

.course:hover {
	box-shadow: 2px 2px 25px 5px rgba(68, 23, 116, 0.22);
}

.course-price {
	margin-top: 0;
	font-style: italic;
}

.course-icon {
	padding-top: 24px;
	padding-left: 24px;
	font-size: 24px;
	color: #494A4A;
}

.three-row-ellipsis {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

#faq {
	color: #252626;
	display: flex;
	flex-direction: column;
	padding: 10px 15px 30px 15px;
	margin: 20px 10px 20px 10px;
}

#webfraga {
	color: #252626;
	display: flex;
	flex-direction: column;
}

.flex-article {
	display: flex;
	border-radius: 6px;
	flex-direction: column;
	color: #252626;
	padding: 16px;
	background-color: #FFFFFF;
	box-shadow: 2px 2px 25px 5px rgba(68, 23, 116, 0.10);
}

.bottom-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #252626;
	background-color: #FFFFFF;
	padding: 0px 200px 25px 200px;
}

.banner {
	background-color: #FFFFFF;
	overflow-x: hidden;
	margin-bottom: 10px;
	display: block;
	box-shadow: 2px 2px 25px 5px rgba(68, 23, 116, 0.10);
}

.banner-hover-shadow:hover {
	box-shadow: 2px 2px 25px 5px rgba(68, 23, 116, 0.22);
}

.banner-information {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	padding: 18px;
	font-size: 14px;
	transition: background-color 0.1s ease;
}

/* Deliberate deviation from minsida.scss: legacy sets no color for a banner without
   a link (a <div>, not an <a>), so it inherited body's white and was invisible on the
   white banner. Scoped to the div so a linked banner keeps the `a` color as in legacy. */
div.banner-information {
	color: #252626;
}

.banner-information-icon {
	font-size: 20px;
	margin-right: 8px;
}

/* Legacy uses id="puff-description" on every puff; a class gives the same result
   (it outranks the bare `p` rule just as the id did) without duplicate ids. */
.puff-description p {
	overflow: hidden;
	position: relative;
	/* use this value to count block height */
	line-height: 1.2em;
	/* max-height = line-height (1.2) * lines max number (3) */
	max-height: 3.6em;
	/* place for '...' */
	padding-right: 1em;
}

.puff-description ul {
	padding-bottom: 12px;
	padding-right: 6px;
}

/*ellipsis 2 lines*/
/* styles for '...' */
.ellipsis-two-lines {
	overflow: hidden;
	position: relative;
	/* use this value to count block height */
	line-height: 1.2em;
	/* max-height = line-height (1.2) * lines max number (3) */
	max-height: 2.4em;
	/* place for '...' */
	padding-right: 1em;
}
/* create the ... */
.ellipsis-two-lines:before {
	content: '...';
	position: absolute;
	right: 0;
	bottom: 0;
}
/* hide ... if we have text, which is less than or equal to max lines */
.ellipsis-two-lines:after {
	content: '';
	position: absolute;
	right: 0;
	width: 1em;
	height: 1em;
	margin-top: 0.2em;
	background: white;
}
/*ellipsis 3 lines*/
/* styles for '...' */
.ellipsis-three-lines {
	overflow: hidden;
	position: relative;
	/* use this value to count block height */
	line-height: 1.2em;
	/* max-height = line-height (1.2) * lines max number (3) */
	max-height: 3.6em;
	/* place for '...' */
	padding-right: 1em;
}
/* create the ... */
.ellipsis-three-lines:before {
	content: '...';
	position: absolute;
	right: 0;
	bottom: 0;
}
/* hide ... if we have text, which is less than or equal to max lines */
.ellipsis-three-lines:after {
	content: '';
	position: absolute;
	right: 0;
	width: 1em;
	height: 1em;
	margin-top: 0.2em;
	background: white;
}

.timeTickerHolder {
	width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.text-center {
	text-align: center !important;
}

.mt-2 {
	margin-top: 30px !important;
}

.timeTickerHolder .timeTickerValueSpacer {
	color: #48237D;
	display: inline-block;
	vertical-align: top;
	margin-top: 5px;
	font-size: 3.2rem;
	padding-left: 5px;
	padding-right: 5px;
}

.tickerValueHolder {
	color: #48237D;
	white-space: nowrap;
	display: inline-block;
	text-align: center;
	border: 1px solid #48237D;
	min-width: 73px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	border-radius: 4px;
	padding: 12px;
}

.tickerValueHolder .timeValueLabel {
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 600;
}

.dbg {
	font-family: "Garamond", serif;
	font-size: 3.6rem;
	line-height: 1.15em;
	font-weight: 600;
	letter-spacing: 3px;
	margin-right: -3px;
}

@media only screen and (max-width: 575px) {
	.tickerValueHolder {
		padding: 6px;
	}

	.tickerValueHolder .timeValueLabel {
		font-size: 1rem;
	}

	.timeTickerHolder .timeTickerValueSpacer {
		font-size: 3.6rem;
		padding-left: 0px;
		padding-right: 0px;
	}

	.dbg {
		font-size: 3.6rem;
	}
}

/* ---- ProductHub only: the landing page's product list (no Min Sida counterpart). ---- */

#product-index {
	padding: 0 20px;
	color: #252626;
}

#product-index h1,
#product-index p {
	margin-left: 0;
	margin-right: 0;
	font-size: 14px;
}

#product-index h1 {
	font-size: 34px;
}

#product-index .product-list {
	list-style: none;
	padding: 0;
	margin: 20px 0;
}

#product-index .product-list li {
	margin: 12px 0;
}

#product-index .product-list a {
	display: block;
	padding: 16px 24px;
	background-color: #FFFFFF;
	border-radius: 6px;
	color: #252626;
	font-size: 16px;
	font-weight: bold;
	box-shadow: 2px 2px 25px 5px rgba(68, 23, 116, 0.10);
}

#product-index .product-list a:hover {
	box-shadow: 2px 2px 25px 5px rgba(68, 23, 116, 0.22);
}
