#popup {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

#popup[open] {
    display: flex;
}

.popupContent {
    padding: 48px 36px 36px;
    border-radius: 10px;
    background-color: var(--light-grey);
    position: relative;
}

.popupContent.show {
    animation: appear 0.3s ease;
}

.popupContent.hide {
    animation: disappear 0.3s ease;
}

.popupTitle {
    font-family: "Newsreader", sans-serif;
    color: var(--black);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
}

.popupButtons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 12px;
}

.popupButtonsItem {
    flex: 1;
    color: white;
    cursor: pointer;
    display: block;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    transition: .3s ease;
    width: 100%;
    border: 1px solid transparent;
    max-height: 62px;
    padding: 16px 24px;
    white-space: nowrap;
}

.popupButtonsItem.yes {
    background-color: var(--brick-red);
}

.popupButtonsItem.no {
    background-color: var(--white);
    border-color: var(--red);
    color: var(--red);
}

.popupCloseButton {
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    position: absolute;
    padding: 4px 0 0;
    top: 12px;
    right: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
}

@media screen and (max-width: 1000px) {
    #popup[open] {
    }

    .popupContent {
    }

    .popupTitle {
    }

    .popupButtons {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .popupButtonsItem {
    }

    .popupButtonsItem.yes {
    }

    .popupButtonsItem.no {
    }

    .popupCloseButton {
    }
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(50%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes disappear {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(50%);
    }
}