@font-face {
    font-family: 'AvenirNextLTPro';
    src: url('fonts/AvenirNextLTPro-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'AvenirNextLTPro';
    src: url('fonts/AvenirNextLTPro-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'AvenirNextLTPro';
    src: url('fonts/AvenirNextLTPro-It.otf') format('opentype');
    font-weight: normal;
    font-style: italic;
}

body {
    margin: 0;
    height: 100vh;
    background: url('assets/background.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'AvenirNextLTPro', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    max-width: 90%;
}

.note {
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
    width: 325px;
    height: 325px;
    padding: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.note-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.read-link {
    text-align: right;
    color: #333;
    text-decoration: underline;
    cursor: pointer;
}

.note.new::after {
    content: "NEW";
    color: white;
    background: crimson;
    font-size: 0.75rem;
    padding: 2px 6px;
    position: absolute;
    top: 5rem;
    right: 3.1rem;
    border-radius: 5px;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.2; }
    100% { opacity: 1; }
}

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    position: relative;
    font-family: 'AvenirNextLTPro', sans-serif;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.5rem;
    cursor: pointer;
}

.hidden {
    display: none;
}

.modal-content p {
    white-space: pre-wrap;
    font-family: 'AvenirNextLTPro', monospace;
    margin-top: 1rem;
}

/* Per-note-style text alignment */
.note-style-0 { background-image: url('assets/note-top-left.png'); padding: 6.5rem 3.5rem 4.5rem 4.5rem; }
.note-style-1 { background-image: url('assets/note-top-center.png'); padding: 6.5rem 2.5rem 4.5rem 4.5rem; }
.note-style-2 { background-image: url('assets/note-top-right.png'); padding: 6.5rem 3.5rem 4.5rem 4.5rem; }
.note-style-3 { background-image: url('assets/note-bottom-left.png'); padding: 6.5rem 3.5rem 4.5rem 4.5rem; }
.note-style-4 { background-image: url('assets/note-bottom-center.png'); padding: 6.5rem 3rem 4.5rem 4.5rem; }
.note-style-5 { background-image: url('assets/note-bottom-right.png'); padding: 6.5rem 3.5rem 4.5rem 4rem; }
