:root {
	--primary-color: #4a54ff;
	--deadline-color: #ff6347;
	--closed-color: #bdc3c7;
	--view-after-color: #909497;
	--border-radius: 12px;
	--shadow-light: rgba(0, 0, 0, 0.1);
	--pulse-color-soft: rgba(255, 160, 122, 0.4);
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

/* general */

.simple-margin {
	margin-bottom: 0.7em;
	margin-top: 0.7em;
}

.nowrap {
	white-space: nowrap;
}

.info-description {}

.info-data {
	font-weight: 600;
}

/* carousel */

#main_carousel {
	display: block;
	padding-top: 0px;
}

.container .carousel {
	margin-bottom: 0px;
}

.container-carousel {
	margin-top: 2.5em;
	margin-left: 0px;
	width: 100%;
}

.carousel-text-crop {
	overflow: hidden;
	height: 29em;
	position: relative;
}

.carousel-text-crop h1 {
	font-size: 2.5em;
	font-weight: 600;
}

.carousel-head {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 0px;
	margin: 0px;
	top: 10em;
}

.carousel-head .lead {
	font-weight: 400;
}

.carousel-overlay {
	position: absolute;
	bottom: 0;
	margin-left: 0;
	margin-right: 0;
	width: 100vw;
	z-index: 10;
	padding: 20px;
	align-self: center;
	text-align: center;
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;

}

.carousel-overlay h1 {
	width: fit-content;
	padding: 20px;
	background-color: rgba(0, 0, 0, 0.6);
	color: white;
	border-radius: 25px;
}

.carousel-inner img {
	width: 100%;
	max-width: unset;
	border-radius: 100px;
	height:auto;
	margin-left: auto;
	margin-right: auto;
}

/* page title */

.page-title-official {
	background-color: #fff;
	/*background-image: url(../images/off_brown.jpg);*/
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
}

.page-title {
	padding-top: 0.8em;
	padding-bottom: 1.0em;
	position: absolute;
	top: 0.5em;
}

.page-title-small {
	padding-top: 0.5em;
	padding-bottom: 0.8em;
	cursor: pointer;
}

.page-title img {
	height: 80px;
}

.page-title-small img {
	height: 50px;
}

.lang-img {
	border: 0px solid #aaa;
	width: 20px;
	height: 20px;
	border-radius: 20px;
}

.list-img {
	margin-top: 10px;
}

.off-lead {
	/*font-family: 'Noticia Text', serif;*/
	font-weight: 400;
}

.off-gray,
.off-gray a {
	/*color: #5f6161;*/
}

.off-blue,
.off-blue a {
	color: #438390;
}

.carousel-indicators {
	top: 15px;
	right: 15px;
	bottom: auto;
	left: auto;
	z-index: 0;
}

/* section title */

.section-title {
	font-size: 2.0em;
	font-weight: 300;
	margin-top: 1.0em;
	margin-bottom: 0.7em;
}

.section-title a,
h1 a,
h4 a {
	color: #000;
	text-decoration: none;
}

.section-title a:hover,
h1 a:hover,
h4 a:hover {
	color: #000;
	text-decoration: none;
}

/* content box */

.box {
	display: block;
	padding: 0px;
	line-height: 20px;
	/*border:1px solid #ddd;
	-webkit-box-shadow:0 1px 5px rgba(0,0,0,0.1);
	-moz-box-shadow:0 1px 5px rgba(0,0,0,0.1);
	box-shadow:0 1px 5px rgba(0,0,0,0.1);*/
	background-color: #fff;
	overflow: hidden;
	margin-top: 1.0em;
	margin-bottom: 1.0em;
}

.box {
	border-radius: var(--border-radius);
	/* Pehmed nurgad */
	overflow: hidden;
	box-shadow: 0 5px 20px var(--shadow-light);
	transition: all 0.3s ease;
	cursor: pointer;
}


.box-link {
	/*border-top: 3px solid #0c1;*/
	/* #0c1 */

	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	-ms-transition: all 0.5s ease;
	transition: all 0.5s ease;
}

.box-link:hover {
	/*border:1px solid #bbb;*/
	/*border-top: 3px solid #08c;*/
	-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
	-moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
	cursor: pointer;

	/*transform:scale(1.05);*/
	/*-ms-transform:scale(1.05);*/
	/* IE 9 */
	-moz-transform: translateY(-7px);
	/* Firefox */
	-webkit-transform: translateY(-7px);
	/* Safari and Chrome */
	-o-transform: translateY(-7px);
	/* Opera */
	transform: translateY(-7px);
}

.box-tableXX {
	border: 1px solid #ddd;
	/*-webkit-box-shadow:0 1px 5px rgba(0,0,0,0.1);
	-moz-box-shadow:0 1px 5px rgba(0,0,0,0.1);
	box-shadow:0 1px 5px rgba(0,0,0,0.1);*/
}

.box-overflow {
	overflow: visible;
}

.box-content {
	margin: 12px;
}

.no-margin {
	margin: 0;
}

.no-margin-top {
	margin-top: 0;
}

.no-margin-bottom {
	margin-bottom: 0;
}

.margin-top-title {
	margin-top: 0.5em;
}

.article-box-crop {
	overflow: hidden;
	height: 9.5em;
	position: relative;
}

.media-box-crop {
	overflow: hidden;
	height: 4em;
	position: relative;
}

.fadeout {
	position: absolute;
	bottom: 0em;
	width: 100%;
	height: 4.0em;
	background: -webkit-linear-gradient(rgba(255, 255, 255, 0) 0%,
			rgba(255, 255, 255, 1) 100%);
	background-image: -moz-linear-gradient(rgba(255, 255, 255, 0) 0%,
			rgba(255, 255, 255, 1) 100%);
	background-image: -o-linear-gradient(rgba(255, 255, 255, 0) 0%,
			rgba(255, 255, 255, 1) 100%);
	background-image: linear-gradient(rgba(255, 255, 255, 0) 0%,
			rgba(255, 255, 255, 1) 100%);
	background-image: -ms-linear-gradient(rgba(255, 255, 255, 0) 0%,
			rgba(255, 255, 255, 1) 100%);
}

.media-box-crop .fadeout {
	height: 1.0em;
}

.thumb-heading {
	/* võibolla peaks elle ära jätma? */
	margin-top: 0;
	line-height: 1.2em;
}

/* main content */

.content {
	font-size: 1.2em;
	white-space: normal;
	line-height: 1.4em;
	/*font-family: 'Noticia Text', serif;*/
	margin-top: 1.5em;
}

.content li {
	line-height: 1.4em;
	margin-bottom: 0.35em;
}

.content p {
	line-height: 1.4em;
}

.article-main-photo {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	width: 100%;
}

#gmap img {
	max-width: none;
}

#gmap label {
	width: auto;
	display: inline;
}

/* thumb box */

.video-duration {
	position: absolute;
	bottom: 0.2em;
	right: 0.2em;
	padding-left: 0.3em;
	padding-right: 0.3em;
	background-color: rgba(0, 0, 0, 0.5);
	color: #fff;
}

/* footer */

.footer {
	margin-top: 2.0em;
	color: #111;
	border-top: solid 2px #dfdfdf;
	/*background: url(../images/bg_dark.png);*/
}

.footer a:hover {
	color: #111;
	text-decoration: none;
}

.footer-title {
	color: #222;
	font-size: 2.0em;
	font-weight: 300;
	margin-top: 1.0em;
	margin-bottom: 0.7em;
}

.footer-verse {
	padding: 15px;
	background-color: rgba(0, 0, 0, 0.1);
	border-bottom: solid 1px #dfdfdf;
	border-bottom: solid 1px #dfdfdf;
	margin-top: 2.0em;
}

.footer-info {
	padding-bottom: 1.0em;
}

.footer-copyright {
	border-top: solid 1px #dfdfdf;
	padding: 1.5em;
	background-color: rgba(0, 0, 0, 0.01);
	font-weight: 300;
	color: #888;
}

/* facebook like box */

#fb-root {
	display: none;
}

.fb_iframe_widget,
.fb_iframe_widget span,
.fb_iframe_widget span iframe[style] {
	width: 100% !important;
}

/* thumb  */

.thumb-image,
.thumb-image-sq {
	position: relative;
	width: 100%;
}


.image-left {
	max-width: 300px;
	margin-right: 0.7em;
}


/* youtube embed */
[data-oembed-url] {
	margin-bottom: 0.7em;
}

/* responsive stuff */


@media (max-width: 1199px) {

	.carousel-text-crop {
		max-height: 23em;
	}

	.page-title img {
		height: 70px;
	}

	.page-title-small img {
		height: 50px;
	}

	.carousel-head {
		top: 8em;
	}

	.carousel-head h1 {
		font-size: 2em;
		line-height: 1em;
	}

	.carousel-head .lead {
		font-size: 1.2em;
		line-height: 1.2em;
	}

	.container-carousel {
		margin-top: 2em;
	}

}


@media (max-width: 979px) {

	.carousel-text-crop {
		max-height: 17em;
	}

	.page-title img {
		height: 50px;
	}

	.page-title-small img {
		height: 40px;
	}

	.carousel-head {
		top: 6em;
	}

	.carousel-head h1 {
		font-size: 1.7em;
		line-height: 1em;
	}

	.carousel-head .lead {
		font-size: 1.1em;
		line-height: 1.1em;
	}

	.container-carousel {
		margin-top: 2em;
	}

}

@media (max-width: 767px) {

	.carousel-text-crop {
		max-height: 8em;
	}

	.box-content {
		margin-top: 7px;
		/* 7 */
		margin-bottom: 7px;
		margin-left: 0px;
		margin-right: 0px;
	}

	.box-linkXX .box-contentXX {
		margin: 5px;
	}

	.content {
		margin-top: 0em;
	}

	/* thumb  */

	.thumb-image,
	.thumb-image-sq {
		margin-right: 7px;
		float: left;
	}

	.thumb-image {
		width: 150px;
		height: 90px;
	}

	.thumb-image-sq {
		width: 90px;
		height: 90px;
	}

	.article-box-crop {
		height: 4.0em;
	}

	.thumb-heading {
		margin-bottom: 6px;
		font-weight: 400;
	}

	.no-margin-top {
		margin-top: 0px;
	}

	.no-margin-bottom {
		margin-bottom: 0px;
	}

	.margin-top-title {
		margin-top: 0.5em;
	}

	.fadeout {
		height: 1.4em;
	}

	.page-title img {
		height: 50px;
	}

	.page-title {
		top: 0.0em;
	}

	.page-title-small img {
		height: 40px;
	}

	.carousel-inner img {
		margin-top: 5.5em;
		margin-bottom: 7em;
		width: 100%;
	}

	.carousel-head {
		position: relative;
		top: auto;
		bottom: -1em;
	}

	.carousel-head h1 {
		font-size: 2.4em;
		line-height: 1em;
	}

	.container-carousel {
		margin-top: 0em;
		margin-left: 0px !important;
	}

	.container-carousel img {
		border-radius: 50px;
	}

	.image-left {
		max-width: 200px;
	}
	.carousel-overlay h1 {
		font-size: large;
	}
	.yritus .box-content {
		margin-left: 12px;
		margin-right: 12px;
	}
}


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

	/* thumb  */

	.thumb-image {
		width: 90px;
		height: 90px;
	}

	.thumb-image-sq {
		width: 90px;
		height: 90px;
	}

	.margin-top-phone {

		/*margin-left: 7px;*/
	}

	.page-title-small img {
		height: 40px;
	}

	.carousel-inner img {
		margin-top: 10px;
		margin-bottom: 1em;
		width: 100%;
	}

	.carousel-head {
		top: auto;
		bottom: -2em;
	}

	.carousel-head h1 {
		font-size: 1.7em;
		line-height: 1em;
	}

	.container-carousel img {
		border-radius: 25px;
	}
	.carousel-overlay {
		padding-left: 0px;
	}
	.carousel-overlay h1 {
		font-size: large;
	}

}


/* temporary and development */

.round-badge-white {
	display: block;
	padding: 20px;
	text-align: center;
	position: absolute;
	top: 50px;
	right: 50px;
	background-color: rgba(255, 255, 255, 180);
	-webkit-border-radius: 60px;
	-moz-border-radius: 60px;
	border-radius: 60px;
	color: #000;
	font-weight: 300;
	font-size: 30px;
	line-height: 30px;
}

.ma-highlight {
	font-family: 'Noto Sans';
	padding: 20px;
	text-align: center;
	border-radius: 60px;
	color: #000;
	font-weight: 500;
	font-size: 2em;
	line-height: 1.2em;
}

/* Esilehel karusselli all olevad nupud */
div#avanupud {
	margin-left: auto;
	margin-right: auto;
	align-items: center;
	display: flex;
}

#avanupud a {
	background: none;
	background-color: var(--primary-color);
	border: none;
	border-radius: 30px;
	color: white;
	font-weight: 600;
	padding: 10px 20px;
	margin-bottom: 5px;

	transition: all 0.3s ease;
	box-shadow: 0 3px 8px rgba(74, 84, 255, 0.3);
}

#avanupud a:hover {
	background-color: #5d66ff;
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(74, 84, 255, 0.5);
}

#avanupud .pull-right a {
	background-color: var(--card-bg);
	border: 1px solid var(--primary-color);
	color: var(--primary-color);

	border-radius: 50%;
	width: 40px;
	height: 40px;
	line-height: 40px;
	padding: 0;
	text-align: center;
	font-size: 1.2rem;

	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#avanupud .pull-right a:hover {
	background-color: var(--primary-color);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(74, 84, 255, 0.5);
}

/* Esilehe */
#esileht .span9 .section-title {
	text-align: center;
}


#esileht .jaotis-pilt {
	border-radius: 25px;
}

/* Ürituste kastid */
.box.yritus {
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 0 5px 20px var(--shadow-light);
	transition: all 0.3s ease;
	border: 3px solid transparent;
	cursor: pointer;
}

.box.yritus h4.thumb-heading a {
	color: var(--primary-color);
	font-weight: 700;
	text-decoration: none;
	transition: color 0.3s;
}

.box.yritus:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.box.yritus:hover h4.thumb-heading a {
	color: #5d66ff;
}

.box.yritus.varsti {
	border-color: var(--deadline-color);
	animation: deadlinePulse 2.5s infinite alternate ease-in-out;
}

@keyframes deadlinePulse {

	from {
		box-shadow: 0 0 5px var(--pulse-color-soft);
	}

	to {
		box-shadow: 0 0 20px rgba(255, 160, 122, 0.7);
	}
}

.box.yritus.varsti h4.thumb-heading a {
	color: var(--deadline-color);
}


.box.yritus.loppenud {
	opacity: 0.75;
	border-color: var(--closed-color);
}

.box.yritus.arhiiv h4.thumb-heading a {
	color: #95a5a6;
}

.box.yritus.loppenud h4.thumb-heading a {
	color: #616a6b;
}

.box.yritus.loppenud {
	color: var(--view-after-color);
}

.box.yritus.arhiiv {
	opacity: 0.6;
	border-color: var(--closed-color);
}

.box.yritus.arhiiv {
	pointer-events: none;
}

.box.yritus.arhiiv:hover {
	transform: none;
	box-shadow: 0 5px 20px var(--shadow-light);
}

/* Jagamisriba konteiner */
.share-bar {
	text-align: center;
	margin: 20px 0 40px 0;
}

/* Üldine Jagamisnupu stiil */
.share-btn {
	display: inline-block;
	width: 40px;
	height: 40px;
	line-height: 40px;
	text-align: center;

	/* Disain */
	border-radius: 50%;
	/* Täiesti ümar */
	background-color: #f0f0f0;
	color: var(--text-dark);
	font-size: 1.2rem;
	margin: 0 5px;
	transition: all 0.3s ease;
	border: 1px solid #ddd;
	text-decoration: none;
	/* Eemalda allakriipsutus */
}

/* Hover-efekt (dünaamika) */
.share-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Värvi Aktsendid */
.share-facebook {
	background-color: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}

.share-facebook:hover {
	background-color: #5d66ff;
}

.share-copy-link {
	background-color: #f7f7f7;
	color: var(--primary-color);
	border-color: var(--primary-color);
}

.share-copy-link:hover {
	background-color: var(--primary-color);
	color: white;
}

#custom-alert-box {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10000;

	background-color: var(--primary-color);
	color: white;
	padding: 12px 25px;
	border-radius: 30px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#custom-alert-box.custom-alert-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

#custom-alert-box.custom-alert-hidden {
	opacity: 0;
	transform: translateX(-50%) translateY(-20px);
}

.title-more {
	font-size: medium;
	text-decoration-line: underline;
	padding-left: 25px;
}

.title-more:hover {
	color: #555;
}