﻿:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --background: #f0f2f5;
    --card: #ffffff;
    --text: #2b2d42;
    --text-light: #8d99ae;
    --success: #4cc9f0;
    --warning: #ffd60a;
    --danger: #ef233c;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    color: var(--text);
}

#collage {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

#collage h2 {
    font-size: 2.5rem;
    color: var(--text);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#collage hr {
    border: none;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    margin: 1.5rem 0;
    opacity: 0.3;
    border-radius: 3px;
}

/* Stats Container - New Addition */
#actualImageBox {
    position: relative;
}

/* Stats Container with positioning at top left */
/* Stats Container */
.stats-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    font-size: 0.9rem;
    z-index: 100;
    color: white;
    background: none;  /* Menghilangkan background */
    box-shadow: none;  /* Menghilangkan shadow */
}

#playPanel {
    position: relative;
}

#stepBox, #timeBox {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

#stepBox {
    width: 80px; /* Memberikan fixed width agar sejajar */
    justify-content: space-between;
}

.stepCount {
    font-weight: 600;
}

.sortable {
    margin-bottom: 0;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
    margin: 0.5rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

/* Level Panel */
#levelPanel {
    margin: 2rem 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#levelPanel input[type="radio"] {
    display: none;
}

#levelPanel label {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    background: white;
    color: var(--text);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

#levelPanel input[type="radio"]:checked + label {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Game Over Screen */
#gameOver {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#gameOver div {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { 
        transform: scale(0.8);
        opacity: 0;
    }
    to { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #collage {
        padding: 1rem;
    }
    
    #collage h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .stats-container {
        flex-direction: row;
        gap: 1rem;
        padding: 0.8rem;
    }
}

