@font-face {
    font-family: "ps-icons";
    font-style: normal;
    font-format: woff;
    font-weight: 400;
    src: url("public/fonts/ps-icons.woff");
}

@font-face {
    font-family: "ps-icons-small";
    font-style: normal;
    font-format: woff;
    font-weight: 400;
    src: url("public/fonts/ps-icons-small.woff");
}

:root {
    --dl-color-text-blue2: #0094ffff;
    --dl-color-text-blue3: #50b5feff;
    --dl-color-text-blue4: #85ccfdff;
    --dl-color-text-teal4: #86d3deff;
    --dl-color-text-white: #ffffffff;
    --dl-layout-space-one: 1rem;
    --dl-layout-space-six: 6rem;
    --dl-layout-space-two: 2rem;
    --dl-color-grays-white: #ffffffff;
    --dl-layout-size-large: 144px;
    --dl-layout-size-small: 48px;
    --dl-layout-space-five: 5rem;
    --dl-layout-space-four: 4rem;
    --dl-layout-space-half: 0.5rem;
    --dl-layout-space-unit: 1rem;
    --dl-layout-space-eight: 8rem;
    --dl-layout-space-three: 3rem;
    --dl-layout-size-medium: 96px;
    --dl-layout-space-seven: 7rem;
    --dl-color-grays-black: #000000ff;
    --dl-color-default-blue: #0094ff;
    --dl-layout-size-xxsmall: 8px;
    --dl-color-accent-orange: #ff6800;
    --dl-layout-space-twounits: 2rem;
    --dl-layout-size-maxwidth: 1400px;
    --dl-layout-space-fourunits: 4rem;
    --dl-layout-space-oneandhalfunits: 1.5rem;
}
.rich {
    font-size: 1.25rem;
    font-family: Arial;
    font-weight: 400;
    line-height: 1.45;
    text-transform: none;
    text-decoration: none;
}
.thq-heading-1 {
    font-size: 3rem;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.2;
}
.thq-heading-2 {
    font-size: 2.25rem;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.3;
}
.thq-body-large {
    font-size: 1.125rem;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.5;
}
.thq-body-small {
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.5;
}
.thq-input {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 40px;
    background-color: var(--dl-color-grays-white);
    border: 1px solid #ccc;
    outline: none;
    height: 50px;
}
.thq-button-filled,
.button-orange-small {
    display: flex;
    cursor: pointer;
    padding: 0 20px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.5;
    border-color: var(--dl-color-accent-orange);
    border-width: 1px;
    border-radius: 40px;
    background-color: var(--dl-color-accent-orange);
    color: var(--dl-color-grays-white);
    text-align: center;
    align-items: center;
    height: 50px;
    text-transform: uppercase;
}
.thq-table {
    width: 100%;
    border-collapse: collapse;
}
.thq-table th,
.thq-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.thq-table th {
    background-color: #f2f2f2;
}
.thq-section-padding {
    padding: var(--dl-layout-space-fourunits) 0;
}
.thq-section-max-width {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--dl-layout-space-four);
}
.thq-flex-column {
    display: flex;
    flex-direction: column;
    gap: var(--dl-layout-space-twounits);
    width: 100%;
    align-items: center;
    text-align: center;
}
.thq-flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--dl-layout-space-unit);
}
@media (max-width: 991px) {
    .lg-flex-col {
        display: flex;
        flex-direction: column;
    }
}
@media (max-width: 767px) {
    .heading-1 {
        font-size: 2rem;
    }
    .section-full {
        padding-left: var(--dl-layout-space-two);
        padding-right: var(--dl-layout-space-two);
    }
    .md-text-center {
        text-align: center;
    }
}
@media (max-width: 479px) {
    .formsubmission {
        padding: var(--dl-layout-space-unit);
    }
}
@media (max-width: 390px) {
    .thq-section-padding {
        padding: var(--dl-layout-space-oneandhalfunits);
    }
    .thq-flex-column {
        gap: var(--dl-layout-space-unit);
    }
    .thq-flex-row {
        gap: var(--dl-layout-space-half);
    }
}

.developers-container11 {
    width: 100%;
    display: flex;
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #00305f;
    color: #fff;
}

.results-title {
    font-size: 1.2em; /* Вы можете изменить это значение */
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    /* Give the blue section decent padding on small screens */
    .developers-container11.thq-section-padding {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    /* Prevent title from being huge */
    .developers-container11 .thq-heading-1 {
        font-size: 32px;
        line-height: 1.15;
        text-align: center;
        margin-top: 0;
    }

    .developers-container11 .thq-body-large {
        text-align: center;
    }

    /* Stack the input + buttons instead of row */
    .developers-container11 .thq-flex-row {
        flex-wrap: wrap; /* allows wrapping instead of overflow */
        justify-content: center;
    }

    /* Make the input full width (override inline width:300px) */
    #ip_input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Buttons full width */
    #get_my_ip_button,
    #check_button {
        flex: 1 1 120px; /* buttons can wrap to next line */
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Make results area not overflow the screen */
    #results {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        padding-left: 12px;
        padding-right: 12px;
    }

    #result_table {
        width: 100%;
        max-width: 100%;
    }

    /* Mobile: center text inside buttons */
    .thq-button-filled {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Allow horizontal scroll if table is wider than phone */
    .thq-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Reduce padding a bit in cells so it fits */
    .thq-table th,
    .thq-table td {
        padding: 8px 10px;
        vertical-align: top;
    }

    /* Make <pre> wrap instead of forcing huge width */
    .thq-table pre {
        white-space: pre-wrap;
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

#results {
    max-width: 100%;
}

#result_table.thq-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed; /* important: stops columns expanding infinitely */
    display: block; /* enables horizontal scroll on small screens */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#result_table pre {
    white-space: pre-wrap; /* wrap lines */
    word-break: break-word; /* break long tokens */
    overflow-wrap: anywhere; /* break very long strings safely */
    max-width: 100%;
}

@media (max-width: 768px) {
    /* Give more room to output on phones */
    #result_table th:nth-child(1),
    #result_table td:nth-child(1) {
        width: 40px;
    }

    #result_table th:nth-child(2),
    #result_table td:nth-child(2) {
        width: 80px;
    }
}

/* Table header color (all screen sizes) */
#result_table thead th {
    color: #00305f;
    font-weight: 600; /* optional but nice */
}

#ip_input {
    text-align: center;
}

#ip_input::placeholder {
    text-align: center;
}

.account-menu {
    position: relative;
    display: inline-block;
}

.account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 9999;
}

.account-dropdown.hidden {
    display: none;
}

.account-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #111;
    font-size: 14px;
}

.account-item:hover {
    background: rgba(0, 0, 0, 0.06);
}

.account-sep {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 6px 0;
}

.account-logout {
    color: #b00020;
}
