* {
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: white;
    font-family: 'Garamond', serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo {
    width: 180px;
    margin: 20px auto 0;
    display: block;
    filter: invert(1) brightness(2);
}

.card {
    background-color: #111;
    border-radius: 20px;
    padding: 10px;
    margin: 20px auto;
    width: 100%;
    max-width: 450px;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.shoe-img {
    width: 100%;
    display: block;
    margin: auto;
}

.product-title {
    font-family: 'Garamond', 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.3px;
    margin-top: 25px;
}

.verification {
    font-family: 'IBM Plex Sans', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #555;
    margin-top: 12px;
}

.verified-text {
    font-family: 'Inter', 'SF Pro Rounded', sans-serif;
    font-size: 8px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: #0f2d25;
    color: #5ac6a0;
    display: inline-block;
    margin-left: 5px;
}

.auth-button {
    background-color: #134b41;
    color: #5ac6a0;
    padding: 10px;
    width: 100%;
    border-radius: 10px;
    border: none;
    font-size: 18px;
    margin-top: 15px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.auth-icon {
    width: 16px;
    height: 16px;
}

.extra-text {
    margin-top: 60px;
    font-size: 26px;
    font-style: 'Garamond', serif;
    color: white;
    text-align: center;
    padding: 0 15px;
}

.italic-word {
    font-style: italic;
}

.origin-text {
    font-size: 12px;
    font-family: 'Garamond', serif;
    color: rgba(60, 59, 59, 0.7);
    text-align: center;
    margin-top: 40px;
}

.cross-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%); 
    width: 90%; 
    max-width: 420px; 
    height: 50px; 
    background-color: #1A1A1A; 
    border-radius: 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1000; 
}

.cross-icon {
    width: 80px; 
    height: auto; 
    filter: invert(1) brightness(2); 
}

/* Prevent background scrolling when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.modal {
    display: none;
    position: fixed;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    max-width: 385px;
    height: 92vh;
    background: #EDEEE9;
    border-radius: 20px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: opacity 0.2s ease-in-out; /* Smooth transition */
    overflow: hidden;
}

.modal-content {
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Ensures scrolling */
}

#certificateFrame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    overflow: auto !important;
    pointer-events: auto;
}
