:root {
    --menu-top-height: 80px;
    --popup-max-width: 430px;
}

.ekluge-wrapper {
    position: fixed;
    top: var(--menu-top-height);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--menu-top-height));
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.ekluge-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* zmena: z center na flex-start */
    animation: eklugeFadeIn 1.2s ease;
    padding-top: 40px; /* pridané: vzdialenosť od horného menu */
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    box-sizing: border-box;
}

.ekluge-popup {
    background: linear-gradient(135deg, #22204a 85%, #17e0ff 100%);
    border-radius: 32px;
    padding: 22px 18px 38px 18px;
    width: 96vw;
    max-width: var(--popup-max-width);
    box-shadow: 0 0 50px #0ff, 0 0 0 5px #23faff44, 0 0 40px #0bfff044 inset;
    position: relative;
    font-size: 1em;
    border: 1.5px solid #23ffe6;
    backdrop-filter: blur(2.5px);
    overflow-y: auto;
    box-sizing: border-box;
    max-height: calc(100vh - var(--menu-top-height) - 60px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.ekluge-popup::-webkit-scrollbar {
    display: none;
}

.ekluge-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2em;
    color: #26fff7;
    cursor: pointer;
    font-weight: bold;
    background: none;
    border: none;
    z-index: 10;
    transition: color 0.18s;
}
.ekluge-close:hover {
    color: #fff;
}

.ekluge-front h2 {
    color: #29ffd6;
    text-align: center;
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.18em;
    letter-spacing: 1px;
    font-weight: 800;
    text-shadow: 0 0 8px #19fff066, 0 2px 4px #0cfbe9cc;
}

.ekluge-text {
    color: #f5faff;
    text-align: left;
    font-size: 1em;
    line-height: 1.54;
    font-weight: 400;
}


.ekluge-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.4em;
    color: #26fff7; /* tyrkysová */
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 9999;
}

.ekluge-close:hover,
.ekluge-close:focus {
    color: #ff2e2e; /* červená pri hover/focus */
    outline: none;
}
#ekluge-close {
  background: transparent;   /* žiadne pozadie */
  border: none;              /* žiadne ohraničenie */
  color: #33ccff;            /* tyrkysová farba */
  font-size: 2rem;
  cursor: pointer;
  outline: none;             /* odstráni modrý rámček pri focus */
  transition: color 0.3s ease;
  padding: 0;                /* odstráni padding */
  line-height: 1;
}

#ekluge-close:hover,
#ekluge-close:focus {
  color: red;                /* zmena na červenú pri hover alebo focus */
  background: transparent;   /* nech nebliká podklad */
}
