 body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
    padding-bottom: 69px;
}

/* Assuming nav height is 60px. Adjust if different */
.wrapper {
    max-height: calc(100vh - 69px);  /* Adjust 60px to your nav's height */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

h2 a{
  text-decoration: none !important;
  color: #2f4050 !important;
  }

      /* Bottom Navigation Styles */
nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: nowrap;  /* ensure it doesn't wrap */
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #2f4050;
    border-top: 2px solid #555;
  margin: 0;
}

.url {
    text-align: left;
    font-family: 'Courier New', monospace; /* A common monospace font */
    font-size: 14px; /* Adjust size as needed */
    color: #007BFF;  /* A shade of blue, reminiscent of hyperlink colors */
    word-break: break-all; /* To ensure long URLs wrap and don't overflow */
    background-color: #fff; /* Light gray background */
    padding: 4px 10px; /* Some padding to give it more definition */
    border-radius: 4px; /* Slight rounding to soften the appearance */
    display: inline-block; /* Allows for padding and other box-model properties */
    text-decoration: none; /* Removes any underlines, especially if inside a link */
    margin: 15px;
    width: calc(100% - 50px);
    white-space: pre-wrap; /* ensures whitespace and line breaks are respected */
          display: block; /* makes sure it takes up full width by default */
        word-wrap: break-word; /* long words won't overflow */
        overflow: auto; /* adds a scrollbar if needed */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* subtle shadow for some depth */

}

nav ul li {
    margin: 5px 2px;  /* Reduced margins */
    flex: 1;
    text-align: center;
    display: flex;           /* Set list items to use flexbox */
    flex-direction: column;  /* Stack child elements vertically */
    align-items: center;     /* Center child elements horizontally */
    justify-content: center; /* Center child elements vertically */
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    padding: 6px;  /* Reduced padding */
    display: block;
    font-size: 0.8rem;  /* Reduced font size */
    transition: background-color 0.3s;
      display: contents;
}

nav ul li a span {
min-height: 25px;
}

nav ul li a:hover {
    background-color: #555;
}

nav ul li a svg {
    margin-bottom: 4px;  /* Space between icon and text */
    width: 20px;  /* Set a definitive size for SVGs */
    height: 20px;
}

/* Use media query to adjust styles for smaller screens */
@media (max-width: 480px) {
    nav ul li a {
        font-size: 0.7rem;  /* Even smaller font size for very small screens */
    }

    nav ul li a svg {
        width: 18px;  /* Smaller SVG icons for very small screens */
        height: 18px;
    }
}

        h1, p {
            text-align: center;
            padding: 20px;
        }
      
        .instructions {
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin: 20px;
        }
      
      .tabs {
        display: flex;
        justify-content: center;
        flex-wrap: wrap; /* allows the items to wrap onto next line on smaller screens */
        margin-top: 20px;
      }
      
      .tablink {
        padding: 10px 20px;
        background-color: #e0e0e0;
        margin: 5px 10px;
        text-decoration: none;
        color: #555;
        border-radius: 8px;
        transition: background-color 0.3s;
        flex: 1; /* makes the tabs expand to take up full width on smaller screens */
        text-align: center; /* centers the text within the tab */
      }
      
      .tablink:hover {
        background-color: #b0b0b0;
      }
      
      .tabcontent {
        display: none;
        background-color: #fff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin: 20px 0;
      }
      
      @media (max-width: 768px) {
      .tablink {
            flex-basis: 100%; /* makes the tabs take up full width */
            margin: 5px 0; /* adjust the margin to only be vertical */
          }
      }
      
      form {
    display: flex;
    flex-direction: column;
    max-width: 300px;
    margin: 20px auto;
}

label {
    margin-top: 10px;
    margin-bottom: 5px;
}

input[type="text"], input[type="email"], input[type="submit"] {
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 4px;
}

input[type="submit"] {
    background-color: #2f4050;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
        margin: 20px;
}

input[type="submit"]:hover {
    background-color: #555;
}
      
button, a.button {
    background-color: #2f4050;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.3s;
}

      /* Button Styling */
#stopMonitoringBtn, .button-error {
    background-color: #f44336; 
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.3s;
}



#stopMonitoringBtn:hover {
    background-color: #e43326; /* Darken green a bit on hover */
    transform: scale(1.05);    /* Slightly enlarge the button on hover */
}