* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    list-style: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    text-decoration: none;
    color: var(--text-color);
}

:root {
    --text-color: #222222;
    --main-color: #EB0A1B;
    --grey-color: #F4F4F4;
    --container: calc(100% - 40px);
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

.container {
    width: var(--container);
    max-width: 640px;
    margin: 0 auto;
}

a {
    cursor: pointer;
}

button {
    border: none;
    background-color: unset;
    cursor: pointer;
}

.header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 40px;
    font-style: italic;
    font-weight: 700;
}

.logo span {
    color: var(--main-color);
    font-style: inherit;
    font-weight: inherit;
}

.button {
    --color: var(--text-color);
    color: var(--color);
    height: 45px;
    padding: 5px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition-duration: .1s;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
    text-align: center;
    border-radius: 10px;
}

.button span {
    text-align: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
    transition-duration: inherit;
}

.button:active {
    transform: scale(.97);
}

.button svg,
.button img {
    transition-duration: inherit;
    width: 20px;
    max-height: 20px;
    color: var(--color);
}

.button:active {
    transform: scale(.98);
}

.button svg path {
    color: var(--color);
}

.button.button_grey {
    background-color: var(--grey-color);
}

.button.button_main {
    --color: white;
    background-color: var(--main-color);
}

.section {
    padding: 50px 0;
}

.section__title {
    margin: 0 0 50px 0;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
}

.file-input {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.file-input:hover {
    border: 2px dashed #b7b7b7;
}

.file-input span {
    text-align: center;
    font-size: 16px;
}

.file-input input {
    display: none;
}

.work-area {
    display: none;
}

.controls {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.canvas-container {
    display: flex;
    justify-content: center;
}

.canvas {
    background: #fff;
    cursor: grab;
    margin: 0 auto;
    width: 400px;
    max-width: 100%;
    box-shadow: 0px 5px 10px 2px rgba(34, 34, 34, 0.1);
}

.menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
}

.menu__item {
    padding: 70px 20px 20px 20px;
    background-color: color-mix(in srgb, var(--main-color), transparent 90%);
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    transition-duration: .2s;
}

.menu__item:hover {
    background-color: color-mix(in srgb, var(--main-color), transparent 85%);
}

.menu__item:active {
    background-color: color-mix(in srgb, var(--main-color), transparent 80%);
}

.menu__item-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    color: var(--main-color);
}

.menu__item-icon path {
    color: var(--main-color);
}

.menu__item-name {
    font-size: 20px;
    color: var(--main-color);
    text-transform: uppercase;
    font-weight: 400;
}

.switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
  
.switch__input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch__element {
    position: relative;
    cursor: pointer;
    border-radius: 32px;
    height: 32px;
    width: 52px;
    background-color: rgb(245, 245, 245);
}

.switch__slider {
    background-color: white;
    transition: 0.3s;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    position: absolute;
    left: 2px;
    top: 2px;
    box-shadow: 0px 5px 10px 2px rgba(34, 34, 34, 0.1);
}

.switch:has(.switch__input:checked) .switch__slider {
    left: calc(100% - 32px);
}

.switch:has(.switch__input:checked) .switch__element {
    background-color: #4caf50;
}

.switch__text {
    font-size: 14px;
    font-weight: 400;
}

.switch__text.switch__text_left {
    text-align: right;
}

.switch__text.switch__text_right {
    text-align: left;
}