@import url('https://fonts.googleapis.com/css2?family=Borel&display=swap');

:root {
    --primary-color: #53599A;
    --secondary-color: #6D9DC5;
    --accent-color1: #068D9D;
    --accent-color2: #80DED9;
    --passive-color: #AEECEF;
}

/* Global */
body {
    font-family: 'Times New Roman', Times, serif;
    background-color: white;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.nav-left {
    display: flex;
    gap: 2em;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-left li a {
    text-decoration: none;
    color: white;
    padding: 0.5em 1em;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.5em;
}
.nav-left li a:hover {
    background-color: var(--accent-color1);
    transform: scale(1.2);
    box-shadow: 2px 4px 8px rgba(0,0,0,0.2);
    border-radius: 10px;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
}
#logout-btn {
    background-color: var(--accent-color1);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 3px 8px;
    cursor: pointer;
}
#logout-btn:hover {
    background-color: var(--accent-color2);
}

/* Board */
#board {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    margin: 10px;
}
#board section {
    border-radius: 10px;
    padding: 10px;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.25);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    font-size: 16px;
    height: 100px;
    cursor: pointer;
}
#board section:hover {
    opacity: 90%;
    box-shadow: 2px 4px 8px rgba(57, 57, 57, 0.25);
}

/* Add Note Button */
#add-button-container {
    display: flex;
    justify-content: right;
    padding: 15px;
}
#openModalBtn {
    background-color: #ffd6a5;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.2s;
}
#openModalBtn:hover {
    transform: scale(1.1);
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: #fef3bd;
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    max-width: 600px;
    text-align: center;
    position: relative;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}
.close-btn:hover {
    color: red;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px;
    font-weight: bold;
}
footer a {
    color: white;
    text-decoration: none;
}
footer img {
    max-width: 35px;
    max-height: 35px;
    margin: 0 5px;
}

/* Responsive */
@media (max-width: 800px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-left {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }
    .nav-right {
        flex-direction: row;
        align-items: center;
    }
}
