@font-face {
    font-family: Hero_font;
    src: url('../../fonts/Hero.otf');
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Emoji:wght@300..700&display=swap');

body {
  font-family: Hero_font, "Noto Emoji", sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.example_button:disabled,
.example_button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.header_section {
    position: relative;
    background: #1F1F1F;
    border-bottom: 1px solid rgba(141, 153, 174, 0.5);
}

.header_wrapper {
    padding: 25px 0;
}

.header_wrapper h2 {
    position: relative;
    color: #EEEEEE;
    display: inline-block;
    font-size: 30px;
    margin: 0 30px 0 15px;
}

.header_wrapper p {
    display: inline-block;
    line-height: 30px;
    margin: 0;
    color: #EEEEEE;
    position: relative;
    top: -2px;
    cursor: pointer;
    float: right;
}

.search_section {
    position: relative;
    z-index: 3;
}

.search_wrapper {
    position: relative;
    width: 100%;
}

.search {
    position: relative;
    z-index: 2;
}

.search h1 {
    font-size: 60px;
    line-height: 60px;
    font-weight: 700;
    text-align: center;
    color: #1F1F1F;
    margin-bottom: 0;
}

.search_main_p {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #1F1F1F;
}

.search_wrapper::before {
    /*background: url(../../img/aicode_bg_surface.jpg) no-repeat;
    z-index:1;
    background-size: cover;
    background-position-x: center;*/
    background: #1F1F1F;
}

.search_wrapper::after, .search_wrapper::before {
    content: '';
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    bottom: 0;
}

.main_search input {
    padding: 21px 30px;
    width: 100%;
    font-size: 20px;
    line-height: 28px;
    border: 0;
    background: #EEEEEE;
    border-radius: 6px;
    -webkit-box-shadow: 0 14px 24px rgba(50, 48, 58, .25);
    box-shadow: 0 14px 24px rgba(50, 48, 58, .25);
    outline: 0;
    color: #1F1F1F;
}

.main_search {
    margin-top: 60px;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

.search_sub_p {
    color: #1F1F1F;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0 5px;
}

.search_button {
    background-color: #1F1F1F;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    cursor: pointer;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    border: 2px solid #434343;
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: uppercase;
    padding: 24px 30px;
    display: block;
    color: white;
    text-decoration: none;
    font-size: 17px;
    float: right;
    color: #EEEEEE;
}

.search_button.large {
    float: none;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 20px;
    margin-bottom: 25px;
}

.search_results_button a {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-weight: 700;
    letter-spacing: normal;
    padding: 14px 20px;
    display: block;
    text-decoration: none;
    font-size: 20px;
    border-bottom: solid 1px #434343;
    float: right;
}

.search_results_button.large {
    float: none;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 20px;
    margin-bottom: 25px;
}

.search_input {
    display: block;
    overflow: hidden;
    background: #EEEEEE;
}


.modal {
    will-change: visibility, opacity;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal--active {
    visibility: visible;
    opacity: 1;
}

.modal--align-top {
    align-items: flex-start;
}

.modal__bg {
    background: rgba(0, 0, 0, 0.5);
}

.modal__dialog {
    width: 500px;
    padding: 1.2rem;
}

.modal__content {
    will-change: transform, opacity;
    position: relative;
    padding: 2.4rem;
    background: #1F1F1F;
    color: #dcdcdc;
    background-clip: padding-box;
    box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    padding-top: 60px;
}

.modal__content--active {
    opacity: 1;
}

.modal__close {
    z-index: 1100;
    cursor: pointer;
}

.modal__trigger {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.login-confirm-screen,
.login-success-screen,.card-lock {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

#login-btn,#whats-this,#login-confirm-btn,#cancel-login-btn,#logout-btn,#new_card {
    color: #EEEEEE;
    border: solid 1px #434343;
    padding:5px 10px;
    margin-left:0px;
    margin-right:10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    border: 1px solid #434343!important;
    cursor: pointer;
    border-radius: 10px;
}

#new_card {
    color: #64DB96;
}

#login-confirm-btn,#cancel-login-btn {
    padding: 15px 15px;
    font-size: 1.2em;
}

/* Modal content */
.login-confirm-content {
    background: #1f1f1f;
    border-radius: 12px;
    padding: 1rem 3rem;
    padding-bottom:2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 90%;
    color: #EEEEEE;
}

.login-confirm-content input {
    width: 90%;
    border-radius:5px;
    padding:5px;
    margin-top:5px;
}

.modal__trigger--active {
    z-index: 10;
}

#modal__temp {
    /*will-change: transform, opacity;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #252525;
    color: #dcdcdc;
    transform: none;
    opacity: 1;
    transition: opacity 0.1s ease-out, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);*/
}
.modal__content a{
    color: #64DB96
}
.demo-close {
    position: absolute;
    top: 0;
    right: 0;
    margin: 1.2rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.demo-close svg {
    width: 24px;
    fill: #1F1F1F;
    pointer-events: none;
    vertical-align: top;
    padding: 5px;
}

/*
.demo-close:hover {
    background: rgba(0, 0, 0, 0.6);
}
*/


:focus {
    outline: none;
}

.modal-cards {
  display: grid;
  /* Three columns that shrink nicely and wrap when space is tight */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.modal-card {
  /*background: #151515;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
  margin-top: 0px;
  padding: 1.5rem;
  padding-top: 0rem;
  line-height: 1.2;
  font-size: 1.0em;
  color: #EEEEEE;
  margin-bottom: 30px
}

.modal-card h2 {
  margin: 0 0 8px 0;;
}
.modal-card p{
    text-align: justify-left;
    margin: 0;
}

.modal-card img {
    float: left;
    width: 150px;
    flex-shrink: 0;
    margin: 0 16px 16px 0;
}

.modal-action-card {
  text-align: center;
}

#dontShowAgain {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  width: 98%;
  border: none;
  border-radius: 5px;
  background: #64DB96;
  cursor: pointer;
    color: #1F1F1F;
    margin-left: 18px;
}

#dontShowAgain:hover {
  background: #AEECC8;
}

.example_button {
    background-color: #64DB96;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    color: #1F1F1F;
    font-size: 15px;
    padding: 15px 15px;
    border-radius: 4px;
    transition: opacity 1s;
}

.main_search_wrapper_results {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    color: #EEEEEE;
    position: relative;
    min-height: 175px;
 }

.main_search_wrapper {
    -webkit-transition: all 0.4s ease 0s;
    -moz-transition: all 0.4s ease 0s;
    -ms-transition: all 0.4s ease 0s;
    -o-transition: all 0.4s ease 0s;
    transition: all 0.4s ease 0s;
}
#resultsTable {
    margin-top:10px;
    display:none;
    border-collapse: collapse;
    width: 100%;
}

#resultsTable thead,
#resultsTable tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}
#resultsTable td {
    padding: 0px;
}

#resultsTable td a {
    padding: 20px 20px;
}

#resultsTable td a:hover {
    background: linear-gradient(to top, #2a2a2a 10%, #1F1F1F 40%);
}

#service-title {
    margin-top:80px;
    margin-bottom:80px;
    color: #64DB96;
}

@media (max-width: 600px) {
  #service-title {
    font-size: 2.5rem;
    line-height: 2.5rem;
  }
}

#resultsTable tbody {
    display: block;
    max-height: 500px;       /* fixed height */
    overflow-y: auto;    /* scrollable */
}


.footer_section {
    background: #252525;
    color: #dcdcdc;
    overflow-x: hidden;
    padding: 0 0 50px;
}

.footer_title {
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    color: #fff;
    margin-top: 40px;
}

.footer_section_entry {
    display: table-row;
}

.footer_section_icon {
    display: table-cell;
    vertical-align: top;
    margin-right: 10px;
    width: 24px;
}

.footer_section_text {
    display: table-cell;
    vertical-align: middle;
}

.header_section {
    flex: 0 0 auto;
}

.footer_section {
    flex: 0 0 auto;
}

.search_section {
    flex: 1 0 auto;
    min-height: 400px;
    display: flex;
    box-sizing: border-box
}


.loading-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: sans-serif;
    color: #1F1F1F;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #64DB96;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
    margin-top: 9px;
}
#loading p {
    margin-left: 20px;
    font-weight: bold;
    font-size: 22px;
}
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.dropdown-btn {
    background: none;
    border: none;
    font-weight: bold;
    color: #64DB96;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

.dropdown-btn:hover {
    text-decoration: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 140px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-radius: 6px;
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 8px 12px;
    color: #1F1F1F;
    text-decoration: none;
    font-weight: normal;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
}

.dropdown-filter.show .dropdown-content {
    display: block;
}

/* Fallback emoji initially hidden */
.fallback {
    display: none;
}

/* If Font Awesome fails:
   The <i> element has no valid glyph, so its :before content is empty.
   This selector catches <i> icons with empty or missing content,
   and shows the fallback instead.
*/
i.fa-solid:before,
i.fa-regular:before,
i.fa-brands:before {
    /* If the icon fails, content becomes "" or "none" */
}

i.fa-solid:before:empty + .fallback,
i.fa-regular:before:empty + .fallback,
i.fa-brands:before:empty + .fallback {
    display: inline;
}
