:root {
  --text-color: #fff;
  --search-bar-background: #0e0e0e60;
  --scroll-bar-color: rgba(0,0,0 ,0.5);
  --header-red-color: #ab4747;
  --header-top-color: #393939;
  --footer-contrib-color: rgba(81, 81, 227, 0.8);
  --footer-color: #0e0e0e;
  --btn-color: rgb(44, 44, 150);
  --btn-text-color: rgb(230,230,230);
  --card-background-color: #1e1e1e;
}

@media (prefers-color-scheme: light) {
  :root {
    --scroll-bar-color: rgba(255,255,255 ,0.5);
    --header-red-color: #bf5d5d;
    --header-top-color: #dddddd;
    --text-color: #000;
    --search-bar-background: #bebebe;
    --footer-contrib-color: rgba(81, 81, 227, 0.8);
    --footer-color: #dcdcdc;
    --btn-color: rgb(81, 81, 227);
    --btn-text-color: #fff;
    --card-background-color: #cccccc;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --scroll-bar-color: rgba(0,0,0 ,0.5);
    --header-red-color: #ab4747;
    --header-top-color: #393939;
    --text-color: #fff;
    --search-bar-background: #0e0e0e60;
    --footer-contrib-color: rgba(81, 81, 227, 0.8);
    --footer-color: #07030a;
    --btn-color: rgb(44, 44, 150);
    --btn-text-color: rgb(230,230,230);
    --card-background-color: #1e1e1e;
  }
}
/*for the search bar*/
#searchField {
  gap: 5px;
  display: flex;
  width: 300px;
  height: 25px;
  border-radius: 3px;
  background-color: var(--search-bar-background);
  color: var(--text-color);
  align-items: center;
  transition: 0.2s;
  /* search icon */
}
#searchField svg {
  margin-left: 5px;
}
#searchField {
  /* input area */
}
#searchField #searchInput {
  background-color: transparent;
  color: var(--text-color);
  border: none;
  width: 100%;
  text-align: left;
}
#searchField #searchInput:focus {
  outline: none;
}

#searchField:hover {
  scale: 1.1;
}

#searchField:focus-within {
  width: calc(80% - 192px);
  margin-left: 5%;
}

/* for smartphone and small screen*/
@media (max-width: 768px) {
  #searchField {
    margin-left: 0px !important;
    width: 90vw !important;
  }
  #searchField:hover {
    scale: 1 !important;
  }
  #searchField:focus-within {
    width: 90vw !important;
  }
}
/* Search Result Area */
#searchResult {
  display: none;
  margin-top: 20px;
}

#researchEmptyOrError {
  color: var(--text-color);
}

#searchResultCard {
  justify-content: center;
  align-items: center;
}

/* for ALL header */
header {
  margin: 0;
  position: sticky;
  top: 0;
  width: 100%;
  padding: 5px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

/* for the header */
#mainHeader {
  display: flex;
  align-items: center;
  background-color: var(--header-top-color);
}
#mainHeader #titleNameMetrop {
  padding-left: 10px;
  padding-right: 20px;
}
#mainHeader img {
  height: 30px;
  width: auto;
}

/* for smartphone and small screen*/
@media (max-width: 768px) {
  #mainHeader {
    justify-content: center;
    margin-left: 0px;
    margin-right: 0px;
  }
  #mainHeader #titleNameMetrop, #mainHeader #logoMainPage {
    display: none;
  }
}
/*diferent header type*/
#betaTest {
  display: none;
}

#welcomeHeader {
  display: none;
  background-color: rgba(81, 81, 227, 0.8);
}
#welcomeHeader h3, #welcomeHeader p {
  color: #fff;
}

#updateHeader {
  display: none;
  background-color: rgba(82, 201, 88, 0.8);
}

.headerInfo {
  position: relative !important;
  box-shadow: none;
  background-color: var(--header-red-color);
}

/* text in header */
.headerTextMainDes {
  font-size: smaller;
}
.headerTextMainDes a {
  font-size: smaller;
}

.headerTextDes {
  font-size: x-small;
}

/* for the future #dropZone */
#dropzone {
  margin: 20px;
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  min-height: 150px;
  border: 2px dashed #999;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  flex-direction: row;
}

@media (max-width: 768px) {
  .cardImage {
    flex-direction: column !important;
  }
}
/* for footer */
footer {
  padding-bottom: 50px;
  padding-top: 50px;
  box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  background-color: var(--footer-color);
}

#contribFooter, #contribFooterLink {
  height: auto;
  width: 100%;
  /* change to display: flex; when you want to show it */
  display: none;
  justify-content: center;
  align-items: center;
  background-color: var(--footer-contrib-color);
}
#contribFooter svg, #contribFooterLink svg {
  min-width: 50px;
  margin-left: 20px;
}

/* Credit footer colum */
.colum {
  width: 100%;
}
.colum * {
  text-align: left;
}
.colum h3, .colum h1, .colum p {
  padding-left: 30px;
  padding-right: 30px;
}

#mainFooter {
  margin: 20px;
  border-radius: 10px;
}

#TodayQuiz {
  width: auto;
  margin: 10px;
  height: auto;
  border-radius: 15px;
  background-color: var(--card-background-color);
  color: var(--text-color);
  padding: 5px;
}
#TodayQuiz p {
  margin-top: 25px;
  font-size: smaller;
  text-align: left;
  padding-left: 45px;
  opacity: 0.7;
}
#TodayQuiz h1 {
  font-size: 30px;
}
#TodayQuiz h1 img {
  height: 30px;
  width: auto;
}
#TodayQuiz h3 {
  text-align: left;
  padding-left: 45px;
}
#TodayQuiz button {
  margin: 10px;
  margin-left: 45px;
}

#containerMainInfo {
  display: grid;
  padding: 20px;
  margin: 0px;
}

.containMainInfoDEBUG {
  grid: auto-flow/1fr 1fr;
}
@media (max-width: 840px) {
  .containMainInfoDEBUG {
    grid: 1fr 1fr/auto-flow;
  }
}

#infoBoard {
  display: none;
  padding: 5px;
  width: auto;
  margin: 10px;
  height: auto;
  border-radius: 15px;
  background-color: var(--card-background-color);
  color: var(--text-color);
}
#infoBoard p {
  margin-top: 25px;
  font-size: smaller;
  text-align: left;
  padding-left: 45px;
  opacity: 0.7;
}
#infoBoard #mostCountry {
  display: flex;
  gap: 8px;
}
#infoBoard #mostCountry img {
  height: 10px;
  width: auto;
}

.btn {
  background-color: var(--btn-color);
  border: 0;
  border-radius: 5px;
  padding: 5px 10px;
  color: var(--btn-text-color);
  font-style: normal;
  font-size: larger;
  font-variation-settings: "wdth" 100, "YTLC" 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: scale(0.8);
}

.btn-settings {
  background-color: var(--search-bar-background);
  color: var(--text-color);
  border-radius: 5px;
  border: solid 1px rgba(109, 109, 109, 0.5568627451);
  height: 25px;
  width: 25px;
  margin-left: auto;
  margin-right: 10px;
  padding: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.btn-settings svg {
  transition: transform 0.2s;
}
.btn-settings svg:hover {
  transform: rotate(90deg);
}

#btn-settings-id-svg-close {
  display: none;
  justify-content: center;
  align-item: center;
}

#btn-settings-id-svg-open {
  display: flex;
  justify-content: center;
  align-item: center;
}

.shimmer {
  background: linear-gradient(to right, var(--card-background-color) 8%, var(--header-top-color) 18%, var(--card-background-color) 33%);
  background-size: 400%;
  animation: shimmer 1.2s infinite ease;
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}
/* --- Firefox --- */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-bar-color) transparent;
}

/* --- for Chrome, Edge and Safari --- */
*::-webkit-scrollbar {
  width: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: var(--scroll-bar-color);
  border-radius: 10px;
  border: 2px solid transparent;
  transition: background-color 0.3s, opacity 0.3s;
  opacity: 0;
}

*:hover::-webkit-scrollbar-thumb {
  opacity: 1;
}

.title-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 38px;
}
.title-icon svg {
  width: 1.4em;
  height: 1.4em;
  flex-shrink: 0;
}

.lang_select {
  margin-left: 40px;
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 10px;
  background-color: var(--footer-color);
  color: var(--text-color);
  width: 350px;
  overflow: hidden;
  border: 1px solid rgba(53, 52, 52, 0.226);
}
.lang_select input {
  display: none;
}
.lang_select label {
  width: 100%;
  padding: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  font-size: 14px;
}
.lang_select .selection {
  display: none;
  position: absolute;
  height: 100%;
  width: 87.5px;
  z-index: 0;
  left: 0;
  top: 0;
  transition: 0.15s ease;
}
.lang_select label:has(input:checked) {
  color: #fff;
}
.lang_select label:has(input:checked) ~ .selection {
  background-color: var(--btn-color);
  display: inline-block;
}
.lang_select label:nth-child(1):has(input:checked) ~ .selection {
  transform: translateX(0px);
}
.lang_select label:nth-child(2):has(input:checked) ~ .selection {
  transform: translateX(87.5px);
}
.lang_select label:nth-child(3):has(input:checked) ~ .selection {
  transform: translateX(175px);
}
.lang_select label:nth-child(4):has(input:checked) ~ .selection {
  transform: translateX(262.5px);
}

.horizontalSelectorSize2 {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 10px;
  background-color: var(--footer-color);
  color: var(--text-color);
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(53, 52, 52, 0.226);
}
.horizontalSelectorSize2 input {
  display: none;
}
.horizontalSelectorSize2 label {
  width: 100%;
  padding: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  font-size: 14px;
}
.horizontalSelectorSize2 .selection {
  display: none;
  position: absolute;
  height: 100%;
  width: calc(100% / 2);
  z-index: 0;
  left: 0;
  top: 0;
  transition: 0.15s ease;
}
.horizontalSelectorSize2 label:has(input:checked) {
  color: #fff;
}
.horizontalSelectorSize2 label:has(input:checked) ~ .selection {
  background-color: var(--btn-color);
  display: inline-block;
}
.horizontalSelectorSize2 label:nth-child(1):has(input:checked) ~ .selection {
  transform: translateX(calc(100% * 0));
}
.horizontalSelectorSize2 label:nth-child(2):has(input:checked) ~ .selection {
  transform: translateX(calc(100% * 1));
}

.horizontalSelectorSize3 {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 10px;
  background-color: var(--footer-color);
  color: var(--text-color);
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(53, 52, 52, 0.226);
}
.horizontalSelectorSize3 input {
  display: none;
}
.horizontalSelectorSize3 label {
  width: 100%;
  padding: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  font-size: 14px;
}
.horizontalSelectorSize3 .selection {
  display: none;
  position: absolute;
  height: 100%;
  width: calc(100% / 3);
  z-index: 0;
  left: 0;
  top: 0;
  transition: 0.15s ease;
}
.horizontalSelectorSize3 label:has(input:checked) {
  color: #fff;
}
.horizontalSelectorSize3 label:has(input:checked) ~ .selection {
  background-color: var(--btn-color);
  display: inline-block;
}
.horizontalSelectorSize3 label:nth-child(1):has(input:checked) ~ .selection {
  transform: translateX(calc(100% * 0));
}
.horizontalSelectorSize3 label:nth-child(2):has(input:checked) ~ .selection {
  transform: translateX(calc(100% * 1));
}
.horizontalSelectorSize3 label:nth-child(3):has(input:checked) ~ .selection {
  transform: translateX(calc(100% * 2));
}

.horizontalSelectorSize4 {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 10px;
  background-color: var(--footer-color);
  color: var(--text-color);
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(53, 52, 52, 0.226);
}
.horizontalSelectorSize4 input {
  display: none;
}
.horizontalSelectorSize4 label {
  width: 100%;
  padding: 10px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  font-size: 14px;
}
.horizontalSelectorSize4 .selection {
  display: none;
  position: absolute;
  height: 100%;
  width: calc(100% / 4);
  z-index: 0;
  left: 0;
  top: 0;
  transition: 0.15s ease;
}
.horizontalSelectorSize4 label:has(input:checked) {
  color: #fff;
}
.horizontalSelectorSize4 label:has(input:checked) ~ .selection {
  background-color: var(--btn-color);
  display: inline-block;
}
.horizontalSelectorSize4 label:nth-child(1):has(input:checked) ~ .selection {
  transform: translateX(calc(100% * 0));
}
.horizontalSelectorSize4 label:nth-child(2):has(input:checked) ~ .selection {
  transform: translateX(calc(100% * 1));
}
.horizontalSelectorSize4 label:nth-child(3):has(input:checked) ~ .selection {
  transform: translateX(calc(100% * 2));
}
.horizontalSelectorSize4 label:nth-child(4):has(input:checked) ~ .selection {
  transform: translateX(calc(100% * 3));
}

.quizList {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  padding-left: 20px;
  scroll-behavior: smooth;
  user-select: none;
  cursor: grab;
}

.quizList:active {
  cursor: grabbing;
}

.svgErrorQuiz {
  color: var(--text-color);
}

.card:last-child {
  margin-right: 50px;
}

#gameList {
  display: flex;
}

#populationGuess {
  background-color: var(--card-background-color);
  height: 400px;
  width: 700px;
  border-radius: 10px;
  padding: 20px;
  color: var(--text-color);
  text-align: left;
}
#populationGuess p {
  text-align: left;
}

#seeAllCountry, #seeAllCity, #seeAllFlag {
  text-align: left;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  transition: gap 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

#seeAllCountry:hover, #seeAllCity:hover, #seeAllFlag:hover {
  gap: 15px;
  transform: scale(1.1);
  cursor: pointer;
  opacity: 0.8;
}

#seeAllCountry:active, #seeAllCity:active, #seeAllFlag:active {
  transform: scale(0.5);
  cursor: pointer;
}

.cardFooter {
  color: #fff;
  width: 100%;
  height: 40px;
  background-color: #3a3a3a;
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.cardFooter p {
  margin-left: 0px;
  padding-left: 5px;
  padding-right: 5px;
  color: #fff;
}

.cardContent {
  text-overflow: ellipsis;
  white-space: nowrap;
  word-wrap: break-word;
  overflow-x: hidden;
  white-space: normal;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 240px;
  height: 100%;
}
.cardContent .btn {
  width: 100%;
  justify-content: center;
}
.cardContent .top, .cardContent .bottom {
  height: auto;
}
.cardContent .middle {
  flex-grow: 1;
  padding: 10px;
  width: 100%;
  height: 100%;
  text-align: left;
  border-left: 2px solid rgba(137, 137, 137, 0.5019607843);
  box-sizing: border-box;
}
.cardContent .flagOnCard {
  margin-bottom: 5px;
  max-height: 20px;
  width: auto;
}

.card {
  height: 520px;
  min-width: 240px;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-wrap: break-word;
  overflow: hidden;
  white-space: normal;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1.5%;
  border-radius: 10px;
  gap: 20px;
  flex-shrink: 0;
  position: relative;
  background-color: var(--card-background-color);
}

/* <- IMG */
.cardImage {
  max-height: 100%;
  flex: 1;
  aspect-ratio: 1/1;
  height: 100%;
  border-radius: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-wrap: break-word;
  overflow: hidden;
}

/* for smartphone and small screen */
@media (max-width: 768px) {
  .cardImage {
    display: none;
  }
}
#settings-menu {
  display: none;
  width: 100%;
}
#settings-menu #settings-content {
  padding-top: 25px;
  margin-left: auto;
  margin-right: auto;
  width: 700px;
  padding-left: 2px;
  padding-bottom: 50px;
}
#settings-menu #settings-content h1, #settings-menu #settings-content p, #settings-menu #settings-content h3 {
  padding-left: 0px;
}
#settings-menu #settings-content #warning-beta-settings {
  border-left: solid 5px #cab33c;
  padding-left: 10px;
  margin-top: 25px;
}
#settings-menu #settings-content #warning-beta-settings span {
  display: flex;
  align-items: center;
  color: #cab33c;
}
#settings-menu #settings-content #warning-beta-settings p {
  text-align: left;
  font-size: small;
}

.switch {
  position: relative;
  height: 1.5rem;
  width: 3rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 9999px;
  background-color: rgba(100, 116, 139, 0.377);
  transition: all 0.3s ease;
}

.switch:checked {
  background-color: var(--footer-contrib-color);
}

.switch::before {
  position: absolute;
  content: "";
  left: -0.1rem;
  top: -0.1rem;
  display: block;
  height: 1.6rem;
  width: 1.6rem;
  cursor: pointer;
  border: 1px solid rgba(100, 116, 139, 0.527);
  border-radius: 9999px;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 3px 10px rgba(100, 116, 139, 0.327);
  transition: all 0.3s ease;
}

.switch:hover::before {
  box-shadow: 0 0 0px 8px rgba(0, 0, 0, 0.15);
}

.switch:checked:hover::before {
  box-shadow: 0 0 0px 8px rgba(77, 175, 80, 0.15);
}

.switch:checked:before {
  transform: translateX(100%);
  border-color: var(--footer-contrib-color);
}

.settings-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

* {
  font-family: "Momo Trust Display", "Mochiy Pop One", sans-serif;
  font-weight: 500;
  font-style: normal;
  text-align: center;
}

body, html {
  overflow-x: hidden;
  height: 100%;
  margin: 0;
  /* background */
  background-attachment: fixed;
  background-size: cover;
}

h1, h2, h3, h4, h5, p, a {
  color: var(--text-color);
}

h1 {
  margin-top: 1px;
  margin-bottom: 1px;
  padding-left: 5px;
  font-size: larger;
  text-align: left;
}

img {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#logoMainPage {
  height: 30px;
}

svg {
  fill: currentColor;
}

/* main menu */
#menu {
  margin-top: 0px;
  text-align: center;
  align-content: center;
}

/* for smartphone and small screen*/
@media (max-width: 768px) {
  html {
    scroll-behavior: auto;
  }
}
/* background */
@media (prefers-color-scheme: light) {
  body, html {
    background: linear-gradient(to bottom, #f2f2f2 0%, #e6e6e6 25%, #ffffff 50%, #e6e6e6 75%, #f2f2f2 100%);
  }
}
@media (prefers-color-scheme: dark) {
  body, html {
    background: linear-gradient(to bottom, #1e1e1e 0%, #2a2a2a 25%, #333 50%, #2a2a2a 75%, #1e1e1e 100%);
  }
}
/* DELETE THIS LATER */
#betaElement {
  display: none;
}

/*# sourceMappingURL=style.css.map */
