body {
  margin: 0; /* Margins are used to create space around elements, outside of any defined borders. */

  padding: 0; /* create space around an element's content, inside of any defined borders. */

  height: 100vh; /* Sets the height of an element (vh is a CSS unit other units may be px, cm, mm, etc) */

  font-family: "Times New Roman", Times, serif; /* specifies a list of one or more font family names and/or generic family names for the specified element. */

  background-color: #f4f4f4; /* Sets the background color for the element */

  display: flex; /*sets an element's inner and outer display types, the flex portion allows you to create flexible layouts with elements that you can align and distribute vertically or horizontally. */

  flex-direction: column; /*specifies the direction of the flexible items.*/

  align-items: center; /* specifies the default alignment for items inside a flexbox or grid container. */
}

h1 {
  margin-top: 20px;
  text-align: center;
}

.search-box {
  flex-grow: 1;
  display: flex;
  justify-content: center; /* aligns the flexible container's items */
  align-items: center;
}

input[type="text"] {
  margin-bottom: 10px; /* Adds space below the input */
  padding: 10px;
  width: 300px; /*Sets the width of an element*/
  border: 1px solid #cccccc; /*adds a border to an element*/
  border-radius: 5px; /* allows you to add rounded corners to elements */
  outline: none; /* creates a line drawn outside the element's border. */
}

button {
  padding: 10px 15px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 5px;
  cursor: pointer; /*specifies the mouse cursor to be displayed when pointing over an element.*/
  margin-left: 10px;
}

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


#results {
  text-align: center;
  margin-top: 20px;
}
.result-box {
    width: 90%; /* Makes it responsive */
    max-width: 600px; /* Prevents it from being too wide */
    background: white;
    padding: 15px;
    margin: 10px auto; /* Centers the box */
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow-wrap: break-word; /* Wraps long words */
}

.result-box h3 {
    font-size: 20px;
    font-weight: bold;
    color: black;
}

.result-box p {
    font-size: 16px;
    color: #6cbfcc;
    font-weight: bold;
}

.result-box a {
    font-size: 14px;
    color: blue;
    word-wrap: break-word; /* Ensures long URLs wrap */
    display: block; /* Makes the URL take full width */
    overflow: hidden;
    text-overflow: ellipsis; /* Adds "..." if the text is too long */
    white-space: nowrap; /* Prevents wrapping */
}

.result-box a:hover {
    text-decoration: underline;
}

