@charset "utf-8";
/* Recall40 — 16‑Tile Version */

/* ===============================
   GLOBAL PAGE STYLE
   =============================== */
body {
    margin: 0;
    background-color: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    text-align: center;
}

#app {
    padding: 20px;
}

/* ===============================
   BUTTONS
   =============================== */
.btn {
    background: #1e90ff;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #3aa0ff;
}

/* ===============================
   GAME CONTAINER
   =============================== */
#gameContainer {
    margin-top: 30px;
    text-align: center;
}

/* ===============================
   MAIN ROUND WRAPPER
   =============================== */
.round-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    align-items: flex-start;
}

.round-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Arrow above tile */
.round-arrow {
    width: 130px;
    height: auto;
    margin-bottom: 6px;
    animation: arrowPulseLoop 1.2s ease-in-out infinite;
}

.round-arrow.fade-out-tile {
    animation: fadeOutTile 1s ease-out forwards;
}

/* ===============================
   MAIN ROUND TILES
   =============================== */
.img-box {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,255,255,0.35);
}

.img-box img {
    width: 100%;
    height: auto;
}

.fade-out-tile {
    animation: fadeOutTile 1s ease-out forwards;
}

@keyframes fadeOutTile {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.9); }
}

/* ===============================
   FINAL RECALL GRID
   =============================== */
.grid-40 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 18px;
    padding: 20px;
    justify-items: center;
}

.final-img {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.final-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    animation: neonPulse 2.2s infinite ease-in-out;
}

@keyframes neonPulse {
    0%   { box-shadow: 0 0 10px rgba(0,255,255,0.35); }
    50%  { box-shadow: 0 0 22px rgba(0,255,255,0.75); }
    100% { box-shadow: 0 0 10px rgba(0,255,255,0.35); }
}

/* Overlay icons */
.overlay-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0.95;
    border-radius: 10px;
}

/* Animations */
.correct-flash {
    animation: flashGreen 0.45s ease-out;
}

@keyframes flashGreen {
    0%   { box-shadow: 0 0 0px rgba(0,255,0,0.0); }
    40%  { box-shadow: 0 0 25px rgba(0,255,0,0.9); }
    100% { box-shadow: 0 0 0px rgba(0,255,0,0.0); }
}

.shake {
    animation: shakeAnim 0.4s ease-in-out;
}

@keyframes shakeAnim {
    0% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
    100% { transform: translateX(0); }
}

.arrow-pulse-loop {
    animation: arrowPulseLoop 1.2s ease-in-out infinite;
}

@keyframes arrowPulseLoop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

/* ===============================
   TILE TYPE SELECT
   =============================== */
#tileTypeSelect {
    margin-top: 40px;
    transition: opacity 0.6s ease;
}

#tileTypeSelect.fade-out {
    opacity: 0;
    pointer-events: none;
}

.tile-btn {
    width: 260px;
    padding: 14px 28px;
    margin: 12px auto;
    border-radius: 10px;
    font-size: 1.4rem;
    cursor: pointer;
}

/* Numbers = Orange */
#numbersBtn { background: #e67e22; }
#numbersBtn:hover { background: #ff9933; }

/* Images = Purple */
#imagesBtn { background: #8e44ad; }
#imagesBtn:hover { background: #a85cd6; }

/* ===============================
   GAME STYLE SELECT
   =============================== */
#gameStyleSelect {
    margin-top: 40px;
    transition: opacity 0.6s ease;
}

#gameStyleSelect.fade-out {
    opacity: 0;
    pointer-events: none;
}

.style-btn {
    width: 260px;
    padding: 14px 28px;
    margin: 12px auto;
    border-radius: 10px;
    font-size: 1.4rem;
    cursor: pointer;
    background: #3498db;
}

.style-btn:hover {
    background: #4fb4ff;
}
