body {
  height:100%;
  margin: 0px;
  max-width: 100%;
  overflow-x: hidden;
}

#pagecontainer{
	margin: auto;
	width: fit-content;
	overflow: hidden;
    max-width: 100%;
}

#top_bar{
	/*display: none;*/
	text-align: center;
	background-color: #1ca300;
}

#main_content{
	display: none;
	overflow: auto;
	margin: auto;
	max-width: 100%;
	width: 650px;
	float: left;
}

/* SETTINGS PANEL */
#settingsContainer{
	display: none;
	position: fixed;
	background-color: #d0d0d0;
	top: 30%;
	left: 50%;
	transform: translate(-50%, -50%);
	box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
	padding: 20px;
	border-radius: 5px;
	z-index: 2;
}

#settingsContainer label p{
	margin: 0px;
}

/* WELCOME SCREEN */
#welcome_screen{
	margin: auto;
	float: left;
	max-width: 650px;
	text-align: center;
}

#welcome_title_container{
	padding-top: 25px;
	padding-bottom: 30px;
}

/* FACT SHEET */
#fact_sheet{
	max-width: 100%;
	width: 650px;
	margin: auto;
	overflow: auto;
}

#info_table{
	text-align: left;
}

#fact_left{
	float: left;
	max-width: 50%;
}

#fact_left h1{
	text-align: left;
	margin: 0px;
}

#country_flag{
	height: 191px;	
	width: 50%;
	float: right;
}

#country_flag_image{
	float: right;
	max-width: 100%;
	max-height: 100%;
}

/* GEOGRAPHICAL MAP */

#geographical_map{
	background-color: #d9d9d9;
	width: 650px;
	max-width: 100%;
	margin: auto;
	height: 300px;
	position: relative;
}

#googleMap{
	width:100%;
	height:100%;
}

#mapNotSupported {
	position: absolute;
	top: 0px;
	left:0;
	right:0;
	margin-left:auto;
	margin-right:auto;
	display: none;
	z-index: 1;
}

#mapNotSupported p{
	margin: 0px;
	text-align: center;
	background-color: yellow;
}

/* NEWS FEED */
#news_feed_container {
	text-align: center;
	width: 650px;
	max-width: 100%;
	margin: auto;
	padding-top: 25px;
	padding-bottom: 20px;
}
#news_feed_heading{
	margin: 0px;
}

#no_news_avaiable{
	margin: 0px;
}

#news_feed{
	width: 100%;
	padding-top: 5px;
	overflow-y: hidden;
	overflow-x: hidden;
}

#showMoreNewsButton {
	display: none;
	position: relative;
	bottom: 20px;
	margin: auto;
	text-align: center; 
}

#default_article{
	display: none;
}

.article{
	height: 125px;
	padding-top: 15px;
}

.article_picture{
	float: left;
	height: 100%;
	width: 125px;
	margin-right: 10px;
}

.article_picture img{
	height: 100%;
	width: 100%;
	object-fit: cover;
}

.article_content{
	text-align: left;
	padding-left: 5px;
	overflow: hidden;
	max-height: 100%;
}

.article_content h3{
	margin: 0px;
	font-family: Arial, Helvetica, sans-serif;
}

/* MEDIA GALLERY */
#media_gallery{
	text-align: center;
	padding-bottom: 20px;
}

/* TEXT BLOCK */
#lexicon_excerpt{
	text-align: center;
}

#wiki_text{
	text-align: left;
	width: 650px;
	max-width: 100%;
	margin: auto;
	line-height: 1.3;
}

/* TRAVEL GUIDE */
#travel_guide{
	text-align: center;
	background-color: cyan;
}

/* FOOTER */
#tableAllCountries{
	position: absolute;
	text-align: right;
	right: 0px;
	z-index: 1;
}

#bottomFooter {
	text-align: left;
}

/* ADS */
.marginAd{
	min-width: 200px;
	max-width: 500px;
	top: 50px;
	float: left;
}

#rightSideAd{
	margin-left: 50px;
}
#leftSideAd{
	margin-right: 50px;
}
/*
@media only screen and (max-width: 1100px) {
  .adslot_1{
	display: none !important;
  }
}

@media only screen and (max-width: 900px) {
  .adslot_2{
	display: none !important;
  }	
	#main_content{
		float: inherit;
	}
}
*/

@media only screen and (max-width: 800px) {
  #search_form_container{
	width: 100% !important;
  }
  #search_form{
	  width: 100% !important;
	  padding-top: 10px;
  }
  #search_form input{
	  padding: 10px;
  }

  #settingsContainer{
	  top: 0;
	  left: inherit;
	  transform: inherit;
	  border-radius: 0px;
	  width: inherit;
  }
  #settingsContainer label p{
	  margin-top: 5px !important;
  }
  #randomCountryBar{
	  float: inherit !important;
	  text-align: center;
	  padding-top: 4px;
  }
  
  #randomCountryButton{
	  width: 100%;
	  padding: 10px;
	  margin-top: 5px;
  }
  
  #top_bar{
	  padding-bottom: 5px;
  }
  
  #settingsButton{
	  position: absolute;
	  float: inherit;
	  top: 4px;
	  right: 4px;
  }
}

@media only screen and (max-width: 450px) {
	#country_flag{
		float: inherit;
		height: inherit;
		width: 100%;
	}
	
	#country_flag_image{
		float: inherit;
		padding-top: 10px;
	}
	
	#fact_left{
		max-width: inherit;
	}
}