body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: black;
}

.container {
    width: 100%; /* Full width container */
    margin: 0;
    padding-top: 20px;
}

/* Welcome Screen styles */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    text-align: center;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Spaziatura tra i pulsanti */
}

.enter-button:disabled {
    background-color: #cccccc; /* Cambia il colore di sfondo */
    cursor: not-allowed; /* Cambia il cursore per indicare che è disabilitato */
    opacity: 0.6; /* Riduce l'opacità */
}


.background-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.enter-button {
    font-size: 2rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    background-color: #66696d;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
}

.enter-button:hover {
    background-color: #1b2a3b;
}

/* Hide main content initially */
.main-content.ng-hide {
    display: none !important;
}

/* Show main content when welcome screen is hidden */
.main-content.ng-show {
    display: block !important;
    background-color: black;
   
    background-image: url('bg-light.jpg'); /* Percorso dell'immagine */
    background-size: cover; /* Copre l'intero div mantenendo le proporzioni */
    background-position: center; /* Centra l'immagine */
    background-attachment: fixed; /* Mantiene l'immagine fissa durante lo scroll */
    /*opacity: 0.5; /* Opacità dell'immagine di sfondo */



}

/* General styles for grid */
.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Fixed 5 columns */
    grid-auto-rows: minmax(100px, auto); /* Auto-adjust row height */
    grid-gap: 0; /* No space between images */
    margin-top: 67px;
    /* background-color: #000;*/
}




/* Styles for grid items */
.grid-item {
    position: relative; /* Ensure relative positioning for stacking context */
    overflow: hidden; /* Ensure images do not overflow their container */
    background-color: black;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure images cover their container without distortion */
    display: block;
    transition: transform 0.2s ease; /* Smooth transition for hover effect */
}

/* Overlay with image name, hidden by default */
.grid-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column; /* Align items vertically */
    justify-content: space-between; /* Space items out to push footer to bottom */
    padding: 10px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease; /* Transition for opacity */
    z-index: 2; /* Ensure the overlay is above the image */
    pointer-events: none; /* Prevent pointer events on overlay */
}

/* Show overlay on hover */
.grid-item:hover .overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center align vertically in the available space */
    margin-top: auto;
}

.overlay-footer {
    margin-top: 30%; /* Push the footer to the bottom */
    padding-top: 0px; /* Optional padding for spacing */
}

.name-part-first {
    color: rgb(138, 177, 188);
    font-weight: bold;
    font-size: 1.6em; /* Adjust this value to increase font size */
}

.name-part-second {
    color: rgb(210, 210, 210);
    font-weight: lighter;
    margin-bottom: 20px;
}

/* Stile per il modal */
/* Modal styles */
.modal {
    display: flex;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.lightbox-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    
    /* width: 80%; */
}

.lightbox-content button {
    background-color: #a91d1d;
    border: 1px solid #888;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    align-items: center;
    
    /* width: 80%; */
}

  textarea {
    min-width: 500px;
    height: 200px;
    resize: vertical;
}
  

  


/* Lightbox styles */
.lightbox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 1;
}

.lightbox-content-video {
    /* max-width: 80%; */
    /* max-height: 80%; */
    height: inherit;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}


/* Lightbox image */
.lightbox-content-square {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
/* old quasi ok */
.aaa-lightbox-content-square {
    /* max-width: 80%; */
    /* max-height: 80%; */
    height: inherit;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
.lightbox-content-landscape {
    max-width: fit-content;
    max-height: fit-content; 
    width: inherit;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.lightbox-content-portrait {
    /* max-width: 80%; */
    /* max-height: 80%; */
    height: inherit;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.lightbox-caption {
    margin-top: 10px;
    color: white;
    font-size: 18px;
    text-align: center;
}

/* Container for the image and logo */
.image-container-square {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    /*height: inherit;
    align-content: center;*/
    text-align: center;

 }

.image-container-portrait {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    height: inherit;
}

.image-container-landscape {
    position: relative;
    max-width: 90%;
    max-height: 90%;

}

/* Logo overlay RENDER*/
.logo-overlay {
    position: absolute;
    top: 5px;
    right: 5px;
    transform: translate(-50%, 50%);
    width: 10%; /* Ridimensiona il logo in base all'immagine */
    max-width: 50px; /* Limita la dimensione massima del logo */
    height: auto;
    z-index: 10; /* Assicurati che il logo sia sopra l'immagine */
}

.logo-overlay img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /*display: none;*/
    position: absolute;
    cursor: pointer;

}

.aaa-logo-overlay {
    position: absolute;
    bottom: 10px; /* Distanza dal fondo dell'immagine */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10; /* Assicurati che il logo sia sopra l'immagine */
}

.aaa-logo-overlay img {
    width: 50px; /* Puoi regolare la dimensione del logo */
    height: 50px;
    object-fit: contain;
}



.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

.close:hover {
    color: #bbb;

}

.close-custom {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #FFF;
    text-shadow: 0 5px 0 #000;
    /*opacity: .5;*/
    position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 10000;
  text-align: left;
}

.close-custom:hover {
    color: #bbb;

}


.image-name, .image-author {
    margin: 0;
    padding: 0.5rem;
}

/* folder icon */
.folder-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 3rem;
    /* font-size: 24px; /* Dimensione dell'icona */
    /* color: #ffc107; /* Colore dell'icona */
    color: #75b0da; /* Colore dell'icona */
    /* margin-right: 8px; /* Margine destro */
    cursor: pointer;
    text-shadow: #000;

}

.folder-link {
    text-decoration: none; /* Nessuna sottolineatura */
    color: inherit; /* Colore del testo */
    display: flex; /* Disposizione flessibile */
    align-items: center; /* Allineamento verticale centrato */
}

.folder-link:hover .folder-icon {
    color: #ffeb3b; /* Cambia colore al passaggio del mouse */
}


/* Heart icon */
.heart-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
}

.heart-icon.fa-heart-o {
    color: #ffffff;
    border: 1px solid #000000;
    border-radius: 10px;
}

.heart-icon.fa-heart {
    color: #ff0000;
    border: 0;
}






.custom-control-label .fa {
    font-size: 1em; /* Modifica la dimensione dell'icona se necessario */
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

/* Assegnazione delle larghezze proporzionali */
.header-left {
    width: 10%;
    justify-content: flex-start;
}

.header-center {
    width: 80%;
    justify-content: center;
}

.header-right {
    width: 10%;
    justify-content: flex-end;
}

.header-left .dynamic-letter {
    font-size: 2rem;
    color: grey;
    font-weight: bold;
}

.header-center input {
    width: 100%;
    max-width: 300px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.header-center .reset-button,
.header-center .home-button {
    margin-left: 10px;
    margin-right: 10px;
    padding: 8px;
    background-color: grey;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.header-center .reset-button i, 
.header-center .home-button i {
    font-size: 1.5rem;
    color: #fff; /* Icona bianca */
}

.header-right .menu-icon {
    font-size: 1rem;
    cursor: pointer;
    color: #fff; /* Icona bianca */
    padding-right: 10px;
}

/* Center the search input */
.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

input[type="text"] {
    font-size: 1.2rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 300px;
    margin-right: 1rem;
    margin-left: 1rem;
}

button {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    background-color: #66696d;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1b2a3b;
}

input[type="file"] {
    font-size: 1.2rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Floating back-to-top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1b2a3b;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #66696d;
}

/* Side menu styles */
.menu-icon {
    font-size: 1.2rem;
    color: #ffffff;
    cursor: pointer;
    margin-left: 1rem;
    scale: 2;
}

.side-menu {
    position: fixed;
    top: 67px; /* Allinea sotto l'intestazione */
    right: -350px; /* Inizialmente nascosto completamente fuori dalla vista */
    width: 300px;
    height: calc(100% - 150px); /* Occupa l'altezza rimanente della viewport */
    background-color: #333;
    color: #ffffff;
    overflow-y: auto;
    transition: right 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    padding: 1rem;
    visibility: hidden; /* Assicurati che il menu non sia visibile inizialmente */
}

.side-menu.open {
    right: 0; /* Sposta il menu in vista quando aperto */
    visibility: visible; /* Rendi il menu visibile quando aperto */
}

.side-menu h2 {
    margin-top: 0;
}

.side-menu label {
    display: block;
    margin: 0.5rem 0;
}
/* RENDER ICON */
.status-video {
    position: absolute;
    top: 20px; /* Posizionamento dall'alto */
    right: 10px; /* Posizionamento dalla sinistra */
    width: 40px;
    height: 40px;
    border-radius: 0%;
    /*border: 2px solid;*/
    background-color: transparent; /* Trasparente per il riempimento */
    z-index: 10; /* Assicurati che sia sopra l'immagine */
}

.status-video.available {
    background-image: url('render.png'); /* Usa url() per specificare l'immagine di sfondo */
    background-size: cover; /* Facoltativo: adatta l'immagine di sfondo alle dimensioni dell'elemento */
    background-repeat: no-repeat; /* Facoltativo: evita la ripetizione dell'immagine di sfondo */
}

.status-video.unavailable {
    display: none;
    border-color: red;
}
/* NEWS ICON */

.button-icon {
    position: absolute;
    top: 0px;    /* Regola l'altezza dell'immagine rispetto al pulsante */
    left: 0px;   /* Posiziona l'immagine in alto a sinistra */
    width: 50px; /* Regola la larghezza dell'immagine */
    height: 50px; /* Regola l'altezza dell'immagine */
}


.status-news {
    position: absolute;
    top: 0px; /* Posizionamento dall'alto */
    left: 0px; /* Posizionamento dalla sinistra */
    width: 50px;
    height: 50px;
    border-radius: 0%;
    /* border: 2px solid; */
    background-color: transparent; /* Trasparente per il riempimento */
    z-index: 10; /* Assicurati che sia sopra l'immagine */
}


.status-news.available {
    /*border: 2px solid rgb(255, 255, 255); /* Assicurati di definire anche la larghezza e lo stile del bordo */
    background-image: url('news.png'); /* Usa url() per specificare l'immagine di sfondo */
    background-size: cover; /* Facoltativo: adatta l'immagine di sfondo alle dimensioni dell'elemento */
    background-repeat: no-repeat; /* Facoltativo: evita la ripetizione dell'immagine di sfondo */
}

.status-news.unavailable {
    display: none;
    border-color: red;
}
/* AVAILABLE ICON*/
.status-indicator {
    position: absolute;
    top: 10px; /* Posizionamento dall'alto */
    right: 10px; /* Posizionamento dalla sinistra */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid;
    background-color: transparent; /* Trasparente per il riempimento */
    z-index: 10; /* Assicurati che sia sopra l'immagine */
}

.status-indicator.available {
    border-color: rgb(255, 255, 255);
    background-color: green;
}

.status-indicator.unavailable {
    border-color: rgb(255, 255, 255);
    background-color: red;
}

.grid-item {
    position: relative; /* Necessario per posizionare il pallino in base a questo elemento */
    overflow: hidden;
    background-color: black;
}

.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn.active {
    background-color: #0d6efd; /* Cambia questo colore per lo stato attivo */
    color: white;
}

.btn-group .btn-outline-primary.active, .btn-group .btn-outline-success.active {
    border-color: #0d6efd; /* Cambia questo colore per lo stato attivo */
}

.btn-group .btn-outline-success {
    border-color: #198754; /* Colore del bordo per il filtro "Available Only" */
}

.btn-group .btn-outline-primary {
    border-color: #0d6efd; /* Colore del bordo per il filtro "Show All" */
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #198754; /* Cambia questo colore per il pulsante ON */
}

.custom-switch .custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); /* Cambia questo colore per il bordo di focus */
}

.custom-switch .custom-control-label::before {
    background-color: #ccc; /* Cambia questo colore per il pulsante OFF */
}


/* Responsive grid */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-left .dynamic-letter {
        font-size: 1.5rem;
    }

    .header-center input {
        max-width: 200px;
        padding: 3px;
    }

    .header-center .reset-button,
    .header-center .home-button {
        margin-left: 5px;
        margin-right: 5px;
        padding: 4px;
        background-color: grey;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }


    .header-center .reset-button i,
    .header-center .home-button i {
        font-size: 1.2rem;
    }

    .header-right .menu-icon {
        font-size: 1rem;
    }
}
/*
@media (max-width: 576px) {
    .grid {
        grid-template-columns: 1fr;
    }
}*/

@media (max-width: 480px) {
    .header-left .dynamic-letter {
        font-size: 1.2rem;
    }

    .header-center input {
        max-width: 150px;
        padding: 1px;
    }
    
    .header-center .reset-button,
    .header-center .home-button {
        margin-left: 2px;
        margin-right: 2px;
        padding: 2px;
        background-color: grey;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    .header-center .reset-button i,
    .header-center .home-button i {
        font-size: 1rem;
    }


    .header-right .menu-icon {
        font-size: 0.8rem;
    }
}