/* ============================== Font Face ============================== */

@font-face {
    font-family: 'PixelifySans';
    src: url(PixelifySans.ttf);
}

@font-face {
    font-family: 'DM Sans';
    src: url(DMSans.ttf);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fffdee;
    font-family: 'PixelifySans', sans-serif;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    height: 100vh;           /* Full height of viewport */
    padding: 20px;
    text-align: center;      /* Centers the reset button text */
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    width: 100%;
}

#box, #smiski {
    max-width: 300px; /* or 80vw if you want responsive sizing */
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto; /* ✅ center the image */      /* Ensures images are block elements and centered */
}

#box:hover {
    transform: scale(1.05);
}

#smiski {
    margin-top: -20px;
    animation: fadeIn 0.5s ease-in;
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

#resetBtn {
    margin-top: 20px;
    font-size: 1rem;
    padding: 10px 20px;
    border: none;
    font-family: 'PixelifySans', sans-serif;
    background-color: #ADC27F;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: none;
}

#resetBtn:hover {
    background-color: #A3B874;
}

#message {
    font-size: 1.4rem;
    color: #658F0A;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

#message::after {
    content: "|";
    animation: blink 1s step-start infinite;
    margin-left: 5px;
    color: #658F0A;
}

@keyframes blink {
    50% { opacity: 0; }
}

#collection {
    margin-top: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.collect-icon {
    width: 40px;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}
.collect-icon.collected {
    opacity: 1;
}
