.noise::before {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    content: "";
    opacity: .05;
    mix-blend-mode: hard-light;
    z-index: 1000;
    pointer-events: none;
    background: url(https://file.garden/aIsfEmKdCw5cTYHb/noise.gif);
}

@font-face {
    font-family: 'Pantasia';
    src: url('assets/PantasiaUnlicencedTrial-Regular.woff2') format('woff2'),
}

@font-face {
    font-family: 'Lettra';
    src: url('assets/PPLettraMono-UltralightItalic.otf');
    font-style: normal;
    font-weight: normal;
}

h2 {
    font-family: Lettra;
    font-size: 2em;
}

h2 a {
    text-shadow: #E4E0D8 1px 0 10px;
    color: #E4E0D8;
    text-decoration: none;
}


p {
    font-family: Pantasia;
    font-size: 1.1em;
}

.noise::before {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    content: "";
    opacity: .02;
    mix-blend-mode: hard-light;
    z-index: 1;
    pointer-events: none;
    background: url(https://file.garden/aIsfEmKdCw5cTYHb/noise.gif);
    animation: flickerAnimation 1s infinite;

}

.navbar a {
    top: 94%;
    left: 50%;
    transform: translateX(-50%);
    /* ADD THIS LINE */
    text-align: center;
    position: fixed;
    width: 40px;
    height: 40px;
    color: #F0ECE2;
    font-size: 1.5rem;
    background-color: #454239;
    border-radius: 100px;
    text-decoration: none;
    font-family: serif;
    z-index: 3000;

}

.navbar a:hover {
    top: 94%;
    left: 50%;
    transform: translateX(-50%);
    /* ADD THIS LINE HERE TOO */
    text-align: center;
    position: fixed;
    width: 40px;
    height: 40px;
    color: #F0ECE2;
    font-size: 1.5rem;
    background-color: #454239;
    border-radius: 100px;
    text-decoration: underline 1.2px;
    text-underline-offset: 2px;
}

.gift-item {
    cursor: grab;
}

.gift-item:active {
    cursor: grabbing;
}

/* Reset and body setup */
body {
    background-color: #739F41;
    overflow: hidden;
}

.grid-container {
    right: 5%;
    bottom: 50%;
    position: relative;
    width: 100vw;
    height: 100vh;
    padding: 0;
}

.crowgifts {
    position: fixed;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 2.8em;
    color: #E4E0D8;
    z-index: 1001;
}


.gift-item {
    position: absolute;
    width: 180px;
    height: 180px;
    background: none;
    border: none;
    cursor: move;
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: blur(0.4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

.gift-item.dragging {
    opacity: 0.7;
    cursor: grabbing;
    z-index: 1000;
}

.gift-item:hover {
    transform: scale(1.02);
    filter: blur(0px);
    z-index: 100;
}

.gift-item img {
    max-width: 300px;
    max-height: 150px;
    object-fit: contain;
    pointer-events: none;
}

.hover-text {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(69, 66, 57, 0.95);
    color: #F0ECE2;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: Lettra;
    font-size: 0.9em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.gift-item:hover .hover-text {
    opacity: 1;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(25, 23, 20, 0.75);
    display: none;
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#overlay.visible {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

#message {
    max-width: 400px;
    width: 90%;
    text-align: left;
    padding: 2em 2.5em;
    background: rgba(240, 236, 226, 0.96);
    border-radius: 6px;
    font-family: Pantasia;
    font-size: 0.92em;
    line-height: 1.7;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    color: #27251F;
}

#message h3 {
    font-family: Lettra;
    font-size: 1.8em;
    margin-top: 0;
    color: #454239;
}