@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;600&display=swap");

.share-modal-wrapper {
    /* height: 100vh; */
    display: grid;
    place-items: center;
    background-color: var(--wrapper-bg);
    font-weight: 500;
    font-family: "Inter", sans-serif;
}

.share-modal-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

.share-modal-wrapper {
    --first-color: #373d46;
    --modal-bg-color: #fff;
    --text-input-bg: #f8f9fa;
    --text-color: #95989d;
    --wrapper-bg: #c7ad91;
    --btn-color: #ddc0a1;
    --twitter: #e8f6fe;
    --whatsapp: #e9fbf0;
    --facebook: #e8f1fe;
    --reddit: #ffece6;
    --discord: #f1f3fb;
    --messenger: #e6f3ff;
    --telegram: #e6f3fa;
    --wechat: #f2f7ea;
    --copy: #f5f5f5;
    --normal-font-size: 0.88rem;
    --large-font-size: 1.25rem;
    --share-link-span: 0.9869em;
    --share-input-font-size: 0.8em;
    --z-modal: 1000;
}

.share-modal-wrapper button {
    background-color: transparent;
    outline: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.share-modal-wrapper img {
    max-width: 100%;
    height: auto;
}

.share-modal-wrapper ul li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.share-modal-wrapper .share__modal_btn {
    background-color: #42b18e;
    padding: 0.9em;
    font-size: var(--share-link-span);
    text-transform: capitalize;
    border-radius: 50%;
    box-shadow: 0 10px 10px -2px rgba(0, 0, 0, 0.1);
    color: #eee;
    letter-spacing: 0.25px;
    top: 85%;
    left: 85%;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3em;
    height: 3.4em;
    transform: translateY(-50%);
}

@media screen and (max-width: 576px) {
    .share-modal-wrapper .share__modal_btn {
        height: 3em;
    }
}

@media screen and (min-width: 1920px) {
    .share-modal-wrapper .share__modal_btn {
        left: 80%; /* Adjust the left position to be 200px from the center */
    }
}

.share-modal-wrapper .share__modal_btn i {
    font-family: 'Font Awesome 5 Free';
}

.share-modal-wrapper .share__modal_btn:hover {
    background-color: #6f6051;
}

.share-modal-wrapper .share__modal {
    background-color: var(--modal-bg-color);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: auto;
    display: grid;
    align-items: flex-end;
    overflow: auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    border-radius: 1.3em 1em 1.3em 1em;
    z-index: var(--z-modal);
    opacity: 0;
    transition: 0.5s ease;
    visibility: hidden;
}

.share-modal-wrapper .share__modal_content {
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    row-gap: 2.6em;
}

.share-modal-wrapper .share__modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.share-modal-wrapper .share__modal__header span {
    font-size: var(--large-font-size);
    font-weight: 600;
    color: var(--first-color);
    text-transform: capitalize;
    opacity: 0.88;
}

.share-modal-wrapper .close_modal_btn {
    color: var(--first-color);
}

.share-modal-wrapper .list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.125em;
}

.share-modal-wrapper .list__item {
    display: flex;
    flex-direction: column;
    row-gap: 0.5em;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
    color: var(--first-color);
    font-size: var(--normal-font-size);
    font-weight: 500;
    opacity: 0.9;
    cursor: pointer;
}

.share-modal-wrapper .icon_holder {
    width: 4.5em;
    height: 4.5em;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-modal-wrapper .social__logo {
    width: 2em;
    height: 2em;
}

.share-modal-wrapper [data-icon="twitter"] {
    background-color: var(--twitter);
}

.share-modal-wrapper [data-icon="facebook"] {
    background-color: var(--facebook);
}

.share-modal-wrapper [data-icon="reddit"] {
    background-color: var(--reddit);
}

.share-modal-wrapper [data-icon="discord"] {
    background-color: var(--discord);
}

.share-modal-wrapper [data-icon="whatsapp"] {
    background-color: var(--whatsapp);
}

.share-modal-wrapper [data-icon="messenger"] {
    background-color: var(--messenger);
}

.share-modal-wrapper [data-icon="telegram"] {
    background-color: var(--telegram);
}

.share-modal-wrapper [data-icon="wechat"] {
    background-color: var(--wechat);
}

.share-modal-wrapper [data-icon="copy"] {
    background-color: var(--copy);
}

.share-modal-wrapper .share__modal_link {
    display: flex;
    flex-direction: column;
    row-gap: 1.1em;
}

.share-modal-wrapper .share__modal_link span {
    font-weight: 500;
    font-size: var(--share-link-span);
    text-transform: capitalize;
    color: var(--first-color);
}

.share-modal-wrapper .share__modal_input {
    position: relative;
}

.share-modal-wrapper .share__modal_input input {
    width: 100%;
    background-color: var(--text-input-bg);
    padding: 0.88em;
    border-radius: 0.5em;
    border: none;
    outline: none;
    font-size: var(--share-input-font-size);
}

.share-modal-wrapper .copy_icon {
    position: absolute;
    right: 1.5em;
    top: 1em;
    color: var(--first-color);
    cursor: pointer;
}

.share-modal-wrapper .show-modal {
    opacity: 1;
    visibility: visible;
}

@media screen and (min-width: 991px) {
    .share-modal-wrapper {
        --large-font-size: 1.5rem;
        --normal-font-size: 1rem;
        --share-link-span: 1.1em;
        --share-input-font-size: 1em;
    }
}

@media screen and (min-width:768px) {
    .share-modal-wrapper .share__modal_btn {
        padding: 0.9em 1.75em;
        font-size: var(--share-link-span);
    }

    .share-modal-wrapper .share__modal {
        width: 28em;
        height: 14em;
        border-radius: 1.3em;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        overflow: hidden;
    }

    .share-modal-wrapper .share__modal_content {
        padding: 2.5em;
    }

    .share-modal-wrapper .list {
        grid-template-columns: repeat(4, 1fr);
        row-gap: 1.5em;
        column-gap: 1em;
    }
}


.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    display: none;
    width: 90px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -45px;
    opacity: 1;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}