html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "Comic Sans MS", sans-serif;
}

html {
    min-height: 100dvh;
    background: linear-gradient(#b60000, #5a0000);
}

body {
    height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    user-select: none;
    color: white;
}

input {
    padding: 10px;
    width: 90%;
    border-radius: 6px;
    border: none;
    margin-bottom: 10px;
}

button {
    padding: 10px;
    width: 50%;
    background: #ffffffdd;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

p {
    margin: 5px 0 20px 0;
    font-size: clamp(16px, 3vw, 22px);
    color: #d6b42e;
}

a {
    color: #fff;
}

h1 {
    margin: 0;
    font-size: clamp(24px, 5vw, 48px);
    color: white;
    font-size: 2.2em;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

.box {
    background: rgba(0,0,0,0.25);
    padding: 30px;
    margin: 10px;
    border-radius: 12px;
    width: 300px;
    text-align: center;
    box-shadow: 0 0 15px #00000055;
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 3vw, 20px);
    margin-bottom: clamp(10px, 3vh, 20px);
}


#giftContainer {
    margin: 0 20px;
}

.gift {
    width: clamp(50px, 12vw, 120px);
    height: clamp(50px, 12vw, 120px);
    background-image: url("darek.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    filter: drop-shadow(0 6px 5px rgba(0,0,0,0.4));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gift:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.6));
}

.opened {
    animation: pop 0.4s forwards ease-out;
    pointer-events: none;
}

.done {
    opacity: 0;
    cursor: default;
}

@keyframes pop {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(0); opacity: 0; }
}

.name-box {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    padding: 25px;
    width: 70%;
    max-width: 450px;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    color: #8b0000;
    background: rgba(255,255,255,0.97);
    border: 5px solid gold;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    opacity: 0;
    transition: 0.7s ease;
    z-index: 999;
    user-select: text;
}

.name-box.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%);
}
   
