html {
    box-sizing: border-box;
}

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

a {
    color: inherit;
    text-decoration: none;
}

@font-face {
    font-family: "Kanit";
    src: local("" Kanit""),
        url("../fonts/Kanit-Regular.woff2") format("woff2"),
        url("../fonts/Kanit-Regular.woff2") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Kanit";
    src: local("Kanit-Medium"),
        url("../fonts/Kanit-Medium.woff2") format("woff2"),
        url("../fonts/Kanit-Medium.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --text-color: #252525;
    --primary-color: #6c63ff;
    --bg-color: #f7f7f7;
    --border: #6c63ff;
    --hover: #534cc2;
    --shadow: rgba(108, 99, 255, 0.2);
}

[data-theme="dark"] {
    --text-color: #f7f7f7;
    --bg-color: #252525;
    --border: #f7f7f7;
    --hover: #a1a1a1;
    --shadow: rgba(236, 236, 236, 0.445);
}

body {
    min-width: 320px;
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    background-color: var(--bg-color);
}

/* global */
.container {
    max-width: 950px;
    padding: 0 100px;
    margin: 0 auto;
}

.list-reset {
    margin: 0;
    padding: 0;
    list-style: none;
}

.flex {
    display: flex;
}

.title {
    margin: 0;
    padding: 0;
    color: var(--text-color);
    transition: all .3s ease;
}

.btn-reset {
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.descr {
    margin: 0;
}

/* app */
.app-container {
    position: relative;
    padding: 40px 0;
    height: 100vh;
    flex-direction: column;
}

.app-title {
    text-align: center;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.search-wrap {
    width: 75%;
    align-items: center;
}

.search-svg {
    margin-left: -40px;
}

.search-svg path {
    fill: var(--border);
    transition: all .3s ease;
}

.app-search {
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 8px 16px;
    width: 100%;
    height: 38px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.app-search:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--shadow);
}

.app-search:hover {
    box-shadow: 0 0 0 3px var(--shadow);
}

.app-select {
    border-radius: 30px;
    border: 1px solid var(--border);
    background-color: var(--border);
    color: var(--bg-color);
    padding: 0 10px;
    width: 100px;
    height: 38px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-select:hover {
    box-shadow: 0 0 0 3px var(--shadow);
}

.inputs-wrap {
    width: 100%;
    gap: 16px;
}

.edit-btn:hover svg path {
    stroke: #6C63FF;
    transition: stroke 0.2s ease;
}

.edit-btn:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.dlt-btn:hover svg path {
    stroke: #ff4757;
    transition: stroke 0.2s ease;
}

.dlt-btn:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* checkbox */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 60px;
    height: 38px;
    background-color: var(--border);
    transition: .5s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    border-radius: 50%;
    left: 10%;
    bottom: 18%;
    box-shadow: inset 8px -4px 0px 0px #f7f7f7;
    background: var(--border);
    transition: .5s;
}

input:checked+.slider {
    background-color: var(--border);
}

input:checked+.slider:hover {
    box-shadow: 0 0 0 3px var(--shadow);
}

input:checked+.slider:before {
    transform: translateX(100%);
    box-shadow: inset 15px -4px 0px 15px var(--primary-color);
}

.app-button {
    position: absolute;
    width: 50px;
    height: 50px;
    right: 0;
    bottom: 10%;
    border-radius: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 0 4px 0 var(--primary-color);
    transition: background-color .3s ease;
}

.app-button:hover {
    background-color: #534cc2;
}

.app-button::before,
.app-button::after {
    content: '';
    position: absolute;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.app-button::before {
    width: 20px;
    height: 2px;
}

.app-button::after {
    width: 2px;
    height: 20px;
}

.app-modal {
    padding: 18px 30px;
    border: 2px solid white;
    margin-top: 350px;
    border-radius: 16px;
    width: 600px;
    height: 289px;
    background: var(--bg-color);
    position: fixed;
    transition: all .3s ease;
    transform: scale(0.8) translateY(-50px);
    opacity: 0;
    display: block;
}

.app-modal[open] {
    opacity: 1;
    transform: scale(1) translateY(-50%);
}

.app-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.app-modal-wrap {
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.modal-title {
    margin-bottom: 25px;
    font-size: 24px;
    line-height: 100%;
}

.modal-input {
    width: 100%;
    height: 38px;
    border-radius: 5px;
    margin-bottom: 115px;
    padding: 10px;
    color: var(--text-color);
    background-color: var(--bg-color);
    border: 1px solid var(--border);
}

.modal-btn-wrap {
    width: 100%;
    justify-content: space-between;
}

.modal-btn-cancel {
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    padding: 10px 22px;
    font-size: 18px;
    background-color: var(--bg-color);
    color: var(--primary-color);
    transition: color .3s ease, border .3s ease;
}

.modal-btn-cancel:hover {
    color: #534cc2;
    border: 2px solid #534cc2;
}

.modal-btn-apply {
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    padding: 10px 22px;
    font-size: 18px;
    background-color: var(--primary-color);
    color: #f7f7f7;
    transition: background-color .3s ease;
}

.modal-btn-apply:hover {
    background-color: #534cc2;
}

.app-notes {
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 30px 115px;
}

.empty-svg {
    width: 200px;
    height: 200px;
    background-image: url("../img/emty.svg");
    background-repeat: no-repeat;
    background-size: contain;
}

.note-box {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 17px 0;
    z-index: 1; 
}

.note-box:not(:last-child) {
    border-bottom: 1px solid rgba(108, 99, 255, 0.3);
}

.note-wrap {
    align-items: center;
    gap: 17px;
}

.edit-btn {
    padding: 10px;
}

.dlt-btn {
    padding: 10px;
}

.note-descr {
    color: var(--text-color);
    font-weight: 500;
    font-size: 20px;
    transition: all .3s ease;
}

/* notes checkbox */
.cbx {
    position: relative;
    top: 1px;
    width: 27px;
    height: 27px;
    border: 1px solid var(--primary-color);
    border-radius: 3px;
    transition: background 0.1s ease;
    cursor: pointer;
    display: block;
}

.cbx:after {
    content: '';
    position: absolute;
    top: 4px;
    left: 9px;
    width: 7px;
    height: 14px;
    opacity: 0;
    transform: rotate(45deg) scale(0);
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transition: all 0.3s ease;
    transition-delay: 0.15s;
}

.lbl {
    margin-left: 5px;
    vertical-align: middle;
    cursor: pointer;
}

input[type="checkbox"]:checked~.cbx {
    border-color: transparent;
    background: #6871f1;
    animation: jelly 0.6s ease;
}

input[type="checkbox"]:checked~.cbx:after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.cntr {
    position: relative;
}

@keyframes jelly {
    from {
        transform: scale(1, 1);
    }

    30% {
        transform: scale(1.25, 0.75);
    }

    40% {
        transform: scale(0.75, 1.25);
    }

    50% {
        transform: scale(1.15, 0.85);
    }

    65% {
        transform: scale(0.95, 1.05);
    }

    75% {
        transform: scale(1.05, 0.95);
    }

    to {
        transform: scale(1, 1);
    }
}

.hidden-xs-up {
    display: none !important;
}