/* 
    Created on : 9. 11. 2024, 22:19:04
    Author     : jelinjon
*/

.path-link-wrapper {
    margin: 20px 0px;
    
    a {
        padding: 0 10px;
    }
}

#upload-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    
    padding-bottom: 20px;
    
    .ui-button {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        
        width: 120px;
        height: 40px;
        border: none;
        border-radius: 4px;
        
        cursor: pointer;
        background-color: var(--dark-green);
        text-decoration: none;
        font-family: "Times New Roman", Times, serif;
        color: var(--text-accent-color);
        font-size: 1em;
        
        &:hover {
            background-color: var(--light-green);
            box-shadow: 0 4px 8px 0 var(--shadow-primary-color), 0 6px 20px 0 var(--shadow-primary-color);
        }
    }
}

.controls, .photo-details {    
    .ui-slider {
        width: 200px;
        cursor: pointer;

        .ui-slider-range {
            background-color: var(--dark-green);
        }

        .ui-slider-handle {
            border-color: var(--light-green);
            box-shadow: 0px 4px 8px var(--slider-default-shadow-color);

            &:hover {
                border-color: var(--light-green);
                background-color: var(--light-green);
                box-shadow: 0px 4px 8px var(--slider-hover-shadow-color);
            }
        }
    }
}

.controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    padding-bottom: 16px;
    
    .ui-chkbox .ui-chkbox-box {
        &.ui-state-default {
            border-color: var(--light-gray);
            
            &.ui-state-hover {
                border-color: var(--gray);
            }
        }
        
        &.ui-state-active {
            background-color: var(--dark-green);
            border-color: var(--light-gray);
            
            &.ui-state-hover {
                background-color: var(--light-green);
                border-color: var(--gray);
            }
        }
        
    }
    
    .ui-chkbox-label {
        text-decoration: none;
        font-weight: 400;
        font-family: "Times New Roman", Times, serif;
    }
    
    
}
.action-buttons-wrapper {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
    
    &.active{
        display: box;
        opacity: 1;
        visibility: visible;
    }
}

table {
    & th, td {
        border: none;
    }
    & thead {
        border-bottom: 1px solid var(--black);
    }
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: flex-start;
    
    img {
        height: 300px;
        width: auto;
        border-radius: 5px;
        object-fit: contain;
    }
    
    .photo-wrapper {
        height: 300px;
        position: relative;
        border-radius: 5px;
        margin: 5px;
        overflow: hidden;

        > a {
            width: 100%;
            height: 100%;
        }

        .photo-details {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: fit-content;
            background: var(--photo-details-background);
            color: var(--text-accent-color);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            text-align: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            padding: 10px;
            
            .ui-rating  {
                .ui-rating-star {
                    a {
                        color: white;
                    }
                }
                
                .ui-rating-star-on {
                    a {
                        color: yellow;
                    }
                }
            }
            
            > a {
                color: var(--text-accent-color);
            }
            input {
                margin: 20px;
            }

            &:hover {
                opacity: 1;
            }
        }
    }
}

.photo {
    height: auto;
    display: block;
    
    &.rating-0 {
        filter: grayscale(100%);
    }
    &.rating-1 {
        filter: grayscale(80%);
    }
    &.rating-2{
        filter: grayscale(60%);
    }
    &.rating-3{
        filter: grayscale(40%);
    }
    &.rating-4{
        filter: grayscale(20%);
    }
    &.rating-5{
    }
}