/* Shape Display Area */
.shape-display {
    text-align: center;
    margin: 2rem auto 2.5rem;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-display img {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

/* Answer Input Section */
.answer-section {
    margin-bottom: 2rem;
}

.answer-controls {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.answer-input {
    width: 180px;
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-align: center;
    border: 3px solid var(--color-primary-light);
    border-right: none;
    border-radius: 0.75rem 0 0 0.75rem;
    background: white;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.answer-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: inset 0 0 0 1px var(--color-primary);
}

.answer-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

/* Attach submit button to input */
.answer-controls .btn-action {
    border-radius: 0 0.75rem 0.75rem 0;
    border: 3px solid var(--color-primary);
    margin: 0;
}

/* Remove number input spin buttons */
.answer-input::-webkit-outer-spin-button,
.answer-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.answer-input[type=number] {
    -moz-appearance: textfield;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shape-display {
        height: 180px;
        margin: 1.5rem auto 2rem;
    }
    
    .shape-display img {
        max-width: 160px;
        max-height: 160px;
    }
    
    .answer-input {
        width: 150px;
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .shape-display {
        height: 160px;
    }
    
    .shape-display img {
        max-width: 140px;
        max-height: 140px;
    }
    
    .answer-controls {
        max-width: 280px;
    }
    
    .answer-input {
        width: 100%;
        font-size: 1rem;
    }
}