/*=============================================================*/
/* POP UPS */
/*=============================================================*/

/*-------------------------------------------------------------*/
/* Tool tip */

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip-noborder {
	border-bottom: unset;
}

.tooltip .tooltiptext {
  visibility: hidden;
  font-size: 14px;
  background-color: #555;
  color: #fff;
  text-align: center;
  padding: 5px 8px;
  border-radius: 6px;

  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;

  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/*-------------------------------------------------------------*/

/* ----------------------------------------------------------- */
/* Pop up message */

[id^="popupBackground"] {
	display: none; 
	position: fixed;
	z-index: 99999;
	padding-top: 220px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.3);
}

[id^="popupBackgroundTransparent"] {
	z-index: 99990;
}

.popup-background-tr {
	background-color: rgba(255,255,255,0.3);
}

@media (max-width: 550px) {
	#topnav-popupBackground {
		display: none; 
		position: fixed;
		z-index: 99999;
		padding-top: 220px;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		overflow: auto;
		background-color: rgba(0,0,0,0.3);
	}
}

.popup-content {
	position: fixed;
	background-color: #fefefe;
	margin-left: calc((100% - 380px) / 2);
	top: 25%;
	padding: 12px;
	/* min-width: 180px; */
	/* max-width: 400px; */
	/* max-height: 420px; */
	overflow: auto;
	border-radius: 2px;
	/* border: 1px solid rgb(200,200,200); */
	/* box-shadow: 0px 2px 8px 0px rgba(0,0,0,0.2); */
	box-shadow: rgba(0, 0, 0, 0.22) 0px 25.6px 57.6px 0px, rgba(0, 0, 0, 0.18) 0px 4.8px 14.4px 0px;
	box-sizing: border-box;
	width: 380px;
	left: 0;
}

.popup-preview {
	top: 5%;
	margin-left: calc((100% - 960px) / 2);
	width: 960px;
	max-height: 700px;
}

@media (min-width: 550px) {
	#topnav-popupBackground {
		z-index: -50;
	}
}

@media (max-width: 550px) {
	.popup-content {
		margin-left: 2%;
		margin-right: 3%;
		width: 94%;
	}
}

.popup-content p{
	padding: 8px 4px 8px 0px;
}

.popup-content h2{
	margin-top: 0.5rem;
	font-size: 1rem;
}

.popup-content h3{
	margin-top: 0rem;
	text-align: left !important;
    font-size: 1rem !important;
}

.close {
	float: right;
	/* margin-right: 8px; */
	height: 20px;
    /* opacity: 0.7; */
    /* margin-top: 8px; */
	font-size: 32px;
    line-height: 40px;
}

.close:hover, .close:focus {
  color: #c1c1c1;
  text-decoration: none;
  cursor: pointer;
  background-color: #ececec;
  border-radius: 3px;
}

.icon-popup {
	padding-top: 4px;
	opacity: 0.5;
}

.popup-text {
	padding: 6px;
	line-height: 1.2;
}

/* Hide all popups here from the start */
#templatePopup, #templateInnerMenu, #loaderPopup, #sendMessagePopup, #contactRequestPopup, #connectToIdeaRequestPopup, #deleteConnectToIdeaRequestPopup, #selectLanguagePopup {
	display: none;
	z-index: 99999;
}

/* Hide multiple popups with same prefix id here from the start */
[id^="commentPopup"], [id^="messagePopup"], [id^="deletePostPopup"], [id^="deleteConnectionPopup"], [id^="containerPopup"], [id^="deleteFollowPopup"], [id^="deleteCommentPopup"], [id^="deleteAnswerPopup"], [id^="reportFeedPopup"]{
	display: none;
	z-index: 999999;
}

[id^="innerMenu"]{
	display: none;
	z-index: 99991;
}

/*-------------------------------------------------------------*/
/* Cookie banner */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #222222;
    color: white;
	z-index: 999;
	box-sizing: border-box;
}

#cookie-banner p {
	font-size: 18px;
	margin: 4px auto;
	text-align: center;
	color: white !important;
	font-size: 1rem !important;
}

#cookie-banner a {
	color: #39d0ff !important;
}

.cookie-content {
	max-width: 800px;
}

.cookie-buttons {
	margin: 0 auto;
	display: block;
}

@media (max-width: 960px) {
	#cookie-banner {
		margin: 16px 16px 56px 16px;
		width: unset;
		padding: 16px;
		border-radius: 5px;
	}
	
	#cookie-banner p {
		font-size: 0.8rem !important;
	}
}


/*-------------------------------------------------------------*/

/*-------------------------------------------------------------*/
/* Snackbar */

[id^="snackbar"] {
	visibility: hidden;
	font-size: 14px;
	margin-left: calc((100% - 300px) / 2);
	background-color: #333;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 12px;
	position: fixed;
	z-index: 999;
	bottom: 70px;
	box-sizing: border-box;
	left: 0;
	width: 300px;
}

@media (max-width: 550px) {
	[id^="snackbar"]  {
		margin-left: 5%;
		margin-right: 5%;
		width: 90%;
	}
}


#snackbar.show {
	visibility: visible;
	-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
	animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

.showSnackbar {
	visibility: visible;
	-webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
	animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

.showSnackbarCloseable {
	visibility: visible;
	-webkit-animation: fadein 0.5s/*, fadeout 0.5s 2.5s*/;
	animation: fadein 0.5s/*, fadeout 0.5s 2.5s*/;
}

@-webkit-keyframes fadein {
	from {bottom: 0; opacity: 0;}
	to {bottom: 70px; opacity: 1;}
}

@keyframes fadein {
	from {bottom: 0; opacity: 0;}
	to {bottom: 70px; opacity: 1;}
}

@-webkit-keyframes fadeout {
	from {bottom: 70px; opacity: 1;}
	to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
	from {bottom: 70px; opacity: 1;}
	to {bottom: 0; opacity: 0;}
}

.snackbar-close {
	height: 24px;
	cursor: pointer;
}

.snackbar-close:hover {
	opacity: 0.8;
}

/* ----------------------------------------------------------- */

/* ----------------------------------------------------------- */
/* Loader */


/* Alternative 1 */
.loader {
	border: 8px solid #f3f3f3;
    border-top: 8px solid #152e57;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ----------------------------------------------------------- */