body {
    background-color: rgb(255, 253, 221);
    margin: 0;
}

#root {
    width: 100vw;
    height: 100vh;
}

.middle {
    position: relative;
}

.outer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    background-color: rgb(255, 246, 234);
    min-width: 266px;
    width: 35%;
    min-height: 200px;
    height: 700px;
    border-radius: 60px;
    box-sizing: border-box;
    border: 6px dashed rgb(210, 214, 224);
    padding: 10px;
    overflow: hidden;
}

.memo {
    display: flex;
    color: rgb(202, 127, 127);
    font: 2rem "Fira Sans", serif;
    font-weight: 900;
    margin: 10px 0;
    height: 55px;
    line-height: 2rem;
    justify-content: center;
    text-align: center;
    border-bottom: 6px dashed rgb(210, 214, 224);

}

.title {
    justify-content: space-between;
    position: relative;
    margin: 5px 0;
    color: rgb(202, 127, 127);
    height: 45px;
    background-color: rgba(253, 230, 199, 0.5);
    border-radius: 10px 100px / 120px;
    list-style: none;
    padding-right: 60px;
    display: flex;
    flex-grow: 1;
    align-items: center;

    &:hover {
        background-color: rgba(192, 252, 249, 0.192);
        color: rgb(150, 97, 97);
        & .check {
            color: rgb(129, 205, 133);
            border-radius: 50%;
            animation: none !important;
            transform: scale(1.2) !important;
        }
        & .save {
            transform: scale(1.2) !important;
        }
    }
}

.memo-content {
    flex-grow: 1;
    padding-right: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-wrapper {
    position: relative;

    &:hover {
        & .edit,
        & .delete {
            color: rgb(150, 97, 97);
            animation: rotate_button 0.5s infinite;
            transform: scale(1.1);
        }
    }
}

.edit-input {
    width: 100%;
    max-width: 100%;
    height: 2.5rem;
    font-size: 1rem;
    padding: 0 10px;
    border: none;
    border-radius: 9px;
    box-sizing: border-box;
    color: rgb(130, 60, 60);
    background-color: rgb(255, 255, 255);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.all-list {
    margin: 2px;
    padding: 2px;
    flex-direction: column;
    list-style-type: none;
}

.delete {
    position: relative;
    right: 0;
    display: flex;
    color: rgb(202, 127, 127);
    background-color: transparent;
    padding: 8px;
    margin: 1px;
    font-size: 25px;
    border: none;
    cursor: pointer;

    &:hover {
        background-color: rgba(172, 172, 172, 0.3) !important;
        border-radius: 50%;
        animation: none !important;
        transform: scale(1.1) !important;
    }

    &:active {
        background-color: rgba(228, 228, 228, 0.6) !important;
        animation: none !important;
        transform: scale(1) !important;
    }
}

.item-add-button {
    position: absolute;
    right: 0.6rem;
    border: none;
    font-size: 2.3rem;
    color: rgb(110, 140, 216);
    cursor: pointer;
    background-color: transparent;

    &:hover {
        color: rgb(62, 103, 207);
        transform: scale(1.1);
    }

    &:active {
        color: rgb(110, 140, 216);
        transform: scale(1);
    }
}

.item-add-button:disabled {
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.edit {
    position: relative;
    right: 0;
    display: flex;
    color: rgb(202, 127, 127);
    background-color: transparent;
    padding: 8px;
    margin: 1px;
    font-size: 25px;
    border: none;
    cursor: pointer;

    &:hover {
        background-color: rgba(172, 172, 172, 0.3) !important;
        border-radius: 50%;
        animation: none !important;
        transform: scale(1.1) !important;
    }
    &:active {
        background-color: rgba(228, 228, 228, 0.6) !important;
        animation: none !important;
        transform: scale(1) !important;
    }
}

.btn-group {
    display: flex;
    gap: 5px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    margin-left: auto;
}

.save {
    position: absolute;
    right: 10px;
    display: flex;
    color: rgb(250, 151, 151);
    background-color: transparent;
    padding: 8px;
    margin: 1px;
    font-size: 30px;
    border: none;
    cursor: pointer;

    &:hover {
        background-color: rgba(172, 172, 172, 0.3) !important;
        color: rgb(234, 134, 134);
        border-radius: 50%;
        animation: none !important;
        transform: scale(1.1) !important;
    }

    &:active {
        background-color: rgba(228, 228, 228, 0.6) !important;
        animation: none !important;
        transform: scale(1) !important;
    }
}

.check {
    right: 10px;
    display: flex;
    color: rgb(192, 228, 193);
    background-color: transparent;
    padding: 8px;
    margin: 1px;
    font-size: 20px;
    border: none;
    cursor: pointer;

    &:hover {
        color: rgb(143, 250, 150);
        border-radius: 50%;
        animation: none !important;
        transform: scale(1.1) !important;
    }

    &:active {
        background-color: rgba(221, 217, 217, 0.6) !important;
        animation: none !important;
        transform: scale(1) !important;
    }
}

.check.checked {
    color: rgb(132, 197, 136);
    animation: none !important;
    transform: scale(1) !important;
}

.back-button-wrapper {
    display: flex;
    justify-content: flex-end;
    padding: 10px 15px;
}

.back-button {
    font-size: 50px;
    color: rgb(250, 151, 151);
    background-color: transparent;
    border: none;
    cursor: pointer;

    &:hover {
        color: rgb(234, 134, 134);
        transform: scale(1.1);
    }

    &:active {
        transform: scale(1);
    }
}

.write {
    position: fixed;
    bottom: 0;

    width: calc(100% - 3rem);

    left: 50%;
    transform: translate(-50%);

    display: flex;
    justify-content: space-between;
    background-color: rgb(210, 214, 224);
    margin-top: 5px;
    height: 6rem;
    align-items: center;

    padding: 0 1.5rem;

    &:hover {
        background-color: rgba(210, 214, 224, 0.726);
        cursor: text;
    }
}

.completed {
    background-color : rgba(223, 202, 177, 0.5) !important;
}

.completed span {
    text-decoration: line-through rgb(150, 97, 97) 3px;
    color: rgb(150, 97, 97);
}

.font {
    color: rgb(150, 97, 97);
    font-weight: bold;
}

.login-text {
    color: rgb(150, 97, 97);
    width: calc(100% - 4px);
    max-width: 100%;
    height: 2.8rem;
    font-size: 1rem;
    padding: 0 10px;
    border: none;
    border-radius: 10px;
    box-sizing: border-box;
}

.text {
    width: 100%;
    max-width: 100%;
    height: 2.8rem;
    font-size: 1rem;
    padding: 0 10px;
    border: none;
    border-radius: 10px;
    box-sizing: border-box;
}

.login-text::placeholder,
.text::placeholder {
    color: rgba(150, 150, 150, 0.7);
    font-style: italic;
}

.login-error {
    left: 10px;
    color: red;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
}

.login-text.error,
.text.error,
.edit-input.error {
    border: 2px solid red;
    background-color: #fff0f0;
}

.field-error {
    margin-top: 4px;
    color: red;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex-grow: 1;
    position: relative;
}

.login-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 10px 0;
    flex-grow: 1;
    position: relative;
}

.login-btn {
    width: 100%;
    padding: 12px 4px;
    margin: 3px 0;
    font-size: 1rem;
    background-color: rgb(110, 140, 216);
    box-shadow: 1px 1px 5px rgba(0,0,0,0.2);
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;

    &:hover {
        background-color: rgb(62, 103, 207);
    }
}

.noLogin-btn {
    width: 100%;
    padding: 12px 4px;
    margin: 3px 0;
    font-size: 1rem;
    background-color: white;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.2);
    font-weight: bold;
    color: rgb(110, 140, 216);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;

    &:hover {
        background-color: rgba(225, 235, 251, 0.73);
    }
}

.signup-box {
    width: 100%;
    text-align: center;
    height: 100%;
}

.signup-message {
    font-size: 1rem;
    color: rgb(130, 60, 60);;
}

.signup-button-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
    margin-right: 10px;
}

.signup-btn {
    background-color: rgb(150, 97, 97);
    border: none;
    color: white;
    margin: 2px;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.2);
    transition: 0.3s ease;
}

.signup-btn:hover {
    background-color: rgb(130, 60, 60);;
}

@keyframes rotate_button {
    from {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(-10deg);
    }
    to {
        transform: rotate(10deg);
    }
}