#page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
}

#create-recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

#create-recipe-header h1 {
    font-size: 28px;
    font-weight: 600;
}

#form-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;

}

#create-recipe-form {
    justify-content: center;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input[type="text"],
textarea,
select {
    padding: 10px 15px;
    border: 1px solid #c25143;
    border-radius: 6px;
    font-size: 16px;
}

.add-btn {
    background: none;
    color: #c25143;
    border: 1px dashed #c25143;
    border-radius: 6px;
    padding: 8px;
    font-size: 14px;
    cursor: pointer;
    width: fit-content;
}

.add-btn:hover {
    background-color: #f8e2e0;
}

.image-upload-section {
    gap: 20px;
}

.image-preview {
    position: relative;
}

#main-image {
    width: 100%;
    max-width: 700px;
    border-radius: 10px;
}

.image-buttons {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 10px;
}

.small-btn {
    background-color: white;
    border: 1px solid #c25143;
    color: #c25143;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.small-btn:hover {
    background-color: #f8e2e0;
}

.thumbnail-upload {
    display: flex;
    gap: 20px;
}

.add-photo-box {
    width: 120px;
    height: 120px;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #fff;
    transition: border-color 0.3s;
}

.add-photo-box:hover {
    border-color: #c25143;
}

.add-photo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.camera-icon {
    width: 32px;
    height: 32px;
}

.add-photo-content p {
    font-size: 14px;
    color: #333;
}

.thumbnail-box {
    position: relative;
    width: 120px;
    height: 120px;
    border: 2px solid #c25143;
    border-radius: 8px;
    overflow: hidden;
}

.thumbnail-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-tag {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #c25143;
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-bottom-right-radius: 8px;
}

.instructions-container {
    margin: 0px;
}

.instructions-container h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.instructions-subtext {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 20px;
}

.instruction-step {
    margin-bottom: 30px;
}

.instruction-step h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.instruction-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.instruction-image {
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.instruction-image img {
    width: 24px;
    height: 24px;
}

.instruction-content p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.instruction-input {
    width: 100%;
}

.instruction-input input {
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 16px;
}

.add-header {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    color: #c25143;
    text-decoration: none;
}

.add-header:hover {
    text-decoration: underline;
}

input,
select,
textarea {
    margin: 0;
    padding: 0.5em;
    font: inherit;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.detail-group {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    /* hides accidental overflow */
}

.recipe-details {
    margin: 0px;
}

.detail-group {
    margin-bottom: 30px;
}

.detail-group label {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #222;
    text-transform: capitalize;
}

.detail-group input[type="text"],
.detail-group select {
    max-width: 2000px;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 5px;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.detail-group select {
    background-color: #fff;
}

.detail-group input[type="text"],
.detail-group input[type="number"],
.detail-group input,
.detail-group select {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.subtext {
    font-size: 12px;
    color: #aaa;
}

.time-inputs {
    width: 100%;
    display: flex;
    gap: 10px;
}

.time-inputs input {
    flex: 1;
}

@media (max-width: 1000px) {

    #page-wrapper {
        padding: 20px;
    }

    #form-container {
        flex-direction: column;
        align-items: center;
    }

    #create-recipe-form {
        width: 100%;
    }

    .thumbnail-upload .add-photo-box,
    .thumbnail-upload .thumbnail-box {
        margin-bottom: 10px;
    }
}

@media (max-width: 600px) {
    #page-wrapper {
        padding: 10px;
    }

    #create-recipe-form {
        max-width: 100%;
    }

    .thumbnail-upload .add-photo-box,
    .thumbnail-upload .thumbnail-box {
        width: 100%;
        height: 100px;
    }
}