html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    overscroll-behavior: none;
}

body {
    font-family: 'Open Sans', 'Regular';
    background-color: #bebdb2;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    padding-top: 100px;
    padding-bottom: 110px;
}

main {
    min-height: calc(100vh - 160px);
}

header {
    background-color: #5A23B9;
    color: #ffffff;
}
footer {
    background-color: #ffffff;
    color: #000000;
}

.intro-text {
    padding: 0 15px;
    color: #000000;
    font-family: 'Open Sans', 'Regular';
    font-weight: normal;
    font-size: 18pt;
    text-align: center;
}

.header-text {
    font-weight: bold;
    font-size: 58pt;
    margin-top: 40px;
    margin-bottom: 10px;
    line-height: 1.1;
    font-family: 'Open Sans', 'Regular';
    /* box-sizing: border-box; */
    display: block;
    color: #ffffff;
    text-align: center;
}

.body-bold-text {
    color: #000000;
    font-family: 'Open Sans', 'Regular';
    font-size: 18pt;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
}

.body-text {
    color: #000000;
    font-family: 'Open Sans', 'Regular';
    font-size: 18pt;
    text-align: center;
    font-weight: normal;
}

.warning {
    color: #000000;
    font-family: 'Open Sans', 'Regular';
    font-size: 18pt;
    text-align: center;
    font-weight: normal;
}

.footer-text {
    color: #ffffff;
    font-family: 'Open Sans', 'Regular';
    font-weight: normal;
    font-size: 18pt;
    text-align: center;
}

.logo-img {
    max-width: 375px;
}

.form-control {
    border-radius: 5px;
    border: 1px solid #ffffff;
}

.map-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.form-group label {
    color: #000000;
    font-family: 'Open Sans', 'Regular';
    font-weight: normal;
    font-size: 18pt;
    text-align: right;
}

.btn-custom {
    background-color: #5A23B9;
    border-color: #5A23B9;
    color: #fff;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.btn-custom:hover {
    background-color: #5A23B9;
    border-color: #5A23B9;
    color: #fff;
}

header.fixed-top {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

footer.fixed-bottom {
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

/* Popup styling */
.results-popup {
    /* margin-top: 20px; */
    display: none; /* Initially hidden */
    /* background-color: rgba(255, 255, 255, 0.95); */
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
    /* border-radius: 8px; */
    /* padding: 20px; */
    /* width: 100%; */
    /* max-width: 800px; */
    /* margin: 0 auto; */
}

.popup-content {
    padding: 10px;
}

.hidden {
    display: none;
}


/* Popup Result styling Start */
.p-screen {
    position: relative;
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-width: 900px;
    margin: 20px auto;
}

.p-results {
    max-height: 400px;
    overflow-y: auto;
    display: block;
}

.p-results table {
    width: 100%;
    border-collapse: collapse;
}

.p-results th, .p-results td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.p-results th {
    background-color: #fff;
    color: #000;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.p-results tr:nth-child(odd) {
    background-color: #000;
    color: #fff;
}

.p-results tr:nth-child(even) {
    background-color: #fff;
    color: #000;
}

.p-results td {
    text-align: center;
    font-size: 13px;
}

.p-results td.middle {
    text-align: center;
}

.p-results td.narrow {
    text-align: center;
    width: 50px;
}

/* Popup Result styling End */

/* Ensure eye icon color matches row text */
.eye-icon i {
    color: inherit; /* Inherits the color of the parent (row text color) */
    transition: color 0.2s ease-in-out; /* Optional: Smooth color transition on hover */
}

.eye-icon i:hover {
    color: darken(inherit, 10%); /* Optional: Slightly darken on hover */
}

/* Custom style to position the print icon at the bottom right */
.print-icon {
    position: fixed;
    bottom: 100px; /* Higher bottom position to stay clear of the footer */
    right: 30px; /* 30px from the right edge of the screen */
    cursor: pointer;
    z-index: 1000; /* Ensure it stays above other elements */
}

.print-icon img {
    width: 50px; /* Adjust size of the print icon */
    transition: transform 0.2s; /* Smooth scaling on hover */
}

.print-icon img:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Media Query for medium screens (tablets) */
@media (max-width: 436px) {
    .print-icon {
        bottom: 120px; /* Adjusted bottom margin for tablets */
    }
}

/* Media Query for small screens (mobile devices) */
@media (max-width: 235px) {
    .print-icon {
        bottom: 140px; /* Adjusted bottom margin for mobile devices */
    }
}

/* Media Query for iPhone SE and smaller screens */
@media (max-width: 375px) {
    header, footer {
        padding: 8px 0;
    }

    main.content {
        margin-top: 80px;
        margin-bottom: 50px;
    }

    .map-image {
        margin-bottom: 80px;
    }
}

@media (max-width: 436px) {
    header, footer {
        padding: 8px 0;
    }

    main.content {
        margin-top: 80px;
        margin-bottom: 50px;
    }

    .map-image {
        margin-bottom: 80px;
    }
}
