/* 
Theme Name: Astra Child 
Theme URL: https://wpastra.com
Description: Astra Child 
Theme Author: Rhhs
Author URL: https://wpastra.com
Template: astra
Version: 1.0.0 
Text Domain: astra-child 
*/

.site-header {
    position: sticky;
    top: 0px;
        
        background-color: rgb(255 255 255 / 0.15);
        
        backdrop-filter: blur(6px);
}

.page.type-page.ast-article-single {
    margin: auto;  
    max-width: 750px;
    /* width: 50%; */
}


.header-verification-button {
    background-color: initial;
    border: 2px solid white;
    border-radius: 50px;
    color: white !important;
    padding: 0px;
    /* height: 35px; */
    width: 200px;
    display: flex;
}
.header-verification-button>a {
    padding: 12px 20px !important;
    /* width: 100% !important; */
    /* height: 100% !important; */
    color: white !important;
}
.header-verification-button>a>i {
    margin-right: 8px;
}
.header-verification-button:hover {
    background-color: white;
    color: black !important;
    transition: 0.3s;
}
.header-verification-button:active {
    transform: scale(1.1);
    transition: 0.1s;
}
.header-verification-button>a:hover {
    color: black !important;
    text-decoration: none;
}




@media print {
    body * {
      visibility: hidden !important;   /* Hide everything by default */
    }
        
    html, body {
        background: #ffffff !important;
    }
  
    #downloadable-verification-result-wrapper,
    #downloadable-verification-result-wrapper * {
      visibility: visible !important;  /* Make only the wrapper visible */
    }
  
    #downloadable-verification-result-wrapper {
      position: fixed;
      /* left: 0; */
      top: 0;
      width: 100%;
    }
  
    /* Optional: remove page margins */
    @page {
      margin: 0;
    }
  
    html, body {
      -webkit-print-color-adjust: exact !important;
      print-color-adjust: exact !important;
    }
  }
  


.certificate-table-records-button {
    width: 35px;
    height: 35px;
    padding: 0px;
    margin: 0px 5px !important;
    color: white !important;
    transform: scale(1);
}
.certificate-table-records-button:hover {
    transform: scale(1.2);
    transition: 0.3s;
}

.certificate-table-records-button.certificate-show-button>a {
    padding: 9px;
    border-radius: 100px;
    color: white !important;
}




#certificate-verification-form>button, #certificate-verification-form>input {
    height: 50px;
    width: 100%;
    margin: 10px auto;
    border-radius: 50px;
}
#certificate-verification-form.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}
/* spinner inside the form */
#certificate-verification-form.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 4px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


#verification-result-download-button {
    border: 2px solid white;
    background-color: initial;
    padding: 7px;
    margin: auto 10px;
}
#verification-result-download-button:hover {
    background-color: white;
    color: black;
    transition: 0.3s;
}
#verification-result-download-button:active {
    transform: scale(1.2);
    transition: 0.1s;
}

#downloadable-verification-result-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

#certificate-verification-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 20px;
}

.result-header.success {
    background-color: #3F8444;
    border-radius: 100px;
    padding: 10px 20px;
    color: white;
}

.result-header.failed {
    background-color: #8e3d3d;
    border-radius: 100px;
    padding: 10px 20px;
    color: white;
}


.personal-tuv-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1078/1383;

    box-shadow: 0px 0px   #00000070;
    background-image: url('https://asastuv.com/wp-content/uploads/2025/10/Card.png');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
    background-attachment: scroll;
    background-clip: padding-box;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
    row-gap: 0px;
    column-gap: 0px;

    container-type: inline-size; /* enable container queries, this will allow us to change child style depending on this element's spesifications */
  }

.personal-tuv-container>.wrapper {
    font-size: 13px; /* base font size, inner texts will be % related to this */
    line-height: 15px;
    /* background-color: aqua; */
}
@container (max-width: 350px) {
    .personal-tuv-container>.wrapper {
        font-size: 11.5px; /* base font size, inner texts will be % related to this */
        line-height: 14px;
        /* background-color: greenyellow; */
    }
}
@container (max-width: 300px) {
    .personal-tuv-container>.wrapper {
        font-size: 10.7px; /* base font size, inner texts will be % related to this */
        line-height: 13px;
        /* background-color: red; */
    }
}



.card-front-face-container {
    position: absolute;
    top: 0px;
    height: 48.5%;
    width: 100%;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.405);
    border-radius: 10px;
}
.certificate-code-text {
    position: absolute;
    right: 5%;
    top: 11%;
    height: 10%;
    color: white;

    font-size: 110%; /* related to base font size of parent */
    font-weight: bold;
}
.texts-photo-container {
    position: absolute;
    width: 100%;
    top: 23%;
    height: 57%;
}
.texts-container {
    position: absolute;
    left: 24%;
    width: 53%;
    height: 100%;
}
.content-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: absolute;
}
.content-text.name {
    height: 22%;
    top: 1%;
}
.content-text.id-no {
    height: 15%;
    top: 24%;
}
.content-text.co-name {
    height: 22%;
    top: 40%;
}
.content-text.issue-date {
    height: 15%;
    top: 63%;
}
.content-text.expiry-date {
    height: 15%;
    top: 83%;
}
.photo-container {
    position: absolute;
    width: 23%;
    height: 100%;
    right: 0px;
    padding: 1.5%;

    display: flex;
    flex-direction: column;
    justify-content: center;
}
.photo-container>img {
    border: 1px solid gray;
    border-radius: 10%;
}
.certificate-type-text {
    position: absolute;
    width: 100%;
    bottom: 0%;
    height: 20%;
    
    display: flex;
    flex-direction: column;
    justify-content: center;

    text-align: center;

    font-size: 110%; /* related to base font size of parent */
    font-weight: bold;
    color: #193272;
}


.card-back-face-container {    
    position: absolute;
    bottom: 0px;
    height: 48.5%;
    width: 100%;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.405);
    border-radius: 10px;
}
.texts-qrcode-container {
    position: absolute;
    width: 100%;
    top: 22%;
    height: 35%;
}
.content-text.details {
    height: 22%;
    top: 13%;
}
.content-text.limitations {
    height: 22%;
    top: 66%;
}
.qrcode-container {
    position: absolute;
    width: 23%;
    height: 100%;
    right: 0px;
    padding: 3%;

    display: flex;
    flex-direction: column;
    justify-content: center;
}






