:root {
            color-scheme: light dark;
            --bgImage: url('/back.jpg');
            --colorDark: #2a2a2a;
            --colorLight: #c6c6c6;
            --border-colorLight: #d3d3d3;
            --backColorLight:#f0f0f0;
            --backColorDark:#2a2a2a;
            --backColorMiddle:#424242;
        }


          @font-face {
            font-family: 'Monrope';
            src: url('Manrope.ttf') ;
            font-weight: normal;
            font-style: normal;
        }


        * {
            font-family: "Monrope";
            color: var(--colorDark);
            margin: 0;
            padding: 0;
            font-size: 18px;
        }

        input,
        textarea {
            outline: none;
            border: none;
        }

        body {
            /*  background-image: var(--bgImage);*/
            background-color: #f0f0f0;
            background-size: 300px;
            overflow: hidden;
        }

        hr {
            background-color: #80808040;
            height: 1px;
            border: none;
            margin: 5px 0;
        }

        .header {
            /*  background-image: var(--bgImage);*/
            display: flex;
            justify-content: center;
            align-items: center;
            height: 75px;
            opacity: 0.95;
            background-color: white;
        }

        .header__title {
            font-size: 24px;
            text-transform: uppercase;
        }

        .header__button {
            position: absolute;
            right: 10px;
            top: 15px;
            width: 45px;
            height: 45px;
            font-size: 20px;
            border: none;
            background-color: var(--backColorLight);
            color: white;
            border-radius: 50%;
        }

        .notes {
            padding: 10px 10px;
            display: flex;
            flex-direction: column;
            width: calc(100% - 20px);
            max-width: 1170px;
            margin: 0 auto;
           height: calc(100vh - 140px);
            overflow-y: auto;
        }

        .note__title {
            margin: 5px 0px;
            word-wrap: break-word;
        }

        .note {
            position: relative;
            margin: 7px 0;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            padding: 10px;
            border-radius: 5px;
            background-color: white;
        }

        .note__date {
            color: var(--colorLight);
            font-size: 14px;
        }

        .note__text {
            max-height: 240px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            text-overflow: ellipsis;
            margin-bottom: 15px;
            color: var(--colorLight);
            white-space: pre-wrap;
        }

        .note__text.--reader {
            display: block;
            max-height: none;
            color: var(--colorDark);
            font-size: 18px;
            overflow-y: auto;
          height: inherit;
        }

        .note__title.--reader {
            margin: 10px 0;
        }

        .editor {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            justify-content: center;
            align-items: center;
            background-color: var(--backColorLight);
        }

        .editor__form {
            display: flex;
            flex-direction: column;
            justify-content: start;
            align-items: center;
            width: 90%;
            height: 90%;
            padding: 10px;
            max-width: 1170px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            background-color: white;
        }

        .editor__title {
            margin: 25px 0;
        }

        .editor__input {
            width: 100%;
            max-width: 1170px;
            margin: 10px 0;
            padding: 5px;
            background-color: var(--backColorLight);
            border-radius: 3px;
        }

        .editor__input.--text {
            height: calc(100% - 235px);
            resize: none;
        }

        .buttons {
            display: flex;
            width: 350px;
            justify-content: space-around;
            align-items: center;
            margin-top: 25px;
        }

        .buttons__btn {
            width: 145px;
            height: 40px;
            border: none;
            border-radius: 3px;
        }
        
        .--label{
            width: 40px;
              text-align: center;
          align-content: center;
          border: 1px solid;
        }

        .--cancel {
            background-color: transparent;
            border: 1px solid var(--colorLight);
        }

        .--save {
            background-color: var(--colorDark);
            color: white;
        }

        .auth {
            position: fixed;
            top: 0;
            left: 0;
            z-index: 100;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100vw;
            height: 100vh;
            /*  background-image: var(--bgImage);*/
            background-color: var(--backColorLight);
        }

        .form {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 100%;
            max-width: 340px;
            height: 180px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            background-color: white;
        }

        .form__title {
           margin-bottom: 20px;
        }
        .form__text{
            font-size: 10px;
            margin: 10px 0;
        }
        .form__input {
            padding: 5px;
            font-size: 18px;
            background-color: var(--backColorLight);
            border-radius: 3px;
        }

        .reader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: none;
            justify-content: center;
            align-items: center;
            background-color: var(--backColorLight);
        }

        .reader__title {
            margin: 15px 0;
        }

        .reader__form {
            display: flex;
            flex-direction: column;
            justify-content: start;
            align-items: center;
            width: 90%;
            height: 90%;
            padding: 10px;
            max-width: 1170px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            background-color: white;
        }

        .reader__text {
            width: 100%;
            height: calc(100% - 115px);
        }

        .reader__btn {
            width: 145px;
            height: 40px;
            margin: 10px 0;
            border: none;
            border-radius: 3px;
        }


        @media screen and (max-width:400px) {
            .editor__input.--text {
                height: 360px;
            }

            .editor__title {
                margin: 25px 0;
            }
        }





        @media (prefers-color-scheme: dark) {
            * {
                color: var(--colorLight);
            }

            body,.auth, .reader,.editor,.form__input,.editor__input {
                background-color: var(--backColorDark);
            }

            .form,.header,.note,.reader__form,.editor__form{
                 background-color: var(--backColorMiddle);
            }
            .note__text.--reader{
                color:var(--colorLight);
            }
            .note__text{
                color: var(--colorDark);
            }
            
            .header__button{
                background-color: var(--backColorDark);
            }
        }