.ads-box {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 230px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 5px -5px 10px rgba(0, 0, 0, 0.8);
    border: black 5px solid;
}

.ads-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.ads-content img {
    width: 50px;
    margin-top: 10px;
}

.ads-links {
    background-color: black;
    padding-top: 10px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    position: relative;
}

.ads-button {
    border-radius: 50vh;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border: none;
    padding: 5px 15px;
    font-size: 16px;
    cursor: pointer;
}

.ads-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

.ads-form input {
    height: 30px;
}

.ads-form textarea {
    width: 100%;
}

#ads-button-form {
    display: none;
}

#hand-icon {
    position: absolute;
    bottom: 0px;
    font-size: 20px;
    animation: bounceHand 1s infinite ease-in-out;
}

@keyframes bounceHand {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

.ad-text {
    font-size: 20px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    flex-wrap: wrap;
    white-space: normal;
    word-break: break-word;
}

.fade {
    animation: fade 0.6s ease-out, slowPulse 1.2s ease 0.6s 1;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slowPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(2);
    }

    100% {
        transform: scale(1);
    }
}

.slide-left {
    animation: slideLeft 0.6s;
}

@keyframes slideLeft {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.scale {
    animation: scale 0.4s ease-out, wiggle 0.6s ease 0.4s;
    font-size: 16px;
    color: var(--green);
    padding: 10px;
    border-radius: 12px;

    box-shadow: 0 0 15px var(--green);
}

@keyframes scale {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* אות-אות */
.letters span {
    opacity: 0;
    display: inline-block;
    animation: letterIn 0.3s forwards;
}

@keyframes letterIn {
    from {
        transform: translateY(15px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.glow-effect {
    color: white;
    text-shadow: 0 0 10px var(--green), 0 0 20px var(--green);
    font-weight: bold;
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(6deg);
    }

    40% {
        transform: rotate(-6deg);
    }

    60% {
        transform: rotate(3deg);
    }

    80% {
        transform: rotate(-3deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.fill-green {
    background: linear-gradient(90deg,
            var(--green) 0%,
            var(--green) 50%,
            white 50%,
            white 100%);

    background-size: 200% 100%;
    background-position: 100% 0;

    background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: fillGreen 3s ease forwards;
}

@keyframes fillGreen {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: 0% 0;
    }
}

@media (min-width: 1800px) {
    .ads-box {
        left: 200px;
    }
}

/* מובייל */
@media (max-width: 1800px) {
    .ads-box {
        width: 200px;
        height: 350px;
        left: 10px;
    }

    .ads-form {
        padding: 10px;
    }
}

@media (max-width: 1100px) {
    .ads-box {
        display: none;
    }
}

/* הודעות שגיאה קטנות בטופס הפרסומת */
.ads-form .field-error {
    align-self: flex-start;
    margin-top: -6px;
    font-size: 12px;
    color: #db163a;
}

.ads-form .field-error::before {
    width: 13px;
    height: 13px;
    font-size: 8px;
    background: #db163a;
}