/* Stile generale */

/* CROP IMAGE STYLE */

.cropper-point, .cropper-line, .cropper-center:after, .cropper-center:before {
    background-color: var(--pink)!important;
}

.cropper-modal, .cropper-bg {
    background: #0000!important;
    background-color: #0000!important;
}

.cropper-view-box {
    outline: 1px solid var(--pink)!important;
    outline-color: var(--pink)!important;
}

.cropper-dashed {
    border: 0 solid var(--pink)!important);
    opacity: 1!important;
    border-bottom-width: 1px!important;
    border-top-width: 1px!important;
    }

    .cropper-dashed.dashed-v {
            border-left-width: 1px!important;
    border-right-width: 1px!important;
    }

    .cropper-view-box {
        border: 1px solid var(--pink)!important;
    }

body.noscroll {
    overflow: hidden;
    touch-action: none;
}

#lightboxImg {
    transition: transform 0.25s ease;
}

#menu-panel a {
    color: var(--pink);
}

.shine-btn {
    font-family: monospace;
    border-radius: 6px;
    padding: 7px 20px!important;
}

#clicklikes {
    font-size: 15px;
    display: flex;
    align-items: center;
}

#lightboxLikes {
    width: 95%;
    padding: 10px;
    gap: 10px;
    display: flex;
    color: var(--pink);
    font-family: monospace;
}

.message {
    display: flex;
        flex-direction: column;
        gap: 2px;
}


.nicknamePopup {
        display: flex;
        position: relative;
        padding: 30px;
        border-radius: 12px;
        z-index: 10000;
        text-align: center;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60%;
        height: 40%;
        background-color: var(--dark);
        color: var(--pink);
        font-family: monospace;
        border: 1px solid;
        gap: 8px;
}


#nicknamePopup {
        display: none;
        position: absolute;
        top: 0;
        bottom: 0;
        border-radius: 12px;
        z-index: 10000;
        text-align: center;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
}

#nicknamePopup input, .popup input {
        background-color: #0000;
        border: 1px solid var(--pink);
        color: var(--pink);
        font-family: monospace;
        border-radius: 5px;
            font-size: 16px;
                scale: 0.8;
}



picture,
picture img {
    display: inline;
}

.loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid #4CAF50;
    border-radius: 50%;
    margin-left: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#likesPopup {
    margin-right: auto;
    position: absolute;
    top: 40%;
    margin-left: auto;
    right: 0;
    z-index: 9999;
    width: 60%;
    height: auto;
    padding: 30px;
    border-radius: 20px;
    align-items: center;
    text-align: center;
    left: 0;
    color: var(--pink);
    font-family: monospace; 
}

#likesList {
    list-style-type: none;
    padding: 0px;
}

 #cuore {
    width: 33px;
}

#interno {
    display: none;
    fill: var(--pink)
}

#esterno {
    fill: var(--pink)
}


#heartBtn.liked #interno {
    display: block;
}



/* Form invio messaggi */
form {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #0000;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--pink);
}

#replyPreview {
    color: var(--pink);
        font-family: monospace;
        padding: 0px 5%;
        text-decoration: underline;
}



form input,
form textarea,
form button {
    font-size: 16px;
    padding: 10px;
    border: 1px solid var(--pink);
    border-radius: 6px;
    outline: none;
    background-color: #0000;
    scale: 0.9;
    color: var(--pink)
}

form input:focus,
form textarea:focus {
    border-color: #53A59B;
}

form button {
    background-color: var(--pink);
    color: var(--dark);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: monospace;
}

form button:hover {
    background-color: #fff;
    color: var(--dark);
}

/* Feed messaggi */
.feed {
    max-width: 600px;
    margin: 20px auto;
    padding: 10px;
    background: #0000;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    max-height: 300px;
    border: 1px solid var(--pink);
}

.reply {
    color: #b1009a;
}

.message {
    padding: 10px;
    border-bottom: 1px solid #eaeaea;
    color: var(--pink);
    font-family: monospace;
}

.message strong {
    color: #53A59B;
    display: block;
    margin-bottom: 4px;
}

.message:last-child {
    border-bottom: none;
}

/* Galleria immagini */
.gallery {
    display: flex;
    gap: 2%;
    row-gap: 5px;
    max-width: 800px;
    margin-top: 30px;
    padding: 5px;
    flex-wrap: wrap;
}

.gallery img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container {
    flex: 1 0 32%;
    max-width: 32%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    height: max-content;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Popup upload */
#popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#popup form {
    padding: 20px;
    border-radius: 12px;
    max-width: 350px;
    width: 80%;
    text-align: center;
}

#uploadForm {
    color: var(--pink);
    font-family: monospace;
}

#popup img#preview {
    margin-top: 10px;
    max-width: 100%;
    border-radius: 8px;
}

/* Pulsante carica foto */
.upload {
    text-align: center;
    margin: 20px;
}







/* LIGHTBOX */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--dark), #7e53a5);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
}

#lightbox img {
    position: absolute;
        overflow: hidden;
        height: auto;
            width: 100%;
}

#lightboxAuthor {
    margin-top: 10px;
    font-size: 1rem;
    text-align: center;
    display: flex;
        width: 94%;
        padding: 10px;
        font-family: monospace;
        color: var(--pink);
}

#lightboxControls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

#lightboxControls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 15px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

#lightboxControls button:hover {
    background: rgba(255, 255, 255, 0.5);
}

#closeLightbox {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: var(--pink);
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease;
}

#closeLightbox:hover {
    transform: scale(1.2);
}