/* source: detbasale\symbolvaegte.htm style block 1 */
body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: #eef7f1;
    color: #111;
}

.page {
    width: min(1100px, calc(100% - 28px));
    margin: 0 auto;
    padding: 20px 0 30px;
    text-align: center;
}

h1 {
    margin: 8px 0 18px;
}

.scales {
    display: grid;
    gap: 22px;
}

.scale-card {
    padding: 18px;
    border: 3px solid #222;
    border-radius: 8px;
    background: white;
}

.scale {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 90px minmax(180px, 1fr);
    align-items: end;
    gap: 14px;
}

.pan {
    min-height: 124px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-end;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 3px solid #333;
    border-radius: 0 0 40px 40px;
    background: #f8fafc;
}

.stand {
    display: grid;
    justify-items: center;
    align-items: end;
    height: 150px;
}

.beam {
    width: 360px;
    max-width: 82vw;
    height: 8px;
    background: #333;
    border-radius: 999px;
    grid-column: 1 / 4;
    justify-self: center;
    margin-bottom: -2px;
}

.pivot {
    width: 0;
    height: 0;
    border-left: 34px solid transparent;
    border-right: 34px solid transparent;
    border-bottom: 92px solid #555;
}

.symbol {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
}

.symbol.triangle,
.answer-symbol.triangle {
    width: 0;
    height: 0;
    border-left: 19px solid transparent;
    border-right: 19px solid transparent;
    border-bottom: 34px solid #f97316;
}

.symbol.circle,
.answer-symbol.circle {
    border-radius: 50%;
    background: #2563eb;
}

.symbol.square,
.answer-symbol.square {
    background: #16a34a;
}

.weight {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0 8px;
    border: 3px solid #111;
    border-radius: 6px;
    background: #facc15;
    font-size: 20px;
    font-weight: bold;
}

.answer-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 14px;
    margin: 24px 0 10px;
}

.answer-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 14px;
    border: 3px solid #222;
    border-radius: 8px;
    background: white;
}

.answer-symbol {
    width: 38px;
    height: 38px;
}

.answer-card label {
    font-size: 18px;
    font-weight: bold;
}

.answer-card input {
    width: 90px;
    padding: 8px;
    font-size: 22px;
    text-align: center;
}

#message {
    min-height: 28px;
    font-size: 24px;
    font-weight: bold;
}

.button-container {
    margin-top: 12px;
}

button {
    margin: 5px;
    padding: 10px 14px;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 760px) {
    .scale {
        grid-template-columns: 1fr;
    }

    .beam,
    .stand {
        display: none;
    }

    .answer-panel {
        grid-template-columns: 1fr;
    }
}
