body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
}

hr.seperator {
  border-top: 3px solid #bbb;
}

.container {
    width: 90%;
    max-width: 900px;
    margin: 50px auto;
    background: #ffffff;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    margin-bottom: 10px;
    font-size: 36px;
    color: #004d99;
}
body h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #004d99;
}

header p {
    margin: 5px 0;
}

section {
    margin-bottom: 30px;
}

h2 {
    border-bottom: 2px solid #004d99;
    padding-bottom: 5px;
    color: #004d99;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

a {
    color: #004d99;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


.nav {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-bottom: 2px solid #004d99;
    padding: 16px 16px;
}

.nav ul {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.nav li {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin-right: 10px;
}

.nav form {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
}

.nav form button {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin-right: 10px;
    background-color: #f9f9f9;
    color: #004d99;
    padding: 16px 16px;
}


.nav li a:hover {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin-right: 10px;
    background-color: #004d99;
    color: #f9f9f9;
    padding: 16px 16px;
}

.nav form button:hover {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin-right: 10px;
    background-color: #004d99;
    color: #f9f9f9;
    padding: 16px 16px;
}

.list a{
    color: #333;
}

.list a:hover{
    color: blue;
}


.footer {
    border-top-color:#004d99 ;
    border-top-style:solid ;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #f9f9f9;
    color: #333;
    text-align: center;
    font-family: 'Helvetica Neue', Arial, sans-serif;
 }

 .ip2binary_form{
    background: #f9f9f9;
    color: #004d99;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;  /* ✅ centers inside body */
    text-align: center;
}

 .ip2binary_form label {
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    align-items: center;
 }
 
.ip2binary_form input[type="file"] {
    background-color: #f9f9f9;
    color: black;
    border-color: #333;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 40px 20px;
    margin: 0;
    align-items: center;
}

.ip2binary_form input[type="submit"] {
    background-color: #f9f9f9;
    color: black;
    border-color: #333;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 40px 20px;
    margin: 0;
    align-items: center;
}

.image-display img {
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.image-display img:hover {
    transform: scale(1.02);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* More flexible */
  gap: 20px;
  align-items: stretch; /* Makes height uniform */
}
.gallery img {
  width: 100%;
  height: 100%; /* Important for consistency */
  object-fit: cover; /* Keeps images looking clean without distortion */
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.image-wrapper {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-display {
    margin-top: 20px;
    text-align: center;
}

 .iptable form{
    background: #f9f9f9;
    color: #004d99;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;  /* ✅ centers inside body */
    text-align: center;
}

 .iptable label {
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    align-items: center;
 }
 
.iptable input[type="file"] {
    background-color: #f9f9f9;
    color: black;
    border-color: #333;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 40px 20px;
    margin: 0;
    align-items: center;
}

.iptable input[type="submit"] {
    background-color: #f9f9f9;
    color: black;
    border-color: #333;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 40px 20px;
    margin: 0;
    align-items: center;
}