@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

body {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
    url("https://i.postimg.cc/pX3pmbTV/Thumbnail-20220525204905669.jpg");
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.main {
  width: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  justify-content: center;
  position: relative;
  padding: 0 20px;
}

.logo {
  position: absolute;
  top: 1%;
  left: 10%;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo img {
  width: 15%;
  max-width: 100px;
}

nav .navlinks {
  position: absolute;
  display: flex;
  top: 4%;
  left: 34%;
  list-style: none;
  background: hsla(0, 92%, 30%, 0.749);
  border-radius: 10px;
  padding: 2px;
}

.navlinks .active {
  color: #fff;
}

.navlinks li a {
  text-decoration: none;
  padding: 0 25px;
  transition: 0.3s;
  color: #fff;
}

.navlinks li a:hover {
  color: rgb(11, 9, 9);
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  background-color: rgba(255, 255, 255, 0.7);
  text-align: center;
  width: 90%;
  max-width: 500px;
}

.container > h1 {
  text-shadow: 1px 1px rgb(200, 200, 200);
}

.container > p,
.container > .removing {
  font-size: 17px;
  letter-spacing: 1px;
}

.custom-file-upload {
  height: 150px;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px;
  cursor: pointer;
  border: 2px dashed #cacaca;
  background-color: rgba(255, 255, 255, 1);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0px 48px 35px -48px rgba(0, 0, 0, 0.1);
}

.custom-file-upload .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-file-upload .icon svg {
  height: 80px;
  fill: rgba(75, 85, 99, 1);
}

.custom-file-upload .text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-file-upload .text span {
  font-weight: 400;
  color: rgba(75, 85, 99, 1);
}

.custom-file-upload input {
  display: none;
}

.buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  margin-top: 20px;
}

.buttons button {
  padding: 5px 10px;
  font-size: 16px;
  border: none;
  outline: none;
  background-color: #026409;
  border-radius: 5px;
  cursor: pointer;
  color: #ffff;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  transition: 0.3s ease;
}

.buttons button:hover {
  background-color: rgba(1, 182, 115, 255);
}

#resultImage {
  margin: 20px 0;
  width: 100%;
  max-width: 500px;
}

footer {
  position: absolute;
  bottom: 0;
  background: hsla(22, 88%, 14%, 0.852);
  width: 100%;
  left: 0%;
  padding: 15px 0;
}

footer p {
  text-align: center;
  color: #fff;
  margin-bottom: 15px;
}

footer p a {
  text-decoration: none;
  color: white;
}

.sociallinks {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 10px;
  position: absolute;
  bottom: 2%;
  left: 45%;
  color: white;
}

/* Media Queries */
@media (max-width: 768px) {
  .logo {
    top: 2%;
    left: 5%;
  }

  .logo img {
    width: 12%;
  }

  nav .navlinks {
    flex-direction: row;
    gap: 30px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
  }

  .navlinks li a {
    padding: 10px 0;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
  }

  .buttons button {
    width: 100%;
    margin-bottom: 10px;
  }

  .sociallinks {
    left: 40%;
  }
}

@media (max-width: 480px) {
  .logo img {
    width: 10%;
  }

  nav .navlinks {
    visibility: hidden;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
  }

  .container {
    padding: 20px;
    width: 100%;
  }

  .buttons {
    flex-direction: column;
    width: 100%;
  }

  .buttons button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
  }

  footer p {
    margin: 0;
  }

  .sociallinks {
    bottom: 5%;
    left: 35%;
  }
}
