.heading {
    font-size: 33px;
    margin: 0 0 10px 0;
}

.rows {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 10px;
}

.labelrows {
    width: 100%;
    display: flex;
    gap: 20px;
}

.input-text {
    width: 100%;
    height: 40px;
    padding: 5px;
    font-size: 16px;
    box-sizing: border-box;
    border: solid 1.8px;
    border-color: var(--color-accent-light);
    background-color: var(--color-background-card);
}

.step {
    width: 100%;
    height: 40px;
    padding: 5px;
    font-size: 16px;
    box-sizing: border-box;
    border: solid 1.8px;
    border-color: var(--color-accent-light);
    background-color: var(--color-background-card);
}

.parent {
    margin-top: 10px;
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0;
    width: 100%;
    flex-wrap: wrap;
}

.left-side {
    flex: 0 0 75%;
    max-width: 800px;
    box-sizing: border-box;
}

.right-side {
    flex: 0 0 35%;
    max-width: 400px;
    box-sizing: border-box;
    align-self: flex-start;
}

.labeling {
    margin: 20px 0 10px 0;
    display: block;
    font-weight: 500;
    font-size: 18px;
}

.red-text {
    color: red;
}

.boxes {
    display: block;
    margin-right: 10px;
}



fieldset {
    all: unset;
}

.information {
    color: var(--color-text);
}

#instruction-list {
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 8px;
}

.drag-handle {
    cursor: grab;
    background: none;
    border: none;
    font-size: 1.2rem;
}

.delete-button {
    background: none;
    border: none;
    color: red;
    font-size: 1rem;
    cursor: pointer;
}

.add-button {
    display: block;
    background-color: #f1f1f1;
    color: #333333;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 25px;
    font-weight: 550;
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0 auto 0 auto;
}

.button-group {
    display: flex;
    justify-content: start;
    margin-top: 1rem;
    gap: 1rem;
}

.Button {
    background-color: #009494;
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    font-size: var(--font-md);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.photo-box {
    width: min(400px, 90vw);
    height: 270px;
    background-color: transparent;
    border: none !important; /* 강제 적용 */
    outline: none !important; /* outline 제거 */
    box-shadow: none !important;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='13' ry='13' stroke='%23bcc3c9' stroke-width='4' stroke-dasharray='6%2c 14' stroke-dashoffset='3' stroke-linecap='square'/%3e%3c/svg%3e");
    border-radius: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.upload-icon {
    width: 80px;
    margin-bottom: -20px;
}

.photo-preview {
    display: block;
    pointer-events: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.custom-upload-btn {
    width: 40%;
    height: 50px;
    padding: 5px;
    font-size: 16px;
    box-sizing: border-box;
    border: solid 1.8px;
    border-color: var(--color-accent-light);
    background-color: var(--color-background-card);
    color: var(--color-accent-light);
    font-weight: 600;
    z-index: 2;
    cursor: pointer;
    margin-top: 40px;
}

.custom-upload-btn:hover {
    background-color: #efefef;
}

.photo-labeling {
    font-size: 15px;
    color: var(--color-text);
}

.remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    background-color: white;
    border: solid 1.8px;
    border-color: var(--color-accent-light);
    color: var(--color-accent-light);
    width: 35px;
    height: 35px;
    border-radius: 20px;
    cursor: pointer;
}

.remove-btn:hover {
    background-color: #efefef;
}

.form-to-fill {
    width: 100%
}

.main-area {
    margin: auto;
}

.button-group #cancel {
    background-color: #dd4a4a;
}

@media (max-width: 920px) {
    .parent {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 0.2rem;
    }

    .search-box {
        width: 90%;
        margin: 0.5rem;
    }

    .right-side {
        display: flex;
        flex-direction: column;
        align-self: center;
        max-width: 100%;
    }

    .right-side .button-group {
        order: 2;
        margin-top: 1rem;
        flex-direction: column;
        justify-content: space-evenly;
    }

    .right-side .labeling,
    .right-side .photo-box {
        order: 0;
    }

    .photo-box {
        width: 100%;
    }
}

.drag-indicator {
    height: 2px;
    background-color: #9bd1d0;
    margin: 2px 0;
    border-radius: 2px;
}

#ingredient-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: decimal;
    list-style-position: outside;
    counter-reset: ingred-counter;
    padding-inline-start: 0;
}

#ingredient-list li {
    counter-increment: ingred-counter;
}

#ingredient-list li::before {
    content: counter(ingred-counter);
    width: 1.3rem;
    height: 1.3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 0.5rem;
    font-weight: bold;
}

.ingredient-item {
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 0.5rem;
}

.ingredient-quantity {
    width: 25%;
    height: 40px;
    padding: 5px;
    font-size: var(--font-sm);
    box-sizing: border-box;
    border: solid 1.8px;
    border-color: var(--color-accent-light);
    background-color: var(--color-background-card);
}

.unit-dropdown {
    box-sizing: border-box;
    border: solid 1.8px;
    border-color: var(--color-accent-light);
    background-color: var(--color-background-card);
    /* appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none; */
}

.ingredient-name {
    width: 47%;
    height: 40px;
    padding: 5px;
    font-size: var(--font-sm);
    box-sizing: border-box;
    border: solid 1.8px;
    border-color: var(--color-accent-light);
    background-color: var(--color-background-card);
}