body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background-color: #F7F3EE;
    color: #243447;
    font-family: Arial, sans-serif;
}
main {
    flex: 1;
}

.Logo {
    width: 60px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-area span {
    font-weight: bold;
    color: #243447;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #D8CFC4;
    background-color: #FFFDFC;
}

.nav-links {
    display: flex;
    gap: 20px;
    padding-right: 10px;
}

.nav-links a {
    text-decoration: none;
    color: #243447;
    font-size: 16px;
    transition: 0.2s;
}

.nav-links a:hover {
    color: #B85C45;
}

.menu-toggle {
    display: none;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    text-align: center;
}

.brief {
    font-family: "Edu NSW ACT Cursive", cursive;
}

.brief h1 {
    color: #243447;
}

.brief p {
    color: #5F6F7A;
}

.home-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.button {
    text-decoration: none;
    color: #243447;
    border: 1px solid #B85C45;
    padding: 10px 20px;
    border-radius: 6px;
    background-color: #FFFDFC;
    transition: 0.2s;
}

.button:hover {
    background-color: #F1E2DA;
}

.get-started-button {
    background-color: #B85C45;
    color: white;
}

.get-started-button:hover {
    background-color: #9E4D39;
}

.footer {
    border-top: 1px solid #D8CFC4;
    padding: 8px 20px;
    font-size: larger;
    background-color: #FFFDFC;
    color: #5F6F7A;
}

.features-main {
    text-align: center;
}

.features-main h1 {
    color: #243447;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 80%;
    margin: 40px auto;
}

.features-card {
    border: 1px solid #DED5CC;
    border-radius: 12px;
    padding: 25px;
    min-height: 180px;
    font-family: "Lobster Two", cursive;
    font-size: larger;
    background-color: #FFFDFC;
    box-shadow: 0 4px 14px rgba(36, 52, 71, 0.07);
}

.features-card h2 {
    color: #B85C45;
}

.features-card p {
    color: #5F6F7A;
}

.more-text {
    font-size: larger;
    color: #A0703B;
}

.notes-main {
    text-align: center;
}

.notes-top {
    width: 80%;
    margin: 30px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-top h1 {
    margin: 0;
    color: #243447;
}

.new-note-button {
    text-decoration: none;
    background-color: #B85C45;
    color: white;
    padding: 15px 30px;
    border-radius: 6px;
    transition: 0.2s;
}

.new-note-button:hover {
    background-color: #9E4D39;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 80%;
    margin: 40px auto;
}

.notes-card {
    border: 1px solid #DED5CC;
    border-radius: 12px;
    padding: 25px;
    min-height: 180px;
    text-align: left;
    font-size: large;
    background-color: #FFFDFC;
    box-shadow: 0 4px 14px rgba(36, 52, 71, 0.07);
}

.notes-card h2 {
    color: #243447;
}

.notes-card p {
    color: #5F6F7A;
}

.note-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.note-form {
    width: 80%;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #243447;
    font-weight: bold;
}

.form-control {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    border: 1px solid #CFC4B8;
    border-radius: 6px;
    background-color: #FFFDFC;
    color: #243447;
    padding: 0 12px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: #B85C45;
}

#content {
    height: 300px;
    padding: 10px;
    text-align: left;
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.submit-button,
.cancel-button {
    padding: 15px 35px;
    font-size: 18px;
    border-radius: 6px;
}

.submit-button {
    border: none;
    background-color: #B85C45;
    color: white;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #9E4D39;
}

.cancel-button {
    text-decoration: none;
    color: #243447;
    border: 1px solid #B85C45;
    background-color: #FFFDFC;
}

.AddEdit-Notes {
    display: flex;
    justify-content: center;
    color: #243447;
}

.signin-main,
.signup-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.signin-main {
    padding-top: 60px;
}

.signup-main {
    padding-top: 40px;
}

.signin-main h1 {
    margin-bottom: 45px;
    color: #243447;
}

.signup-main h1 {
    margin-bottom: 35px;
    color: #243447;
}

.signin-form,
.signup-form {
    display: flex;
    flex-direction: column;
    width: 35%;
}

.signin-form {
    gap: 25px;
}

.signup-form {
    gap: 20px;
}

.signin-input,
.signup-input {
    height: 50px;
    padding: 0 15px;
    box-sizing: border-box;
    border: 1px solid #CFC4B8;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    background-color: #FFFDFC;
    color: #243447;
}

.signin-input:focus,
.signup-input:focus {
    outline: none;
    border-color: #B85C45;
}

.signin-button {
    height: 50px;
    margin-top: 15px;
    border: none;
    border-radius: 6px;
    background-color: #B85C45;
    color: white;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.signin-button:hover {
    background-color: #9E4D39;
}

.signup-text,
.signin-text {
    margin-top: 25px;
    color: #5F6F7A;
}

.signup-text a,
.signin-text a {
    text-decoration: none;
    color: #B85C45;
}

.signup-text a:hover,
.signin-text a:hover {
    text-decoration: underline;
}

.view-button {
    background-color: #B85C45;
    color: white;
}

.view-button:hover {
    background-color: #9E4D39;
}

.view-note-main {
    width: 80%;
    margin: 35px auto;
}

.back-link {
    display: inline-block;
    text-decoration: none;
    color: #B85C45;
    margin-bottom: 30px;
}

.back-link:hover {
    text-decoration: underline;
}

.full-note-card {
    border: 1px solid #DED5CC;
    border-radius: 12px;
    padding: 40px;
    min-height: 520px;
    text-align: left;
    display: flex;
    flex-direction: column;
    background-color: #FFFDFC;
    box-shadow: 0 4px 14px rgba(36, 52, 71, 0.07);
}

.full-note-header h1 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 32px;
    color: #243447;
}

.note-subject {
    color: #A0703B;
    margin-bottom: 25px;
}

.full-note-card hr {
    width: 100%;
    border: none;
    border-top: 1px solid #DED5CC;
    margin-bottom: 20px;
}

.full-note-content {
    font-size: 17px;
    line-height: 1.6;
    color: #384957;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.full-note-content p {
    margin-bottom: 15px;
}

.full-note-buttons {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.full-note-buttons .button {
    padding: 10px 20px;
}

.delete-button,
.delete-view-button {
    background-color: #FFFDFC;
    color: #9B3D30;
    border: 1px solid #C96A58;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border-radius: 6px;
    padding: 10px 20px;
}

.delete-button:hover,
.delete-view-button:hover {
    background-color: #F7E3DE;
}

@media (max-width: 900px) and (min-width: 501px) {

    .home-page .header {
        padding: 15px 30px;
    }

    .home-page .main-content {
        padding: 0 40px;
        min-height: 70vh;
    }

    .home-page .brief h1 {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        font-size: 36px;
    }

    .home-page .brief p {
        font-size: 18px;
    }

    .home-page .home-buttons .button {
        min-width: 150px;
        padding: 15px 25px;
    }

    .mynotes-page .header {
        padding: 15px 30px;
    }

    .mynotes-page .notes-main {
        width: 92%;
        margin: 25px auto;
    }

    .mynotes-page .notes-top {
        width: 100%;
    }

    .mynotes-page .notes-top h1 {
        font-size: 32px;
    }

    .mynotes-page .new-note-button {
        padding: 15px 30px;
    }

    .mynotes-page .notes-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin: 20px auto;
    }

    .mynotes-page .notes-card {
        min-height: 250px;
    }

    .viewnote-page .header {
        padding: 15px 30px;
    }

    .viewnote-page .view-note-main {
        width: 90%;
    }

    .viewnote-page .full-note-card {
        min-height: 500px;
        padding: 30px;
    }
}

@media (max-width: 500px) {

    .home-page .header,
    .mynotes-page .header,
    .viewnote-page .header {
        padding: 15px 20px;
    }

    .home-page .Logo,
    .mynotes-page .Logo,
    .viewnote-page .Logo {
        width: 50px;
    }

    .home-page .logo-area,
    .mynotes-page .logo-area,
    .viewnote-page .logo-area {
        gap: 10px;
    }

    .home-page .logo-area span,
    .mynotes-page .logo-area span,
    .viewnote-page .logo-area span {
        font-size: 22px;
        font-weight: bold;
    }

    .home-page .nav-links,
    .mynotes-page .nav-links,
    .viewnote-page .nav-links {
        display: flex;
        gap: 10px;
        padding-right: 0;
    }

    .home-page .nav-links a,
    .mynotes-page .nav-links a,
    .viewnote-page .nav-links a {
        font-size: 12px;
    }

    .home-page .main-content {
        padding: 0 25px;
        min-height: 70vh;
    }

    .home-page .brief h1 {
        font-size: 32px;
        line-height: 1.15;
        margin-bottom: 30px;
    }

    .home-page .brief p {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 30px;
    }

    .home-page .home-buttons {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .home-page .home-buttons .button {
        padding: 18px;
        font-size: 20px;
    }

    .home-page .footer {
        font-size: 14px;
        padding-left: 20px;
    }

    .mynotes-page .notes-main {
        width: 92%;
        margin: 25px auto;
    }

    .mynotes-page .notes-top {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .mynotes-page .notes-top h1 {
        text-align: left;
        font-size: 32px;
        margin: 0;
    }

    .mynotes-page .new-note-button {
        padding: 18px;
        text-align: center;
        font-size: 20px;
    }

    .mynotes-page .notes-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px auto;
    }

    .mynotes-page .notes-card {
        min-height: 280px;
        padding: 25px;
    }

    .mynotes-page .notes-card h2 {
        font-size: 24px;
    }

    .mynotes-page .note-buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .mynotes-page .footer {
        font-size: 14px;
        padding-left: 20px;
    }

    .viewnote-page .view-note-main {
        width: 92%;
        margin: 25px auto;
    }

    .viewnote-page .full-note-card {
        min-height: 500px;
        padding: 25px;
    }

    .viewnote-page .full-note-header h1 {
        font-size: 28px;
    }

    .viewnote-page .full-note-content {
        font-size: 16px;
    }

    .viewnote-page .full-note-buttons {
        flex-direction: column;
    }

    .viewnote-page .full-note-buttons .button,
    .viewnote-page .delete-view-button {
        text-align: center;
    }

    .signin-form,
    .signup-form {
        width: 85%;
    }

    .features-grid {
        width: 90%;
        grid-template-columns: 1fr;
    }

    .note-form {
        width: 90%;
    }
}