Survival_Island_Game / ui /src /index.css
suraj140's picture
Restore ui folder in repository root
98d8ad4
@tailwind base;
@tailwind components;
@tailwind utilities;
/* ─── Custom scrollbar (challenge panel) ──────────────────────────────────── */
.custom-scrollbar::-webkit-scrollbar {
width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: #3f3f46;
border-radius: 999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: #52525b;
}
/* ─── slide-in-from-top (challenge banner) ───────────────────────────────── */
@keyframes slide-in-from-top {
from {
opacity: 0;
transform: translateY(-14px) translateX(-50%);
}
to {
opacity: 1;
transform: translateY(0) translateX(-50%);
}
}
.animate-in.slide-in-from-top {
animation: slide-in-from-top 0.28s ease-out both;
}
/* ─── fade-in + zoom-in (toast log) ─────────────────────────────────────── */
@keyframes fade-in-zoom-in {
from {
opacity: 0;
transform: scale(0.90) translateX(-50%);
}
to {
opacity: 1;
transform: scale(1) translateX(-50%);
}
}
.animate-in.fade-in.zoom-in {
animation: fade-in-zoom-in 0.22s ease-out both;
}
/* ─── Ensure the canvas fills the full viewport with no scrollbars ────────── */
html,
body,
#root {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: #000;
}