body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin: 0;
    background-color: #4577a8;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Navigation */
nav {
    width: 100%;
    background-color: #4CAF50;
    color: #fff;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav .container h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
}

nav .container p {
    font-size: 1em;
}

h1 {
    text-align: center; /* Centers text within the element */
    margin: 20px 0;     /* Adjust the top and bottom margin as needed */
    font-size: 2em;     /* Increase or decrease font size as desired */
    color: #003366;     /* Example color; adjust to fit your design */
}

nav {
    width: 100%;
    background-color: #f4f4f4; /* Optional: Background color for the header area */
    padding: 20px 0;
    text-align: center; /* Center the text inside the nav */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Adding a shadow to the header */
}


.container {
    text-align: center; /* Centers the text within the container */
    margin-top: 20px; /* Adds some space at the top */
}

.header-title {
    font-size: 2em; /* Adjust size as needed */
    color: #333; /* Adjust color as needed */
    margin-bottom: 20px; /* Adds space between the header and the cards */
}
.card-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.card {
    width: 85.6mm; /* Standard card size */
    height: 53.98mm; /* Standard card size */
    border-radius: 12px;
    perspective: 1000px;
    margin: 20px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    cursor: pointer;
    font-family: 'Roboto', sans-serif; /* Font similar to electronic card fonts */
}

.card-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    position: relative;
}

.card.flip .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
    color: #fff;
    font-size: 0.8em;
}

.card-front {
    background: linear-gradient(to bottom right, #563e3e, #666);
}

.card-back {
    background: linear-gradient(to bottom right, #563e3e, #666);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.logo {
    height: 40px;
    width: 30px;
    border-radius: 5px;
}

.card-title {
    text-align: center;
}

.card-title h2 {
    font-size: 1.6em;
    margin: 0;
    color: auto; /* Gold color for title */
}

.card-title p {
    font-size: 1.1em;
    font-weight: bold;
    margin: 5px 0;
    color: rgb(0, 255, 0); /* Gold color for subtitle */
}

.card-details {
    font-size: 0.9em;
    line-height: 1.4;
}

.card-details p {
    margin: 5px 0;
}

.card-details .label {
    color: rgb(255, 183, 0); /* Blue color for labels */
}

.card-details .value {
    color: rgb(255, 255, 0); /* Orange color for values */
}
.barcode {
    margin-top: auto;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px; /* Margin between details and barcode */
    height: 40px;
}

.barcode img {
    height: 80%;
}

.card-insert-arrow {
    text-align: center;
    margin-top: 15px;
}

.insert-text {
    margin: 0;
    font-size: 1em;
    color: #ddd; /* Light color for text */
    font-weight: bold;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin: 0;
}

.card-insert-arrow {
    display: flex;
    justify-content: flex-end; /* Align arrow to the right edge */
    padding: 10px;
}

.arrow-icon {
    font-size: 24px;
    color: #000;
    transform: rotate(0deg); /* Ensure arrow points to the right */
}
.card-insert-arrow {
    display: flex;
    justify-content: flex-end; /* Aligns content to the right edge */
    align-items: center; /* Vertically centers the arrow */
    padding: 10px;
    margin-top: 15px; /* Space above the arrow */
}

.triangle {
    width: 0;
    height: 0;
    border-top: 10px solid transparent; /* Transparent top border */
    border-bottom: 10px solid transparent; /* Transparent bottom border */
    border-left: 20px solid #000; /* Black triangle pointing right */
    margin-left: 5px; /* Margin to the left of the triangle to add space */
}


.card-back-details p {
    margin: 5px 0;
    color: #fff; /* White color for card back details */
}

.magnetic-strip {
    height: 20px;
    background: silver;
    margin-bottom: 10px;
    border-radius: 2px;
}

.signature-strip {
    border-top: 1px dashed #fff;
    padding-top: 10px;
}

.return-instruction {
    font-size: 0.8em;
    text-align: center;
    margin-top: 10px;
    color: yellow; /* Orange color for instruction */
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.watermark {
    position: absolute;
    top: 175px;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: rgba(139, 138, 138, 0.111); /* Light gray for subtle effect */
    text-align: center;
    white-space: nowrap;
    pointer-events: none; /* Ensures it doesn't interfere with any clickable elements */
}
