/* General body styling */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styling */
header {
    background: #02476c;
    color: white;
    padding: 5px 0;
    text-align: center;
    width: 100%;
    z-index: 1000;
    transition: top 0.3s;
    position: fixed;
    top: 0;
    
}

header h1 {
    margin: 5px;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
}

header nav ul li {
    
    margin: 0;
}

header nav ul li button {
    background: none;
    width: 100%;
    max-width: 300px;
    border: none;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    padding: 10px;
    font-weight: bold;
}
 /* header nav ul li button:hover {
    text-decoration: underline;
   
} */

/* Main content styling */
main {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    margin-top: 8%;
    padding: 20px;
    flex: 1;
}

/* Container styling */
.container {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto; /* Center the container and space from below */
    text-align: center;
}
.container h1 {
    color: #02476c;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}
input {
    width: 100%; 
    max-width: 600px;
    height: 45px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    outline:none;
    padding: 0 10px;
}

button  {
    width: 100%; 
    max-width: 400px;
    height: 40px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    outline: none;
    background-color: #02476c;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

button:hover {
    background-color: #0069a2;
}

/* Table styling */
.results-table {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-collapse: collapse;
    background: #ffffff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow-x: auto;
    
}
.results-table th, .results-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.results-table th {
    background: #02476c;
    color: #ffffff;
    font-weight: bold;
}
.results-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.results-table tr:hover {
    background-color: #f1f1f1;
}
/* Responsive Table for Mobile */
@media (max-width: 800px) {
    .results-table {
        display: block;
        width: 100%;
        overflow: auto;
    }

    .results-table thead {
        display: none;
    }

    .results-table tr {
        display: block;
        margin-bottom: 10px;
    }

    .results-table td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 50%;
        white-space: pre-wrap;
    }

    .results-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 10px);
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
}

/* Result section styling */
.result {
    margin-top: 20px;
    padding: 10px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 5px;
}

.result a {
    display: block;
    margin: 10px 0;
    color: #007bff;
    text-decoration: none;
}

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

.result button {
    margin-top: 10px;
}
/* Additional styling for the copy button */
button.copy-btn {
    margin-top: 10px;
    background-color: #28a745;
}

button.copy-btn:hover {
    background-color: #218838;
}

/* Section styling */
section {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
   text-align: left;
   
}

/* Section heading styling */
section h2 {
    margin-bottom: 10px;
    color: #02476c;
}

/* Section paragraph styling */
section p {
    font-size: 16px;
    color: #333;
}
.flex-container {
    display: flex;
   justify-content: space-around;
   margin-top: 20px;
  }
  
  .flex-item {
    background-color: #f1f1f1;
    padding: 20px;
    flex: 1;
    margin: 10px;
    border-radius: 10px;
    text-align: center;
  }
  .flex-item i {
    font-size: 50px;
    color: #02476c;
 }
 .flex-item h3 {
    margin: 10px 0;
    color: #02476c;
 }
 .flex-item p {
    color: #333;
 }


/* Media Queries for Responsive Design */
@media (max-width: 800px) {
    header nav ul {
        flex-wrap: wrap;
    }

    header nav ul li {
        margin: 5px;
    }
    main {
        width: 80%;
        max-width: 400px;
        margin-top: 25%;
        
    }

    .container, section {
        width: 100%;
        max-width: 800px;
        margin-top: 5% auto; /* Center horizontally */
        padding: 10px;
        box-sizing: border-box; /* Ensures padding doesn't affect width */
    }

    input, button {
        width: calc(100% - 20px); /* Align with container padding */
    }
    .flex-container {
        flex-direction: column;
      }
      .flex-item {
        margin: 10px 0;
      }
    .footer p {
        width: auto; 
        text-align:center;
        
    }
}
/* Table responsive styling */
@media (max-width: 800px) {
    .results-table {
        display: block;
        width: 100%;
        overflow: auto;
    }
    .results-table thead {
        display: none;
    }
    .results-table tr {
        display: block;
        margin-bottom: 10px;
    }
    .results-table td {
        display: flex;
        justify-content: space-between;
        padding: 10px;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 50%;
        white-space: pre-wrap;
    }

    .results-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: calc(50% - 10px);
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
    }
}
.container_stats {
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto; /* Center the container and space from below */
    text-align: center;
    }
.footer {
    background: #02476c;
    color: white;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    position: relative;
    bottom: 0;
    left: 0;
    z-index: 1000;
    
}
footer p a {
    color: #03a7ff;
    
}