.poker-cards-page {
    background-color: #fafafa;
    min-height: 100vh;
}

.print-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.header-left p {
    color: #666;
    font-size: 1.1rem;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.print-button {
    background-color: #3b82f6;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.print-button:hover {
    background-color: #2563eb;
}

.back-button {
    background-color: #6b7280;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-button:hover {
    background-color: #4b5563;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.instructions {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.instructions h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instruction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.instruction-item {
    text-align: center;
}

.instruction-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.instruction-item h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.instruction-item p {
    color: #666;
    font-size: 0.9rem;
}

.print-troubleshooting {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.print-troubleshooting h3 {
    color: #856404;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.print-troubleshooting h3::before {
    content: '⚠️';
    font-size: 1.5rem;
}

.print-troubleshooting p {
    color: #856404;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.troubleshooting-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.troubleshooting-section h4 {
    color: #856404;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.troubleshooting-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.troubleshooting-section li {
    color: #856404;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.troubleshooting-section li::before {
    content: '•';
    color: #856404;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}

.combined-card {
    position: relative;
    display: flex;
    justify-content: center;
}

.fold-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    border-left: 1px dashed #999;
    z-index: 10;
}

.card-pair {
    display: flex;
}

.card {
    width: 63.5mm;
    height: 88.9mm;
    background-color: rgba(255, 255, 255, 0.35);
    border: 2px solid #333;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}



.card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-corners {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: white;
    padding: 0.5rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
}

.card-rank {
    font-size: 1.25rem;
    font-weight: bold;
    font-family: 'Arial Black', 'Helvetica Bold', sans-serif;
}

.card-suit {
    font-size: 1.25rem;
    font-family: 'Arial Black', 'Helvetica Bold', sans-serif;
}

.red-suit {
    color: #dc2626;
}

.black-suit {
    color: #000;
}

.card-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.suit-large {
    font-size: 3rem;
    font-family: 'Arial Black', 'Helvetica Bold', sans-serif;
}

.card-corners-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    transform: rotate(180deg);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 0.5rem;
    z-index: 3;
}



.pet-name {
    font-size: 0.75rem;
    font-weight: bold;
    font-family: 'Arial Black', 'Helvetica Bold', sans-serif;
}

.card-back {
    width: 63.5mm;
    height: 88.9mm;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back-content {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.back-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.back-text {
    font-size: 0.6rem;
    font-weight: bold;
    font-family: 'Arial Black', 'Helvetica Bold', sans-serif;
}

@media print {
    @page {
        margin: 0.5rem;
        size: A4;
        zoom: 1;
        scale: 1;
    }
    
    @page :first {
        margin: 0.5rem;
    }
    
    @page :left {
        margin: 0.5rem;
    }
    
    @page :right {
        margin: 0.5rem;
    }

    body {
        margin: 0;
        padding: 0;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
        transform: none;
        zoom: 1;
    }
    
    html {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    /* Disable browser headers and footers */
    @page {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    /* Additional properties to prevent OS interference */
    .poker-cards-page {
        margin: 0;
        padding: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .print-header,
    .instructions,
    .print-troubleshooting {
        display: none;
    }

    .cards-grid {
        padding: 0.25rem;
        gap: 0.25rem;
        transform: none;
        zoom: 1;
        grid-template-columns: 1fr;
    }

    .combined-card::before {
        border-color: #666;
    }

    .fold-line {
        border-color: #666;
    }

    .card,
    .card-back {
        border-color: black;
        width: 63.5mm;
        height: 88.9mm;
        transform: none;
        zoom: 1;
        -webkit-transform: none;
        -moz-transform: none;
        -ms-transform: none;
    }

    * {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
        print-color-adjust: exact;
    }
}
