@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");

body {
    margin: 0;
    padding: 0;
    color: #1e1e1e;
    font-family: "Playfair Display", serif;
    font-size: 0.9rem;
    background-color: #fffefa;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
}

h2 {
    margin-top: 40px;
}

h3 {
    margin: 0;
}

a {
    text-decoration: none;
}

p {
    font-size: 0.9rem;
}

.error {
    background: #ff8c8c;
    color: #b31717;
    padding: 10px;
    border-radius: 10px;
}

nav {
    display: flex;
    gap: 20px;
    background-color: #fffefa;
    padding: 5px;
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
    border: 1px solid #404040;
}

nav a {
    color: #1e1e1e;
    text-decoration: none;
    padding: 5px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    border-radius: 10px;
}

nav a:hover {
    background-color: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.722);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn {
    background-color: transparent;
    border-radius: 10px;
    border: 1px solid #1e1e1e;
    color: #1e1e1e;
    padding: 10px;
    margin-top: 20px;
    min-width: 180px;
    font-weight: bold;
}

.btn:hover,
.btn-login {
    color: #fff;
    cursor: pointer;
    background-color: #1e1e1e;
}

.btn-view-entry {
    background-color: transparent;
    border: none;
    text-align: left;
    padding: 0;
    min-width: 100%;
}

.btn-view-entry:hover {
    cursor: pointer;
}

.btn-action {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 5px;
    margin-right: 20px;
    min-width: 20px;
}

.btn-icon {
    width: 20px;
}

input,
textarea,
.entries,
.entry {
    display: block;
    background-color: #ffffff;
    border-radius: 10px;
    border: none;
    padding: 10px;
    outline: none;
    font-family: "Playfair Display", serif;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #1e1e1e;
    margin-top: 10px;
    font-size: 0.9rem;
}

.grid-emotion .options {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 10px;
}

.grid-emotion input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.grid-emotion label {
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #1e1e1e;
}

.grid-emotion label:hover,
.grid-emotion label:has(input:checked) {
    background: #1e1e1e;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
}

.con-btn {
    margin-top: 20px;
}

.entries {
    padding: 20px;
    margin-bottom: 20px;
}

.entries h3 {
    margin: 0;
}

.entry {
    margin-top: 100px;
    padding: 20px;
}

.entry h3 {
    margin: 0;
}

.con {
    margin-top: 50px;
}

.con-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.con-time-capsule {
    background-color: #ffffff;
    border-radius: 10px;
    border: none;
    padding: 10px;
    border: 1px solid #1e1e1e;
    margin-top: 10px;
    padding: 20px;
}

textarea {
    height: 200px;
}

.img-profile {
    width: 100px;
    border-radius: 100%;
}

.wrapper {
    max-width: 890px;
    margin: 5px auto;
    padding: 10px;
}

.view-all {
    text-align: center;
    padding: 20px;
}

.view-all a {
    color: #1e1e1e;
    border: 1px solid #1e1e1e;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.7rem;
}

.filters {
    margin-bottom: 40px;
    display: flex;
}

.filters button {
    min-width: 100px;
}

.filters select {
    min-width: 100px;
    border: 1px solid #1e1e1e;
    background: transparent;
}

.text-wrapper {
    width: 70%;
    text-align: justify;
}

@media (max-width: 767px) {
    .entries {
        color: #1e1e1e !important;
    }

    .text-wrapper {
        width: 100%;
    }

    nav {
        gap: 60px;
        top: 25px;
        padding: 15px;
    }

    nav a {
        font-size: 0;
    }

    nav a i {
        font-size: 1rem;
    }

    .con-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .btn {
        min-width: 150px;
    }

    .wrapper {
        width: 85%;
    }

    input,
    textarea {
        font-size: 16px;
    }
}
