@font-face {
    font-family: 'MainFont';
    src: url('fonts/mainFont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #000;
    color: #39ff14;
    font-family: 'MainFont', monospace;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, p, li, th, td, button, input, select {
    font-family: 'MainFont', monospace;
}

.container {
    display: flex;
    flex-direction: row;
    width: 95%;
    max-width: 1600px;
    margin: 0 auto;
    gap: 20px;
    align-items: flex-start;
}

.upcoming-tasks-container,
.todo-container,
.calendar-container {
    flex: 1;
    max-width: 25%;
    padding: 20px;
    background-color: #000;
    border: 4px solid #39ff14;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.todo-container {
    flex: 2;
    max-width: 50%;
    padding: 20px;
    background-color: #000;
    border: 4px solid #39ff14;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.section {
    padding: 20px;
    border-right: 4px solid #39ff14;
    overflow-y: auto;
    flex: 1;
}

.section:last-child {
    border-right: none;
}

.calendar-container {
    flex: 1.2;
    max-width: 30%;
    padding: 20px;
    background-color: #000;
    border: 4px solid #39ff14;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

#calendar-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.calendar-grid-wrapper {
    width: 100%;
    overflow: hidden;
}

#calendar {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

#calendar th, #calendar td {
    padding: 10px;
    text-align: center;
    border: 2px solid #39ff14;
    box-sizing: border-box;
}

#calendar th {
    background-color: #000;
    color: #39ff14;
    font-size: 1em;
    font-weight: bold;
}

#calendar td {
    background-color: #000;
    color: #39ff14;
    font-size: 0.9em;
    font-weight: normal;
    transition: background-color 0.3s;
}

#calendar td.has-task {
    background-color: #222;
    border: 2px solid #39ff14;
}

#calendar td.has-task.due-soon {
    background-color: #111;
    animation: flashTask 1s infinite alternate;
}

@keyframes flashTask {
    0% {
        background-color: #111;
        box-shadow: 0 0 5px 2px rgba(57, 255, 20, 0.5);
    }
    100% {
        background-color: #222;
        box-shadow: 0 0 10px 4px rgba(57, 255, 20, 0.8);
    }
}

#calendar td:hover {
    background-color: #222;
}

.glow {
    animation: glowPulse 3s ease-in-out infinite;
    transition: box-shadow 0.3s ease-in-out;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px 1px rgba(57, 255, 20, 0.3);
    }
    50% {
        box-shadow: 0 0 15px 3px rgba(57, 255, 20, 0.6);
    }
}

.task-input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #000;
    border: 4px solid #39ff14;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 20px;
}

.task-input-container input[type="text"],
.task-input-container input[type="date"],
.task-input-container select {
    background-color: #000;
    color: #39ff14;
    border: 2px solid #39ff14;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    font-family: 'MainFont', monospace;
    font-size: 0.9em;
}

.task-input-container button {
    background-color: #000;
    color: #39ff14;
    border: 2px solid #39ff14;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'MainFont', monospace;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.task-input-container button:hover {
    background-color: #111;
}

#taskTooltip {
    position: absolute;
    display: none; /* Initially hidden */
    background-color: #000; /* Solid background */
    color: #39ff14; /* Neon green text */
    border: 2px solid #39ff14; /* Neon green border */
    padding: 10px;
    border-radius: 4px;
    font-family: 'MainFont', monospace;
    font-size: 0.9em;
    z-index: 1000; /* Ensure it appears above other elements */
    pointer-events: none; /* Prevent mouse events on the tooltip */
}

.task-buttons {
    display: flex;
    gap: 10px; /* Space between buttons */
}

.task-buttons button {
    background-color: #000; /* Match background to terminal look */
    color: #39ff14; /* Neon green text */
    border: 2px solid #39ff14; /* Neon green border */
    padding: 5px 10px;
    cursor: pointer;
    font-family: 'MainFont', monospace;
    font-size: 1.2em; /* Slightly larger for better visibility */
    transition: background-color 0.3s, transform 0.2s;
    border-radius: 4px; /* Optional: add a slight rounding for a modern touch */
}

.task-buttons button:hover {
    background-color: #111; /* Slightly different shade on hover */
    transform: scale(1.1); /* Slightly enlarge on hover for emphasis */
}
