:root {
    --color-text: #101221;
    --color-primary: #4f59cc;

    --font-size-base: 16px;
    --font-weight-base: 400;
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
    --line-height-base: 1.5;
}

* {
// font smoothing
-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
    :root {
    // smooth scroll
    scroll-behavior: smooth;
    }
}

body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    font-weight: var(--font-weight-base);
    font-family: var(--font-family-base, sans-serif);
    text-align: left;
    color: var(--color-text);
    margin: 0;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

    background-image: linear-gradient(180deg, rgba(255,255,255, 0.01), rgba(255,255,255, 1) 85%),
                radial-gradient(ellipse at top left, rgba(13, 110, 253, 0.3), transparent 50%),
                radial-gradient(ellipse at top right, rgba(255,228,132, 0.5), transparent 50%),
                radial-gradient(ellipse at center right, rgba(112.520718,44.062154,249.437846, 0.3), transparent 50%),
                radial-gradient(ellipse at center left, rgba(214,51,132, 0.3), transparent 50%);
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    transition: all .2s;
    cursor: pointer;
}

.btn:hover,
.btn:focus {
    transform: translate3d(0, -2px, 0);
}

h1 {
    margin-top: 0;
    margin-bottom: 3vh;
    font-size: 1.2em;
    font-weight: 900;
    font-family: var(--font-family-base, sans-serif);
}

@media (min-width: 768px) {
    h1 {
        font-size: 2em;
        margin-bottom: 7vh;
    }
}

h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.page {
    max-width: 1000px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 3vh 20px;
}

@media (min-width: 768px) {
    .page {
        padding: 5vh 20px;
    }
}

.avatar-image {

}

.avatar-image.square {
    border-radius: 0;
}

.avatar-image.rounded {
    border-radius: 15%;
}

.avatar-image.circle {
    border-radius: 50%;
}

.avatar-container {
    margin-bottom: 5vh;
}

@media (min-width: 768px) {
    .avatar-container {
        display: flex;
    }
}

.preview {
    position: relative;
    display: flex;
    margin-bottom: 30px;
    padding: 50px 30px 40px;
    justify-content: center;
    align-items: center;
    background:
            linear-gradient(135deg, transparent 75%, rgba(0, 0, 0, .03) 0%) 0 0,
            linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, .03) 0%) 12.5px 12.5px,
            linear-gradient(135deg, transparent 75%, rgba(0, 0, 0, .03) 0%) 12.5px 12.5px,
            linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, .03) 0%) 0 0,
            rgba(255,255,255,.5);
    /*background:*/
    /*        linear-gradient(135deg, transparent 75%, rgba(255, 255, 255, .2) 0%) 0 0,*/
    /*        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, .2) 0%) 15px 15px,*/
    /*        linear-gradient(135deg, transparent 75%, rgba(255, 255, 255, .2) 0%) 15px 15px,*/
    /*        linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, .2) 0%) 0 0,*/
    /*        rgba(255,255,255,.2);*/
    background-size: 25px 25px;
    border-radius: 15px;
}

@media (min-width: 768px) {
    .preview {
        flex: 0 0 512px;
        max-width: 512px;
        min-height: 240px;
        height: 45vh;
        padding: 30px;
        margin-bottom: 0;
    }
}

.preview__form {
    position: absolute;
    top: 10px;
    left: 3px;
    display: flex;
}

.preview__form-item {
    width: 30px;
    height: 30px;
    margin-left: 10px;
    background: rgba(255,255,255,.5);
    border: 1px solid #d1d5dc;
    box-shadow: 0 0 0 3px rgba(255,255,255,1);
}

.preview__form-item:hover {
    border-color: #849cc2;
}

.preview__form-item.active {
    border-color: var(--color-primary);
}

.preview__box {

}

.preview__box canvas {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 50%;
}

@media (min-width: 768px) {
    .preview__box canvas {
        width: 200px;
        height: 200px;
    }
}






.settings {
    width: 100%;
    flex: 1 0 0;
    max-width: 100%;
}

@media (min-width: 768px) {
    .settings {
        margin-left: 50px;
    }
}

.settings__row {
    margin-bottom: 20px;
}

.settings__label {
    margin-bottom: 5px;
    font-size: .9em;
    color: #3c3e4d;
}

.settings__colors {
    display: flex;
    flex-wrap: wrap;
}

.settings__color {
    width: 25px;
    height: 25px;
    margin-right: 3px;
    margin-bottom: 3px;
    background: #fff;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
    transition: all .2s;
}

.settings__color:hover {
    transform: scale(1.3);
}

.settings__color-input {

}

.settings__color-input input,
.settings__color-input select {
    display: inline-block;
    width: 80px;
    height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(0,0,0,.2);
    background: #fff;
    font-size: .7em;
    border-radius: 3px;
}

.settings__images {

}

.settings__image {
}

.settings__image svg {
    width: 25px;
    height: 25px;
    margin-right: 5px;
    background: #fff;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
    transition: all .2s;
}

.settings__image svg:hover {
    transform: scale(1.3);
}






.examples {
    margin-bottom: 4vh;
}

@media (min-width: 768px) {
    .examples {
        display: flex;
        margin-left: -20px;
    }
}

.example-1,
.example-2,
.example-3,
.example-4 {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fff;
    box-shadow: 0 1px 15px -5px rgba(53, 83, 167, 0.2);
    border-radius: 10px;
}

@media (min-width: 768px) {
    .example-1,
    .example-2,
    .example-3,
    .example-4 {
        flex: 0 0 calc( 25% - 20px );
        max-width: calc( 25% - 20px );
        margin-left: 20px;
    }
}

.example-1 img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.example-1 div {
    font-size: .9em;
    line-height: 1.4;
}

.example-2 img {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.example-2 div {
    font-size: .9em;
    line-height: 1.2;
}

.example-3 img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
}

.example-3 div {
    font-size: .85em;
    line-height: 1.1;
}

.example-4 img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.example-4 div {
    font-size: .8em;
    line-height: 1.1;
}






.language-switch-container {
    /*position: fixed;*/
    /*top: 20px;*/
    /*right: 20px;*/
    /*padding: 15px 25px;*/
    /*background: #fff;*/
    /*border-radius: 10px;*/
    font-size: .9em;
}

.language-switch {
    display: inline-block;
    margin-left: 10px;
    text-decoration: none;
    color: var(--color-text);
}

.language-switch:hover {
    color: var(--color-primary);
}

.language-switch.active {
    color: var(--color-primary);
    border-bottom: 1px solid rgba(0,0,0,.2);
}


.site-footer {
    margin-top: 2vh;
    font-size: .8em;
    opacity: .8;
}