/* General Styles */
body {
    font-family: serif;
    margin: 20px;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 10px;
    position: relative;
    overflow: visible;
}

th, td {
    padding: 10px;
    text-align: left;
    position: relative;
    overflow: visible;
}

th {
    background-color: #f6f6f6;
    position: relative;
}

tr:nth-child(even) {
    background-color: #f6f6f6;
}

tr:nth-child(odd) {
    background-color: #f4f4f4;
}

tr:hover {
    background-color: #e6f7ff;
}

/* Flex Container */
#flex-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 5fr));
    gap: 10px;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: DodgerBlue;
}

#flex-container > div {
    background-color: #f0f0f0;
    padding: 20px 10px;
    border: 1px solid #aaa;
    text-align: left;
    font-size: 16px;
    display: grid;
}

/* Detail Container */
/*.detail_container {*/
/*    background-color: DodgerBlue;*/
/*    padding: 20px;*/
/*    border: 1px solid #ccc;*/
/*}*/

.detail_container {
    max-width: 800px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}
/*---------------------*/
/*--------------------*/

.detail_container > div {
    background-color: #f0f0f0;
    padding: 10px 0px;
    text-align: left;
    font-size: 16px;
    /*display: flex;*/
}







.detail_container .name-value {
    margin-bottom: 0;
    min-height: 0;
}

/* Text Styling */
.monthmonth, .monthyear, .yearyear {
    margin-left:5px;
    font-weight: 600;
    margin-right: 5px;
}

.name-value {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ff00d2;
    min-height: 10px;
}

.item, .item1 {
    display: inline-flex;
    width: 100%;
    margin-bottom: 20px;
}

.mm-value-50 {
    margin-left: 50px;
}

.ml-20 {
    margin-left: 20px;
}

.grid {
    display: grid;
}

/* Detail View and Center Text */
.detailView, .text-center {
    text-align: center !important;
    display: block !important;
}

.detailView a {
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ff00d2;
}

/* Order Links and Buttons */
.order_link {
    text-decoration: none;
}

.order_link button, .order_btn {
    cursor: pointer;
    padding: 5px 10px;
}

#continue_order {
    display: none;
}

/* Header */
header {
    background: linear-gradient(to right, #8e44ad, #d2b4de);
    padding: 20px;
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 20px;
}

nav {
    font-size: 16px;
    display: flex;
    align-items: center;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn, .menu-item {
    color: white;
    background-color: transparent;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #8e44ad;
    min-width: 500px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 100%;
    left: 0;
    padding: 20px;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.category-column {
    flex: 1;
    padding: 0 15px;
    background-color: #8e44ad;
    margin-right: 20px;
}

.category-column:last-child {
    margin-right: 0;
}

.category-item {
    display: block;
    padding: 8px 0;
    color: white;
    text-decoration: none;
}

.dropdown.single-column .dropdown-content {
    width: auto;
    min-width: 200px;
    max-width: 250px;
}

.dropdown.single-column .category-column {
    width: 100%;
}

/* Headings */
h1 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5em;
    color: #34495e;
    margin-bottom: 15px;
}

h3, h4, h5, h6 {
    font-size: 1.1em;
    color: #444;
    margin-top: 15px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: bold;
}

.sub-header {
    font-size: 1.1em;
    color: #444;
    margin-top: 15px;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-banner {
    color: white;
    background-color: #555;
    padding: 10px 0;
    margin-bottom: 20px;
}

.footer-banner h3 {
    margin: 0;
    color: white !important;
}

.footer-nav {
    display: flex;
    justify-content: center;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav li {
    margin: 5px 10px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    text-align: center;
    line-height: 16px;
    cursor: pointer;
    font-style: italic;
    font-weight: bold;
    font-size: 12px;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1001;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Extended search box and search box features */
#filterInput {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 16px;
}

.loading-indicator {
    display: none;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
     0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.search-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* Mobile menu styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    nav.active {
        display: flex;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        min-width: 100%;
        display: none;
        flex-direction: column;
    }

    .dropdown.active .dropdown-content {
        display: flex;
    }

    .category-column {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

/* Header Content */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

 /* Form item styles */

        .certificate-form {
            max-width: 900px;
            margin: 20px auto;
            padding: 20px;
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        /*.form-item {*/
        /*    margin-bottom: 15px;*/
        /*    padding: 10px;*/
        /*    background-color: #f9f9f9;*/
        /*    border: 1px solid #e0e0e0;*/
        /*    border-radius: 4px;*/
        /*}*/

        /*.form-item .label {*/
        /*    font-weight: 600;*/
        /*    margin-bottom: 5px;*/
        /*}*/

        /*.form-item .value {*/
        /*    margin-top: 5px;*/
        /*}*/


.form-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.form-item .label {
    font-weight: 600;
    flex: 1;
}

.form-item .value {
    margin-left: auto;
    white-space: nowrap; /* Prevents wrapping of the value text */
}


        select, input[type="text"] {
            width: 100%;
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 14px;
        }

        .order_btn {
            display: block;
            width: 100%;
            padding: 12px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            margin-top: 20px;
            transition: background-color 0.3s;
        }

        .order_btn:hover {
            background-color: #45a049;
        }

        .certificate-details {
            margin-top: 20px;
            padding: 15px;
            background-color: #f0f0f0;
            border-radius: 4px;
        }

        .certificate-details .item {
            margin-bottom: 10px;
        }

        .certificate-details .monthmonth {
            font-weight: 600;
            margin-bottom: 5px;
        }



.agreement-text {
    margin: 10px;
    white-space: pre-wrap; /* Preserves whitespace formatting */
}

.product-text-center {
    text-align: center !important;
    display: ruby-text !important;
}


/* Used by order_confirm.php */

.order-confirm-item {
    margin-bottom: 20px;
}

.order-confirm-form {
    max-width: 600px;
    margin: 0 auto;
}

.order-confirm-form-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 15px;
}

.order-confirm-label {
    flex: 0 0 120px;
    margin-right: 10px;
    font-weight: bold;
}

.order-confirm-input {
    flex: 1;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.order-confirm-center {
    justify-content: center;
}

.order-confirm-btn {
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.order-confirm-btn:hover {
    background-color: #45a049;
}

.terms-row {
    flex-direction: column;
    align-items: flex-start;
}

.terms-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.terms-container input[type="checkbox"] {
    margin-right: 10px;
}

.terms-container label {
    flex: 1;
}
