@media screen and (max-width: 900px) {
    :root {
        --nav-height: 9vw;
        --nav-width: 19vw;
    }
    /* header start */

    ul {
        gap: 5px;
    }
    nav {
        height: calc(var(--nav-height) * 2);
    }
    #nav_links {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
        width: 100%;
    }
    .nav_wrapper {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .nav_wrapper::-webkit-scrollbar {
        display: none;
    }
    #nav_links {
        cursor: grab;
    }
    .phone {
        background-color: rgb(50, 50, 50);
        top: 0;
        padding: 0 0.5rem;
        height: calc(var(--nav-height) * 2);
        width: calc(var(--nav-width)+10px);
    }

    /* header end */

    /* table start*/
    .lottery_result {
        margin-inline: auto;
    }
    table caption {
        font-size: var(--font-normal);
    }
    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }
    table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: 0.625em;
    }
    table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: var(--font-small);
        text-align: right;
    }
    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }
    table td:last-child {
        border-bottom: 0;
    }
    /* table end */

    /* footer start */

    .footer_wrapper p,
    .copyright_wrapper p {
        font-size: var(--font-normal);
    }
    /* footer end */
}

@media screen and (max-width: 500px) {
    :root {
        --font-large: 4vw;
        --font-normal: 3vw;
        --font-small: 2.5vw;
    }
    #footer_list {
        flex-direction: column;
        gap: 0.5rem;
        padding-top: unset;
    }
    .footer_wrapper p,
    .copyright_wrapper p {
        font-size: var(--font-large);
    }
    .phone img {
        width: 3vw;
        padding-right: 2px;
    }
}
