
@font-face {
    font-family: 'Baloo Bhai 2';
    src: local('Baloo Bhai 2 SemiBold'), local('BalooBhai2-SemiBold'),
         url('./BalooBhai2-SemiBold.woff2') format('woff2'),
         url('./BalooBhai2-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: rgb(15, 10, 20);
    color: #fff;
    font-family: 'Baloo Bhai 2', Arial, sans-serif;
}

button, select {
    padding: 8px 8px;
    font-size: 1em;
    border-radius: 6px;
    border: none;
    background: #00ccc2;
    color: #fff;
    cursor: pointer;
    margin-bottom: 16px;
}
option:hover, select:hover, select:focus, button:hover {
    color: #fff;
    background: #ca00af;

}
.container {
    background: #221831;
    padding: 18px;
    border-radius: 12px;
    width: 750px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
input[type="text"] {
    width: 500px;
    padding: 8px;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 16px;
}
label {
    font-size: 1.1em;
    margin-right: 8px;
}

/* Card flip animation styles */
.card-with-name {
    perspective: 1000px;
}
.card-flip {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform .6s cubic-bezier(.4,1.5,.2,.7);
    transform-style: preserve-3d;
}
.card-with-name:hover .card-flip:not(.flipped) {
    transform: rotateY(180deg) !important;
}
.card-flip.flipped {
    transform: rotateY(180deg);
}
.card-with-name:hover .card-flip:is(.flipped) {
    transform: rotateY(0deg) !important;
}
.card-flip.initial-spin {
    transform: rotateY(270deg) !important;
}
.card-flip.slow-spin {
    transition: transform 1s cubic-bezier(.2,.6,.4,.7) !important;
    transform-style: preserve-3d;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    top: 0;
    left: 0;
}
.card-front {
    background: url('BGCborder.png') no-repeat center center;
    background-size: cover;
}
.card-back {
    transform: rotateY(180deg);
    background: rgb(1, 20, 11);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    border-radius: 12px;
}
/* Board Game Cards CSS */
.json-output {
    width: 90%;
    height: 150px;
    margin-top: 12px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: monospace;
    resize: vertical;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    margin: 24px;
}
.card-with-name{
    position: relative;
    width: 825px;
    height: 1200px;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    overflow: hidden;
}
.smaller{
    margin: -300px -395px;
    scale: .5;
}
.bigger{
    margin: 300px 225px;
    scale: 1.5;
}
.card {
    position: absolute;
    left: 37.5px;
    top: 37.05px;
    width: 750px;
    height: 1050px;
    border-style: outset;
    border-width: 1px;
    border-color: #999 #777 #777 #999;
    box-shadow: 0px 4px 12px 2px rgba(93, 0, 255, 0.5);
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    overflow: hidden;
}
.card-template {
    position: relative;
    width: 750px;
    height: 1050px;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    overflow: hidden;
}
.card-name{
    position: absolute;
    z-index: 2;
    right: 26px;
    top: 26px;
    width: 600px;
    font-size: 48px;
    font-weight: bold;
    text-align: right;
    color: #fff;
    padding: 4px 4px;
    border-radius: 6px;
    margin: 0;
    font-family: 'Baloo Bhai 2', Arial, sans-serif;

}
.card-title {
    position: absolute;
    z-index: 2;
    right: 75px;
    top: 75px;
    width: 600px;
    font-size: 20px;
    font-weight: bold;
    text-align: right;
    color: #fff;
    background: rgba(0,0,0,0.8);
    padding: 4px 4px;
    border-radius: 6px;
    margin: 0;
    font-family: 'Baloo Bhai 2', Arial, sans-serif;
}
.card-year {
    position: absolute;
    right: 30px;
    top: 80px;
    font-size: 24px;
    border-radius: 6px;
    font-weight: bold;
    font-family: 'Baloo Bhai 2', Arial, sans-serif;
}
.card-playercount {
    position: absolute;
    left: 12px;
    top: 125px;
    width:100px;
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    font-family: 'Baloo Bhai 2', Arial, sans-serif;
}
.card-gametime {
    position: absolute;
    left: 6px;
    top: 245px;
    width:100px;
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    font-family: 'Baloo Bhai 2', Arial, sans-serif;
}
.card-qr {
    position: absolute;
    right: 45px;
    bottom: 45px;
    width: 285px;
    height: 285px;
    display: scale;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}
.card-qr:hover {
    box-shadow: 0px 0px 8px 4px rgba(52, 116, 255, 0.8);
}
.card-qr-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
