
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{
    --gold:#d9b45a;
    --gold2:#f2d37b;
    --bg:#090909;
    --text:#f5f5f5;
}

html{
    scroll-behavior:smooth;
}

body{
    background:
        radial-gradient(circle at top,#353024 0%,#141414 45%,#050505 100%);
    color:var(--text);
    font-family:Arial,sans-serif;
    overflow-x:hidden;
}

.background-glow{
    position:fixed;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(circle at top,
        rgba(217,180,90,.18),
        transparent 55%);
}

.container{
    width:min(92%,1200px);
    margin:0 auto;
    padding:10px 20px 30px;
    box-sizing:border-box;
}
/* ---------- LOGO ---------- */

header{
    text-align:center;
}

.logo img{
    width:200px;
    display:block;
    margin:0 auto 10px;
    filter:drop-shadow(0 0 35px rgba(217,180,90,.45));
}

/* ---------- NADPIS ---------- */

h1{
    text-align:center;
    color:var(--gold);
    font-family:"Cormorant Garamond",serif;
    font-weight:700;
    margin-bottom:20px;
}

h1 span{
    display:block;
    font-size:78px;
    line-height:1;
    letter-spacing:3px;
}

h1 small{
    display:block;
    margin-top:10px;
    font-size:24px;
    letter-spacing:6px;
}

/* ---------- CITAT ---------- */

.quote{
    text-align:center;
    max-width:700px;
    margin:25px auto;
}

.quote p{
    font-family:"Cormorant Garamond",serif;
    font-size:30px;
    font-style:italic;
    line-height:1.8;
}

/* ---------- CIARA ---------- */

.divider{
    width:220px;
    height:2px;
    margin:18px auto;
    background:
        linear-gradient(to right,
        transparent,
        var(--gold),
        transparent);
}

/* ---------- MENA ---------- */

.names{
    width:100%;
    max-width:900px;
    margin:40px auto;
    display:flex;
    flex-direction:column;
    gap:18px;
}

/* ---------- TLACIDLO ---------- */

.play-section{
    text-align:center;
    margin-top:20px;
}

#playButton{

    background:linear-gradient(#f5df9d,#d8b155,#9b7423);
    color:#111;
    border:none;
    border-radius:45px;
    padding:14px 40px;
    font-size:22px;
    font-weight:bold;
    cursor:pointer;
    transition:.35s;
    box-shadow:0 0 30px rgba(217,180,90,.45);
}

#playButton:hover{

    transform:translateY(-3px) scale(1.03);
    box-shadow:0 0 45px rgba(217,180,90,.75);
}

video{
    display:block;
    width:100%;
    width:min(950px,95%);
    margin:0 auto 20px;
    border-radius:24px;
    border:2px solid rgba(217,180,90,.35);
}
/* ---------- FOOTER ---------- */

footer{
    margin-top:15px;
    text-align:center;
}

/* ===== SVIEČKA ===== */

.candle{
    position:relative;
    text-align:center;
    margin:10px auto 5px;
    width:35px;
}

.memorial-actions{
    display:grid;
    grid-template-columns:240px 240px;
    justify-content:center;
    gap:10px;
    margin:10px auto;
}

.memorial-actions .goldButton{
    width:230px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    white-space:nowrap;
}

#memoryButton{
    grid-column:1 / 3;
    justify-self:center;
    margin-top:-5px;
}
.goldButton{
    min-width:190px;
    height:46px;

    border:none;
    border-radius:28px;

    background:linear-gradient(180deg,#f4d86a,#d5a31a);
    color:#181818;

    font-size:15px;
    font-weight:700;

    cursor:pointer;
    transition:.3s;

    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;

    box-shadow:0 0 18px rgba(212,170,50,.35);
}

.goldButton:hover{
    transform:translateY(-2px);
    box-shadow:0 0 28px rgba(212,170,50,.55);
}

.memorial-panel{
    margin-top:18px;
}

.stats{
    display:flex;
    justify-content:center;
    gap:8px;
    flex-wrap:wrap;
    margin-top:5px;
}
.statCard{
    width:105px;
    height:105px;

    padding:10px;

    border-radius:14px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(217,180,90,.15);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}
.icon{
    font-size:22px;
    margin-bottom:4px;
}

.number{
    font-size:22px;
    color:#f4d86a;
    font-weight:bold;
    margin:4px 0 2px;
}

.label{
    font-size:12px;
    color:#d7d7d7;
}
.family-text{
    margin-top:10px;
    margin-bottom:15px;
    font-size:22px;
    font-family:"Cormorant Garamond", serif;
    font-weight:600;
    color:#f3f3f3;

    text-align:center;

    text-shadow:0 0 10px rgba(217,180,90,.18);
}

@keyframes glowAura{

    0%,100%{
        opacity:.75;
        transform:translate(-50%,-50%) scale(0.9);
    }

    50%{
        opacity:1;
        transform:translate(-50%,-50%) scale(1.15);
    }

}

.candle img{
    width:35px;
    display:block;
    margin:0 auto;

    animation:candlePulse 2.5s ease-in-out infinite;
}

@keyframes candlePulse{

    0%{
        filter:
            brightness(100%)
            drop-shadow(0 0 4px rgba(255,220,120,.45))
            drop-shadow(0 0 8px rgba(255,180,60,.20));
    }

    50%{
        filter:
            brightness(110%)
            drop-shadow(0 0 8px rgba(255,240,180,.70))
            drop-shadow(0 0 16px rgba(255,200,80,.35));
    }

    100%{
        filter:
            brightness(100%)
            drop-shadow(0 0 4px rgba(255,220,120,.45))
            drop-shadow(0 0 8px rgba(255,180,60,.20));
    }

}

@keyframes candleGlow{

    0%{
        filter:
            brightness(100%)
            drop-shadow(0 0 4px rgba(255,190,80,.35));
    }

    50%{
        filter:
            brightness(112%)
            drop-shadow(0 0 18px rgba(255,220,120,.95));
    }

    100%{
        filter:
            brightness(100%)
            drop-shadow(0 0 4px rgba(255,190,80,.35));
    }

}

footer p{
    color:#cfcfcf;
}

/* ===== TLAČIDLO NA ZAČIATOK ===== */

#restartButton{
    min-width:220px;
    height:46px;

    font-size:16px;
    font-weight:700;

    border:none;
    border-radius:35px;

    background:linear-gradient(180deg,#f4d86a,#d4a61d);
    color:#111;

    cursor:pointer;

    margin:25px auto 15px;

    display:none;

    transition:.3s;
}

#restartButton:hover{
    transform:translateY(-2px);
    box-shadow:0 0 25px rgba(214,171,43,.45);
}

/* ---------- MOBIL ---------- */

@media(max-width:768px){

.logo img{
    width:160px;
}

h1 span{
    font-size:54px;
}

h1 small{
    font-size:22px;
    letter-spacing:4px;
}

.quote p{
    font-size:24px;
}

.names div:nth-child(odd){
    font-size:34px;
}

#playButton{
    width:100%;
    font-size:22px;
}

}

/* ===== PLYNULÝ PRECHOD ===== */

#intro{
    opacity:1;
    transition:opacity 2.5s ease-in-out;
}

#intro.hide{
    opacity:0;
}

#videoSection{
    display:none;
    max-width:950px;
    margin:0 auto;
    opacity:0;
    transition:opacity .8s ease;
}

#videoSection.show{
    display:block;
    opacity:1;
}

#videoSection video{
    display:block;
    width:100%;
    border-radius:24px;
    margin:0 auto 20px;
}
/* ===============================
   ZOZNAM OSÔB
=============================== */

.names{
    width:100%;
    max-width:950px;
    margin:15px auto;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.person{
    display:grid;
    grid-template-columns:180px minmax(0,1fr) 180px;
    align-items:center;
    column-gap:20px;
    padding:0;
}
.born{
    text-align:right;
    font-size:20px;
    color:#ececec;
    white-space:nowrap;
}

.name{
    text-align:center;
    font-family:"Cormorant Garamond",serif;
    font-size:40px;
    font-weight:600;
    color:#d9b45a;
    line-height:0.85;
    margin:0;
}

.died{
    text-align:left;
    font-size:20px;
    color:#ececec;
    white-space:nowrap;
}

.separator{
    text-align:center;
    color:#d9b45a;
    font-size:22px;
    margin:2px 0;
}

@media (max-width:768px){

    .names{
        margin:10px auto;
        gap:8px;
    }

    .person{
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:2px;
        margin:0 0 10px;
    }

    .born,
    .died{
        font-size:16px;
        line-height:1.2;
        margin:0;
    }

    .name{
        font-size:32px;
        line-height:1.1;
        margin:0;
        text-align:center;
        white-space:normal;
    }

    .separator{
        margin:4px 0;
        font-size:18px;
    }
}
.modal{
    display:none;
    position:fixed;
    inset:0;

    background:rgba(0,0,0,.75);

    justify-content:center;
    align-items:center;

    z-index:99999;
}

.modal-box{

    width:450px;
    max-width:90%;

    background:#181818;

    border-radius:20px;

    padding:35px;

    border:1px solid rgba(217,180,90,.35);

    text-align:center;
}

.modal-box h2{

    color:#d9b45a;

    margin-bottom:10px;

}

.modal-box p{

    margin-bottom:20px;

}

#flowerType{

    width:100%;

    padding:12px;

    border-radius:12px;

    font-size:17px;

    margin-bottom:25px;

}

.modal-buttons{

    display:flex;

    gap:15px;

    justify-content:center;

}

.grayButton{

    padding:14px 24px;

    border:none;

    border-radius:30px;

    background:#444;

    color:white;

    cursor:pointer;

}

#memorialFooter{
    display:none;
    text-align:center;
    margin-top:20px;
}

#memorialFooter.show{

    display:block;

    opacity:1;

    transform:translateY(0);

}

#memorialFooter{
    display:none;
}

.modal.show{
    display:flex;
}

/* ===== Poďakovanie ===== */

.thanks-message{

    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    display: none;

    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,.55);

    z-index: 999999;

}
.thanks-message.show{
    display:flex;
}

.thanks-box{

    background:#181818;

    border:2px solid #d9b45a;

    border-radius:20px;

    padding:40px;

    text-align:center;

    width:420px;

    max-width:90%;

    box-shadow:0 0 40px rgba(217,180,90,.4);

}

.thanks-icon{

    font-size:52px;

    margin-bottom:15px;

}

.thanks-box h2{

    color:#d9b45a;

    margin-bottom:12px;

}

.thanks-box p{

    color:#eee;

    font-size:18px;

    line-height:1.6;

}

@keyframes fadeScale{

    from{

        opacity:0;
        transform:scale(.9);

    }

    to{

        opacity:1;
        transform:scale(1);

    }

}

/* ===========================
   Zanechané spomienky
=========================== */

#memoriesSection{
    display:none;
    max-width:900px;
    margin:20px auto 0;
    padding:20px;
}

#memoriesSection h2{
    text-align:center;
    color:#fff;
    margin-bottom:30px;
    font-size:30px;
}

.memory-card{
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
    border-radius:15px;
    padding:20px;
    margin-bottom:20px;
    border:1px solid rgba(255,255,255,.15);
    transition:.3s;
}

.memory-card:hover{
    transform:translateY(-2px);
}

.memory-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
}

.memory-name{
    font-size:18px;
    font-weight:bold;
    color:#fff;
}

.memory-date{
    font-size:13px;
    color:#bbb;
}

.memory-text{
    color:#eee;
    line-height:1.7;
    margin:15px 0;
    white-space:pre-wrap;
}

.like-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:none;
    border:none;
    color:#ff5b7f;
    font-size:16px;
    cursor:pointer;
    transition:.25s;
}

.like-btn:hover{
    transform:scale(1.08);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-group label {
    color: #e5c15a;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

#visitorName,
#messageText{
    width:100%;
    padding:12px;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.15);
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:15px;
    box-sizing:border-box;
    outline:none;
    transition:.25s;
}

#visitorName:focus,
#messageText:focus{
    border-color:#d9b45a;
    box-shadow:0 0 12px rgba(217,180,90,.35);
}

#messageText {
    min-height: 130px;
    resize: vertical;
}

#toggleMemories{
    display:block;
    width:220px;
    min-width:220px;
    height:44px;
    margin:8px auto;
}

.action-divider{
    grid-column:1 / 3;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:2px 0;
}

.action-divider::before,
.action-divider::after{
    content:"";
    width:110px;
    height:1px;
    background:linear-gradient(
        to right,
        transparent,
        rgba(212,170,50,.55)
    );
}

.action-divider::after{
    background:linear-gradient(
        to left,
        transparent,
        rgba(212,170,50,.55)
    );
}

.action-divider span{
    margin:0 15px;
    color:#d9b45a;
    font-size:18px;
    text-shadow:0 0 10px rgba(217,180,90,.6);
}

#memoryButton{
    grid-column:1 / 3;
    justify-self:center;
}

.memorial-intro{
    text-align:center;
    color:#d9b45a;
    font-family:"Cormorant Garamond", serif;
    font-size:28px;
    font-style:italic;
    margin:10px 0 25px;
    letter-spacing:.5px;
    opacity:.95;
}




html,
body{
    overflow-x:hidden !important;
    width:100%;
}

.container{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
}

*{
    max-width:100%;
}

@media (max-width:768px){

    .memorial-actions{
        grid-template-columns:1fr 1fr;
        gap:10px;
        padding:0 10px;
    }

    .memorial-actions .goldButton{
        width:100%;
    }

    #memoryButton{
        width:100%;
        max-width:320px;
    }

    .family-text{
        font-size:20px;
    }

    .memorial-intro{
        font-size:20px;
    }

    .statCard{
        width:31%;
        height:100px;
    }
}

#videoSection{
    display:none;
    width:100% !important;

    display:flex;
    flex-direction:column;
    align-items:center !important;
    justify-content:center;

    margin:0 auto !important;
    padding:0 !important;
}

#videoSection video{
    display:block !important;
    width:95% !important;
    max-width:950px !important;
    margin:0 auto 20px !important;
}

#restartButton{
    margin:20px auto !important;
}

.video-wrapper{
    width:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.video-wrapper video{
    width:100%;
    max-width:950px;
}


/* ===== FINAL FIX: video + memorial actions ===== */
#videoSection {
    display: none !important;
}
#videoSection.show {
    display: block !important;
}
#memorialFooter {
    display: none;
}
#memorialFooter .goldButton:disabled,
#memorialFooter .like-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.empty-memories {
    text-align: center;
    color: #bbb;
    padding: 25px 10px;
}
