Slovenia is a country in Central Europe. It is bordered by Italy, Austria, Hungary, Croatia, and the Adriatic Sea. Slovenia is mostly mountainous and forested, covers 20,271 sq km (7,827 sq mi), and has a population of 2.1 million. Ljubljana, the capital and largest city of Slovenia, is geographically situated near the center of the country.