* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--Charcoal);
    z-index: 0;
    font-family: cursive;
}

:root {
    --dusty-pink: #EAA9A9;
    --Mint-blue: #BBE2E3;
    --Mint-blue-transparent: #bbe2e37e;
    --Off-White: #F6F6F0;
    --Charcoal: #090808;
}

body {
    width: 100%;
    height: 100vh;
    background-color: #fbfbfb;
}

.bgnotif {
    width: 100%;
    height: 100%;
    background-color: var(--Mint-blue-transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: ease-in-out 0.5s;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.notif {
    min-width: 320px;
    max-width: 90%;

    padding: 2.5rem 2rem;
    border-radius: 1.2rem;

    background: linear-gradient(
        145deg,
        var(--Mint-blue),
        #d6f1f1
    );

    border: 2px solid var(--dusty-pink);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.15),
        0 0 0 4px rgba(234, 169, 169, 0.25);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;

    animation: popup 0.4s ease;
}

@keyframes popup {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


.notif > div {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
}



#day, #month, #name {
    width: 70px;
    padding: 0.5rem;

    border-radius: 0.6rem;
    border: 2px solid transparent;

    background-color: var(--Off-White);
    text-align: center;

    font-size: 1rem;
    outline: none;

    transition: all 0.25s ease;
}
#day:focus, 
#month:focus, 
#name:focus {
    border-color: var(--dusty-pink);
    box-shadow: 0 0 0 3px rgba(234, 169, 169, 0.4);
}
#day::placeholder,
#month::placeholder,
#name::placeholder {
    color: #999;
}
#name {
    width: 160px;
}
button {
    padding: 0.5rem 1.2rem;
    border-radius: 0.6rem;

    border: none;
    background-color: var(--dusty-pink);
    color: white;

    font-weight: bold;
    cursor: pointer;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

button:active {
    transform: scale(0.95);
}

#day::placeholder, #month::placeholder {
    text-align: center;
}

button {
    padding: 0.3rem;
    cursor: pointer;
}

.closed {
    transform: scale(0.7);
    opacity: 0;
    pointer-events: none;
}

main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

main > img {
    width: 25rem;
    user-select: none;
}

.confetti {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    background-color: red;
    opacity: 0.9;
    animation: fall linear forwards;
    user-select: none;
}

@keyframes fall {
    from {
        transform: translateY(0) rotate(0deg);
    }
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}