
body {
  margin: 0;
  padding: 0;
}
.loader {
  display: none;
  width: 50px;
  height: 50px;
  margin: 4em auto 0;
  border: 3px solid rgba(255, 95, 35, 0.9);
  border-right: 4px solid rgb(26, 115, 232);
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}
.result {
  margin-top: 2em;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 300;
  font-size: 1.1em;
  color: orangeRed;
  text-align: center;
}
header {
  text-align: center;
  border-top: 60px solid rgba(251, 98, 39, 0.9);
}
header h1 {
  margin-bottom: 0.2em;
  font-size: 4.5em;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  color: #1c4454;
}
header h3 {
  margin-top: 0.3em;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 300;
  font-size: 1.8em;
  color: rgba(90, 90, 90, 0.93);
}
.random-wiki {
  font-weight: 300;
  font-size: 1.3em;
  color: #9e9e9e;
}
.random-wiki a {
  color: rgb(26, 115, 232);
}
/* Buttons  */
.btn {
  margin: 0 auto;
  padding: 0.35em;
  background-color: rgb(26, 115, 232);
  color: #fff;
  font-size: 1.2em;
  border: 0;
  cursor: pointer;
}
.search-btn {
  max-width: 100px;
  margin-left: 2px;
}

/*  Main  */
main {
  min-height: 150px;
  padding-bottom: 6em;
  position: relative;
}
.search-container {
  max-width: 520px;
  margin: 2em auto 0;
  position: relative;
}
main input {
  width: 400px;
  padding: 0.8em 0.5em 0.5em;
  border: 2px solid #dedede;
}
.fa.fa-search {
  position: absolute;
  top: 13px;
  right: 140px;
  color: rgb(26, 115, 232);
}
main .search-text {
  max-width: 180px;
  padding: 0 7px;
  background-color: #fff;
  color: #397bff;
  font-size: -0.2em;
  position: absolute;
  top: -0.4em;
  left: 50px;
}
main .text {
  padding: 0.6em 0.5em 0.45em;
  font-size: 1em;
  color: #444;
}
.entries {
  display: flex;
  justify-content: center;
  max-width: 920px;
  margin: 3em auto 1em;
  flex-wrap: wrap;
}
.entry-container {
  margin: 1em;
  width: 420px;
  height: 200px;
  position: relative;
}
.entry {
  width: 100%;
  height: 200px;
  border: 2px solid rgb(26, 115, 232);
  position: absolute;
  top: 0;
  left: 0;
  animation: fadeIn 0.5s linear forwards;
}
.entry-overly {
  display: block;
  padding: 83px 0 76px;
  width: 100%;
  background-color: rgb(26, 115, 232);
  border: 2px solid rgb(26, 115, 232);
  color: #fff;
  font-size: 2em;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}
.entry-overly:hover {
  animation: fadeInStatic 0.3s linear forwards;
}
.entry a {
  text-decoration: none;
  color: #333;
}
.entry-header {
  background-color: rgb(26, 115, 232);
  margin: 0;
  padding: 10px;
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 300;
  font-size: 1.5em;
}
.entry p {
  margin: 1em;
  font-size: 1.1em;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 300;
  line-height: 1.3em;
}

/*  Footer  */
footer {
  width: 100%;
  padding: 1em 0;
  background-color: rgba(251, 98, 39, 0.9);
}
footer .credits {
  text-align: center;
  margin: 10px 0px;
  color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 300;
  font-size: 15px;
  height: 50px;
}
.credits p {
  margin: 0.3em;
}
.credits a {
  text-decoration: none;
  color: #fff;
  font-weight: 400;
}

/* Animations */
@keyframes rotate {
  0% {
    transform: rotate(0ged);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    transform: translateY(0%);
  }
}
@keyframes fadeInStatic {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Mobile */
@media screen and (min-width: 300px) and (max-width: 640px) {
  header h1 {
    font-size: 3.5em;
  }
  header h3 {
    margin: 0 1em 1em;
    font-size: 1.6em;
  }
  .search-container {
  max-width: 90%;
  margin: 2em auto 0;
  }
  .search-btn {
    display: block;
    margin: 1em auto;
  }
  main {
    padding-bottom: 2em;
  }
  .fa.fa-search {
    right: 10px;
  }
  .entry-overly {
    padding: 80px 0 80px;
  }
  input {
    font-size: 1.1em;
  }
  form {
    width: 100%; 
  }
  main .text {
    width: 100%;
    font-size: 1.1em;
  }
  input:focus {
    font-size: 1.1em;
  }
}
