/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #1a1a1a; /* Dark charcoal background */
}

.container {
    display: flex;
    height: 100vh;
}

/* Left Section */
.left-section {
    width: 50%;
    display: flex;
    flex-direction: column;
    background-color: #222222; /* Slightly lighter dark tone */
    border-right: 3px solid #2c2c2c; /* Tone-on-tone dark border */
    overflow: auto; /* Scroll if content overflows */
}

.card-preview {
    height: 80%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2a2a2a; /* Lighter dark tone */
    overflow: auto; /* Scroll if cards are too large */
}

.card-preview h2 {
    margin-bottom: 20px;
    color: #d1d1d1;
    font-weight: 600;
    font-size: 2.5rem; /* Matches Card Editor size */
    text-align: center;
}

.card-display {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.card-vector, .card-pixel {
    width: 750px; /* Updated size */
    height: 1125px;
    background-color: #333333; /* Lighter dark tone for cards */
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #2c2c2c; /* Tone-on-tone border */
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    flex-shrink: 0; /* Prevent scaling down */
}

.download-links {
    height: 20%;
    display: flex;
    flex-direction: column; /* Vertical stacking */
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #2a2a2a;
    border-top: 2px solid #2c2c2c; /* Tone-on-tone separator */
}

.download-btn {
    padding: 10px 20px;
    background-color: #333333;
    color: #d1d1d1; /* Light gray text */
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid #2c2c2c; /* Tone-on-tone border */
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
    width: 200px; /* Fixed width for alignment */
    text-align: center;
}

.download-btn:hover {
    background-color: #4a1c1c; /* Dark red for hover */
    border-color: #6b2d2d;
    transform: scale(1.03);
}

.download-btn:focus {
    border-color: #a32c2c; /* Bright dark red for focus */
    outline: 3px solid #a32c2c;
    outline-offset: 2px;
}

/* Right Section */
.right-section {
    width: 50%;
    padding: 20px;
    background-color: #222222;
    display: flex;
    align-items: center; /* Vertically center editor */
    overflow: auto; /* Scroll if content overflows */
}

.editor {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.editor h2 {
    margin-bottom: 20px;
    color: #d1d1d1;
    font-weight: 600;
    font-size: 2.5rem; /* Large header */
    text-align: center;
}

.template-selector {
    display: flex;
    justify-content: center; /* Center the selector groups */
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.selector-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap; /* Prevent line breaks between label and select */
}

.template-selector label {
    color: #d1d1d1;
    font-weight: 500;
}

.template-selector select {
    padding: 8px;
    border: 2px solid #2c2c2c; /* Tone-on-tone border */
    border-radius: 5px;
    background-color: #e0e0e0; /* Light background for inputs */
    color: #212529; /* Dark text for readability */
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.template-selector select:focus {
    border-color: #a32c2c; /* Bright dark red for focus */
    box-shadow: 0 0 0 3px rgba(163, 44, 44, 0.3);
    outline: none;
}

.properties {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.property-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.property-field label {
    color: #d1d1d1;
    font-size: 14px;
    font-weight: 500;
}

.property-field input,
.property-field textarea,
.property-field select {
    padding: 8px;
    border: 2px solid #2c2c2c; /* Tone-on-tone border */
    border-radius: 5px;
    background-color: #e0e0e0; /* Light background for inputs */
    color: #212529; /* Dark text for readability */
    width: 100%;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.property-field textarea {
    resize: vertical;
}

.property-field select[multiple] {
    height: 100px;
}

.property-field input:focus,
.property-field textarea:focus,
.property-field select:focus {
    border-color: #a32c2c; /* Bright dark red for focus */
    box-shadow: 0 0 0 3px rgba(163, 44, 44, 0.3);
    outline: none;
}




