
/* Общие стили */
:root {
  --primary-color: #4a6bdf;
  --secondary-color: #f5f7ff;
  --accent-color: #ff6b6b;
  --text-color: #333;
  --light-text: #777;
  --border-color: #e0e0e0;
  --correct-color: #4caf50;
  --wrong-color: #f44336;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
  background-color: #f9f9f9;
  color: var(--text-color);
  line-height: 1.6;
  padding: 0;
  margin: 0;
  min-height: 100vh;
}

.container {
  max-width: 100%;
  width: 100%;
  padding: 20px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .container {
    max-width: 600px;
    padding: 30px;
  }
}

h1, h2, h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

p {
  margin-bottom: 15px;
}

.btn {
  display: block;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  margin: 10px 0;
}

.btn:hover {
  background-color: #3a56c0;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
}

.btn-accent {
  background-color: var(--accent-color);
}

.btn-accent:hover {
  background-color: #e05555;
}

/* Формы */
.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: border 0.3s ease;
}

input:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Карточки */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.card-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-info span:first-child {
  font-weight: 600;
  color: var(--text-color);
}

.card-info span:last-child {
  color: var(--light-text);
}

/* Таймер */
.timer {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-color);
  margin: 0px 0px 20px 0px;
  padding: 10px;
  background-color: #fff4f4;
  border-radius: 8px;
}

/* Вопросы теста */
.question {
  margin-bottom: 25px;
}

.question-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.question-answers {
  font-size: 18px;
  font-weight: 300;
  margin-left: 20px;
  margin-bottom: 20px;
}

.option {
  display: block;
  padding: 15px;
  margin-bottom: 10px;
  background-color: white;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option:hover {
  border-color: var(--primary-color);
  background-color: var(--secondary-color);
}

.option.selected {
  border-color: var(--primary-color);
  background-color: var(--secondary-color);
}

/* Результаты */
.result-card {
  text-align: center;
  padding: 30px;
}

.result-score {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 20px 0;
}

.result-details {
  margin-top: 30px;
}

.result-detail {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

/* Хедер */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 20px;
}

.user-info {
  font-size: 14px;
  color: var(--light-text);
}

/* Футер */
.footer {
  text-align: center;
  padding: 20px;
  color: var(--light-text);
  font-size: 14px;
  margin-top: 40px;
}

.error-form {
    background-color: rgba(255,0,0,0.1);   
    animation-name: error;
    animation-duration: 0.15s;
    animation-iteration-count: 4;
}

  .russian-list {
      list-style-type: none; /* Убираем стандартную нумерацию */
      margin-left: -22px;
  }
  
  .russian-list li::before {
      margin-right: 5px; /* Отступ от буквы до текста */
      display: inline-block;
      width: 1.0em;
      text-align: right;
  }
  
.russian-list li:nth-child(1)::before { content: 'А)'; }
  .russian-list li:nth-child(2)::before { content: 'Б)'; }
  .russian-list li:nth-child(3)::before { content: 'В)'; }
  .russian-list li:nth-child(4)::before { content: 'Г)'; }
  .russian-list li:nth-child(5)::before { content: 'Д)'; }
  .russian-list li:nth-child(6)::before { content: 'Е)'; }
  .russian-list li:nth-child(7)::before { content: 'Ё)'; }
  .russian-list li:nth-child(8)::before { content: 'Ж)'; }
  .russian-list li:nth-child(9)::before { content: 'З)'; }
  .russian-list li:nth-child(10)::before { content: 'И)'; }

.hr {
  width:50px;
  height: 5px;
  background: var(--primary-color);
  margin: 6px 0px 2px -22px;
}

.primer {
  border-collapse:collapse;
}
.primer td {
  border: #999999 solid 1px;
  width: 20px;
  text-align:center;
}

.question-attachments img {
  max-height: 100px;
  max-width: 150px;
}

        #image-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            cursor: grab;
            display: none;
        }
        
        #image-container.grabbing {
            cursor: grabbing;
        }
        
        #image-container.scaled {
            touch-action: none;
        }
        
        #zoomed-image {
            transform-origin: 0 0;
            max-width: 100%;
            max-height: 100%;
            user-select: none;
            -webkit-user-drag: none;
        }
        
        #close-btn {
            position: fixed;
            top: 20px;
            right: 20px;
            color: white;
            font-size: 30px;
            cursor: pointer;
            z-index: 1001;
            background: rgba(0, 0, 0, 0.5);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        


@keyframes error {
    0% { 
        transform: translate(0px, 0px);
    }  
    25%   { 
        transform: translate(-5px, 0px);
    }
    75%   { 
        transform: translate(5px, 0px);
    }
    100%   { 
        transform: translate(0px, 0px);
    }
}
