sdelay-dlya-menya-sayt-dlya/style.css

525 lines
8.0 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.header {
background: rgba(255, 255, 255, 0.95);
padding: 40px 0;
text-align: center;
box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}
.header h1 {
font-size: 48px;
color: #667eea;
margin-bottom: 10px;
}
.subtitle {
font-size: 20px;
color: #666;
}
.section {
padding: 40px 0;
}
.levels-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 24px;
margin-top: 30px;
}
.level-card {
background: white;
border-radius: 16px;
padding: 30px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
position: relative;
overflow: hidden;
}
.level-card:hover {
transform: translateY(-8px);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.level-badge {
display: inline-block;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
font-size: 24px;
font-weight: bold;
padding: 8px 16px;
border-radius: 20px;
margin-bottom: 15px;
}
.level-card h3 {
font-size: 24px;
color: #333;
margin-bottom: 10px;
}
.level-card p {
color: #666;
line-height: 1.6;
}
.hidden {
display: none;
}
/* Кнопка учителя */
.teacher-fab {
position: fixed;
bottom: 30px;
right: 30px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
border-radius: 50px;
padding: 16px 24px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
transition: all 0.3s;
display: flex;
align-items: center;
gap: 10px;
z-index: 999;
}
.teacher-fab:hover {
transform: scale(1.05);
box-shadow: 0 12px 40px rgba(102, 126, 234, 0.6);
}
.teacher-icon {
font-size: 24px;
}
/* Чат учителя */
.teacher-chat {
position: fixed;
bottom: 100px;
right: 30px;
width: 400px;
max-height: 600px;
background: white;
border-radius: 16px;
box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
z-index: 1000;
overflow: hidden;
}
.chat-header {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
padding: 16px 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.chat-header h3 {
margin: 0;
font-size: 18px;
}
.chat-close {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
width: 32px;
height: 32px;
border-radius: 50%;
cursor: pointer;
font-size: 20px;
transition: all 0.3s;
}
.chat-close:hover {
background: rgba(255, 255, 255, 0.3);
}
.chat-messages {
flex: 1;
padding: 20px;
overflow-y: auto;
background: #f8f9ff;
max-height: 400px;
}
.message {
margin-bottom: 16px;
display: flex;
align-items: flex-start;
gap: 10px;
}
.message.student {
justify-content: flex-end;
flex-direction: row-reverse;
}
.message.teacher {
justify-content: flex-start;
}
.message-avatar {
font-size: 24px;
flex-shrink: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
}
.message-bubble {
max-width: 80%;
padding: 12px 16px;
border-radius: 16px;
line-height: 1.5;
word-wrap: break-word;
}
.message.teacher .message-bubble {
background: white;
border: 1px solid #e0e0e0;
color: #333;
border-bottom-left-radius: 4px;
}
.message.student .message-bubble {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border-bottom-right-radius: 4px;
}
.chat-input-area {
padding: 16px;
background: white;
border-top: 1px solid #e0e0e0;
display: flex;
gap: 10px;
}
.chat-input {
flex: 1;
padding: 12px 16px;
border: 2px solid #e0e0e0;
border-radius: 24px;
font-size: 14px;
}
.chat-input:focus {
outline: none;
border-color: #667eea;
}
.send-btn {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
width: 44px;
height: 44px;
border-radius: 50%;
cursor: pointer;
font-size: 18px;
transition: all 0.3s;
}
.send-btn:hover {
transform: scale(1.1);
}
.send-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.typing-indicator {
display: flex;
gap: 4px;
padding: 12px 16px;
}
.typing-dot {
width: 8px;
height: 8px;
background: #ccc;
border-radius: 50%;
animation: typing 1.4s infinite;
}
.typing-dot:nth-child(2) {
animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes typing {
0%, 60%, 100% {
transform: translateY(0);
}
30% {
transform: translateY(-8px);
}
}
.btn-back {
background: white;
border: 2px solid #667eea;
color: #667eea;
padding: 10px 20px;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
margin-bottom: 20px;
transition: all 0.3s;
}
.btn-back:hover {
background: #667eea;
color: white;
}
#level-title {
font-size: 36px;
color: white;
margin-bottom: 30px;
text-align: center;
}
.tabs {
display: flex;
gap: 10px;
margin-bottom: 30px;
flex-wrap: wrap;
}
.tab-btn {
background: rgba(255, 255, 255, 0.9);
border: none;
padding: 12px 24px;
border-radius: 8px;
cursor: pointer;
font-size: 16px;
transition: all 0.3s;
}
.tab-btn:hover {
background: white;
transform: translateY(-2px);
}
.tab-btn.active {
background: white;
color: #667eea;
font-weight: bold;
}
.tab-content {
background: white;
border-radius: 16px;
padding: 30px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
display: none;
}
.tab-content.active {
display: block;
}
.tab-content h3 {
font-size: 24px;
color: #667eea;
margin-bottom: 20px;
}
.content-grid {
display: grid;
gap: 20px;
}
.theory-card {
background: #f8f9ff;
border-left: 4px solid #667eea;
padding: 20px;
border-radius: 8px;
}
.theory-card h4 {
color: #333;
margin-bottom: 10px;
font-size: 20px;
}
.theory-card p {
color: #666;
line-height: 1.6;
margin-bottom: 10px;
}
.example {
background: white;
padding: 15px;
border-radius: 6px;
margin-top: 10px;
font-style: italic;
color: #555;
}
.vocab-item {
background: #f8f9ff;
padding: 15px;
border-radius: 8px;
display: flex;
justify-content: space-between;
align-items: center;
transition: all 0.3s;
}
.vocab-item:hover {
background: #eef0ff;
transform: translateX(5px);
}
.word-en {
font-size: 18px;
font-weight: bold;
color: #667eea;
}
.word-ru {
color: #666;
}
.search-input {
width: 100%;
padding: 12px 20px;
border: 2px solid #e0e0e0;
border-radius: 8px;
font-size: 16px;
margin-bottom: 20px;
}
.search-input:focus {
outline: none;
border-color: #667eea;
}
.exercise-card {
background: #f8f9ff;
padding: 20px;
border-radius: 8px;
margin-bottom: 20px;
}
.exercise-question {
font-size: 18px;
font-weight: bold;
color: #333;
margin-bottom: 15px;
}
.exercise-options {
display: flex;
flex-direction: column;
gap: 10px;
}
.exercise-option {
padding: 12px 20px;
background: white;
border: 2px solid #e0e0e0;
border-radius: 6px;
cursor: pointer;
transition: all 0.3s;
}
.exercise-option:hover {
border-color: #667eea;
background: #f0f2ff;
}
.exercise-option.correct {
border-color: #4caf50;
background: #e8f5e9;
color: #2e7d32;
}
.exercise-option.incorrect {
border-color: #f44336;
background: #ffebee;
color: #c62828;
}
.exercise-feedback {
margin-top: 10px;
padding: 10px;
border-radius: 6px;
font-weight: bold;
}
.exercise-feedback.correct {
background: #e8f5e9;
color: #2e7d32;
}
.exercise-feedback.incorrect {
background: #ffebee;
color: #c62828;
}
.footer {
background: rgba(0, 0, 0, 0.2);
color: white;
text-align: center;
padding: 20px 0;
margin-top: 40px;
}
@media (max-width: 768px) {
.header h1 {
font-size: 32px;
}
.levels-grid {
grid-template-columns: 1fr;
}
.tabs {
flex-direction: column;
}
.tab-btn {
width: 100%;
}
}