:root {
  --main-color: #FFC300;
  --font-size-12: 12px;
  --font-size-9: 9px;
}

body {
	margin: 0;
	padding: 0;
	width: 100vw;
	height: 100vh;
	display: flex;
	background-color: #000000;
	font-family: "Segoe UI", Arial, sans-serif;
	align-items: center;
    justify-content: center;	
	min-width: 245px;
	min-height: 245px;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-image: url('../images/bg1.png');
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	z-index: -2;
}

body::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
    pointer-events: none;
}

#rootHome {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 999;
}

#rootHome a {
	color: var(--main-color);
	text-decoration: none;
}

#emaActionBar {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 10000;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

#emaSupportButton,
#emaShareButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	border: 1px solid rgba(255, 195, 0, 0.55);
	background: var(--main-color);
	color: #323842;
	font-family: "Segoe UI", Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

#emaSupportButton {
	gap: 8px;
	padding: 0 18px;
	border-radius: 21px;
	text-decoration: none;
}

#emaShareButton {
	width: 42px;
	min-width: 42px;
	border-radius: 50%;
}

#emaSupportButton:hover,
#emaShareButton:hover {
	background: #ffd64d;
	color: #323842;
}

@media screen and (max-width: 510px) {
	html,
	body {
		width: 100%;
		max-width: 100%;
		height: auto;
		min-height: 100dvh;
		align-items: flex-start;
		box-sizing: border-box;
		padding-bottom: calc(88px + env(safe-area-inset-bottom));
		overflow-x: hidden;
	}

	body::after {
		position: fixed;
	}

	#emaActionBar {
		left: 50%;
		bottom: max(18px, env(safe-area-inset-bottom));
		transform: translateX(-50%);
	}

	#none2 {
		margin-bottom: calc(76px + env(safe-area-inset-bottom));
	}
}

ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	display: flex; 
}

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

ul li:last-child {
	margin-right: 0;
}

select, option {
	background: black;
	color: var(--main-color);
	font-size: var(--font-size-12);
	min-width: 60px;
    padding-left: 5px;
}

a {
	color: var(--main-color);
  	font-family: "Segoe UI", Arial, sans-serif;
	font-size: var(--font-size-12);
	text-decoration: none;
	white-space: nowrap;
}

a:hover {
	color: #ADD8E6;
}

 a:hover img {
	filter: hue-rotate(135deg);
}

h3 {
	text-align:center;
	vertical-align: middle;
	color:var(--main-color);
	margin-top: 0px;
    margin-bottom: 10px;	
}

p {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-top: 0px;
    margin-bottom: 10px;
}

img {
	margin-top: -1px;
}

#content {
	display: table-cell;
	text-align: center;
	vertical-align: middle;
	color: var(--main-color);
	position: relative;
	min-width: 90%
}

#newsTickerContainer {
	position: relative;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	max-width: 400px;
	width: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: row;
	padding: 5px;
}

#answerContent {
    display: none;
	font-size: var(--font-size-12);
	bottom: 1px;
	right: 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
	color: #555555;
	background-color: rgba(255, 255, 255, 0.8);
	max-width: 330px;
}

.answer {
	bottom: 0;
	right: 0;
}

#closeAnswerContent:hover,
#answerIcon:hover {
	color: cyan;
}

.font9 {
	font-size: var(--font-size-9);
}

.hidden {
	display: none!important;
}

.newsText span {
	color:  #FF8888; 	
}

.cyanText,
.newsText span:hover {
  color: cyan;
}

.hover-wrapper {
	position: relative;
}

.hover-content {
  display: none;
  position: absolute;
  width: 100%;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: black;
  border: 1px solid var(--main-color);
  border-radius: 5px;
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 5px;
  max-width: max-content;
}

.languages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	position: fixed;
	top: 5px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 998;	
}

.hoverable {
	margin-top: -3px;
}

.hoverable:hover, a:hover {
	color: #ADD8E6;
	cursor: pointer;
}

.navigation {
	display: inline-flex;
	align-items: normal;
}

.img-container {
	display: inline-block;
}

.pr5 {
	padding-right: 5px;
}

.pr2 {
	padding-right: 2px;
}

.default-color {
	color: var(--main-color);
}

.dots-container {
	display: flex;
	justify-content: center;
	align-items: center;
	padding-top: 10px;
    font-size: var(--font-size-9);
    color: black;}

.dot {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	padding-top: 2px;
	padding-right: 2px;
	margin: 0 10px;
	animation: color-change 1s infinite linear;
}

@keyframes color-change {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-2px);
	}
	75% {
		transform: translateY(2px);
	}
}

.newsText {
	display: none;
	white-space: nowrap; 
	padding-right: 20px;				
}

.newsText1 {
	display: flow;
	flex-direction: row;
	animation: scrollText1 15s linear infinite;
}
.newsText2 {
	display: flow;
	flex-direction: row;
	animation: scrollText2 15s linear infinite;
}
.newsText3 {
	display: flow;
	flex-direction: row;
	animation: scrollText3 15s linear infinite;
}
.newsText4 {
	display: flow;
	flex-direction: row;
	animation: scrollText4 15s linear infinite;
}

@keyframes scrollText1 {
	from { transform: translateX(210%); } to { transform: translateX(-90%); }
}
@keyframes scrollText2 {
	from { transform: translateX(210%); } to { transform: translateX(-195%); }
}
@keyframes scrollText3 {
	from { transform: translateX(210%); } to { transform: translateX(-290%); }
}

@keyframes scrollText4 {
	from { transform: translateX(200%); } to { transform: translateX(-400%); }
}
	
@media screen and (max-width: 510px) {
  ul {
    flex-direction: column;
	align-items: flex-start;
	padding-left: 0px;
  }
  
  .hover-content {
	  max-width: 35%;
	  left: 18%;
  }
  
  .hover-wrapper {
	  align-items: flex-start;
  }
  
	#content {
	  display: block;
	  padding-left: 10px;
	  padding-right: 10px;
	  padding-top: 32px;
	  box-sizing: border-box;
	  max-width: 100vw;
	  min-width: 0;
	  width: 100%;
	  font-size: var(--font-size-12);
	  line-height: 1.25;
	  overflow-wrap: break-word;
  }

  .navigation {
	  display: flex;
	  flex-wrap: wrap;
	  justify-content: center;
	  max-width: 100%;
	  width: 100%;
  }

  .navigation a,
  .navigation span {
	  min-width: 0;
	  white-space: normal;
  }

  #content > div,
  #newsTickerContainer {
	  box-sizing: border-box;
	  max-width: 100%;
  }
}

@media screen and (min-width: 511px) and (max-width: 1400px) and (min-height: 700px) {
	:root {
		--font-size-12: 23px;
		--font-size-9: 15px;
	}

	#content {
		font-size: 24px;
		line-height: 1.32;
	}

	#emasImage {
		max-height: 500px;
		width: auto;
	}

	.dot {
		width: 25px;
		height: 25px;
		margin: 0 15px;
	}
}

@media screen and (max-width: 389px) {
	#firstDiv {
		margin-top: 20px;
	}

	#emasImage {
		max-height: 150px;
		width: auto;
	}
}

@media screen and (max-width: 321px) {
	#firstDiv {
		margin-top: 50px;
	}
}

@media screen and (max-width: 335px) {
  .hover-content {
	  max-width: 45%;
	  left: 22%;
  }
  #emasImage {
	  margin-left: -10%;
  }
}


@media screen and (min-height: 451px) and (max-height: 720px) and (min-width: 511px) {
	.languages {
		left: 40px;
	}
}

@media screen and (min-width: 511px) and (max-width: 600px) and (max-height: 760px) {
	:root {
		--font-size-12: 14px;
		--font-size-9: 10px;
	}

	body {
		height: auto;
		min-height: 100dvh;
		align-items: flex-start;
		box-sizing: border-box;
		padding-bottom: calc(88px + env(safe-area-inset-bottom));
		overflow-x: hidden;
	}

	body::after {
		position: fixed;
	}

	.languages {
		left: 50%;
		transform: translateX(-50%);
	}

	#content {
		font-size: 16px;
		line-height: 1.28;
		padding-top: 34px;
		box-sizing: border-box;
	}

	#emasImage {
		max-height: 150px;
		width: auto;
	}

	#emaActionBar {
		left: 50%;
		bottom: max(18px, env(safe-area-inset-bottom));
		transform: translateX(-50%);
	}

	#none2 {
		margin-bottom: calc(76px + env(safe-area-inset-bottom));
	}
}

@media screen and (max-height: 680px) {
  #emasImage {
    max-height: 150px;
    width: auto;
  }
}

@media screen and (min-width: 800px) and (max-height: 680px) {
	:root {
		--font-size-12: 16px;
		--font-size-9: 11px;
	}

	.languages {
		left: 50%;
		transform: translateX(-50%);
	}

	#content {
		font-size: 17px;
		line-height: 1.25;
	}

	#emasImage {
		max-height: 220px;
		width: auto;
	}

	.dot {
		width: 18px;
		height: 18px;
		margin: 0 12px;
	}
}

@media screen and (max-height: 530px) {
  #emasImage {
    max-height: 75px;
    width: auto;
  }
}

@media screen and (min-width: 800px) and (max-height: 680px) {
	#emasImage {
		max-height: 220px;
		width: auto;
	}
}

@media screen and (max-height: 450px) {
  .img-container {
    display: none;
  }
}

@media screen and (max-height: 390px) {
  #space,
  #details,
  #contact,
  #see,
  #newsTickerContainer,
  #dots {
    display: none;
  }
}

select::-webkit-scrollbar {
	width: 8px;
}

select::-webkit-scrollbar-track {
	background-color: gray;
}

select::-webkit-scrollbar-thumb {
	background-color: cyan;
	border-radius: 4px;
}

