body {
    margin: 0 2rem;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

.question-area {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.question-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

h3 {
    margin: 5px;
}

.question-area > div {
    width: 25%;
    margin-left: 5px;
}

.question-area table {
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: #f9f9f9;
    border: 2px solid #333;
}

.question-area th, .question-area td {
    border: 1px solid #333;
    padding: 8px 12px;
    text-align: left;
    min-width: 60px;
    min-height: 30px;
}

.question-area th {
    background-color: #e0e0e0;
    font-weight: bold;
}

.question-area td {
    background-color: #ffffff;
}

.question-area div {
    min-width: 10px;
    min-height: 10px;
}

.excercise-explanation {
    width: 100%;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.input-area {
    display: flex;
    flex-direction: column;
}

.reset-button {
    width: fit-content;
    margin-top: 5px;
}

.code-input {
    width: 100%;
    height: 200px;
    padding: 10px;
    border: 1px solid #ddd;
    font-family: monospace;
    font-size: 14px;
    margin-bottom: 10px;
    box-sizing: border-box;
    resize: vertical;
}

/* Minimal styling - only what's necessary */
.preview-table,
.example-table {
    border-collapse: collapse;
}

.preview-table td,
.example-table td {
    padding: 5px;
    border: 1px solid #000;
}

.preview-table th,
.example-table th {
    background-color: #ddd;
    border: 1px solid #000;
}

/* Success feedback */
.party-check {
    display: inline-block;
    animation: party-check-bounce 0.8s cubic-bezier(.36,1.5,.64,1) 0s 1;
    position: relative;
    color: #28a745;
    text-shadow: 0 0 10px #28a745, 0 0 20px #fff;
    font-size: 3rem;
}

@keyframes party-check-bounce {
    0% { transform: scale(0.2) rotate(-30deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(10deg); opacity: 1; }
    80% { transform: scale(0.95) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Separate input fields styling */
.fields-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.fields-container label {
    display: flex;
    align-items: center;
    margin: 0;
}

.fields-container label::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 80px;
    font-weight: bold;
}

.field-input {
    flex: 1;
    margin-left: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
}

.field-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}