* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", sans-serif;
    font-size: 18px;
    background: linear-gradient(135deg, #ffe8d6, #fcd5ce, #fae1dd);
    color: #113066;
    line-height: 1.75;
    min-height: 100vh;
    background-attachment: fixed;
    background-size: cover;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e1e1e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-weight: 600;
    font-size: 1.1rem;
    color: #113066;
    font-family: "Helvetica Neue", sans-serif;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0;
    margin: 0;
    list-style: none;
    -webkit-overflow-scrolling: touch;
}

.nav-links a {
    padding: 0.75rem 1.2rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-links a:focus,
.nav-links a:hover {
    background-color: #e1e6fb;
    outline: none;
}

.profile-icon {
    height: 32px;
    width: auto;
    margin-left: 8px;
    display: block;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    .profile-icon {
        height: 28px;
        margin-left: 6px;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.95rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 0.4rem;
    }

    .nav-links a {
        padding: 0.5rem 0.8rem;
        font-size: 0.95rem;
    }

    .profile-icon {
        height: 24px;
        margin-left: 4px;
    }
}

main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

main.landing h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
}

main.landing > p {
    font-size: 1.2rem;
    text-align: center;
    color: #4a4a4a;
    font-weight: 500;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0 4rem;
    padding: 0 1rem;
}

.feature-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease;
    text-align: center;
}

.feature-card:hover {
    transform: scale(1.02);
}

.feature-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.feature-card p {
    padding: 1rem;
    font-size: 1.125rem;
    color: #444;
    font-weight: 500;
}

.info-box {
    background-color: rgba(168, 192, 231, 1);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    font-size: 1.1rem;
    line-height: 1.5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.info-box:hover {
    background-color: rgba(168, 192, 231, 1);
}

.info-box p {
    color: #113066 !important;
    font-weight: 500;
}

.toggle-details {
    margin-top: 1rem;
    background: none;
    border: none;
    color: #113066;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    padding: 0;
    font-size: 1rem;
}

.details-text {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-top: 0;
}

.info-box.active .details-text {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
}

button {
    background-color: #113066;
    color: white;
    padding: 0.75rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #2e4d93;
}

.login-form,
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin-top: 1rem;
}

input {
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

main.daily-rewinder h2,
main.library h2,
main.rewind h2,
main.login h2,
main.register h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

main.daily-rewinder textarea {
    width: 100%;
    height: 200px;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    resize: vertical;
    background: #ffffff;
    margin-bottom: 1rem;
}

.memory-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.memory-item {
    background-color: rgba(168, 192, 231, 1);
    padding: 16px;
    border-radius: 12px;
    position: relative;
    color: #113066;
    text-decoration: none;
}

.edit-button {
    display: inline-block;
    float: right;
    margin-top: 4px;
    background-color: white;
    color: #4a4a4a;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: 3px solid #4a4a4a;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.edit-button:hover {
    background-color: #f0f0f0;
    color: #333333;
    border-color: #333333;
}

.memory-title {
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.memory-content {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #223355;
}

.logo-image {
    height: 60px;
    width: auto;
    display: block;
}

main.library h2 {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #113066;
}

.library-intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #334165;
    max-width: 700px;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.auth-container {
    max-width: 480px;
    margin: 4rem auto;
    background: #f0f4ff;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    font-family: "Helvetica Neue", sans-serif;
    color: #113066;
}

.auth-container h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.auth-container label {
    display: block;
    margin: 1.25rem 0 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: #113066;
}

.auth-container input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    border: 1.5px solid #ccc;
    border-radius: 10px;
    transition: border-color 0.3s ease;
    font-family: "Helvetica Neue", sans-serif;
    color: #223355;
}

.auth-container input:focus {
    outline: none;
    border-color: #2e4d93;
    box-shadow: 0 0 6px rgba(46, 77, 147, 0.4);
}

.auth-container button {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    font-size: 1.25rem;
    background-color: #113066;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s ease;
    font-family: "Helvetica Neue", sans-serif;
}

.auth-container button:hover,
.auth-container button:focus {
    background-color: #2e4d93;
}

.auth-container .toggle {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #334165;
}

.auth-container .toggle a {
    color: #2e4d93;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-container .toggle a:hover,
.auth-container .toggle a:focus {
    color: #113066;
}



  