sto-k-odnomu/src/components/Question.css

60 lines
1.3 KiB
CSS
Raw Normal View History

2025-12-31 16:53:26 +00:00
.question-container {
width: 100%;
2025-12-31 17:40:34 +00:00
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
min-height: 0;
2025-12-31 16:53:26 +00:00
}
.question-box {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 25px;
2025-12-31 17:40:34 +00:00
padding: clamp(15px, 3vh, 30px);
margin-bottom: clamp(5px, 1vh, 15px);
2025-12-31 16:53:26 +00:00
border: 3px solid rgba(255, 215, 0, 0.3);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
text-align: center;
2025-12-31 17:40:34 +00:00
flex-shrink: 0;
2025-12-31 16:53:26 +00:00
}
.question-number {
display: inline-block;
background: rgba(255, 215, 0, 0.2);
border: 2px solid rgba(255, 215, 0, 0.5);
border-radius: 15px;
2025-12-31 17:40:34 +00:00
padding: clamp(6px, 1vh, 10px) clamp(15px, 2vw, 25px);
margin-bottom: clamp(10px, 2vh, 15px);
font-size: clamp(1rem, 2vw, 1.4rem);
2025-12-31 16:53:26 +00:00
color: #ffd700;
font-weight: bold;
text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.question-text {
color: #fff;
2025-12-31 17:40:34 +00:00
font-size: clamp(1.2rem, 3vw, 2.5rem);
2025-12-31 16:53:26 +00:00
font-weight: bold;
2025-12-31 17:40:34 +00:00
line-height: 1.3;
2025-12-31 16:53:26 +00:00
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.answers-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
2025-12-31 17:40:34 +00:00
grid-auto-rows: minmax(0, 1fr);
gap: clamp(10px, 2vw, 20px);
flex: 1;
min-height: 0;
overflow: hidden;
2025-12-31 16:53:26 +00:00
}
@media (max-width: 768px) {
.answers-grid {
grid-template-columns: 1fr;
}
}