:root {
    /*Colors*/
    --primary_color: #FAC747;
    --secondary_color: #C53981;
    --text_color: #07080A;
    --text_hover: #07080A;
    --box_shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    --max_width: 1200px;

    /*Fonsts*/
    --heading_font: 'Lato', sans-serif;
    --sub_heading_font: 'Lato', sans-serif;
    --paragraph_font: 'Lato', sans-serif;
    --body_size: 16px;
    --h1_size: 2rem;
    --h2_size: 1.8rem;
    --h3_size: 1rem;
    --h4_size: 1.44rem;
    --h5_size: 1.2rem;
    --caption_size: 0.83rem;
    --small_size: 0.69rem;
    --heading_line_height: 1.1em;
    --body_line_height: 1.4em;

    /**/
    --padding: 10px 12px;
    --gap: 25px;
    --gap_min: 10px;
    --radius: 10px;
}

@media only screen and (max-width: 600px) {
    :root {
        --body_size: 15px;
    }
}

* {
    margin: 0;
    padding: 0;
}

*, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-size: var(--body_size);
    font-family: var(--paragraph_font);
    scroll-behavior: smooth;
}

.admin-bar {
    --top_offset: 32px;
}

body {
    font-size: var(--body_size);
    font-weight: 400;
    background-color: var(--background_color);
    color: var(--text_color);
    position: relative;
}

.h1Text, .h2Text, .h3Text, .h4Text, .h5Text,
h1, h2, h3, h4, h5 {
    color: var(--text_color);
    font-family: var(--heading_font);
    line-height: var(--heading_line_height);
    font-weight: 600;
}

.h1Text, h1 {
    font-size: var(--h1_size)
}

.h2Text, h2 {
    font-size: var(--h2_size);
}

.h3Text, h3 {
    font-size: var(--h3_size);
}

.h4Text, h4 {
    font-size: var(--h4_size);
}

.h5Text, h5 {
    font-size: var(--h5_size);
}

p {
    line-height: 1.4em;
}

.captionText {
    display: block;
    font-size: var(--caption_size);
}

.smallText {
    display: block;
    font-size: var(--small_size);
}

a {
    color: var(--text_color);
    text-decoration: none;
}

a:focus,
a:hover {
    color: var(--text_hover);
}

ul {
    list-style: none;
}

svg,
img {
    width: 100%;
}

img {
    object-fit: cover;
}

body {
    display: flex;
    position: relative;
    gap: var(--gap);
    flex-direction: column;
    max-width: var(--max_width);
    width: clamp(300px, 98%, var(--max_width));
    margin: 0 auto;
    padding: var(--gap_min);
    min-height: 100vh;
}

.logo {
    width: 100%;
    text-align: center;
    margin: var(--gap) 0;
}

.logo img {
    height: 1.2em;
    width: auto;
    margin-bottom: -0.2em;
}

.tagline {
    max-width: 440px;
    margin: 0 auto;
    text-align: center;
}

#cards {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    max-width: 470px;
    width: 100%;
    margin: auto;
    position: relative;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: var(--padding);
    border-radius: var(--radius);
    box-shadow: var(--box_shadow);
    background-color: var(--background_color);
    transition: all 0.3s ease;
    visibility: visible;
    opacity: 1;
}

#cards.loading .card {
    visibility: hidden;
    opacity: 0;
}

#cards.loading {
    display: block;
    height: auto;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius);
    box-shadow: var(--box_shadow);
}

#cards.loading::after {
    content: '';
    position: absolute;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 6px solid #eeeeee;
    border-top-color: var(--text_color);
    animation: spin 1s linear infinite;
    z-index: 2;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.card .title img {
    height: 1em;
    width: auto;
    margin-bottom: -0.1em;
}

.card .price {
    margin-top: 5px;
}

.card .price span {
    font-size: var(--body_size);
    font-weight: 500;
    color: #089981;
}

.card .price.down span {
    color: #C53981;
}

.card .price span::before {
    content: '▲';
}

.card .price.down span::before {
    content: '▼';
}

/*.card.SAR .price span {*/
/*    color: var(--text_color)*/
/*}*/

/*.card.SAR .price span::before {*/
/*    display: none;*/
/*}*/


.askBid {
    font-size: 14px;
}

.disclaimer {
    max-width: 440px;
    margin: 0 auto;
}

footer {
    margin-top: auto;
}

footer p {
    margin: var(--gap_min);
    text-align: center;
    text-transform: uppercase;
    opacity: 0.5;
    font-size: var(--caption_size);
    font-weight: 600;
}

.container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--gap);
    width: 100%;
}


.karat {
    background: #f5f5f5;
    font-size: 12px;
    margin-top: 10px;
    border-radius: 5px;
    padding: 3px;
    border-spacing: 0;

}

thead {
    font-weight: 600;
}

td {
    padding: 2px 5px;
}

td+td {
    border-left: solid 1px #e0e0e0;
}

tbody td {
    border-top: solid 1px #e0e0e0;
}

@media only screen and (max-width: 600px) {
    .karat {
        flex-direction: column;
        gap: 6px
    }

    .karat span+span {
        border-left: none;
        padding-left: 0;
    }
}

.adSpace {
    display: none;
    height: 100%;
    padding: 20px;
    text-align: center;
    min-width: 300px;
    background-color: #f8f8f8;
    --text_color: #dbdbdb;
}

.adSpace.bottomAd {
    padding-top: 80px;
    max-height: 200px;
}