/**
 * Achievements
 */
.achievements-title {
    font-family: Raleway;
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
    color: #3D3D3D;
}
.achievements-main {
    width: calc(100% - 263px);
}
.achievements-collection {
    min-width: 223px;
    width: 223px;
    margin-left: 40px;
    padding: 24px 18px;
    background: #FFFFFF;
    border-radius: 8px;
    -ms-flex-item-align: start;
    -ms-grid-row-align: start;
    align-self: start;
    overflow: hidden;
}
.achievements-collection--title {
    font-family: Raleway;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 19px;
    text-transform: uppercase;
    color: #3D3D3D;
    margin-bottom: 12px;
    text-align: center;
}
.achievements-collection--counter {
    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    color: #737E90;
    text-align: center;
    margin-bottom: 14px;
}
.achievements-collection--counter span {
    font-size: 18px;
    line-height: 25px;
    color: #3D3D3D;
}
.achievements-collection--list {
    padding: 24px 4px 0;
    border-top: 1px solid #ECF2F9;
}
.achievements-collection--list li {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 36px;
    flex-direction: column;
    position: relative;
}
.achievements-collection--list li div {
    z-index: 2;
}
.achievements-collection--list li .rays-wrap {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.achievements-collection--list li .rays { /* with animation properties */
    background: url(/static/flatonica/img/rays-main.png?4) 0 0 no-repeat;
    position: absolute;
    top: -190px;
    left: -160px;
    width: 490px;
    height: 490px;
    opacity: 0;

    /* webkit chrome, safari, mobile */
    -webkit-animation-name: spin;
    -webkit-animation-duration: 40000ms; /* 40 seconds */
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;

    /* mozilla ff */
    -moz-animation-name: spin;
    -moz-animation-duration: 40000ms; /* 40 seconds */
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;

    /* microsoft ie */
    -ms-animation-name: spin;
    -ms-animation-duration: 40000ms; /* 40 seconds */
    -ms-animation-iteration-count: infinite;
    -ms-animation-timing-function: linear;
    z-index: 9;
    transition: .6s;
}
.achievements-collection--list li .rays.visible {
    opacity: .55;
}
.dark-theme .achievements-collection--list li .rays.visible {
    opacity: .25;
}

.achievements-collection--list li:last-child {
    margin: 0;
}
.achievements-collection--list li.-uncompleted .achievements-collection--ico img {
    -webkit-filter: grayscale(100%) contrast(0) brightness(1.75);
    filter: grayscale(100%) contrast(0) brightness(1.75);
}
.dark-theme .achievements-collection--list li.-uncompleted .achievements-collection--ico img {
    opacity: .4;
}
.achievements-collection--ico {
    width: 64px;
    min-width: 40px;
    margin-bottom: 8px;
}
.achievements-collection--ico img {
    width: 100%;
    display: block;
}
.achievements-collection--name {
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    color: #737E90;
    margin-bottom: 4px;
    text-align: center;
}
.achievements-collection--target {
    font-weight: bold;
    font-size: 14px;
    line-height: 18px;
    text-transform: uppercase;
    color: #737E90;
    text-align: center;
}

.achievement {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 12px 18px 26px;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
.achievement.-uncompleted .achievement-ico img {
    -webkit-filter: grayscale(100%) contrast(0) brightness(1.75);
    filter: grayscale(100%) contrast(0) brightness(1.75);
}
.dark-theme .achievement.-uncompleted .achievement-ico img{
    opacity: .4;
}
.achievement-tooltip {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 11;
    display: flex;
    flex-direction: row;
    width: 18px;
    justify-content: space-between;
}
.achievement-tooltip--trigger {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    position: relative;
    z-index: 20;
}
.achievement-tooltip--trigger:hover svg,
.achievement-refresh-btn:hover svg{
    fill: #3F8EFA;
}
.achievement-tooltip--trigger:hover + .achievement-tooltip--text {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translate(calc(-50% + 13.5px), 100%);
    -ms-transform: translate(calc(-50% + 13.5px), 100%);
    transform: translate(calc(-50% + 13.5px), 100%);
}
.achievement-tooltip--trigger svg {
    width: 18px;
    height: 18px;
    fill: #ABB2BD;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
.achievement-refresh-btn {
    cursor: pointer;
}
.achievement-refresh-btn svg {
    width: 21px;
    height: 23px;
    fill: #89909d91;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}
.achievement-tooltip--text {
    position: absolute;
    left: 50%;
    bottom: -12px;
    -webkit-transform: translate(calc(-50% + 13.5px), 90%);
    -ms-transform: translate(calc(-50% + 13.5px), 90%);
    transform: translate(calc(-50% + 13.5px), 90%);
    background: #FFFFFF;
    padding: 15px;
    -webkit-box-shadow: 0px 10px 32px 2px rgba(10, 10, 10, 0.16);
    box-shadow: 0px 10px 32px 2px rgba(10, 10, 10, 0.16);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
    z-index: 10;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    color: #737E90;
    text-align: center;
    width: max-content;
    max-width: 250px;
}
.achievement-tooltip--text:before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    top: 0;
    left: 50%;
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    -ms-transform: translate(-50%, -50%) rotate(45deg);
    transform: translate(-50%, -50%) rotate(45deg);
}
[data-react-name="achievementsWidget"] .achievement:nth-child(4) .achievement-tooltip--text {
    left: auto;
    right: 0;
    -webkit-transform: translate(13.5px, 90%);
    -ms-transform: translate(13.5px, 90%);
    transform: translate(13.5px, 90%);
}
[data-react-name="achievementsWidget"] .achievement:nth-child(4) .achievement-tooltip--trigger:hover + .achievement-tooltip--text {
    -webkit-transform: translate(13.5px, 100%);
    -ms-transform: translate(13.5px, 100%);
    transform: translate(13.5px, 100%);
}
[data-react-name="achievementsWidget"] .achievement:nth-child(4) .achievement-tooltip--text:before{
    left: auto;
    right: 10px;
}
.achievement-ico {
    height: 60px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 6px;
}
.achievement-ico img {
    max-height: 100%;
    display: block;
}
.achievement-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 19px;
    color: #737E90;
    text-align: center;
    margin-bottom: 4px;
}
.achievement-target {
    font-weight: bold;
    font-size: 14px;
    line-height: 19px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #3D3D3D;
    text-align: center;
}
.achievement-progress {
    margin-top: 18px;
    width: 100%;
    height: 5px;
    background: #ECF2F9;
    border-radius: 24px;
    position: relative;
}
.achievement-progress.-in-progress .achievement-progress--current {
    background: #FFFFFF;
    border-color: #5FCD53;
    color: #5FCD53;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.achievement-progress.-achieved .achievement-progress--line {
    width: 100%;
}
.achievement-progress.-achieved .achievement-progress--current {
    background: #5FCD53;
    border-color: #5FCD53;
    color: #FFFFFF;
    left: auto;
    /*right: -2px;*/
}
.achievement-progress.-achieved .achievement-progress--target {
    display: none;
}
.achievement-progress--line {
    background: #5FCD53;
    border-radius: 24px;
    height: 100%;
    width: 0;
    transition: .3s;
}
.achievement-progress--current {
    background: #FFFFFF;
    border: 2px solid #ECF2F9;
    border-radius: 24px;
    padding: 1px 8px;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    text-transform: uppercase;
    color: #3D3D3D;
    position: absolute;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    top: 50%;
    left: -2px;
    z-index: 10;
    min-width: 24px;
    transition: .3s;
}
.achievement-progress--target {
    position: absolute;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    top: 50%;
    right: 0;
    font-weight: 600;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #737E90;
    padding: 1px 6px;
    background: #ECF2F9;
    border-radius: 24px;
    text-align: center;
    min-width: 24px;
}
.achievement-awards {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 15px;
}
.achievement-awards li {
    margin-top: 8px;
    margin-right: 8px;
    border-radius: 64px;
    font-weight: 600;
    font-size: 12px;
    line-height: 17px;
    padding: 4px 10px;
}
.achievement-awards li:last-child {
    margin-right: 0;
}
.achievement-awards li.-exp {
    background: #F0F4F9;
    color: #737E90;
}
.achievement-awards li.-time {
    background: #EFF5FC;
    color: #3F8EFA;
}
.achievement-awards li.-money {
    background: #EAFAEF;
    color: #32D260;
}
.achievement-awards li.-speed {
    background: rgba(255, 185, 114, 0.2);
    color: #F69D42;
}
.achievement .blue-btn {
    font-family: Raleway;
    width: auto;
    padding: 13px 21px 12px;
    margin: 19px auto 0;
    font-weight: 600;
}





.achievement.-row {
    padding-top: 16px;
}
.achievement.-row .achievement-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 10px;
}
.achievement.-row .achievement-desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 20px;
}
.achievement.-row .achievement-desc div {
    text-align: left !important;
}
.achievement.-row .achievement-ico {
    height: 50px;
    width: 50px;
}
.achievements-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 32px 1fr 32px 1fr;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    -ms-grid-row-align: start;
    align-self: start;
}
.achievements-subtitle {
    font-family: Raleway;
    font-weight: 600;
    font-size: 21px;
    line-height: 28px;
    color: #3D3D3D;
    margin: 16px 0;
}
.dark-theme .achievements-subtitle {
    color: #E3E3E3;
}

.achievements-items {
    display: grid;
    gap: 12px 8px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}


/* keyframes for animation;  simple 0 to 360 */
@-webkit-keyframes spin {
    from { -webkit-transform: rotate(0deg); }
    to { -webkit-transform: rotate(360deg); }
}

@-moz-keyframes spin {
    from { -moz-transform: rotate(0deg); }
    to { -moz-transform: rotate(360deg); }
}

@-ms-keyframes spin {
    from { -ms-transform: rotate(0deg); }
    to { -ms-transform: rotate(360deg); }
}

/* basic structure for the rays setup */
.achievement.-achieved	{
    position: relative;
}
.achievement-container {
    z-index: 10;
}

.achievement.-achieved .rays-wrap {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 8px;
}
.achievement .rays {
    position: absolute;
    top: -190px;
    width: 490px;
    height: 490px;
    opacity: 0;
    z-index: 9;
    transition: .6s;
    pointer-events: none;
}
.achievement.-achieved .rays { /* with animation properties */
    background: url(/static/flatonica/img/rays-main.png?4) 0 0 no-repeat;

    /* webkit chrome, safari, mobile */
    -webkit-animation-name: spin;
    -webkit-animation-duration: 40000ms; /* 40 seconds */
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;

    /* mozilla ff */
    -moz-animation-name: spin;
    -moz-animation-duration: 40000ms; /* 40 seconds */
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;

    /* microsoft ie */
    -ms-animation-name: spin;
    -ms-animation-duration: 40000ms; /* 40 seconds */
    -ms-animation-iteration-count: infinite;
    -ms-animation-timing-function: linear;
}
.achievement.-achieved .rays.visible {
    opacity: .55;
}
.dark-theme .achievement.-achieved .rays.visible {
    opacity: .25;
}

.achievement-awards.-active {
    justify-content: center;
}
.achievement-awards.-active .-exp {
    background: #737E90;
    color: #fff;
}
.achievement-awards.-active .-time {
    background: #3F8EFA;
    color: #fff;
}
.achievement-awards.-active .-money {
    background: #32D260;
    color: #fff;
}
.achievement-awards.-active .-speed {
    background: #F69D42;
    color: #fff;
}

.achievement-prize-waiting {
    margin-top: 25px;
    text-align: center;
}
.achievement-prize-waiting svg {
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 4px;
}
.achievement-prize-waiting span {
    line-height: 24px;
}

.popup-get-award--content {
    position: relative;
    padding: 128px 152px 48px;
    width: 650px;
    border-radius: 8px;
    background: url(https://static.surfe.be/flatonica/img/achievements/popup-bg.svg) no-repeat center top, url(https://static.surfe.be/flatonica/img/achievements/popup-map.png) no-repeat -245px 50px, -webkit-gradient(linear, left top, left bottom, from(#293A77), to(#293A77));
    background: url(https://static.surfe.be/flatonica/img/achievements/popup-bg.svg) no-repeat center top, url(https://static.surfe.be/flatonica/img/achievements/popup-map.png) no-repeat -245px 50px, -o-linear-gradient(#293A77, #293A77);
    background: url(https://static.surfe.be/flatonica/img/achievements/popup-bg.svg) no-repeat center top, url(https://static.surfe.be/flatonica/img/achievements/popup-map.png) no-repeat -245px 50px, linear-gradient(#293A77, #293A77);
}
.popup-get-award--ico {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 155px;
    margin-bottom: 25px;
}
.popup-get-award--ico img {
    display: block;
    max-height: 155px;
}
.popup-get-award--title {
    font-family: Raleway;
    font-style: normal;
    font-weight: 600;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 24px;
}
.popup-get-award--subtitle {
    font-family: Raleway;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 24px;
}
.popup-get-award--form {
    margin-bottom: 24px;
}
.popup-get-award--form.choose,
.popup-get-award--form.random {
    display: none;
}
.popup-get-award--content button {
    display: block;
    width: 100%;
    border: 0;
    padding: 20px 0;
    height: auto;
    font-family: Raleway;
    font-weight: bold;
}
.popup-get-award--content button.green {
    margin-bottom: 14px;
    background-color: #5FCD53;
}
.popup-get-award--content button:hover {
    background: #304583;
}
.popup-get-award--choose {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-around;
    margin-bottom: 18px;
}
.popup-get-award--choose input {
    display: none;
}
.popup-get-award--choose input:checked + label {
    background: #5FCD53;
    border-color: #5FCD53;
    color: #FFFFFF;
}
.popup-get-award--choose.exchange input:checked + label {
    background: #fa3f3f;
    border-color: #fa3f3f;
    color: #FFFFFF;
}

.popup-get-award--choose.random input + label {
    border-color: #fff;
}
.popup-get-award--choose.random.active-0 label:nth-child(2),
.popup-get-award--choose.random.active-1 label:nth-child(4),
.popup-get-award--choose.random.active-2 label:nth-child(6) {
    background: #5FCD53;
    border-color: #5FCD53;
    color: #FFFFFF;
    box-shadow: 0 0 15px 0px #5FCD53;
    font-weight: bold;
    font-size: 110%;
}
.popup-get-award--choose input:checked + label:before {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    -webkit-transform: translate(50%, -50%);
    -ms-transform: translate(50%, -50%);
    transform: translate(50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FFFFFF url(https://static.surfe.be/flatonica/img/achievements/check-green.svg) no-repeat center center;
}
.popup-get-award--choose label {
    position: relative;
    width: calc((100% - 36px) / 3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 17px 0px 16px;
    font-weight: 600;
    font-size: 14px;
    line-height: 19px;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: .1s;
}
.popup-get-award--choose input:disabled + label {
    cursor: default;
}

.popup-get-award--choose.exchange input.not_enough + label {
    opacity: 0.5;
    cursor: not-allowed;
}
.popup-get-award--share {
    font-family: Raleway;
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    color: #8BA0DC;
    margin-bottom: 25px;
}
.popup-get-award--social {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}
.popup-get-award--social a {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 16px;
}
.popup-get-award--social a:last-child {
    margin: 0;
}
.popup-get-award--social a.-facebook {
    background: #0366E9;
}
.popup-get-award--social a.-vk {
    background: #4D89FF;
}
.popup-get-award--social a.-od {
    background: #FF961C;
}
.popup-get-award--social a.-twitter {
    background: #61C6FF;
}
.popup-get-award--social a svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.popup-congrats-wrap {
    height: 0;
    overflow: hidden;
    position: relative;
    transition: 1s;
}
.popup-congrats-wrap.active {
    height: 79px;
}
.popup-congrats-text {
    font-family: Raleway;
    font-style: normal;
    color: #ffaa02;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    position: absolute;
    width: 100%;
    bottom: 20px;
}
.popup-get-award--share-wrap {
    margin-top: 45px;
    height: 0;
    transition: .3s;
    overflow: hidden;
}

.popup-get-award--share-wrap.active {
    height: 89px;
}
.popup-get-award--title-wrap {
    height: 0;
    transition: 1s;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.popup-get-award--title-wrap.active {
    height: 79px;
}


.popup-loader {
    display: none;

}
.popup-loader.active {
    display: block;
}


.dark-theme .achievements-title {
    color: #E3E3E3;
}
.dark-theme .achievement {
    background: #1B1B22;
}
.dark-theme .achievement-tooltip--trigger:hover svg {
    fill: #3F8EFA;
}
.dark-theme .achievement-tooltip--trigger svg {
    fill: #636378;
}
.dark-theme .achievement-tooltip--text {
    background: #1B1B22;
    -webkit-box-shadow: 0px 4px 32px rgba(10, 10, 10, 0.16);
    box-shadow: 0px 4px 32px rgba(10, 10, 10, 0.16);
    color: #848499;
}
.dark-theme .achievement-tooltip--text:before {
    background: #1B1B22;
}
.dark-theme .achievement-name {
    color: #ABB2BD;
}
.dark-theme .achievement-target {
    color: #E3E3E3;
}
.dark-theme .achievement-progress {
    background: #26262F;
}
.dark-theme .achievement-progress.-in-progress .achievement-progress--current {
    background: #293F2C;
    color: #32D260;
    border-color: #32D260;
}
.dark-theme .achievement-progress.-achieved .achievement-progress--line {
    width: 100%;
}
.dark-theme .achievement-progress.-achieved .achievement-progress--current {
    background: #32D260;
    border-color: #32D260;
}
.dark-theme .achievement-progress.-achieved .achievement-progress--target {
    display: none;
}
.dark-theme .achievement-progress--current {
    background: #1B1B22;
    border-color: #26262F;
    color: #636378;
}
.dark-theme .achievement-progress--target {
    background: #26262F;
    color: #636378;
}
.dark-theme .achievement-awards li.-exp {
    background: #26262F;
    color: #ABB2BD;
}
.dark-theme .achievement-awards li.-time {
    background: rgba(46, 96, 165, 0.2);
    color: #3F8EFA;
}
.dark-theme .achievement-awards li.-money {
    background: rgba(50, 210, 96, 0.1);
    color: #32D260;
}
.dark-theme .achievements-collection {
    background: #1B1B22;
}
.dark-theme .achievements-collection--title {
    color: #E3E3E3;
}
.dark-theme .achievements-collection--counter {
    color: #636378;
}
.dark-theme .achievements-collection--counter span {
    color: #E3E3E3;
}
.dark-theme .achievements-collection--list {
    border-color: #26262F;
}
.dark-theme .achievements-collection--name {
    color: #ABB2BD;
}
.dark-theme .achievements-collection--target {
    color: #ABB2BD;
}
