@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@100..900&display=swap');

* {
    box-sizing: border-box;
    font-family: outfit;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

h1 {
    font-family: 'Instrument Serif';
    font-size: 4rem;
    margin-bottom: 10px;
    text-transform: lowercase;
}

p {
    opacity: 0.9;
    margin-bottom: 30px;
}

h3 {
    padding: 1rem;
    margin-bottom: 1rem;
}

body {
    margin: 0;
    color: white;
    background: url("assets/backgrounds/nature morning.jpg") center/cover no-repeat;
    min-height: 100vh;
    overflow: hidden;
}

/* Hide all sections by default */
section {
    display: none;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: 0;
    transition: opacity 0.5s ease;
}

/* Show active section */
section.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* ----- LANDING ----- */
#landing {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#landing-icons {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    gap: 20px;
}

#landing-icons img {
    width: 26px;
    height: 26px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#landing-icons img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

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

button {
    background: rgba(128, 128, 128, 0.8);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: rgba(128, 128, 128, 0.6);
}

/* ----- ENTRY ----- */
#entry {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#entry-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    width: 300px;
    gap: 10px;
    padding: 1.5rem;
    border: none;
    border-radius: 8px;
}

#entry-content input,
#entry-content textarea {
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-family: inherit;
}

/* ----- ALBUM ----- */
#album {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 0 120px;
    overflow-y: auto;
}

#entries-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 1000px;
}

.entry-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.entry-box:hover {
    transform: translateY(-5px);
}

#album-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

body.morning {
    background-image: url("assets/backgrounds/nature morning.jpg");
}

body.noon {
    background-image: url("assets/backgrounds/nature noon.jpg");
}

body.afternoon {
    background-image: url("assets/backgrounds/nature afternoon.jpg");
}

body.night {
    background-image: url("assets/backgrounds/nature night.jpg");
}


body.morning,
body.noon,
body.afternoon,
body.night {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    transition: background 1s ease;
}


.highlighted-text {
    background: rgba(128, 128, 128, 0.6);
    padding: 5px;
    border-radius: 10px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: white;
    width: 90%;
    max-width: 600px;
    animation: fadeInUp 0.4s ease forwards;
}

.modal-content h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.modal-content label {
    display: block;
    margin-bottom: 0.5rem;
}
.modal-content input[type="range"] {
    width: 80%;
    margin-bottom: 1.5rem;
}
.modal-content button {
    margin: 1rem;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: background 0.5s ease;
}
.modal-content button:hover {
    background: rgba(255, 255, 255, 0.4);
}
.modal-content button.danger {
    background: rgba(255, 90, 90, 0.6);
}
.modal-content button.danger:hover {
    background: rgba(255, 90, 90, 0.8);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#info-section {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#info-section.visible {
    opacity: 1;
    pointer-events: all;
}

.info-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    color: white;
    width: 90%;
    max-width: 600px;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.info-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.info-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.info-content button {
    margin: 1rem;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    transition: background 0.5s ease;
}

.info-content button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}