UNPKG

brainrotscript

Version:

🧠 A brainrot programming language that compiles to JavaScript - because why write normal code when you can write code that's absolutely sending you? 💀

119 lines (102 loc) • 2.3 kB
/* Quiz Container */ .quiz-container { background: rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 40px; backdrop-filter: blur(10px); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); max-width: 600px; margin: 0 auto; } /* Screens */ .welcome-screen, .quiz-screen, .results-screen { animation: fadeIn 0.5s ease-in; } /* Buttons */ .start-button, .answer-button, .restart-button { background: linear-gradient(45deg, #ff6b6b, #ee5a24); border: none; border-radius: 10px; padding: 15px 30px; color: white; font-size: 1.1rem; cursor: pointer; width: 100%; margin: 10px 0; transition: transform 0.2s; } .answer-button { background: rgba(255, 255, 255, 0.2); text-align: left; } .answer-button:hover { background: rgba(255, 255, 255, 0.3); transform: translateX(5px); } /* Question Display */ .question-counter { text-align: center; margin-bottom: 20px; opacity: 0.8; } .question-text { text-align: center; margin-bottom: 30px; } /* Results */ .score-display { text-align: center; font-size: 2.5rem; margin: 20px 0; } .score-message { text-align: center; font-size: 1.2rem; margin-bottom: 30px; } .score-cards { display: flex; justify-content: space-around; margin: 30px 0; } .score-card { background: rgba(255, 255, 255, 0.1); padding: 20px; border-radius: 10px; text-align: center; min-width: 120px; } .score-card h3 { margin-bottom: 10px; } .score-card p { font-size: 2rem; margin: 0; } /* Review Section */ .review-section { background: rgba(0, 0, 0, 0.2); border-radius: 10px; padding: 20px; margin: 20px 0; max-height: 300px; overflow-y: auto; } .review-item { margin-bottom: 15px; padding: 10px; background: rgba(255, 255, 255, 0.05); border-radius: 5px; border-left: 3px solid transparent; } .review-item.correct { border-left-color: #48ca7e; } .review-item.wrong { border-left-color: #ff6b6b; } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }