/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Navigation Bar */
nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c3e50;
  padding: 10px 20px;
}

.logo a {
  text-decoration: none;
  color: #ecf0f1;
}

nav .logo {
  font-size: 1.5em;
  font-weight: bold;
  color: #ecf0f1;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

nav ul li a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 1em;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background-color: #ecf0f1;
  text-align: center;
  padding: 30px;
}

.hero h1 {
  font-size: 2.5em;
  color: #2c3e50;
}

.hero p {
  font-size: 1.2em;
  color: #7f8c8d;
}

/* Main Section */
main {
  flex: 1; /* Ensures the main section takes available space */
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}

/* Border Box for Shortener Section */
.shortener {
  margin-top: 50px;
  margin-bottom: 30px;
  padding: 40px;
  border: 2px solid #2c3e50;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.shortener h2 {
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 20px;
}

.shortener input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #bdc3c7;
  border-radius: 5px;
  font-size: 1em;
}

.shortener button {
  padding: 10px 20px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.shortener button:hover {
  background-color: #2980b9;
}

.result {
  margin-top: 10px;
  font-size: 1em;
  color: #27ae60;
}

/* Description Section */
.description h3 {
  font-size: 1.5em;
  color: #2c3e50;
  margin-bottom: 10px;
  margin-top: 50px;
}

.description p {
  color: #7f8c8d;
  font-size: 1em;
  text-align: left;
  line-height: 1.8;
  margin: 0 20px;
}

/* Contact Section */
#contact {
  width: 70%;
  margin: 40px auto;
  padding: 30px;
  border: 1px solid #bdc3c7;
  border-radius: 5px;
  background-color: #ecf0f1;
}

#contact h2 {
  text-align: center;
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 20px;
}

#contact label {
  display: block;
  margin: 10px 0 5px;
  color: #333;
  font-size: 1em;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid #bdc3c7;
  border-radius: 5px;
  font-size: 1em;
}

#longUrl, {
	margin-top: 50px;
	}
	
#shortenBtn {
	margin-top: 20px;
	width: 50%;
	}

#contact button {
  padding: 10px 20px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact button:hover {
  background-color: #2980b9;
}

/* Footer */
footer {
  text-align: center;
  padding: 10px 0;
  background-color: #2c3e50;
  margin-top: auto; /* Ensures footer stays at the bottom */
}

footer p {
  color: #fff;
  font-size: 0.7em;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  font-size: 2.2em;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

#backToTop:hover {
  background-color: #2980b9;
  transform: scale(1.2);
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Navigation Bar */
  
  #contact {
  max-width: 300px;
  margin: 40px auto;
  padding: 30px;
  border: 1px solid #bdc3c7;
  border-radius: 5px;
  background-color: #ecf0f1;
}

.shortener {
  margin: 40px;
  margin-bottom: 30px;
  padding: 20px;
  border: 2px solid #2c3e50;
  border-radius: 10px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.shortener h2 {
  font-size: 1.8em;
  color: #2c3e50;
  margin-bottom: 20px;
}

.shortener input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #bdc3c7;
  border-radius: 5px;
  font-size: 1em;
}

.shortener button {
  padding: 10px 20px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.shortener button:hover {
  background-color: #2980b9;
}

#backToTop {
  width: 50px;
  height: 50px;
  font-size: 1.2em;
  }
  
}