/* GOOGLE FONTS:
font-family: 'Bruno Ace', cursive;
font-family: 'Roboto Mono', monospace; */

html {
  scroll-behavior: smooth;
}

/* MAIN NAV */
.main-nav {
  background-color: black;
  font-family: "Bruno Ace", cursive;
  font-weight: bold;
  padding: 15px 15px;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9999;
}

.main-nav a {
  color: yellow;
  background-color: rgb(22, 22, 22);
  text-decoration: none;
  padding: 5px 20px;
  margin: 5px 15px;
  display: inline-block;
  border-radius: 8px;
}

.main-nav a:hover {
  color: rgb(22, 22, 22);
  background-color: yellow;
}

/* HOME */

.title-droids {
  font-family: "Roboto Mono", monospace;
  color: yellow;
  background-image: url(./img/r2-d2-star-wars-toy-x2.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 50px 30px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title-droids h1 {
  font-weight: bold;
  font-size: 50px;
}

.title-droids p {
  /* border: 5px solid blue; */
  font-weight: bold;
  line-height: 20px;
  padding-top: 50px;
  width: 50%;
  align-self: flex-end;
}

/* DROID-LIST */

.bg-img {
  border: 2px solid black;
  background-image: url(./img/nasa--hI5dX2ObAs-unsplash.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.bg-img h2 {
  font-family: "Roboto Mono", monospace;
  font-size: 30px;
  font-weight: bold;
  margin: 50px 0 50px 100px;
  padding: 10px;
  background-color: rgb(161, 161, 25);
  color: black;
  border: 2px solid black;
  border-radius: 8px;
  height: 30px;
  width: 250px;
}

.droid-details {
  background-color: black;
  color: yellow;
  border-radius: 8px;
  margin: 80px 100px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.droid-details img {
  border-radius: 8px;
}

.droid-text {
  /* border: 5px solid red; */
  background-color: rgb(0, 0, 0);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  line-height: 30px;
  font-size: 20px;
}

.droid-text h3 {
  /* border: 5px solid red; */
  font-size: 45px;
  margin-bottom: 50px;
}

p {
  padding-right: 20px;
}

/* ICON */

.icon {
  background-color: black;
  height: 200px;
  font-size: 50px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.icon a {
  margin: 20px 50px;
  padding: 8px;
  border: 2px solid black;
  color: black;
  background-color: yellow;
  border-radius: 50%;
}

.icon a:hover {
  color: yellow;
  background-color: black;
}

/* ANIMATION */

@keyframes moveAnimation {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(48%);
  }
}

@keyframes moveAnimation-one {
  0% {
    transform: translateX(150%);
  }
  100% {
    transform: translateX(0%);
  }
}

#title-ani {
  animation: moveAnimation 2s linear forwards;
}

#title-text-ani {
  animation: moveAnimation-one 2s linear forwards;
}
