body {
    margin: 10% 0;
    font-family: sans-serif;
}

form {
    width: 60%;
    margin: 0 auto;
}

#submission-form {
    max-width: 600px;
    margin: 0 auto;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}

.story-textarea {
    min-height: 50px;
    max-height: 100px;
    resize: vertical;
}

#add-layout {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px auto;
    text-align: center;
    cursor: pointer;
}

#add-card-button {
    background-color: #ffb600;
    color: #fff;
}

#story-layouts {
    margin-bottom: 20px;
}

.story-layout {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}

.image-preview,
.video-preview,
.embed-preview {
    display: block;
    margin: 0 auto;
    width: 100%;
    margin-bottom: 10px;
}

.image-preview {
    height: auto;
}

.video-preview {
    height: 700px;
    /* Set height for video previews */
}

.embed-preview {
    height: 700px;
    /* Set height for embed previews */
}

.additional-fields {
    display: none;
}

.additional-fields .subheading {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 5px;
}

.remove-card-button,
.move-up-button,
.move-down-button {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: black;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    position: absolute;
    top: -15px;
    cursor: pointer;
}

.remove-card-button {
    right: -15px;
}

.move-up-button {
    right: 45px;
}

.move-down-button {
    right: 75px;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 2em;
    text-align: center;
    line-height: 100vh;
    z-index: 9999;
    /* Ensure overlay is above other elements */
}

/* box utils */
.story-no-mt {
    margin-top: 0;
}

.story-no-mb {
    margin-bottom: 0;
}

.light-grey-container {
    background-color: #eeeeee;
}

.grey-border-container {
    border: 1px solid #dbdbdb;
}

.dark-grey-border-container {
    border: 1px dashed #707070;
}

.story-v-padding {
    padding-top: 10px;
    padding-bottom: 10px;
}

.story-h-padding {
    padding-left: 10px;
    padding-right: 10px;
}

.story-rounded-borders {
    border-radius: 10px;
}

/* flex utils */
.story-flex {
    display: flex;
    gap: 5px;
}

.story-flex-col {
    flex-direction: column;
}

.story-flex-row {
    flex-direction: row;
}

/* margin utils */
.story-margin-top-10 {
    margin-top: 10px;
}

.story-margin-bottom-10 {
    margin-bottom: 10px;
}

/* grid styling */
.story-grid {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 1rem;
}

@media screen and (max-width: 600px) {
    .story-grid {
        grid-template-columns: 100%;
    }
}

/* button utils */
.story-button {
    padding: 8px 15px;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
}

/* story grid right side styling */
.story-submit {
    margin: 10px 0;
    width: 100%;
    background-color: #b54f30;
}

/* disclaimer styling */
.story-disclaimer {
    margin-top: 40px;
    padding: 20px;
}

.story-disclaimer p {
    margin-top: 0;
    color: #b54f30;
}

.story-select {
    padding: 5px 10px;
}