.neuton-extralight {
    font-family: "Neuton", serif;
    font-weight: 200;
    font-style: normal;
}

.neuton-light {
    font-family: "Neuton", serif;
    font-weight: 300;
    font-style: normal;
}

.neuton-regular {
    font-family: "Neuton", serif;
    font-weight: 400;
    font-style: normal;
}

.neuton-bold {
    font-family: "Neuton", serif;
    font-weight: 700;
    font-style: normal;
}

.neuton-extrabold {
    font-family: "Neuton", serif;
    font-weight: 800;
    font-style: normal;
}

.neuton-regular-italic {
    font-family: "Neuton", serif;
    font-weight: 400;
    font-style: italic;
}

/* Navbar styles */
.home-link {
    float: left;
}

.logo {
    height: 46px;
}

.nav-item {
    float: right;
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.nav-item-link {
    display: block;
    color: #232137;
    transition: background-color 1.25s ease, color 1.25s ease;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

/* Change the link color to #111 (black) on hover */
.nav-item-link:hover {
    background-color: #232137;
    color: #F3EBEF;
    transition: background-color 1.25s ease-in, color 1.25s ease-in;
}

/* Input container */
.drug-search {
    position: relative;
    margin: 20px;
}

/* Input field */
.ndc-input {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    background-color: transparent;
}

/* Input label */
.ndc-label {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 16px;
    color: rgba(204, 204, 204, 0);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Input highlight */
.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #007bff;
    transition: all 0.3s ease;
}

/* Input field:focus styles */
.ndc-input:focus+.ndc-label {
    top: -20px;
    font-size: 12px;
    color: #007bff;
}

.ndc-input:focus+.ndc-label+.input-highlight {
    width: 100%;
}

i {
    font-size: 2em;
}

p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

body {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 98vh;
    display: flex;
    flex-direction: column;
    background-color: #F3EBEF;
    z-index: -1;
}

form {
    margin-bottom: 1em;
}

#ndc-input {
    width: 20ch;
}

input[type=text] {
    font-family: 'Neuton', serif;
    font-size: 18px;
    margin-bottom: 0.5em;
    width: 20ch;
    padding: 0.5em;
}

input[type=submit] {
    padding: 0.5em 1em;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
}

input[type=submit]:hover {
    background-color: #0056b3;
}

.ndc-search-button {
    margin: 20px;
}

.cssbuttons-io {
    position: relative;
    font-family: 'Neuton', serif;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.05em;
    border-radius: 0.8em;
    cursor: pointer;
    border: none;
    background: linear-gradient(to right, #8e2de2, #4a00e0);
    color: ghostwhite;
    overflow: hidden;
}

.cssbuttons-io span {
    position: relative;
    z-index: 10;
    transition: color 0.4s;
    display: inline-flex;
    align-items: center;
    padding: 0.5em 0.8em 0.6em 1em;
}

.cssbuttons-io::before,
.cssbuttons-io::after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cssbuttons-io::before {
    content: "";
    background: #000;
    width: 120%;
    left: -10%;
    transform: skew(30deg);
    transition: transform 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.cssbuttons-io:hover::before {
    transform: translate3d(100%, 0, 0);
}

.cssbuttons-io:active {
    transform: scale(0.95);
}

.text-color {
    color: #37212C;
}

a {
    color: #232137;
}

footer {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

footer .disclaimer {
    font-size: 0.8em; /* Adjust size as needed */
    color: #666; /* Or another subtle color */
    margin-top: 15px;
    text-align: center;
    line-height: 1.4; /* Improves readability for multi-line text */
    padding: 0 10px; /* Add some horizontal padding if needed */
}

footer .disclaimer p {
    margin-bottom: 0.5em; /* Space between paragraphs */
}

footer .disclaimer p:last-child {
    margin-bottom: 0; /* No extra space after the last paragraph */
}

footer .disclaimer strong {
    font-weight: bold; /* Make headings stand out if used */
}

/* New additions for improved formatting */

/* Add responsive container for main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Improve drug-info display */
#drug-info {
    margin-top: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Style for info sections */
.info-section {
    margin-bottom: 30px;
}

.section-header {
    font-family: "Neuton", serif;
    font-weight: 700;
    color: #232137;
    border-bottom: 2px solid #8e2de2;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

/* Improve table styles */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.info-table th, .info-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-family: "Neuton", serif;
}

.info-table th {
    background-color: #f8f5fa;
    font-weight: 700;
    color: #232137;
    width: 30%;
}

/* Loading and error message styles */
.loading-indicator, .error-message {
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    text-align: center;
}

.loading-indicator {
    background-color: #e2f3f7;
    color: #0c5460;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 5px solid #f5c6cb;
}

/* Inactive warning and CORS error notes */
.inactive-warning {
    background-color: #fff3cd;
    color: #856404;
    padding: 12px;
    margin-bottom: 20px;
    border-left: 5px solid #ffeeba;
    border-radius: 4px;
}

.note {
    background-color: #e2f3f7;
    color: #0c5460;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.dailymed-link {
    margin: 15px 0;
    text-align: center;
}

.dailymed-link a {
    display: inline-block;
    background-color: #4a3c8c;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.dailymed-link a:hover {
    background-color: #372b6a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-item, .home-link {
        float: none;
        text-align: center;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
    }

    .home-link {
        margin: 0 auto;
    }

    .info-table th, .info-table td {
        padding: 8px 10px;
    }

    .info-table th {
        width: 40%;
    }

    #ndc-input, input[type=text] {
        width: 100%;
    }
}

/* Add styles for packaging item divider */
.packaging-item {
    padding: 15px 0;
}

hr.divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(142, 45, 226, 0.75), rgba(0, 0, 0, 0));
    margin: 15px 0;
}

/* Drug info container */
.drug-info-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}