@font-face {
    font-family: "Vazir";
    src: url(../fonts/Vazir-Medium-FD.ttf);
}

:root {
    --ddg-orange: #de5833;
    --ddg-orange-hover: #c94a26;
    --ddg-orange-light: rgba(222, 88, 51, 0.25);
    --ddg-bg: #1a1a1a;
    --ddg-bg-light: #2d2d2d;
    --ddg-bg-input: #333;
    --ddg-text: #fff;
    --ddg-text-muted: #999;
    --ddg-border: #3d3d3d;
}

@media only screen and (max-width: 557px) {
    body>div.main {
        padding: 0 15px !important
    }

    body>div.main>form {
        margin-bottom: 50px !important
    }

    body div#footer {
        justify-content: center !important
    }

    body div#footer div.left {
        justify-content: center !important
    }
}

body {
    direction: rtl;
    display: flex;
    font-family: Vazir, serif;
    width: auto;
    height: 100vh;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow-y: auto;
    background: var(--ddg-bg);
    color: var(--ddg-text);
}

body div#instructions {
    width: 100%;
    background-color: var(--ddg-bg-light);
    border-bottom: 1px solid var(--ddg-border);
}

body div#instructions p {
    color: var(--ddg-text-muted);
    font-weight: 200;
    padding: 0 15px;
    font-size: 14px;
}

body>div.main {
    height: 87.5vh;
    min-height: 410px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body>div.main>div.logo {
    display: flex;
    justify-content: center;
}

body>div.main>div.logo svg {
    width: 180px;
    height: auto;
}

body>div.main>div.logo svg .logo-stacked_svg__stackedLogoWordmark {
    fill: #fff;
}

body>div.main>form {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: 100px;
}

body>div.main>form>div.input-search {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    max-width: 582px;
    width: 100%;
}

body>div.main>form>div.input-search>input {
    font-family: Vazir, serif;
    border: none;
    box-shadow: none;
    border-radius: 30px;
    height: 52px;
    width: 100%;
    max-width: 580px;
    font-size: 16px;
    padding-right: 50px;
    padding-left: 55px;
    transition: background-color 0.2s, box-shadow 0.2s;
    background: var(--ddg-bg-input);
    color: var(--ddg-text);
}

body>div.main>form>div.input-search>input:hover {
    background: #3d3d3d;
}

body>div.main>form>div.input-search>input::placeholder {
    color: var(--ddg-text-muted);
    opacity: 1;
}

body>div.main>form>div.input-search>input:focus {
    outline: none;
    background: var(--ddg-bg-input);
    box-shadow: 0 0 0 3px var(--ddg-bg);
}

body>div.main>form>div.input-search>button {
    position: absolute;
    left: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--ddg-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background-color 0.2s;
}

body>div.main>form>div.input-search>button:hover {
    color: var(--ddg-orange);
    background-color: rgba(222, 88, 51, 0.1);
}

body>div.main>form>div.input-search>button svg {
    width: 18px;
    height: 18px;
}

body>div.main>form>div.input-search>img {
    position: absolute;
    left: 20px;
    width: 20px;
    opacity: 0.6;
}

body>div.main div#link {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: none;
    bottom: 0;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 333;
    align-items: center;
}

body>div.main div#link>.close {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 333;
    cursor: pointer;
}

body>div.main div#link .box {
    position: relative;
    z-index: 3333;
    padding: 20px 24px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    display: flex;
    max-width: 420px;
    background: var(--ddg-bg-light);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin: 0 15px;
    border: 1px solid var(--ddg-border);
}

body>div.main div#link .box>img.link {
    width: 96px;
}

body>div.main div#link .box input#myInput {
    width: 100%;
    height: 40px;
    border: 1px solid var(--ddg-border);
    border-radius: 8px;
    margin-top: 10px;
    cursor: default;
    background: var(--ddg-bg);
    padding: 0 10px;
    font-family: Vazir, serif;
    font-size: 13px;
    direction: ltr;
    text-align: left;
    box-sizing: border-box;
    color: var(--ddg-text);
}

body>div.main div#link .box input#myInput:focus {
    outline: none;
    border-color: var(--ddg-orange);
}

body>div.main div#link .box>.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

body>div.main div#link .box>.buttons button {
    background-color: var(--ddg-bg-input);
    border: 1px solid var(--ddg-border);
    border-radius: 20px;
    font-family: Vazir, serif;
    color: var(--ddg-text);
    font-size: 13px;
    margin: 0;
    padding: 0 16px;
    line-height: 30px;
    height: 34px;
    min-width: 54px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

body>div.main div#link .box>.buttons button:hover {
    background-color: var(--ddg-orange);
    border-color: var(--ddg-orange);
    color: #fff;
}

body .c3 {
    position: absolute;
    display: none;
    z-index: 9999;
    pointer-events: none;
    width: 30px;
}

body div#footer {
    background: var(--ddg-bg-light);
    line-height: 40px;
    border-top: 1px solid var(--ddg-border);
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

body div#footer>div.left {
    padding-left: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

body div#footer>div.left p {
    color: var(--ddg-text-muted);
    font-size: 12px;
    direction: ltr;
    margin: 0;
    font-family: Vazir, serif;
}

body div#footer a.gitlh {
    text-decoration: none;
    display: flex;
    margin: 0 5px 0 0;
    align-items: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

body div#footer a.gitlh:hover {
    opacity: 1;
}

body div#footer a.gitlh>img {
    width: 20px;
}

body div#footer>div.right {
    padding-right: 10px;
}

body div#footer>div.right a {
    color: var(--ddg-text-muted);
    margin: 2px 10px 0;
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
    transition: color 0.2s;
}

body div#footer>div.right a:hover {
    color: var(--ddg-orange);
}