body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: #1b2541;
    color: #f4f4f9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Start header */

.main-logo{
  height: 110px;
  width: auto;
  padding: 7px;
}

.header-section {

  height: 180px;

}

.header-element {

  /*text-align: right;
  margin-top: 50px;*/
  color: #e3d688;
  text-decoration: none;

}

/* End header */

/* Start ranking */

.ranking-format {

    background-color: #FFFFFF;
    color: #000000;
    padding: 50px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;

}

.ranking-section {

  height: 430px;

}

.ranking-title { text-align: center; }

/* End ranking */

/* Start gamemodes */

.country-box {

  width: 330px;
  background: #FFFFFF;
  border-radius: 10px;
  text-align: center;
  padding: 15px;
  color: #000000;
  font-weight: bold;

}

.img-gamemode {

  max-width: 100%;
  height: auto;

}

.desc-zone{ height: 190px; }

.gamemode-title { color: #e3d688; font-size: 52px; text-align: center; }

.gamemode-desc { font-weight: bold; font-size: 16px; text-align: center; }

.game-boxes { height: 650px; }

@media only screen and (max-width: 768px) {

  .game-select{ padding-top: 25px; }
  .game-boxes { height: 2000px; }
  .content-footer{ height: 70px; }

}

/* End gamemodes */

.content-footer{ height: 100px; }


.menu-options {
    display: none;
    position: absolute;
    top: 120px;
    right: 170;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
    z-index: 10;
    margin-right: 90px;
    cursor: pointer;
    width: 200px;
}

.menu-options a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 5px 10px;
    border-radius: 3px;
}

.menu-options a:hover {
    background-color: #1b2541;
    color: white;
}

.user-menu {
  cursor: pointer;
  color: #e3d688;
}

#userimg {
  border-radius: 50%;
  height: 40px;
  width: 40px;
  margin-right: 10px;
}

.overlay-countries {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Fondo oscuro y semitransparente */
  z-index: 1000; /* Asegurarse que se superpone */
}

/* Estilos del contenido dentro del overlay */
.overlay-countries-content {
  position: relative;
  margin: 4% auto;
  padding: 40px;
  background-color: #ffffff;
  width: 80%;
  max-width: 900px;
  text-align: center;
  height: 550px;
  color: #000000;
}

.overlay-countries-content h2 {
    font-size: 1.8em;
    color: #1b2541;
    margin-bottom: 15px;
}

.game-select{
  cursor: pointer;
}

.choose-difficult {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    margin-bottom: 10px;
    transition: 0.3s;
}

.easy {
    background: #4CAF50;
    color: white;
}

.hard {
    background: #E53935;
    color: white;
}

.choose-difficult:hover {
    opacity: 0.8;
}

.go-back {
    background: #1b2541;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1.1em;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
}

.go-back:hover {
    background: #e3d688;
    color: #1b2541;
}

.overlay-margin { margin-top: 75px; }


.container-ranking {
	margin: auto;
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.tabs {
	display: flex;
	justify-content: space-around;
	background: #ddd;
	border-radius: 8px;
}
.tab {
	padding: 10px 20px;
	cursor: pointer;
	flex: 1;
	text-align: center;
	border-radius: 8px;
}
.tab.active {
	background: #1b2541;
	color: white;
}
.content {
	display: none;
	padding: 20px;
}
.content.active {
	display: block;
}
.continent-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 10px;
}
.continent-button {
	padding: 10px 15px;
	background: #1b2541;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}
.continent-button.active {
	background: #e3d688;
	color: #1b2541;
}
.continent-content {
	display: none;
	margin-top: 15px;
}
.continent-content.active {
	display: block;
}
@media (max-width: 600px) {
	.tabs {
		flex-direction: column;
	}
	.tab {
		border-bottom: 1px solid #ccc;
	}
}

.ranking-table {
	width: 100%;
	margin-top: 10px;
	border-collapse: collapse;
}
.ranking-table th, .ranking-table td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}
.ranking-table th {
	background: #1b2541;
	color: white;
}
.rank-title{ color: #1b2541; }

td{ color: #000000; }