py-learn / src /app /vocabulary-builder /vocabulary-builder.component.css
Anupriya
shared button component
04830fa
.card1 { background: rgba(255, 255, 255, 0.9); width: 80vw; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); height: 66vh; display: flex; justify-content: space-between; align-items: flex-start; padding: 4vw; gap: 2vw; background-color: #fff; border: 10px solid var(--main-accent-color); border-radius: 1vw; box-shadow: 0 0.4vw 0.8vw rgba(0, 0, 0, 0.6); margin: 2vw auto; max-width: 90%; } .content-container { display: flex; align-items: center; gap: 4vw; } .image-container { width: 50%; } h2 { font-size: 2.5vw; font-weight: 800; color: #006780; margin-bottom: 20px; text-align: center; } .quiz-image { width: 100%; height: auto; border-radius: 10px; } .description-container { width: 66%; } .description-container p { font-size: 1.4vw; margin-bottom: 30px; text-align: justify; } .validate-button { position: relative; border-radius: 0.5vw; font-size: 1.5vw; transition: background-color 0.3s; width: auto; font-weight: bold; background-color: #006780; border: none; color: white; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; position: relative; min-width: 5vw; height: 2.9vw; margin-top: 1.5vw; } .validate-button:hover { background-color: #bdc3c7; box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19); } .validate-button:disabled { background-color: #ccc; cursor: not-allowed; } .submit-button { position: absolute; left: 50%; transform: translateX(-50%); } .card2 { background: rgba(255, 255, 255, 0.9); padding: 2vw; border-radius: 1vw; box-shadow: 0 0.4vw 0.8vw rgba(0, 0, 0, 0.6); width: 80vw; position: absolute; top: 54%; left: 50%; transform: translate(-50%, -50%); height: 70vh; border: 10px solid var(--main-accent-color); background-color: #fff; } .card2 .content-container { display: flex; justify-content: space-around; align-items: center; height: 100%; } .image-container img { max-width: 100%; height: auto; } .word-container { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 50%; } .word-container h2 { font-size: 2.5rem; font-weight: bold; color: #333; margin-top: 2.7vw; } .options-container { width: 45%; text-align: center; padding: 20px; background: rgba(255, 255, 255, 0.7); border-radius: 10px; box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); margin-right: 4vw; } .instruction { font-size: 1.2vw; margin-bottom: 20px; font-weight: 700; } .option-container { display: flex; flex-direction: column; align-items: center; } .option-btn { background-color: #ccc; color: white; padding: 12px 24px; border-radius: 5px; cursor: pointer; font-size: 1.2rem; margin: 10px; width: 80%; transition: background-color 0.3s ease; background-color: #ffffff; color: #333; border: 2px solid #000000; font-size: 1.1vw; border-radius: 3vw; transition: all 0.3s ease; font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: -1px 1vw 0.5vw rgb(0 0 0 / 13%); height: 100%; text-align: center; white-space: normal; word-break: break-word; width: 21vw; } .option-btn.correct, .option-btn.correct:hover { background: #e8f7ed; border-color: #22c55e; color: #14532d; } .option-btn.incorrect, .option-btn.incorrect:hover { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; } .option-btn.selected, .option-btn.selected:hover { background: #e0f2fe; border-color: #3b82f6; color: #0c4a6e; } .option-btn:not(.selected):not(.correct):not(.incorrect):hover { background: #f3f4f6; } .option-btn.disabled, .option-btn:disabled { cursor: not-allowed; filter: grayscale(10%); } .option-btn.picked { outline: 2px dashed rgba(0,0,0,0.25); outline-offset: 2px; } .picked-chip { margin-left: 8px; padding: 2px 8px; border-radius: 12px; font-size: 12px; background: rgba(0,0,0,0.06); } .card3 { background: rgba(255, 255, 255, 0.9); padding: 2vw; border-radius: 1vw; box-shadow: 0 0.4vw 0.8vw rgba(0, 0, 0, 0.6); width: 80vw; position: absolute; top: 54%; left: 50%; transform: translate(-50%, -50%); height: 70vh; border: 10px solid var(--main-accent-color); background-color: #fff; } .feedback-list1 { list-style-type: disc; padding: 0 5vw; color: #000000; overflow-y: auto; height: 18vw; font-size: 1.5vw; margin-bottom: 30px; text-align: justify; } .feedback-list1 li { margin-bottom: 10px; line-height: 1.5; display: list-item; } .feedback-list { list-style-type: none !important; text-align: justify; height: 20vw; overflow-y: auto; padding: 0 3vw; margin-bottom: 2vw; font-size: 1.5vw; } .feedback-list li { margin-bottom: 1vw; font-weight: 500; } .text-green-500 { color: green; } .text-red-500 { color: red; } .card4 { background: rgba(255, 255, 255, 0.9); padding: 2vw; border-radius: 1vw; box-shadow: 0 0.4vw 0.8vw rgba(0, 0, 0, 0.6); width: 80vw; position: absolute; top: 54%; left: 50%; transform: translate(-50%, -50%); height: 70vh; border: 10px solid var(--main-accent-color); background-color: #fff; } textarea { resize: none } .card4 .correct-answer { font-size: 1.8vw; text-align: center; margin-bottom: 20px; color: #006780; font-weight: 600; } .card4 .sentence-formation { display: flex; flex-direction: column; align-items: center; width: 100%; } .card4 .sentence-input-group { display: flex; justify-content: space-between; align-items: center; width: 80%; max-width: 600px; margin-bottom: 20px; } .card4 .sentence-input-group label { font-weight: bold; text-align: left; width: 30%; font-size: 1.7vw; } .card4 .sentence-input-group .input-group { width: 60%; } .card4 .sentence-input-group textarea { width: 138%; height: 100%; font-size: 1.4rem; border: 2px solid #006780; font-family: Arial, sans-serif; border-radius: 8px; padding: 0.4vw; } .card4 .sentence-input-group textarea:focus { outline: none; border: 1px solid #007bff; } .card5 { background: rgba(255, 255, 255, 0.9); padding: 2vw; border-radius: 1vw; box-shadow: 0 0.4vw 0.8vw rgba(0, 0, 0, 0.6); width: 80vw; position: absolute; top: 54%; left: 50%; transform: translate(-50%, -50%); height: 70vh; border: 10px solid var(--main-accent-color); background-color: #fff; } .card5 .feedback-text { font-size: 1.8vw; font-weight: 600; color: #333; margin-top: 1vw; word-wrap: break-word; max-height: 400px; overflow-y: auto; padding-left: 20px; padding-right: 20px; text-align: justify; margin-bottom: 1vw; } .back-icon { position: absolute; top: 1vw; left: 2vw; color: #007bff; font-size: 24px; width: 5vw; cursor: pointer; transition: transform 0.2s ease-in-out; } .back-icon:hover { transform: scale(1.1); color: #0056b3; } .back-icon img { width: 30px; height: auto; cursor: pointer; } .user-guide-close-icon { top: -1vw; right: -1.4vw; } @media (min-width: 1200px) { .icon-btn1 { width: 50px; height: 50px; font-size: 20px; } } .loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; z-index: 1000; } .loader { font-size: 15px; width: 1.5em; height: 1.5em; border-radius: 50%; position: relative; text-indent: -9999em; animation: mulShdSpin 1.1s infinite ease; transform: translateZ(0); } @keyframes mulShdSpin { 0%, 100% { box-shadow: 0em -3em 0em 0em #808080, 2.2em -2.2em 0 0em rgba(128, 128, 128, 0.2), 3em 0em 0 0em rgba(128, 128, 128, 0.2), 2.2em 2.2em 0 0em rgba(128, 128, 128, 0.2), 0em 3em 0 0em rgba(128, 128, 128, 0.2), -2.2em 2.2em 0 0em rgba(128, 128, 128, 0.2), -3em 0em 0 0em rgba(128, 128, 128, 0.5), -2.2em -2.2em 0 0em rgba(128, 128, 128, 0.7); } 12.5% { box-shadow: 0em -3em 0em 0em rgba(128, 128, 128, 0.7), 2.2em -2.2em 0 0em #808080, 3em 0em 0 0em rgba(128, 128, 128, 0.2), 2.2em 2.2em 0 0em rgba(128, 128, 128, 0.2), 0em 3em 0 0em rgba(128, 128, 128, 0.2), -2.2em 2.2em 0 0em rgba(128, 128, 128, 0.2), -3em 0em 0 0em rgba(128, 128, 128, 0.2), -2.2em -2.2em 0 0em rgba(128, 128, 128, 0.5); } 25% { box-shadow: 0em -3em 0em 0em rgba(128, 128, 128, 0.5), 2.2em -2.2em 0 0em rgba(128, 128, 128, 0.7), 3em 0em 0 0em #808080, 2.2em 2.2em 0 0em rgba(128, 128, 128, 0.2), 0em 3em 0 0em rgba(128, 128, 128, 0.2), -2.2em 2.2em 0 0em rgba(128, 128, 128, 0.2), -3em 0em 0 0em rgba(128, 128, 128, 0.2), -2.2em -2.2em 0 0em rgba(128, 128, 128, 0.2); } 37.5% { box-shadow: 0em -3em 0em 0em rgba(128, 128, 128, 0.2), 2.2em -2.2em 0 0em rgba(128, 128, 128, 0.5), 3em 0em 0 0em rgba(128, 128, 128, 0.7), 2.2em 2.2em 0 0em #808080, 0em 3em 0 0em rgba(128, 128, 128, 0.2), -2.2em 2.2em 0 0em rgba(128, 128, 128, 0.2), -3em 0em 0 0em rgba(128, 128, 128, 0.2), -2.2em -2.2em 0 0em rgba(128, 128, 128, 0.2); } 50% { box-shadow: 0em -3em 0em 0em rgba(128, 128, 128, 0.2), 2.2em -2.2em 0 0em rgba(128, 128, 128, 0.2), 3em 0em 0 0em rgba(128, 128, 128, 0.5), 2.2em 2.2em 0 0em rgba(128, 128, 128, 0.7), 0em 3em 0 0em #808080, -2.2em 2.2em 0 0em rgba(128, 128, 128, 0.2), -3em 0em 0 0em rgba(128, 128, 128, 0.2), -2.2em -2.2em 0 0em rgba(128, 128, 128, 0.2); } 62.5% { box-shadow: 0em -3em 0em 0em rgba(128, 128, 128, 0.2), 2.2em -2.2em 0 0em rgba(128, 128, 128, 0.2), 3em 0em 0 0em rgba(128, 128, 128, 0.2), 2.2em 2.2em 0 0em rgba(128, 128, 128, 0.5), 0em 3em 0 0em rgba(128, 128, 128, 0.7), -2.2em 2.2em 0 0em #808080, -3em 0em 0 0em rgba(128, 128, 128, 0.2), -2.2em -2.2em 0 0em rgba(128, 128, 128, 0.2); } 75% { box-shadow: 0em -3em 0em 0em rgba(128, 128, 128, 0.2), 2.2em -2.2em 0 0em rgba(128, 128, 128, 0.2), 3em 0em 0 0em rgba(128, 128, 128, 0.2), 2.2em 2.2em 0 0em rgba(128, 128, 128, 0.2), 0em 3em 0 0em rgba(128, 128, 128, 0.5), -2.2em 2.2em 0 0em rgba(128, 128, 128, 0.7), -3em 0em 0 0em #808080, -2.2em -2.2em 0 0em rgba(128, 128, 128, 0.2); } 87.5% { box-shadow: 0em -3em 0em 0em rgba(128, 128, 128, 0.2), 2.2em -2.2em 0 0em rgba(128, 128, 128, 0.2), 3em 0em 0 0em rgba(128, 128, 128, 0.2), 2.2em 2.2em 0 0em rgba(128, 128, 128, 0.2), 0em 3em 0 0em rgba(128, 128, 128, 0.2), -2.2em 2.2em 0 0em rgba(128, 128, 128, 0.5), -3em 0em 0 0em rgba(128, 128, 128, 0.7), -2.2em -2.2em 0 0em #808080; } }