@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

body {
  font-family: "Poppins", sans-serif;
  background-color: #121212;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  text-align: center;
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  width: 90%;
  max-width: 400px;
}

h1 {
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
}

input[type="text"] {
  padding: 10px;
  border: 1px solid #333;
  border-radius: 5px;
  margin-bottom: 10px;
  background-color: #333;
  color: #fff;
  height: 2rem;
  font-size: 1.5rem;
  outline: none;
}

input[type="text"]::placeholder {
  text-align: center;
}

button {
  padding: 10px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(90deg, #800080, #ff073a);
  transition: opacity 3s ease;
  color: #fff;
  cursor: pointer;

  height: 3rem;
  font-size: 1.5rem;
}

button:hover {
  opacity: 0.75;
  background: linear-gradient(90deg, #ff073a, #800080);
}

.hidden {
  display: none;
}

#result {
  margin-top: 20px;
  font-size: 1.5rem;
}

#shortUrl {
  color: #1e90ff;
  text-decoration: none;
  height: 3rem;
}

#shortUrl:hover {
  text-decoration: underline;
}

#error {
  color: red;
  font-weight: bold;
  margin-top: 10px;
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #800080, #ff073a);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  z-index: 9999;
}

.splash-screen h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.splash-screen p {
  font-size: 1rem;
}

/* Media Queries */

/* Modify at your choice */

@media (max-width: 480px) {
  button:hover {
    background: linear-gradient(90deg, #706ad8, #246707);
  }

  #splash-screen h1 {
    font-size: calc(1.5rem + 10px);
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  h1 {
    font-size: calc(2rem + 4px);
  }
}

@media (min-width: 993px) {
  button:hover {
    background: linear-gradient(90deg, #706ad8, #cc27cc);
  }
}
