/* Body and Container Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.video-background {
    position: fixed; /* Change to fixed for full screen */
    top: 50%; /* Center the video */
    left: 50%; /* Center the video */
    min-width: 100%; /* Ensure the video covers the width */
    min-height: 100%; /* Ensure the video covers the height */
    width: auto; /* Allow the width to scale */
    height: auto; /* Allow the height to scale */
    z-index: -1; /* Place it behind the content */
    transform: translate(-50%, -50%); /* Center the video */
}
video {
    width: 100%; /* Stretch video to full width */
    height: 100%; /* Stretch video to full height */
    object-fit: fill; /* Stretch without preserving aspect ratio */
}

.container {
    text-align: center;
    /*background-image: url('TP_Draw BG_72px.png');
    background-repeat: repeat-x;  /* Repeats horizontally */
    /*background-position: center top;*/
    background-color: #fff;
  
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 900px;
}


/*#downloadDev {
    visibility:hidden;
}*/

h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 20px;
}

/* Fancy Card Styling */
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top:50px;
    margin-bottom: 62px;
}

.card {
    width: 280px;
    height: 120px;
    background: linear-gradient(145deg, #ff416c, #ff4b2b);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s, background 0.3s;
    position: relative;
    perspective: 1000px;
    cursor: pointer;
}

    .card.flipping {
        animation: flip 0.5s infinite;
    }

@keyframes flip {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

/* Controls Styling */
.controls {
    margin-bottom: 20px;
}

    .controls input {
        padding: 8px;
        margin-right: 10px;
        border-radius: 8px;
        border: 1px solid #ccc;
        width: 80px;
        font-size: 1em;
    }

    .controls button {
        padding: 12px 20px;
        background-color: #28a745;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 1em;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .controls button:hover {
            background-color: #218838;
        }

/* Loader and Results Styling */
.loader {
    text-align: center;
    margin-top: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.results {
    margin-top: 20px;
    font-size: 1.2em;
    color: #d9534f;
}

#downloadBtn{
    margin: 0 auto;
}



#cardsTableContainer {
    max-height: 400px; /* Set max height for scrollable area */
    overflow-y: auto; /* Enable vertical scrolling */
    margin-top: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* Modal styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }


#cardsTableContainer {
    max-height: 400px; /* Set max height for scrollable area */
    overflow-y: auto; /* Enable vertical scrolling */
    margin-top: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.modal-content h2 {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-count {
    font-size: 0.9em;
    color: #555;
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 12px;
    margin-left: auto;
}

.file-name {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
}