.overlay-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1;
}

.overlay-container.open {
    display: block;
    transition: opacity 0.3s ease-in;
}

.overlay-form {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4e3166;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #fcfcfe;
    width: 80%;
    max-width: 600px;
}

.close-form-img {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #fcfcfe;
    cursor: pointer;
}

.overlay-desc {
    display: flex;
    flex-direction: column;
    margin: 7px 0;
    text-align: center;
}

.overlay-desc-text.main {
    font-weight: 800;
}

.design-wrapper {
    display: flex;
    /*align-items: center;*/
    justify-content: space-between;
    /*margin: 20px 0;*/
}

.color-wrapper {
    width: 305px;
}

.color-wrapper input {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background-color: #b75d25;
    color: #fcfcfe;
    font-size: 1.25rem;
}

.cover-chooser-wrapper {
    width: 305px;
}

.image-preview-wrapper {
    margin-top: 0.5em;
    background-color: rgb(0,0,0,0.8);
    border-radius: 8px;
    height: 200px;
    width: 200px;
    display: block;
}

.cover-preview {
    max-height: 200px;
    border-radius: 8px;
    object-fit: contain;
}

.overlay-input {
    font-family: "Nunito", sans-serif;
    font-size: 1.25rem;
    color: #fcfcfe;
    border-radius: 20px;
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: none;
    box-sizing: border-box;
    background-color: #b75d25;
    box-shadow: 0 0 5px rgb(38, 38, 38);
}

.overlay-input.textarea {
    width: 100%;
    height: 400px;
    resize: none;
}

.overlay-buttons {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    gap: 10px;
}

.overlay-button {
    color: #fcfcfe;
}

.overlay-button.main {
    /*background: #28a745;*/
    background: #186129;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.overlay-button.main:hover {
    /*background: #218838;*/
    background: #10491e;
}

.overlay-button.main.delete {
    background: #b40606;
}

.overlay-button.main.delete:hover {
    /*background: #218838;*/
    background: #a00505;
}

.overlay-button.side {
    background: #5f1b04;
    color: #fefcfc;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/*.overlay-input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(95, 27, 4, 0.5);
}*/
/*.overlay-desc-text.side {
    font-weight: lighter;
}*/