/* AbildskovUndervisning - abildskovundervisning.dk */
/* Styling for the area and perimeter games */

.shape-visual {
    align-items: center;
    gap: clamp(16px, 4vw, 40px);
}

.quiz-visual svg.shape-grid {
    height: clamp(150px, calc(var(--app-vh, 100vh) - 260px), 340px);
    width: auto;
    max-width: 62vw;
}

svg.shape-grid.editable { cursor: crosshair; touch-action: none; user-select: none; }
svg.shape-grid.correct { outline: 3px solid #4cd964; }
svg.shape-grid.wrong { outline: 3px solid #ff3b30; }

.shape-side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 150px;
}

.shape-note { min-height: 1.4em; font-weight: 700; color: #ffd44d; }

.shape-answer {
    padding: 6px 12px;
    border: 3px solid #770000;
    border-radius: 12px;
    background: #1a0000;
    color: #ffffff;
    font-size: clamp(1.2rem, 3.6vh, 1.8rem);
    font-weight: 700;
}
.shape-answer.correct { border-color: #4cd964; background: #0a3300; }
.shape-answer.wrong { border-color: #ff3b30; background: #400000; }

.shape-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.shape-key {
    padding: clamp(4px, 1vh, 8px) 0;
    border-radius: 10px;
    border: 3px solid #770000;
    background: #1a0000;
    color: #ff4d4d;
    font-weight: 700;
    font-size: clamp(1rem, 3vh, 1.4rem);
    font-family: inherit;
    cursor: pointer;
}
.shape-key:hover { background: #330000; }

.dot-blink { animation: dot-blink 0.8s ease-in-out infinite; }
@keyframes dot-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
