.animated-div {
  transition: transform 0.2s ease-in-out; /* Smooth transition for transform */
}

.animated-div:hover {
  /* transform: scale(1.05); Scale up on click */
  transform: translateY(-5px);
}

.animated-div:active {
  transform: scale(1)
}

.answer-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
}

.answer-input:focus {
    outline: none;
    border-color: #667eea;
}

.answer-options {
    margin-bottom: 16px;
}

.answer-option {
    display: block;
    padding: 12px;
    margin-bottom: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.answer-options:has(.answer-option img) {
    display: grid;
    /* ультра адаптивный вариант
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    */
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.answer-options:has(.answer-option img) .answer-option {
    margin-bottom: 0;
}

.answer-option img {
    width:85%;
}

.answer-option:hover {
    border-color: #6BAEE5;
    background: #E8F2FC;
}

.answer-option.selected {
    border-color: #6BAEE5;;
    background: #E8F2FC
}

.answer-option input {
    margin-right: 8px;
}

.feedback.correct {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.feedback {
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

blockquote {
    background-color: #E8F2FC;
    padding: 1em;
    margin-top: 2em;
    border-radius: 10px;
}

blockquote p {
    margin: .5em !important;
}


#theory img{
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    margin-bottom: 2em;
}

.text-link {
    text-decoration: none;
}

.no-spin::-webkit-outer-spin-button,
.no-spin::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spin {
    -moz-appearance: textfield; /* Firefox */
}

.quiz-question{
    padding-bottom: 2rem !important;
}
