@import url(https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css);
@import url(https://cdn.srv.design.ru/fonts/als_artemius/als_artemius.css);
@import url(https://cdn.srv.design.ru/fonts/als_artemius_sans/als_artemius_sans.css);

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

html {
    font-size: 20px;
    background: black;
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 100%;
}

canvas {
    border-radius: 50%;
    margin-top: 2rem;
}

button {
    font-size: 1rem;
    line-height: 1;
    padding: .5rem;
    margin-top: 2rem;
}

/* Button */
button {
    font: normal 1.5rem/1 als_artemius_sans, sans-serif;
    padding: .5rem 1rem .75rem;
    text-align: center;
    border-radius: .25rem;
    width: 10rem;
    max-width: 70%;
    display: block;
    margin: -1.25rem auto 1rem;
    background: #000;
    border: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .2s ease, transform .2s ease, background-color .2s ease;
    outline: none;
    user-select: none;
    color: #fff;
    border: .1rem solid #fff;
}
button:hover {
    transform: scale(1.1);
    background: #ff00fe;
}
button:active {
    box-shadow: none;
}
button:after {
    content: "Рисовать";
    position: relative;
    z-index: 2;
    transition: transform .2s ease, opacity .2s ease;
    display: block;
}
button:active:after {
    transform: scale(.98);
}
#download:after {
    content: "Скачать"
}

/* Переключалка кисти */
#change-mode {
    font: 1.2rem/1.7rem "FontAwesome", "Font Awesome", font_awesome;
    cursor: pointer;
    padding: 1rem;
    margin-top: -1rem;
    transition: color .2s ease, border-color .2s ease;
    color: #ffffff;
    border-color: #ffffff99;
    display: flex;
}
#change-mode:hover {
    color: #ff00fe;
    border-color: #ff00fe;
}
#change-mode:before {
    font: 1rem/1.5 als_artemius_sans, sans-serif;
    content: "заливкой";
    margin-right: .35rem;
}
#change-mode:after {
    font: 1rem/1.5 als_artemius_sans, sans-serif;
    content: "точками";
    margin-left: .35rem;
}

#change-mode:not(.initial-mode):after {
    border-bottom: .2rem dotted;
}
#change-mode.initial-mode:before {
    border-bottom: .2rem solid;
}

.app_ {
    border-radius: 50%;
    overflow: hidden;
}

.app {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    background: black;
}

.start {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.start_btn {
    font-size: 8vw;
    background: linear-gradient(120deg, #1fff00, #00b8ff, #df00ff);
    color: rgb(255, 255, 255);
    padding: 2vw 10vw 3vw;
    border-radius: 50vw;
    font-family: als_artemius_sans;
    cursor: pointer;
    transition: all .4s cubic-bezier(0,0,0,1);
    pointer-events: all;
}

.start_btn.hidden {
    opacity: 0;
    pointer-events: none;
}

.start_btn:hover {
    transform: scale(1.05);
}

.view {
    display: block;
    /*width: 80vw !important;
    height: 80vw !important;*/
    margin-top: 0 !important;
}

.controls {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    display: flex;
    justify-content: center;
    align-items: flex-end;

    font-family: als_artemius_sans;
    font-size: 1rem;
    z-index: 999;
    pointer-events: none;
}

.controls_ {
    pointer-events: all;
}

.changemode_ {
    padding-bottom: .75rem;
    text-align: center;
}

.changemode:hover {
    opacity: 1;
}

.changemode.active {
    opacity: 1;
}

.changemode {
    display: inline-block;
    opacity: 0.4;
    padding: 0 .5rem;
    cursor: pointer;
    transition: all .5s cubic-bezier(0,0,0,1);
}

.changemode span {
    border-bottom: 2px dotted;
    transition: all .5s cubic-bezier(0,0,0,1);
}

.changemode:not(.active) span {
    border-bottom-color: #fff;
}

.changemode.active span {
    border-bottom-color: transparent;
}

.footer-col img {
    display: block;
    position: relative;
    top: 2px;
}

.als {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
}

footer p {
    color: rgba(255, 255, 255, .5);
}

footer a {
    color: rgba(255, 255, 255, .5);
}

footer.desktop {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: .5rem 24px;
}

footer.desktop > * {
    flex: 1;
}

.footer-info {
    text-align: right;
    position: relative;
    top: -4px;
}

.footer-logo {
    opacity: .5;
}

footer.mobile {
    margin-top: 4rem;
    padding-bottom: 1rem;
    opacity: 1;
    transform: translate(0, 100%);
}

.footer-col {
    display: inline-block;
    vertical-align: top;
    margin-right: 6px;
    line-height: 1.35;
    font-family: als_artemius_sans;
    font-size: .8rem;
}

.footer-copy {
    color: white;
}

.footer-copy a {
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.2);
}

footer a {
    transition: all .2s cubic-bezier(0,0,0,1);
}

footer a:hover {
    color: white;
    border-bottom-color: white;
}

.controls-drawing {
    display: inline-flex;
    color: white;
    align-items: center;
    margin: 0 auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%) translateY(30%);
    opacity: 0;
    margin-bottom: 3rem;
    transition: 1s cubic-bezier(0, 0, 0, 1);
}

.controls-drawing.show {
    transform: translateX(-50%) translate(0%);
    opacity: 1;
}

.controls-drawing_ {
    display: flex;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    justify-content: center;
}

.controls-drawing_pause {
    cursor: pointer;
    transition: opacity .2s cubic-bezier(0,0,0,1);
    /*opacity: .4;*/
}

.controls-drawing_refresh {
    cursor: pointer;
    transition: opacity .2s cubic-bezier(0,0,0,1);
/*    opacity: .4;*/
}

/*.controls-drawing_pause:hover {
    opacity: 1;
}

.controls-drawing_refresh:hover {
    opacity: 1;
}*/

.controls-drawing_pause img{
    /*width: 1.5rem;
    height: 1.5rem;*/
    display: block;
    padding: .5rem;
    width: 2.5rem;
    height: 2.5rem;
}

.controls-drawing_refresh img{
    /*width: 1.5rem;
    height: 1.5rem;*/
    display: block;
    transform: scale(1.3);
    padding: .5rem;
    width: 2.5rem;
    height: 2.5rem;
}

.download {
    display: flex;
    cursor: pointer;
    border-radius: 100rem;
    border: 2px solid rgba(255,255,255,.4);
    height: calc(3rem + 4px);
}

/*.download:hover > .download_svg {
    border-right-width: 0;
}

.download:hover > .download_png {
    border-left-width: 0;
}

.download_png {
    font-size: 1.15rem;
    border: 2px solid white;
    padding: .5rem .9rem;
    border-top-right-radius: 50rem;
    border-bottom-right-radius: 50rem;
    transform: translateX(0px);
    border-left-width: 0;
    opacity: .4;
    transition: opacity .2s cubic-bezier(0,0,0,1);
    padding-right: 1.2rem;
}

.download_png:hover {
    border-left-width: 2px !important;
    opacity: 1;
}

.download_svg {
    font-size: 1.15rem;
    border: 2px solid white;
    padding: .5rem .9rem;
    border-top-left-radius: 50rem;
    border-bottom-left-radius: 50rem;
    opacity: .4;
    transition: opacity .2s cubic-bezier(0,0,0,1);
    padding-left: 1.2rem;
}

.download_svg:hover {
    border-right-width: 2px !important;
    opacity: 1;
}*/

.p {
    opacity: .4;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
}
.p {
    height: 3rem;
    margin-right: -2px;
    border-right: 2px solid white;
}
.p:first-child {
    border-top-left-radius: 50vw;
    border-bottom-left-radius: 50vw;
    padding-left: .5rem;
}
.p:last-child {
    border-top-right-radius: 50vw;
    border-bottom-right-radius: 50vw;
    padding-right: .5rem;
    border-right: 2px solid transparent;
}
/*.l {
    width: 3rem;
}*/
.g {
    width: 3.5rem;
}
.p span {
    display: block;
    padding: 0 1rem;
    font-size: 1.2rem;
}
.p {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity .5s cubic-bezier(0,0,0,1);
}

.p:hover {
    border: 2px solid;
    opacity: 1;
    height: calc(3rem + 4px);
    margin-top: -2px;
}            

.controls-drawing_pause.paused .pause {
    display: none;
}

.controls-drawing_pause.playing .play {
    display: none;
}

.footer-info-share a {
    display: inline-block;
    border: none;
}

.footer-info-share a img {
    opacity: 0.5;
    transition: all .5s cubic-bezier(0,0,0,1);
}

.footer-info-share a:hover img {
    opacity: 1;
}

/*1440*/

@media (max-width: 680px) {
    .start_btn {
        font-size: 11vw;
        padding: 4vw 16vw 6vw;
    }
}

@media (min-width: 1440px) {
    .start_btn {
        font-size: 115.2px;
        padding: 28.8px 144px 43.2px;
    }
}


@media (max-width: 1200px) {

    html {
        font-size: 18px;
    }

    footer.desktop {
        padding-bottom: .5rem;
    }
}

@media (max-width: 1130px) {

    html {
        font-size: 16px;
    }

    footer.desktop {
        padding-bottom: .5rem;
    }

    .footer-info {
        top: -.5rem;
    }
}

@media (max-width: 990px) {

    footer.desktop {
        display: none;
    }
    /*.footer-col {
        display: block;
        margin-right: 0;
        text-align: center;
    }
    .footer-copy {
        text-align: center;
    }
    .footer-col img {
        margin: 0 auto;
    }*/
}

@media (min-width: 990px) {
    footer.mobile {
        display: none;
    }
}
img { max-height: 100%; }
