sto-k-odnomu/src/components/Question.css
2026-01-10 22:59:53 +03:00

168 lines
3.7 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.question-container {
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
min-height: 0;
}
.question-box {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 25px;
padding: clamp(15px, 3vh, 30px);
margin-bottom: clamp(5px, 1vh, 15px);
border: 3px solid rgba(255, 215, 0, 0.3);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
text-align: center;
flex-shrink: 0;
}
.question-navigation {
display: flex;
align-items: center;
justify-content: center;
gap: clamp(10px, 2vw, 20px);
margin-bottom: clamp(10px, 2vh, 15px);
}
.question-text-wrapper {
display: flex;
align-items: center;
gap: 1rem;
flex: 1;
justify-content: center;
}
.question-nav-button {
width: clamp(40px, 6vw, 50px);
height: clamp(40px, 6vw, 50px);
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
color: var(--text-primary);
font-size: clamp(1.5rem, 3vw, 2rem);
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.question-nav-button:hover {
transform: translateY(-2px) scale(1.1);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
border-color: rgba(255, 215, 0, 0.6);
background: rgba(255, 255, 255, 0.2);
}
.question-nav-button:active {
transform: translateY(0) scale(1);
}
.question-nav-button-prev:hover {
background: rgba(78, 205, 196, 0.3);
border-color: #4ecdc4;
}
.question-nav-button-next:hover {
background: rgba(102, 126, 234, 0.3);
border-color: #667eea;
}
.question-number {
display: inline-block;
background: rgba(255, 215, 0, 0.2);
border: 2px solid rgba(255, 215, 0, 0.5);
border-radius: 15px;
padding: clamp(6px, 1vh, 10px) clamp(15px, 2vw, 25px);
margin-bottom: clamp(10px, 2vh, 15px);
font-size: clamp(1rem, 2vw, 1.4rem);
color: var(--accent-primary);
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: var(--text-primary);
font-size: clamp(1.2rem, 3vw, 2.5rem);
font-weight: bold;
line-height: 1.3;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
margin: 0;
flex: 1;
}
.show-all-button {
background: rgba(255, 107, 107, 0.2);
color: #ff6b6b;
border: 2px solid rgba(255, 107, 107, 0.5);
border-radius: 15px;
padding: clamp(8px, 1.5vh, 12px) clamp(20px, 3vw, 30px);
font-size: clamp(0.9rem, 1.8vw, 1.2rem);
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.show-all-button:hover {
background: rgba(255, 107, 107, 0.4);
border-color: #ff6b6b;
transform: translateY(-2px);
box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}
.show-all-button:active {
transform: translateY(0);
}
.answers-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-auto-rows: minmax(auto, clamp(120px, 18vh, 200px));
column-gap: clamp(6px, 1.2vw, 12px);
row-gap: clamp(6px, 0.8vh, 12px);
flex: 1;
min-height: 0;
}
@media (min-width: 900px) {
.answers-grid {
row-gap: 12px;
}
}
@media (min-width: 1200px) {
.answers-grid {
column-gap: 12px;
}
}
@media (max-width: 768px) {
.answers-grid {
grid-template-columns: 1fr;
}
}
/* Для очень высоких экранов (ТВ и т.д.) */
@media (min-height: 1080px) {
.answers-grid {
grid-auto-rows: minmax(auto, 180px);
}
}
/* Для телефонов в портретной ориентации */
@media (max-width: 768px) and (max-height: 900px) {
.answers-grid {
grid-auto-rows: minmax(auto, 150px);
}
}