/* #region ==================== GLOBAL */

body {
    background-color: hsla(204deg, 8%, 24%, 1);
    position: relative;
    --footer-height: 200px;
    --header-height: 3rem;
    font-family: "Poppins", sans-serif;
    font-size: .9rem;
    font-weight: 400;
}
header {
    background-color: transparent;
    backdrop-filter: unset;
    box-shadow: none;
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    z-index: 999;
    top: 1em;
}
header > .container {
    display: flex;
    justify-content: space-between;
}
main {
    margin-top: calc(var(--header-height) * -1);
    margin-bottom: 0px;
}
main > .container {
    background-color: #383E42;
    padding-left: 0;
    padding-right: 0;
}
main > .card {
    width: 80vw;
    height: 50vh;
    margin: 10em auto;
}

main a {
    text-decoration: none !important;
    color: black;
}
main a:hover {
    color: black !important;
}

/* #endregion */


/* #region ==================== LANG SWITCHER */

.lang-switcher .dropdown-toggle {
    background: hsl(0deg 0% 93%);
    border: 1px solid hsl(0deg 0% 93%);
    color: black;
}
.lang-switcher .dropdown-toggle:hover,
.lang-switcher .dropdown-toggle:focus
{
    background: hsl(0deg 0% 80%) !important;
    border: 1px solid hsl(0deg 0% 77%) !important;
    color: black !important;
}
.lang-switcher .dropdown.show .dropdown-toggle,
.lang-switcher .dropdown-toggle:active {
    background: hsl(0deg 0% 70%) !important;
    border: 1px solid hsl(0deg 0% 67%) !important;
    color: black !important;
}
.lang-switcher .dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem hsl(0deg 0% 57% / 50%) !important;
}
.lang-switcher .dropdown-menu {
    background: hsl(0deg 0% 93%);
}

/* #endregion */


/* #region ==================== EDIT MY CARD */

.edit-my-card {
    background: hsl(0deg 0% 93%);
    border: 1px solid hsl(0deg 0% 93%);
    color: black;
}
.edit-my-card:hover,
.edit-my-card:focus
{
    background: hsl(0deg 0% 80%);
    border: 1px solid hsl(0deg 0% 77%);
    color: black;
}
.edit-my-card:active {
    background: hsl(0deg 0% 70%) !important;
    border: 1px solid hsl(0deg 0% 67%) !important;
    color: black !important;
}
.edit-my-card:focus {
    box-shadow: 0 0 0 0.2rem hsl(0deg 0% 57% / 50%) !important;
}
.edit-my-card .icon {
    background: hsl(214deg 66% 57%);
    color: white;
    border-radius: 50%;
    padding: 0.4em;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

/* #endregion */


/* #region ==================== WTF ARE THESE */

.image-frame {
    width: 2.2em;
    height: 2.2em;
}
.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.background {
    width: 100%;
    aspect-ratio: 3/1;
    filter: drop-shadow(0pt 3pt 6pt hsl(0deg 0% 0% / 16%));
}
.background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom-left-radius: .75em;
    border-bottom-right-radius: .75em;
}
.background.is-blank {
    background-color: hsl(219deg 27% 19%);
    border-bottom-left-radius: .75em;
    border-bottom-right-radius: .75em;
    aspect-ratio: 5/1;
}
.picture {
    width: 10em;
    height: 10em;
    margin: auto;
    margin-top: -5em;
}
.picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0pt 10pt 10pt hsl(0deg 0% 0% / 16%));
    border: 6px solid white;
    box-shadow: 0px 0px 4px 1px hsl(0deg 0% 0%);
}
.display-name h1 {
    text-align: center;
    text-transform: capitalize;
    color: white;
    font-weight: 500;
}
.company-name {
    text-align: center;
    color: white;
    font-weight: 400;
    font-size: 1.1rem;
}
.title {
    text-align: center;
    color: white;
    font-size: 0.95rem;
    font-weight: 300;
}
.save-contacts {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: auto;
}
.save-contacts a {
    border-radius: .75em;
}
.save-contacts a:first-child {
    width: 100%;
}
.save-contacts a:last-child {
    display: none;
}
.save-contacts a:last-child {
    width: 20%;
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
}
.save-contacts a:hover {
    color: white !important;
}
.main-links {
    background-color: hsl(0deg 0% 93%);
    display: flex;
    justify-content: space-around;
    width: 80%;
    margin: auto;
    border-radius: .75em;
    filter: drop-shadow(0pt 3pt 5pt hsl(0deg 0% 0% / 16%));
}
.main-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5em 0.2em;
    width: 100%;
}
.main-links a div:last-child {
    text-align: center;
}
.main-links a:hover {
    background-color: hsla(0, 0%, 0%, 0.06);
}
.tab-pane.is-blank {
    min-height: 5em;
    position: relative;
}
.tab-pane.is-blank:after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 2px;
    background-color: black;
    width: 40px;
}
.main-links a:nth-child(2) {
    border-left: 1.6px solid hsl(0deg 0% 72%);
    border-right: 1.6px solid hsl(0deg 0% 72%);
}

/* #endregion */


/* #region ==================== TABS */

.tabs {
    width: 80%;
    margin: auto;
}
.tabs ul.nav {
    display: flex;
    justify-content: space-between;
}
.tabs .nav-item {
    width: 24%;
}
.tabs .nav-item .nav-link {
    background-color: hsl(0deg 0% 100% / 80%);
    filter: drop-shadow(0pt 3pt 6pt hsl(0deg 0% 0% / 16%));
    border-radius: .75em;
    transition: all 0.2s;
    padding: .8rem 1rem;
    height: 100%;
}
.tabs .nav-item .nav-link:hover,
.tabs .nav-item .nav-link.active {
    background-color: hsl(210deg 50% 60%);
    color: white !important;
    text-shadow: 0 1px 1px hsl(0deg 0% 0% / 50%);
}
.tabs .tab-content {
    background-color: hsl(0deg 0% 93%);
    border-radius: .75em;
    filter: drop-shadow(0pt 3pt 6pt hsl(0deg 0% 0% / 16%));
}
.tabs span.label {
    font-weight: 500;
    margin-bottom: 0;
}
.tab-pane#personal-info ul:not(:last-child),
.tab-pane#social-media-accounts ul li:not(:last-child),
.tab-pane#company-info ul li:not(:last-child),
.tab-pane#catalog-links ul li:not(:last-child) {
    border-bottom: 1.6px solid hsl(0deg 0% 72%);
}

.tabs span.label {
    white-space: nowrap;
    display: inline-block;
}
.tabs span.label.is-blank {
    display: none;
}

.tab-pane ul {
    list-style: none;
    margin-bottom: 0px;
    padding: 0px;
}
.tab-pane ul div.copy {
    cursor: pointer;
}
.tab-pane ul li a,
.tab-pane ul li .copy {
    padding: .8em 1em;
    display: inline-flex;
    align-items: center;
    width: 100%;
    height: 100%;
}
.tab-pane .phones li {
    display: flex;
    justify-content: space-between;
}
.tab-pane ul li a:hover,
.tab-pane ul li .copy:hover {
    background-color: hsla(0, 0%, 0%, 0.06);
}
.tab-pane ul li img {
    width: 2.5em;
    height: 2.5em;
}
.tab-pane ul li img + span {
    margin-left: 1rem;
}
.tab-pane ul li img + span > span:not(.is-blank) + span {
    margin-left: .75rem;
}

/* #endregion */


/* #region ==================== QR CODE */

#qrcode {
    display: flex;
    margin-top: 3em;
    flex-direction: column;
    align-items: center;
}
#qrcode canvas {
    border: 4px solid white;
    border-radius: 1em;
}

/* #endregion */


/* #region ==================== FOOTER */

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    margin-top: 14rem;
    padding: 1.2em 0px;
    border-top: 1px solid hsla(0deg, 0%, 72%, 50%);
}
.footer a:hover {
    color: white !important;
}
.footer .app-logo a img {
    width: 6em;
    height: auto;
    object-fit: contain;
}
.footer p {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 0px;
}
.footer .buy a {
    color: white;
}
.footer span,
.footer strong,
.footer .kvkk a,
.footer .buy a {
    opacity: 0.7;
}
.footer .all-right-reserved a span,
.footer .all-right-reserved a:hover,
.footer .all-right-reserved b {
    color: white !important;
}
.footer .kvkk a {
    color: white;
}

/* #endregion */


/* #region ==================== RESPONSIVE? */

@media(max-width: 768px) {
    body {
        font-size: 0.85rem;
    }
    header {
        top: .5em;
    }
    header :is(img, .icon) + span {
        font-size: 0.7rem;
    }
    .display-name h1 {
        font-size: 2rem;
    }
    .company-name {
        font-size: 1rem;
    }
    .tabs ul.nav {
        flex-wrap: nowrap;
        overflow-x: scroll;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .tabs ul.nav::-webkit-scrollbar {
        display: none;
    }
    .tabs ul.nav li {
        min-width: 30%;
    }
    .tabs ul.nav li +li {
        margin-left: 0.5em;
    }
    .tab-pane ul li a > span,
    .tab-pane ul li div > span {
        display: inline-flex;
        flex-direction: column;
    }
    .tab-pane ul li a + a {
        width: auto;
    }
    .tab-pane ul:not(.social-media-accounts) li img + span > span:not(.is-blank) + span {
        margin-left: 0px !important;
    }
    .tabs .nav-item {
        font-size: 0.75rem;
    }
    .tabs .nav-link {
        padding: 0.5rem 0.4rem !important;
        text-align: center;
    }
    .save-contacts a span + span {
        font-size: 0.9em;
    }
    .tabs .nav-item .nav-link {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        filter: drop-shadow(0pt 3pt 2pt hsl(0deg 0% 0% / 16%));
        /* font-size: 0.65rem; */
    }
    .tab-pane span.text {
        white-space: pre-wrap !important;
    }
    #social-media-accounts a span.text {
        text-overflow: ellipsis;
        display: inline-block;
        width: 200px;
        overflow: hidden;
        white-space: nowrap !important;
    }
    .tab-pane span.label {
        width: auto !important;
    }
    .background {
        aspect-ratio: 2/1;
    }
    .background.is-blank, .background img {
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
    }
	.background.is-blank {
		aspect-ratio: 3/1;
	}
    .picture {
        width: 8em;
        height: 8em;
        margin-top: -3em;   
    }
    .main-links a > div:last-child {
        font-size: 0.75rem;
        padding-top: 0.2em;
    }
    .save-contacts, .main-links, .tabs {
        width: 85%;
    }
    .save-contacts a:first-child {
        width: 80%;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
        border-right: 1px solid hsl(211deg 100% 36%);
    }
    .save-contacts a:last-child {
        display: block;
        width: 19.9%;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
        background-color: hsl(0deg 0% 50%);
        border: 1px solid hsl(0deg 0% 50%);
    }
    div#qrcode + div > p {
        width: 85%;
        margin: auto;
    }
}
@media (max-width: 991px) {
    .footer {
        display: flex;
        flex-wrap: wrap;
        margin-left: 1em;
        margin-right: 1em;
    }
    .footer > div {
        width: 100%;
        text-align: center;
    }
    .footer > .app-logo + div {
        margin-top: 0.6em;
    }
}
.no-footer {
    margin-top: 14rem;
}

/* #endregion */


/* #region ==================== NAME TAG */

.greet-text {
    position: relative;
}

.badge-button {
    color: hsl(0deg 0% 100% / 80%);
    align-items: center;
    display: flex;
    justify-content: center;
    border-radius: 0.25em;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    font-size: 2rem;
    padding: 0.2em 0.25em;
}
.badge-button:hover {
    background-color: hsl(0deg 0% 100% / 10%);
    color: hsl(0deg 0% 100% / 90%);
}
.badge-button:active {
    background-color: hsl(0deg 0% 100% / 5%);
    color: hsl(0deg 0% 100% / 60%);
}

.greet-text .badge-button {
    position: absolute;
    right: 1em;
    top: -2em;
}

#qrcode-substitude .badge-button {
    margin: 0 auto;
    display: flex;
    width: fit-content;
    font-size: 4rem;
}


#name-tag-modal .modal-dialog {
    max-width: fit-content;
    margin: 1.75rem auto;
}
#name-tag-modal .modal-content {
    background-color: transparent;
    box-shadow: 0 0 25px hsl(0deg 0% 0% / 50%);
}
#name-tag-modal .modal-body {
    background-color: white;
    padding: 0;
}
#name-tag-modal .modal-footer {
    background-color: hsl(0deg 0% 80% / 80%);
    backdrop-filter: blur(2px);
    border-top: 1px solid hsl(0deg 0% 60%);
    justify-content: center;
}

#name-tag {
    --scale: 1.5;
    --mm: 3.779px * var(--scale);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(54 * var(--mm));
    height: calc(86 * var(--mm));
    gap: calc(3 * var(--mm));
}
#name-tag img {
    width: 100%;
}

#name-tag #tag-avatar {
    width: calc(30 * var(--mm));
}
#name-tag #tag-name {
    font-weight: 500;
    font-size: 1.5em;
    line-height: 1;
}
#name-tag #tag-company {
    font-size: 1.25em;
    line-height: 1;
}
#name-tag #tag-title {
    line-height: 1;
}

#name-tag #tag-qr {
    width: calc(20 * var(--mm));
    aspect-ratio: 1;
    margin-top: calc(2 * var(--mm));
}
#name-tag #tag-qr canvas {
    width: 100%;
    aspect-ratio: 1;
    --bg-gd-light: hsl(0, 0%, 95%);
    --bg-gd-dark: hsl(0, 0%, 80%);
    background-image: repeating-linear-gradient(45deg, var(--bg-gd-dark) 25%, transparent 25%, transparent 75%, var(--bg-gd-dark) 75%, var(--bg-gd-dark)),
                      repeating-linear-gradient(45deg, var(--bg-gd-dark) 25%, var(--bg-gd-light) 25%, var(--bg-gd-light) 75%, var(--bg-gd-dark) 75%, var(--bg-gd-dark));
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
    background-color: #ffffff;
    display: block;
}

/* #endregion */
