/* 034 */
/* OVERLAY BACKGROUND ------------------------------------------------------------*/
#overlay-background {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-background);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 90;
    cursor: pointer;
}

#overlay-background.active {
    display: block;
}

/* TEXT & CONTACT OVERLAY --------------------------------------------------------*/
.text-overlay,
.contact-overlay {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    color: var(--font-color);
    text-shadow: var(--font-shadow);
    font-size: var(--font-size-overlay);
    padding: 2rem;
    z-index: 100;
    width: 90%;
    max-width: 900px;
    max-height: 75vh;
    /* Zmanjšano za boljši prikaz */
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(208, 255, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* DODANO: margin-top za header */
    margin-top: 40px;
}

/* AKTIVEN OVERLAY */
.text-overlay.active,
.contact-overlay.active {
    display: block;
}

/* VSEBINA OVERLAYEV -------------------------------------------------------------*/
.description-text,
.about-text {
    padding: 1rem;
    padding-right: 0.5rem;
}

.description-text p,
.about-text p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.description-text p:last-child,
.about-text p:last-child {
    margin-bottom: 0;
}

.about-text ul {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.about-text li {
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

/* CONTACT STYLES */
.contact-section {
    padding: 1rem;
}

.contact-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    font-weight: bold;
    margin-right: 10px;
    color: var(--hover-color);
    display: inline-block;
    min-width: 70px;
}

.contact-value {
    color: var(--font-color);
}

.address div {
    margin-bottom: 0.3rem;
}

/* NASLOVI V OVERLAYJIH */
.text-overlay h2,
.contact-overlay h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--hover-color);
    font-size: 1.8rem;
    border-bottom: 2px solid rgba(208, 255, 0, 0.3);
    padding-bottom: 0.5rem;
}

/* SCROLLBAR - SAMO ZA CELOTEN OVERLAY */
.text-overlay::-webkit-scrollbar,
.contact-overlay::-webkit-scrollbar {
    width: 10px;
}

.text-overlay::-webkit-scrollbar-track,
.contact-overlay::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin: 5px 0;
}

.text-overlay::-webkit-scrollbar-thumb,
.contact-overlay::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom,
            rgba(208, 255, 0, 0.7),
            rgba(123, 155, 0, 0.9));
    border-radius: 5px;
    border: 1px solid rgba(208, 255, 0, 0.3);
}

.text-overlay::-webkit-scrollbar-thumb:hover,
.contact-overlay::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom,
            rgba(234, 255, 0, 0.8),
            rgba(143, 175, 0, 0.95));
}

/* Firefox scrollbar */
.text-overlay,
.contact-overlay {
    scrollbar-width: thin;
    scrollbar-color: rgba(208, 255, 0, 0.7) rgba(0, 0, 0, 0.2);
}

/* ODSTRANI SCROLLBAR ZA NOTRANJE ELEMENTE */

.description-text::-webkit-scrollbar,
.about-text::-webkit-scrollbar {
    display: none;
    width: 0;
}

.description-text,
.about-text {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow: visible;
}

/* Dodaj na konec overlays.css */

/* ESC hint za overlaye */
/*.overlay-esc-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 101;
}*/

/* Dodaj v text-overlay in contact-overlay */
/*.text-overlay::after,
.contact-overlay::after {
    content: 'ESC za zapiranje';
    position: absolute;
    bottom: 15px;
    right: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    pointer-events: none;
}*/

/* Dodaj v overlays.css na konec */

/* ESC hint za overlaye */
/*.text-overlay .description-text,
.text-overlay .about-text,
.contact-overlay .contact-section {
    position: relative;
}*/

/*.text-overlay .description-text::after,
.text-overlay .about-text::after,
.contact-overlay .contact-section::after {
    content: 'ESC za zapiranje';
    position: absolute;
    bottom: -25px;
    right: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-style: italic;
    pointer-events: none;
    z-index: 101;
}*/