* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	font-family: Arial;
}
*::-webkit-scrollbar {
	width: 20px;
}
*::-webkit-scrollbar-thumb {
	background-color: #888;
}
*::-webkit-scrollbar-thumb:hover {
	background-color: #555;
}
html,
body {
	height: 100%;
	font-family: sans-serif;
	background-color: black;
	color: white;
	overflow-x: hidden;
}
#dynamic-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: black;
	height: 50px;
	max-height: 50px;
	min-height: 0px;
	overflow: hidden;
	z-index: 1000;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}
#dynamic-header>h1 {
	margin: 0;
	flex-grow: 1;
	text-align: left;
	margin-left: 10px;
}
#regionsDropdownMenu>img {
	height: 20px;
}
.dropdownMenu {
	color: white;
	background-color: black;
	height: 100%;
	padding: 10px 15px;
	font-weight: bold;
	font-size: 15px;
	border: none;
	display: inline-block;
	cursor: pointer;
	display: flex;
	align-items: center;
}
.dropdownMenu::after {
	content: '▶';
	display: inline-block;
	transform-origin: center center;
	margin-left: 0.6em;
	transition: transform 0.3s ease;
	font-size: 0.8em;
	line-height: 1;
}
.dropdownMenu.open::after {
	transform: rotate(90deg);
}
#regionDropdownOptions {
	position: absolute;
	right: 0;
	top: 50px;
	width: 50vw;
	margin: 0;
	padding: 0;
	display: none;
	background-color: black;
	max-height: 300px;
	overflow-y: auto;
	overflow-x: hidden;
	border: 2px solid grey;
}
#regionDropdownOptions>li {
	display: flex;
	align-items: center;
	list-style-type: none;
	color: white;
	background-color: black;
	height: 46px;
	font-weight: bold;
	font-size: 25px;
	width: 100%;
	margin: 2px 0;
	margin-left: 2px;
}
#regionDropdownOptions>li>img {
	height: 100%;
	margin-right: 10px;
	display: none;
}
#regionDropdownOptions.flagsLoaded>li>img {
	display: initial;
}
.container {
	display: flex;
	width: 100vw;
	height: calc(100vh - 50px);
	background-color: black;
	margin-top: 50px;
}
.article-share-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0;
	margin-top: 20px;
}
a.share,
button.share {
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 25px;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	color: inherit;
	background: none;
	cursor: pointer;
	transition: border-color 0.5s ease-in-out;
	flex-shrink: 0;
}
a.share:hover, 
button.share:hover {
	border-color: white;
}

a.share > i, 
button.share > i {
	font-size: 1.5rem;
	line-height: 1;
}
.close-button {
	display: none;
}
main {
	flex: 0 0 66%;
	max-width: 66%;
	min-width: 300px;
	overflow-y: auto;
}
main article {
	padding: 15px;
}
main>article ul,
main>article ol {
	margin-left: 1em;
	margin-bottom: 1em;
}
main>article p {
	text-indent: 1em;
	margin-bottom: 1em;
}
main>article h1,
main>article h2,
main>article h3,
main>article h4,
main>article h5,
main>article h6 {
	margin-top: 1em;
	margin-bottom: 1em;
}
main>article iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
}
main>article img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
}
aside {
	flex: 1;
	overflow-y: auto;
	min-width: 150px;
	scrollbar-width: none;
}
aside::-webkit-scrollbar {
	display: none;
}
aside article {
	padding: 15px;
	border: 2px solid grey;
	border-bottom: 0px;
}
aside article.selected {
	display: none;
}
aside article:last-of-type {
	border-bottom: 2px solid grey;
}
aside article img {
	display: block;
	max-width: 100%;
	height: auto;
	margin-bottom: 1em;
}
aside article>p {
	margin-top: 1em;
	margin-bottom: 1em;
}
h1 {
	margin-bottom: 1em;
	font-size: 1.8em;
}
details {
	margin-top: 1em;
}
summary {
	list-style: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	font-weight: bold;
}
summary::after {
	content: "▶";
	display: inline-block;
	transform-origin: center center;
	margin-left: 0.4em;
	transition: transform 0.3s ease;
	font-size: 0.8em;
	line-height: 1;
}
details[open] summary::after {
	transform: rotate(90deg);
}
details p {
	margin-top: 0.5em;
}
button.full-article-button {
	width: 100%;
	height: 50px;
	color: white;
	background-color: #404040;
	border: 2px solid white;
	font-size: 20px;
	font-weight: bold;
	margin-top: 20px;
	border-radius: 25px;
}

#icons {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 50px;
}
.icon-btn {
	font-size: 35px;
	cursor: pointer;
	transition: color 0.2s ease, transform 0.2s ease;
	color: white;
	position: relative;
	margin: 10px;
}
.icon-btn:hover {
	transform: scale(1.3);
}
#dislikeButton {
	transform: scaleX(-1);
}
#dislikeButton:hover {
	transform: scaleX(-1) scale(1.5);
}
#bubble {
	transform: translateY(-50%);
	position: absolute;
	background: #404040;
	color: white;
	padding: 8px 12px;
	border-radius: 5px;
	font-size: 14px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	z-index: 1000;
}
#bubble.share {
	display: grid;
    grid-template-columns: repeat(2, 50px);
    grid-template-rows: repeat(3, 50px);
    gap: 10px;
    width: max-content;
}
#bubble::before {
	content: '';
	position: absolute;
	border-width: 6px;
	border-style: solid;
	border-color: transparent #404040 transparent transparent;
	left: -12px;
	top: 50%;
	transform: translateY(-50%);
}
/**********comment section************/
#commentList i.fa-solid,
#commentList i.fa-regular {
	font-size: 20px;
}
#commentList details {
	margin: 0px;
	margin-bottom: 10px;
}
#commentList li {
	margin-left: 15px;
}
#commentList,
#commentList ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
span.comment-text {
	display: inline-block;
	line-height: 1;
	min-height: 1em;
	padding: 5px;
}
#commentList details > ul {
	padding-top: 10px;
}
#commentList details summary {
	margin-left: 5px;
}
#comment-buttons {
	margin-bottom: 10px;
}
i.fa-comment{
	margin-left: 5px;
}
#commentList span[contenteditable] {
	outline: none;
	box-shadow: 0 0 0 2px white; 
	min-width: 250px;
}
.comment-buttons button {
	background: #333;
	color: white;
	border: 1px solid #555;
	border-radius: 4px;
	padding: 3px 8px;
	font-size: 0.85em;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.comment-buttons button:hover {
	background: #555;
	color: #fff;
}
.comment-buttons button:active {
	background: #777;
}	