@charset "UTF-8";
/* CSS Document */

/* no css affects the plugin except its style */
 /* body {
        font-family: 'Courier New', monospace;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        margin: 0;
        background: linear-gradient(135deg, #1e3c72, #2a5298);
        color: white;
} */

.title {
font-size: 2.5rem;
/* margin-bottom: 10px; */
text-align: center;
color: #54545E;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
font-weight: 500;
}

.counter-label {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 1.2rem;
color: #ccc;
margin-bottom: 10px;
letter-spacing: 2px;
}

.split-flap-container {
display: flex;
gap: 10px;
margin: 10px 0;
perspective: 1000px;
align-items: center;
}

.digit-container {
position: relative;
width: 36px;
height: 50px;
background: #2c2c2c;
border: 1px solid #444;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.digit-half {
position: absolute;
width: 100%;
height: 50%;
background: #1a1a1a;
overflow: hidden;
}

.digit-half .digit-content {
position: absolute;
width: 100%;
height: 200%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2.5rem;
font-weight: 500;
color: #fff;
}

.digit-half.top {
top: 0;
border-bottom: 1px solid #444;
}

.digit-half.top .digit-content {
top: 0;
}

.digit-half.bottom {
bottom: 0;
border-top: 1px solid #444;
}

.digit-half.bottom .digit-content {
top: -100%;
}

.digit-container::after {
content: "";
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 2px;
background: #444;
z-index: 10;
transform: translateY(-50%);
}

.falling-card {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 50%;
background: #1a1a1a;
transform-origin: bottom;
z-index: 5;
border-bottom: 1px solid #444;
animation: flipDown 0.6s ease-in-out;
overflow: hidden;
}

.falling-card .digit-content {
position: absolute;
width: 100%;
height: 200%;
top: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
font-weight: bold;
color: #fff;
}

@keyframes flipDown {
0% {
        transform: rotateX(0deg);
}
50% {
        transform: rotateX(-90deg);
}
100% {
        transform: rotateX(-180deg);
}
}

.rising-card {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 50%;
background: #1a1a1a;
transform-origin: top;
z-index: 5;
border-top: 1px solid #444;
animation: flipUp 0.6s ease-in-out;
overflow: hidden;
}

.rising-card .digit-content {
position: absolute;
width: 100%;
height: 200%;
top: -100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
font-weight: bold;
color: #fff;
}

@keyframes flipUp {
0% {
        transform: rotateX(180deg);
}
50% {
        transform: rotateX(90deg);
}
100% {
        transform: rotateX(0deg);
}
}

.click-button {
font-size: 1.4rem;
padding: 18px 36px;
background: linear-gradient(145deg, #ff6b6b, #ee5a52);
color: white;
border: none;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
text-transform: uppercase;
letter-spacing: 1px;
font-weight: bold;
position: relative;
}

.click-button:hover {
background: linear-gradient(145deg, #ff5252, #e53935);
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.click-button:active {
transform: translateY(0px);
}

.click-button:disabled {
background: linear-gradient(145deg, #666, #555);
cursor: not-allowed;
transform: none;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.reset-button {
font-size: 1.1rem;
padding: 12px 24px;
background: linear-gradient(145deg, #666, #555);
color: white;
border: none;
border-radius: 8px;
cursor: pointer;
margin-top: 15px;
transition: all 0.3s ease;
text-transform: uppercase;
letter-spacing: 1px;
}

.reset-button:hover:not(:disabled) {
background: linear-gradient(145deg, #777, #666);
transform: translateY(-1px);
}

.reset-button:disabled {
cursor: not-allowed;
opacity: 0.6;
}



.status-indicator {
display: flex;
align-items: center;
gap: 8px;
margin: 10px 0;
font-size: 0.9rem;
color: #ccc;
}

.status-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: #dc3545;
animation: pulse 2s infinite;
}

.status-dot.connected {
background: #28a745;
animation: none;
}

@keyframes pulse {
0% {
        opacity: 1;
}
50% {
        opacity: 0.5;
}
100% {
        opacity: 1;
}
}

.user-count {
font-size: 1.4rem;
color: #54545E;
margin-top: 2px;
}