:root {
  --wiki-blue: #3967be;
  --wiki-grey: #7d6e6d;
  --wiki-light-blue: #3266cc;
  --font-color: #75787e;
  --line-color: #c8ccd1;
}

* {
  margin: 0;
  box-sizing: border-box;
  padding: 0;
}

body {
  display: flex;
  flex-flow: column;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Lato, Helvetica, Arial, sans-serif;
}

a {
  text-decoration: none;
  color: var(--wiki-blue);
}

/* Main Section */
.main {
  display: flex;
  flex-direction: column;
  margin-top: 3rem;
  width: 100%;
}

.first-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 1rem;
}

.title-container h1 {
  font-size: 1.5rem;
  color: var(--wiki-blue);
}

.subtitle p {
  color: var(--wiki-grey);
}

/* Section Content */
.section-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(1, auto);
  align-items: center;
  justify-content: center;
  order: 2;
  text-align: center;
}

.section-content div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin: 1rem;
  text-align: center;
}

.section-content div h4 {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.section-content div p {
  color: var(--wiki-grey);
}

/*--------------SEARCH BAR---------------*/

.first-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.first-section .search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0.1rem solid #a6a8ab;
  border-right: none;
  height: 2.5rem;
  width: 100%;
  flex-direction: row;
  border-radius: 0.02rem 0 0 0.02rem;
}

.first-section .search-bar-container {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  width: 90%;
  margin-top: 1rem;
  order: 1;
}

.search-bar div {
  flex-direction: row;
  height: 100%;
}

.search-label {
  visibility: hidden;
}

.search-bar input {
  width: 80%;
  height: 100%;
  border: none;
  outline: none;
  padding-left: 1rem;
}

.search-bar div button {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  height: 100%;
  width: 3rem;
  cursor: pointer;
  border: none;
  outline: none;
  background-color: transparent;
}

.search-bar div button p {
  color: var(--wiki-grey);
}

.search-icon {
  width: 4rem;
  height: 2.5rem;
  cursor: pointer;
  background-color: var(--wiki-light-blue);
  border: none;
  border-top-right-radius: 0.1rem;
  border-bottom-right-radius: 0.1rem;
}

.search-icon img {
  width: 1.3rem;
  height: 1.3rem;
}

.search-bar div button:last-child img {
  width: 1rem;
  height: 1rem;
}


/* Last Section Button */
.first-section .languages {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 2rem;
  width: 100%;
  order: 4;
}

.first-section .languages .line {
  background-color: #c8ccd1;
  height: 0.01rem;
  width: 5rem;
  display: none;
}

.button-languages {
  width: 16rem;
  height: 2.3rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: var(--wiki-blue);
  font-weight: 700;
}

.button-languages img {
  width: 1rem;
  height: 1rem;
}

/* Second Section */
.second-section {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  border-top: 0.1rem solid var(--line-color);
  padding: 1rem 0.5rem;
  margin: 2rem auto;
  width: 100%;
  height: 100%;
}

.wiki-info {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  height: 100%;
  width: 100%;
}

.wiki-info--description {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  color: var(--font-color);
  padding: 1rem;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Lato, Helvetica, Arial, sans-serif;
}

.wiki-info--app-stores-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin: 1rem auto;
  width: 100%;
}

.wiki-info--app-stores-container a img {
  width: 8rem;
  height: 3rem;
  object-fit: cover;
}

.wiki-info--app-stores-container a:last-child img {
  height: 2.2rem;
}

.wiki-info--description figure {
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 1rem;
  align-self: center;
}

.wiki-info--description figure img {
  height: 2.5rem;
  width: 2.5rem;
  object-fit: cover;
}

.wiki-info--description {
  order: 1;
}

/* Second Section - Part 2 */
.wiki-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  place-items: center;
  padding: 0 0.5rem;
  margin: 2rem 0;
  width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Lato, Helvetica, Arial, sans-serif;
  order: 3;
  gap: 1rem;
}

.wiki-links a {
  display: flex;
  margin-bottom: 1rem;
  align-items: center;
  width: 100%;
  height: 100%;
}

.wiki-links a div {
  margin-left: 1rem;
}

.wiki-links a div p {
  color: var(--wiki-grey);
  font-size: 0.85rem;
}

.wiki-links a div h5 {
  color: var(--wiki-light-blue);
  font-weight: normal;
}

/* Footer */
footer {
  height: 50px;
  border-top: 0.1rem solid var(--line-color);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  padding: 0 1rem 1rem 0;
  flex-direction: row;
}

.footer-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-size: 0.75rem;
}

.footer-bar li {
  margin-left: 1.5rem;
}

.footer-bar li:first-child {
  list-style: none;
}

.footer-bar li {
  color: var(--font-color);
}

/* Desktop Styles */
a:hover {
  text-decoration: underline;
}

.first-section .logo {
  display: block;
}

.title-container .logo {
  display: none;
}

.first-section {
  margin: 0 auto;
}

.section-content div:hover {
  background-color: #eaecf0;
}

.search-bar:hover,
.search-bar:focus-within {
  border: 0.15rem solid blue;
  border-right: none;
}

.wiki-info {
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.wiki-info--description {
  max-width: 24rem;
  flex-direction: row;
  flex-wrap: nowrap;
  height: 100%;
  width: 33%;
  padding: 1rem;
  text-align: start;
  margin-left: 1rem;
}

.wiki-links {
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  order: 3;
  width: 69%;
  position: absolute;
  left: 33%;
  padding-right: 2rem;
  padding-left: 2rem;
}

.wiki-links a:hover {
  background-color: var(--line-color);
  text-decoration: none;
}