/* main */

p {
    text-align: justify;
}

/* submit popup */

#submitpopup.active {
    display: flex;
}

#submitpopup {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 40px;
    border-radius: 20px;
    background-color: #F6F6F6;
    text-align: center;
    z-index: 1;
}

#submitpopup p:first-of-type {
    font-size: 32px;
    color: #E27193;
}

#submitpopup img {
    width: 150px;
}

/* input */
input {
    scroll-margin-top: 35px;
}

.input {
    display: flex;
    flex-direction: column;
}

input[type="submit"],
#dropzone label {
    border: solid 1px #000000;
    border-radius: 5px;
    padding: 5px 10px;
    background-color: #F6F6F6;
    cursor: pointer;
}

input[type="submit"] {
    align-self: flex-start;
}

input[type="submit"]:hover,
#dropzone label:hover {
    background-color: #E5E5E5;
}

#dropzone #reference_images {
    margin: 0;
    height: 1px;
    width: 1px;
    opacity: 0;
    scroll-margin-top: 150px;
}

/* info */

.info {
    font-size: 20px;
    color: #AAA;
}

.info a {
    font-size: 20px;
    color: #E27193;
}

.error {
    font-size: 20px;
    color: red;
}

#errorTOSPP {
    display: none;
}

/* file dropzone */

#dropzone {
    border: dashed 2px #767676;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #F9F9F9;
}

#dropzone * {
    margin: 5px;
}

#dropzone.dragover {
    border-color: #E27193;
    background-color: #FFEFF4;
}

#preview {
    display: flex;
    flex-wrap: wrap;
}

#preview div {
    position: relative;
}

#preview img.preview {
    object-fit: contain;
    width: 100px;
    height: 100px;
    margin: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#preview img.preview:hover + img.delete,
#preview img.delete:hover {
    opacity: 1;
}

#preview img.delete {
    width: 15px;
    height: 15px;
    position: absolute;
    top: 15px;
    right: 15px;
    opacity: 0.33;
}

/* extra features */

.extra-box {
    margin: 5px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.extra {
    border-radius: 5px;
    padding: 5px 10px;
    background-color: #BBB;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.extra:hover {
    background-color: #E27193;
}

.extra-box input[type="checkbox"] {
    display: none;
}

.extra:checked + label {
    background-color: #E27193;
}
