@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", serif;
}

body {
  width: 100vw;
  height: 100vh;
  background-color: rgb(23, 22, 22);
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 70%;
  height: 90%;
  background: linear-gradient(
    to top,
    rgba(4, 160, 177, 0.11),
    rgba(240, 188, 240, 0.692)
  );
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 2px 2px 10px rgb(4, 160, 177), -2px -2px 10px rgb(240, 188, 240);
  border: none;
  border-radius: 30px;
  padding: 10px;
  box-sizing: border-box;
  gap: 20px;
}

h1 {
  font-size: 40px;
  text-shadow: 2px 2px 10px rgb(4, 160, 177);
}

label {
  font-size: 17px;
  text-shadow: 2px 2px 10px rgb(4, 160, 177);
}

.input {
  width: 90%;
  height: 30%;
  background: linear-gradient(to top, rgb(3, 19, 22), rgb(160, 161, 235));
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  color: aliceblue;
  font-size: 25px;
  border-radius: 20px;
}

#input {
  width: 70%;
  height: 40px;
  background-color: rgba(10, 46, 49, 0.68);
  border: none;
  border-radius: 20px;
  box-shadow: 2px 2px 10px rgb(4, 160, 177), -2px -2px 10px rgb(240, 188, 240);
  font-size: 20px;
  color: aliceblue;
  padding: 15px;
  box-sizing: border-box;
}

#btn {
  width: 200px;
  height: 50px;
  background-color: rgba(10, 46, 49, 0.68);
  border: none;
  border-radius: 20px;
  font-size: 20px;
  color: aliceblue;
  box-shadow: 2px 2px 10px rgb(4, 160, 177), -2px -2px 10px rgb(240, 188, 240);
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

#btn:hover {
  background: transparent;
  box-shadow: 2px 2px 10px rgb(4, 223, 247), -2px -2px 10px rgb(232, 116, 232);
}

.output {
  width: 90%;
  height: 55%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.image {
  width: 70%;
  height: 100%;
  background: linear-gradient(to top, rgb(3, 19, 22), rgb(160, 161, 235));
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 20px;
  position: relative;
}

.btns {
  width: 25%;
  height: 100%;
  background: linear-gradient(to top, rgb(3, 19, 22), rgb(160, 161, 235));
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 20px;
  flex-direction: column;
  gap: 90px;
}

#download {
  width: 150px;
  height: 50px;
  background-color: rgba(10, 46, 49, 0.68);
  border: none;
  border-radius: 20px;
  font-size: 20px;
  color: aliceblue;
  box-shadow: 2px 2px 10px rgb(4, 160, 177), -2px -2px 10px rgb(240, 188, 240);
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

#reset {
  width: 150px;
  height: 50px;
  background-color: rgba(10, 46, 49, 0.68);
  border: none;
  border-radius: 20px;
  font-size: 20px;
  color: aliceblue;
  box-shadow: 2px 2px 10px rgb(4, 160, 177), -2px -2px 10px rgb(240, 188, 240);
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

#download:hover {
  background: transparent;
  box-shadow: 2px 2px 10px rgb(4, 223, 247), -2px -2px 10px rgb(238, 68, 238);
}

#reset:hover {
  background: transparent;
  box-shadow: 2px 2px 10px rgb(4, 223, 247), -2px -2px 10px rgb(232, 116, 232);
}

#image {
  width: 75%;
  height: 90%;
  background-size: cover;
  border: none;
  border-radius: 20px;
  display: none;
}

#loading {
  position: absolute;
  width: 20%;
  filter: drop-shadow(2px, 2px, 10px black);
  border-radius: 490%;
  display: none;
}

@media (max-width: 1200px) {
  .container {
    width: 90%;
  }
  #image {
    width: 75%;
  }
}

@media (max-width: 900px) {
  .output {
    flex-direction: column !important;
  }
  #image {
    width: 90%;
  }
  .image {
    width: 100%;
    height: 64%;
  }
  .btns {
    width: 100%;
    height: 25%;
    flex-direction: row;
  }
}

@media (max-width: 700px) {
  h1 {
    font-size: 35px;
  }
}
@media (max-width: 610px) {
  h1 {
    font-size: 30px;
  }
  #input {
    font-size: 10px;
  }
}
@media (max-width: 530px) {
  h1 {
    font-size: 25px;
  }
  .btns {
    width: 80%;
    height: 20%;
    font-size: 7px;
    flex-direction: row;
  }
}

@media (max-width: 450px) {
  .container {
    height: 100%;
    width: 100%;
    border-radius: 0px;
  }
  h1 {
    font-size: 22px;
  }
  .btns {
    justify-content: space-around;
    gap: 0px;
  }
  #download {
    width: 110px;
    height: 35px;
    font-size: 8px;
  }
  #reset {
    width: 110px;
    height: 35px;
    font-size: 13px;
  }
}

@media (max-width: 412px) {
  .container {
    height: 100%;
    width: 100%;
    border-radius: 0px;
  }

  h1 {
    font-size: 22px;
  }
  .image {
    width: 90%;
  }
  .btns {
    justify-content: space-around;
    gap: 0px;
  }
  #download {
    width: 90px;
    height: 28px;
    font-size: 8px;
  }
  #reset {
    width: 90px;
    height: 28px;
    font-size: 10px;
  }
}
