/* ==================================================== 
                    Body CSS 
==================================================== */
body {
    background-color: #F5C400;
    color: #1A1A1A;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    padding: 20px;
    background-size: cover;
    height: 90vh;
}

/* ==================================================== 
                    Taskbar CSS 
==================================================== */
#taskbar {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    background-color: rgba(230, 178, 0, 0.92);
    color: #C4101A;
    margin: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    border-top: 3px solid #1A1A1A;
}

#welcomeopen {
    margin-left: 40px;
    font-weight: 750;
    padding: 8px;
    border-radius: 16px;
    cursor: pointer;
}

#timeElement {
    margin-right: 40px;
    font-weight: 750;
    padding: 8px;
    border-radius: 16px;
    cursor: pointer;
}

/* ==================================================== 
                    Window CSS 
==================================================== */
.window {
    background-color: #F5C400;
    border: 3px solid #1A1A1A;
    width: 600px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 3px 3px 0px #1A1A1A;
    overflow: hidden;
}

.windowheader {
    width: 100%;
    height: 50px;
    border-radius: 12px 12px 0 0;
    background-color: #E6B800;
    border-bottom: 2px solid #ad8800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-sizing: border-box;
    font-weight: bold;
    font-size: 14px;
    color: #1A1A1A;
}

.welcomeclose {
    text-align: right;
    cursor: pointer;
}

.window-content {
    padding: 20px;
}

.window-content h1 {
    margin: 5px;
    color: #C4101A;
    font-size: 48px;
    text-shadow: 2px 2px 0px #8B0000;
}

.window-content h2 {
    margin: 5px;
    color: #003580;
}

.window-content h3 {
    color: #1A1A1A;
}

.window-content p {
    font-size: 18px;
    margin: 15px;
    color: #2A2A2A;
}

/* ==================================================== 
                    Desktop Icons CSS 
==================================================== */
#desktopApps {
    padding-top: 30px;
}

.desktop-icon {
    text-align: center;
    padding: 12px;
    width: fit-content;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.desktop-icon:hover {
    background-color: rgba(230, 178, 0, 0.5);
}

.desktop-icon-img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    border: 3px solid #1A1A1A;
    box-shadow: 3px 3px 0px #1A1A1A;
    display: block;
    margin: 0 auto;
}

.desktop-icon-label {
    margin: 6px 0 0 0;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    text-shadow: 1px 1px 3px #000;
}

/* ==================================================== 
                    Image App CSS 
==================================================== */
#images {
    max-height: 500px; 
    overflow-y: auto;
}

.img-app {
    width: calc(50% - 10px);
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #1A1A1A;
    box-shadow: 3px 3px 0px #1A1A1A;
}

#image-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 16px;
}

#images::-webkit-scrollbar {
    width: 8px;
}

#images::-webkit-scrollbar-track {
    background: #E6B800;
    border-radius: 0 0 16px 0;
}

#images::-webkit-scrollbar-thumb {
    background: #1A1A1A;
    border-radius: 8px;
} 

#images::-webkit-scrollbar-thumb:hover {
    background: #C4101A;
}

/* ==================================================== 
                    Notes App CSS 
==================================================== */
#notes {
    width: 700px;
}

.notes-body {
    display: flex;
    height: 400px;
}

.notes-sidebar {
    width: 180px;
    background-color: #E6B800;
    border-right: 2px solid #C49900;
    padding: 8px;
    overflow-y: auto;
    flex-shrink: 0;
}

.notes-sidebar-item {
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    background-color: rgba(255,255,255,0.3);
    margin-bottom: 6px;
    margin-right: 10px;
    box-sizing: border-box;
}

.notes-sidebar-item:hover {
    background-color: rgba(255,255,255,0.5);
}

.notes-sidebar-title {
    margin: 0;
    font-weight: bold;
    font-size: 13px;
    color: #1A1A1A;
}

.notes-sidebar-date {
    margin: 2px 0 0 0;
    font-size: 11px;
    color: #555;
}

.notes-content {
    flex: 1;
    padding: 16px;
    font-family: Courier, monospace;
    font-size: 14px;
    color: #1A1A1A;
    outline: none;
    overflow-y: auto;
    line-height: 1.8;
    margin-left: 20px;
}

.notes-sidebar-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 150px;
    flex-shrink: 0;
}

.notes-sidebar {
    flex-grow: 1;
    overflow-y: auto;
}

.new-note-button {
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    border-top: 2px solid #C49900;
    background-color: #C4101A;
    color: white;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: background-color 0.15s;
}

.new-note-button:hover {
    background-color: #a10d15;
}

/* ==================================================== 
                    Calender CSS 
==================================================== */
#calendar {
    top: auto;
    left: auto;
    bottom: 70px;
    right: 20px;
    transform: none;
}

#calendarGrid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 12px;
}

.calendar-daylabel {
    font-weight: bold;
    font-size: 12px;
    color: #C4101A;
}

.calendar-day {
    padding: 8px 0;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.3);
    font-size: 13px;
}

.calendar-day.today {
    background-color: #C4101A;
    color: white;
    font-weight: bold;
}

/* ===================================================
                    Snake Game App CSS
=================================================== */
#snake-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#snakeCanvas {
    background-color: #E6B800;
    border: 3px solid #1A1A1A;
    border-radius: 8px;
}

#snakeScore {
    font-weight: bold;
    font-size: 16px;
    margin: 0;
}

#snakeStatus {
    font-size: 13px;
    color: #555;
    margin: 0;
}

.calendar-day.empty {
    background: none;
}
