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

.container {

  text-align: center;
  width: 100%;
  max-width: 800px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background-color: #fff;
}

.input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
.view-group {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

input[type="text"] {
  padding: 12px 15px; /* Increased padding */
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 8px; /* Rounded corners for the input */
  margin-right: 10px;
  flex: 1;
  max-width: 400px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transition for focus state */
}

input[type="text"]:focus {
  border-color: #007bff; /* Blue border on focus */
  outline: none; /* Remove default focus outline */
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3); /* Glow effect on focus */
}

button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 5px;
}

button:hover {
  background-color: #0056b3;
}

.result-group {
  display: flex;
  justify-content: center;
  align-items: center;
}

.result {
  font-size: 18px;
  color: #333;
  margin-right: 10px;
}
.shortUrlLabel {
  font-size: 18px;
  color: #333;
  margin-right: 30px;
}

.copy-btn {
  padding: 10px 20px;
  margin-left: 30px;
  font-size: 16px;
  background-color: #28a745;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.copy-btn:hover {
  background-color: #218838;
}

/* Media query for laptop screens */
@media (min-width: 768px) {
  input[type="text"] {
    max-width: 600px; /* Increase max-width on larger screens */
  }
}
@media (max-width: 840px) {
  .container {
    width: 90%;
  }
}

@media (max-width: 600px) {
  input {
    flex-direction: column;
    width: 20%;
  }
  button {
    flex-direction: column;
  }
  .view-group {
    flex-direction: column;
  }
  .shortUrlLabel {
    margin: 5px;
  }
  .result {
    margin: 10px;
  }
}

@media (max-width: 435px) {
  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 80%;
  }
  .view-group {
    flex-direction: column;
  }
  .input-group {
    flex-direction: column;
  }
  button {
    margin: 5px;
    width: 80% ;
  }
  #userInput{
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
    width: 90%;
  }
}

@media (max-width: 320px) {
  input {
    flex-direction: column;
    width: 10%;
  }
  button {
    flex-direction: column;
  }
}
