:root {
    /* COLORS */
    --black-color: black;
    --light-purple-color: #d0a5e4;
    --cadet-blue: #4a5a5a;
    --green-yellow: #7ed421;
    --light-grey: #eee;
    --dark-grey: #ccc;
    --white: white;
    --black: black;
    --almost-black: #262628;
    --deep-sky-blue: #15b0ff;
    --yellow: #cec300;

    /* LIGHT THEME */
    --background-color: var(--light-purple-color);
    --general-text-color: var(--black-color);
    --highlight-text-color: var(--cadet-blue);
    --highlight-items-color: var(--green-yellow);
    --border-items-color: var(--dark-grey);
    --skeleton-animation-1: var(--light-grey);
    --skeleton-animation-2: var(--dark-grey);
    --inner-background: var(--white);

    /* SIZES */
    --page-width: 840px;
}

body {
    color: var(--general-text-color);
    background-color: var(--background-color);
    font-family: 'Helvetica-Neue', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 19px;
    margin: 0;
}

@font-face {
  font-family: 'Helvetica-Neue';
  src:
  	url(1c92a4af5f15a5e84470.woff2) format('woff2'),
  	url(e25c11d4a928fe75525f.woff) format('woff'),
  	url(a4190db1ef1834be4832.ttf) format('truetype');
  font-weight: normal;
  font-style: normal;
}
.card {
    background-color: var(--inner-background);
    padding: 30px;
}

.card__title {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 24px;
}

.card__title + .card__content {
    margin-top: 18px;
}

.card__content > * + * {
    margin-top: 10px;
}

/* Skeleton part*/

@-webkit-keyframes gradient-animation {
    from {
        background-position-x: 0;
    }
    to {
        background-position-x: 100%;
    }
}

@keyframes gradient-animation {
    from {
        background-position-x: 0;
    }
    to {
        background-position-x: 100%;
    }
}

.card--loading .card__title,
.card--loading .card__content > * {
    color: transparent;
    border-radius: 10px;
    -webkit-animation-duration: 2s;
            animation-duration: 2s;
    width: 100%;
    -webkit-animation-fill-mode: forwards;
            animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
            animation-iteration-count: infinite;
    -webkit-animation-name: gradient-animation;
            animation-name: gradient-animation;
    background: linear-gradient(
        125deg,
        var(--skeleton-animation-1),
        var(--skeleton-animation-1) 30%,
        var(--skeleton-animation-2) 45%,
        var(--skeleton-animation-2) 55%,
        var(--skeleton-animation-1) 70%,
        var(--skeleton-animation-1)
    );
    background-size: 300% 100%;
    background-position-x: 0;
}

.grid {
    display: grid;
    grid-gap: 30px;
    grid-template-columns: 100%;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 100%;
    max-width: 840px;
    margin: auto;
}

.grid.grid--list {
    grid-template-columns: 100%;
    max-width: unset;
}

@media (min-width: 840px) {
    .grid {
        grid-template-columns: repeat(2, 375px);
    }
}

.grid__list-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row;
            flex-flow: row;
    gap: 10px;
    color: var(--highlight-text-color);
}

.grid__list-rank {
    font-size: 13px;
    font-weight: bold;
    opacity: 0.62;
}

.grid__list-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 20px;
}

.header {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row;
            flex-flow: row;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    gap: 10px;
}

.header__title {
    margin: 0;
    font-size: 35px;
    font-weight: bold;
    line-height: 45px;
    float: left;
    white-space: nowrap;
    -ms-flex-negative: 0;
        flex-shrink: 0;
}

@media (max-width: 435px) {
    .header {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-flow: column;
                flex-flow: column;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
    }
    .header__title {
        text-align: center;
    }
}

.header__user {
    font-size: 18px;
    line-height: 25px;
    float: left;
    -ms-flex-negative: 2;
        flex-shrink: 2;
    -webkit-box-flex: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toggle {
    -ms-flex-negative: 0;
        flex-shrink: 0;
    justify-self: flex-end;
    text-align: right;
    display: block;
    line-height: 25px;
    cursor: pointer;
}

@media (max-width: 840px) {
    .toggle {
        display: none;
    }
}

.toggle__input {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    width: 16px;
    height: 16px;
    position: relative;
    border-radius: 5px;
    border: 1px solid var(--border-items-color);
    margin: 0;
    margin-top: 4px;
    float: left;
    cursor: inherit;
}

.toggle__input:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    margin: 2px;
    border-radius: 2px;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
}

.toggle__input:checked:before {
    background-color: var(--highlight-items-color);
}

.toggle__label {
    float: left;
    line-height: 21px;
    cursor: inherit;
}

.toggle__input + .toggle__label {
    padding-left: 10px;
}

.main {
    width: 100%;
    max-width: var(--page-width);
    padding: 30px 30px 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-flow: column;
            flex-flow: column;
    gap: 30px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    float: none;
    margin: auto;
}

#dark-theme-icon {
    fill: var(--yellow);
    stroke: var(--yellow);
}

body.dark-mode {
    --background-color: var(--cadet-blue);
    --general-text-color: var(--deep-sky-blue);
    --highlight-text-color: var(--white);
    --highlight-items-color: var(--deep-sky-blue);
    --border-items-color: var(--dark-grey);
    --skeleton-animation-1: var(--cadet-blue);
    --skeleton-animation-2: var(--black);
    --inner-background: var(--almost-black);
}

.nav__icon {
    background-color: var(--inner-background);
    border-radius: 50%;
    padding: 5px;
    margin: 10px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.nav__icon > svg {
    width: 100%;
    height: 100%;
}

.ui-toolkit {
    width: 100%;
    max-width: 840px;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: auto;
    float: none;
}

