body {
    margin: 0;
    font-family: Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 10;
    transition: all 0.5s ease;
}

#refresh-screen {
    background: #222;
    z-index: 25;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}
#refresh-screen h1 {
    font-size: 3em;
    margin: 0;
    color: #00ff00;
    text-shadow: 2px 2px 4px #000;
}
.timer {
    font-size: 5em;
    color: #00ff00;
    animation: pulse 1s infinite;
    text-shadow: 2px 2px 4px #000;
}
#loading-screen {
    background: #000;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#password-screen-1 {
    background: linear-gradient(45deg, #000, #4b0082);
    animation: bg-animate 10s ease infinite;
}
#password-screen-2 {
    background: linear-gradient(45deg, #8b0000, #000);
    animation: bg-animate 10s ease infinite;
}
#pin-screen {
    background: #111;
}
#main-menu {
    background: linear-gradient(45deg, #000, #0000ff, #ff00ff);
    animation: bg-animate 15s ease infinite;
}
#warning-screen {
    background: #ff0000;
    z-index: 30;
    text-align: center;
    animation: flash 1s infinite alternate;
}
@keyframes bg-animate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes flash {
    0% { background-color: #ff0000; }
    100% { background-color: #cc0000; }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes shake {
    0% { transform: translate(0, 0); }
    25% { transform: translate(5px, 0); }
    50% { transform: translate(0, 0); }
    75% { transform: translate(-5px, 0); }
    100% { transform: translate(0, 0); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.hidden {
    display: none !important;
}
#warning-screen h1 {
    font-size: 4em;
    margin: 0;
    animation: shake 0.5s infinite;
    color: #fff;
    text-shadow: 2px 2px 4px #000;
}
#warning-screen p {
    font-size: 2em;
    margin: 10px 0;
    animation: bounce 1s infinite;
    color: #fff;
    text-shadow: 1px 1px 3px #000;
}
input {
    padding: 10px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}
button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background: #3498db;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
}
button:hover {
    background: #2980b9;
}
.error {
    color: #ff4444;
    margin-top: 10px;
}
.main-title {
    font-size: 3em;
    text-align: center;
    color: #fff;
    animation: bounce 2s infinite;
}
.categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.category-button {
    padding: 20px;
    font-size: 1.5em;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    animation: slide-in 1s ease-out;
}
.category-button:hover {
    background: rgba(255, 255, 255, 0.2);
}
@keyframes slide-in {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
footer {
    position: absolute;
    bottom: 20px;
    color: #fff;
    font-size: 1.2em;
}