*,
ul,
ol {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Albertus Nova";
    background-image: url(../images/background.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    max-width: 926px;
    margin: 0 auto;
}

.header {
    padding-top: 5px;
}

.header_socials {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.header_socials a {
    text-decoration: none;
    transition: .3s all ease;
}

.header_socials a:hover {
    filter: brightness(1.2);
}


.header .main_logo {
    margin: -40px auto 0 auto;
    display: block;
    text-align: center;
    transition: .3s all ease;
    width: fit-content;
}

.header .main_logo:hover {
    transform: scale(1.05);
}

.rating {
    margin-top: 10px;
}

.rating_links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.rating_links a {
    position: relative;
    text-decoration: none;
    transition: .3s all ease;
    display: block;
    width: fit-content;
}

.rating_links a .inner {
    position: absolute;
    width: fit-content;
    height: fit-content;
    top: 0;
    left: 0;
    right: 0;
    bottom: 5px;
    margin: auto;
    transition: .3s all ease;
}

.rating_links a:hover {
    filter: brightness(1.1);
}

.rating_links a:hover .inner {
    transform: scale(1.05);
}

.rating_block {
    position: relative;
    min-height: 1002px;
}

.rating_block_bg {
    display: block;
    position: absolute;
    top: -60px;
    left: -35px;
    right: 0;
    z-index: -1;
    width: fit-content;
    height: fit-content;
}

.rating_block h3 {
    text-align: center;
    padding-top: 20px;
    font-size: 24px;
    color: #fff;
    text-transform: uppercase;
    font-weight: 400;
    text-shadow: 0 0 4px rgba(69, 21, 0, .6);
}

.rating_block p {
    text-align: center;
    font-size: 12px;
    font-family: "Myriad Pro";
    color: #dfd09b;
}

.rating_tabs {
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
    align-items: center;
}

.rating_tabs .tab-item {
    width: 240px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #795435;
    background-image: url(../images/bg_tab.png);
    cursor: pointer;
    transition: .3s all ease;
    text-decoration: none;
}

.rating_tabs .tab-item:hover {
    filter: brightness(1.1);
}

.rating_tabs .tab-item.active {
    filter: brightness(1.3);
}

.tab_content {
    display: none;
    max-width: 595px;
    margin: 0 auto;
    margin-top: 45px;
}

.tab_content.medal {
    max-width: 827px;
}

.tab_content.active {
    display: block;
}

.tab_content table {
    width: 100%;
}

.tab_content table th:first-child {
    width: 100px;
    border-radius: 8px 0 0 8px;
}

.tab_content table th {
    background-color: #795435;
    padding: 15px 25px 15px 30px;
    font-size: 14px;
    color: #dfd09b;
}

.tab_content tbody tr:first-child td {
    border-top: 5px solid #a67f5b;
}

.tab_content tbody tr:first-child td:first-child {
    border-radius: 8px 0 0 0;
}

.tab_content tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.tab_content tbody tr td {
    background-color: #c0a689;
    padding: 5px 0;
}

.tab_content tbody .place {
    font-size: 14px;
    color: #ffefb7;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url(../images/bg_place.png);
    background-size: cover;
    margin-left: 38px;
}

.tab_content tbody .name {
    font-size: 14px;
    padding-left: 45px;
    color: #5d3e23;
}

footer {
    background-image: url(../images/footer_bg.png);
    background-size: cover;
    background-position: center;
    padding: 12px 0 5px 0;
}

footer .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer_texts {
    display: flex;
    gap: 45px;
    align-items: center;
}

.footer_texts .date {
    font-size: 17px;
    color: #dbcebf;
}

.footer_texts span {
    font-size: 15px;
    color: #dbcebf;
}

/* news */
table .rewards {
    display: flex;
    padding-left: 20px;
    gap: 13px;
}


.medal_list {
    margin: 0 auto;
    margin-top: 20px;
    align-items: center;
    display: flex;
    height: 42px;
    max-width: 827px;
    border-radius: 19px;
    gap: 5px;
    justify-content: center;
    background-color: #9d7553;
    border: 1px solid #b38c69;
    transition: .3s all ease;
}

.medal_list img {
    width: 69px;
}

.medal_list .active img {
    width: 73px;
    filter: brightness(1.1);
}

.medal_list a:hover {
    filter: brightness(1.1);
}


.rating .page-changer {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.rating .page-changer a {
    width: 201px;
    height: 44px;
    display: block;
    background-image: url(../images/page_btn_bg.png);
    text-align: center;
    padding: 14px 0;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
}

.rating .info_page {
    display: flex;
    align-items: center;
    border-radius: 4px;
    background-color: #906847;
    padding: 3px 4px;
    gap: 10px;
    font-size: 16px;
    color: #f1d9ab;
    text-shadow: 0 0 4px rgba(69, 21, 0, .6);
}

.info_page input {
    width: 23px;
    height: 23px;
    border-radius: 4px;
    padding: 0;
    -moz-appearance: textfield;
    outline: none;
    border: none;
    text-align: center;
    background-color: #795334;
    color: #fff3d2;
    font-family: "Albertus Nova";
    line-height: 30px;
}

.info_page input::-webkit-outer-spin-button,
.info_page input::-webkit-inner-spin-button {
    display: none;
}

.info_page span {
    display: flex;
    width: 23px;
    height: 23px;
    align-items: center;
    justify-content: center;
    background-color: #9e7654;
    border-radius: 4px;
    color: #fff3d2;
    line-height: 30px;
}