/* Reset and base styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #f8f9fa, #e0eafc);
  color: #333;
  background-image: url('images/bg_img.jpg');
  background-size: cover;         /* Make image cover full screen */
  background-position: center;    /* Center the image */
  background-repeat: no-repeat;   /* Prevent tiling */    
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  width: 100vw;
  /* Full width of the viewport */
  height: 3cm;
  /* Height exactly 3 cm */
  background-color: #4a90e2;
  /* Change this color as you like */
  position: relative;
}

footer {
  width: 100vw;
  /* Full width of the viewport */
  height: 6cm;
  /* Height exactly 3 cm */
  background-color: #4a90e2;
  /* Change this color as you like */
  position: relative;

}

.footer-section {
  flex-direction: row;
  text-align: center;
}

.footer-section>p {
  color: lightgrey;
}

.footer-section>h3 {
  color: rgb(243, 198, 101);
}

.footer-bottom {
  padding: 10px;
  text-align: center;
  color: antiquewhite;
}

header>h3 {
  margin: 33px;
  font-size: 40px;
  text-align: center;
  font-family: cursive;
  color: #ffffff;
}

.wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
  justify-content: center;
}

.top-section {
  width: 100vw;
  /* Full width of the viewport */
  height: 3cm;
  /* Height exactly 3 cm */
  background-color: #4a90e2;
  /* Change this color as you like */
  position: relative;
  /* or fixed/absolute if you want it stuck */
}

/* Optional: Responsive height for smaller screens */
@media (max-width: 768px) {
  .horizontal-bar {
    height: 2.2cm;
    /* Adjust height for tablets */
  }
}

@media (max-width: 480px) {
  .horizontal-bar {
    height: 1.5cm;
    /* Adjust height for mobiles */
  }
}

.centered-box {
  width: 100%;
  max-width: 700px;
  height: 40%;
  padding: 65px;
  margin: 60px 0px;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  resize: vertical;
  transition: all 0.3s ease-in-out;
  background-color: aliceblue;
}

/* Heading */
h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0056b3;
  text-align: center;
  text-transform: uppercase;
}

h4 {
  margin-bottom: 30px;
  color: #0056b3;
  text-align: center;
}

/* Textarea Styling */
textarea#textInput {
  width: 100%;
  max-width: 700px;
  height: 280px;
  padding: 15px;
  font-size: 1.1rem;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  resize: vertical;
  transition: all 0.3s ease-in-out;
  background-color: #fff;
}

textarea#textInput:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

/* Result Box */
.result {
  margin-top: 30px;
  background: #ffffff;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  max-width: 700px;
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  color: #222;
  transition: all 0.3s ease-in-out;
}

.result p {
  margin: 10px 0;
}

.result span {
  font-weight: bold;
  color: #007bff;
}

/* Responsive Design */
@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
  }

  h4 {
    font-size: 1.2rem;
  }

  textarea#textInput {
    height: 150px;
    font-size: 1rem;
  }

  .result {
    font-size: 1rem;
    padding: 15px 20px;
  }
}