@import url('https://fonts.googleapis.com/css2?family=Spartan:wght@100&display=swap');

*{
  box-sizing: border-box;
}

body{
  background-image: linear-gradient(to right, #83be36, #b77e00, #c5201f, #a00058, #190084);
  font-family: 'Spartan', sans-serif;
}
a{
  text-decoration: none;
  color: white;
}

.app{
  width: 90%;
  margin: auto;
  min-height: 100vh;
  padding: 50px 0;
}

.search-wrapper{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.search-wrapper span {
  color: white;
  font-size: 1.5rem;
}

.search-input{
  width: 600px;
  position: relative;
}

.search-input input{
  border: none;
  outline: none;
  width: 100%;
  color: white;
  font-size: 2.5rem;
  padding: 12px 65px 12px 12px;
  background-color: transparent;
  border-radius: 10px;
  border: 5px solid rgba(211, 211, 211, 0.3);
}

.search-input .fa-magnifying-glass{
  top: 30%;
  right: 4%;
  position: absolute;
  font-size: 1.8rem;
  transition: 0.3s ease-out;
  color: rgba(211, 211, 211, 0.3);
  cursor: pointer;
}

.search-input .fa-magnifying-glass:hover{
  color: white;
}

::placeholder{
  color: rgba(211, 211, 211, 0.3);
  font-size: 2.5rem;
}

#wikilinks{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 15px;
}

.link{
  width: 550px;
  height: auto;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  transition: 2s;
  align-items: center;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.1); 
  box-shadow: inset 0 0 0 200px rgba(255,255,255,0.05);
}

.link h3{
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
}

.link img{
  margin-top: 15px;
  background-position: 50% 50%;
  background-size: cover;
  border-radius: 2px;
  cursor: pointer;
}

.link:hover{
  filter: brightness(50%);
  transform: scale(1.1);
  -webkit-transition: all 1s ease;
  -moz-transition: all 1s ease;
  -o-transition: all 1s ease;
  -ms-transition: all 1s ease;
  transition: all 1s ease;
}

.middle{
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  transition: .5s ease;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  filter: brightness(100%);
}

.middle i{
  font-size:3.5rem;
  color: white;
}

.link:hover .middle{
  opacity: 1;
}


@media(max-width:768px){
  .search-input{
    width: 100%;
  }

  .search-input .fa-magnifying-glass {
    right: 6%;
  }

  ::placeholder{
    color: rgba(211, 211, 211, 0.3);
  }

  .link {
    width: 100%;
  }

  .link h3{
    font-size: 0.8rem;
    font-weight: bold;
  }

  .middle i{
    font-size:3rem;
  }
}

@media(max-width:480px){
  .search-input .fa-magnifying-glass {
    right: 8%;
  }

  ::placeholder{
    color: rgba(211, 211, 211, 0.3);
  }

  .middle i{
    font-size:2.5rem;
  }
}
