*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    background-color: #000014;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.windows {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    z-index: 1;
}


#wallpaper {
    position: absolute;
    top: 50%;
    left: 73%; /* Position the cube to the left */
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Update the bar to use flexbox for centering */
#bar {
    position: absolute;
    top: 0;
    width: 100%;
    height: 40px;
    color: white;
    display: flex;
    justify-content: center; /* Center the content */
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 10;
}

/* Ensure the clock widget is centered */
#time-widget {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    background-color: #000014;
    border: 1px solid white;
    padding: 5px;
    cursor: pointer;
}

#weather-widget {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 16px;
    background-color: #000014;
    border: 1px solid white;
    padding: 5px;
}

#app-launcher-widget {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
    background-color: #000014;
    border: 1px solid white;
    padding: 5px;
    cursor: pointer;
}

/* Update the calendar widget to be centered at the top */
#calendar-widget {
    display: none;
    position: absolute;
    top: 50px; /* Changed from top: 50px to top: 10px */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    background-color: #000014;
    border: 1px solid white;
    padding: 10px;
    color: white;
    z-index: 11;
    text-align: center;
}

#calendar-widget .full-date {
    font-size: 18px;
    margin-bottom: 10px;
}

#calendar-widget table {
    width: 100%;
    border-collapse: collapse;
}

#calendar-widget th, #calendar-widget td {
    border: 1px solid white;
    padding: 5px;
    text-align: center;
}

#calendar-widget th {
    background-color: #1a1a3d;
}

#calendar-widget .today {
    background-color: #1a1a3d;
    color: #fff;
}

.window {
    height: auto;
    width: 200px;
    position: fixed;
    background-color: #000015;
    color: white;
    padding: 20px;
    border: 1px solid white;
    display: none;
    text-align: center;
    overflow: hidden;
    user-select: none;
    z-index: 50;
}

/* Update the app launcher popup to be on the right side of the screen */
#app-launcher-popup {
    display: none;
    position: absolute;
    top: 50px;
    right: 10px;
    width: 30%;
    background-color: #000014;
    border: 1px solid white;
    padding: 5px;
    color: white;
    z-index: 11;
    text-align: center;
}

#app-launcher-popup input {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    background-color: #000014;
    border: 1px solid white;
    color: white;
}

#app-launcher-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#app-launcher-popup li {
    padding: 5px;
    cursor: pointer;
}

#app-launcher-popup li:hover {
    background-color: #1a1a3d;
}




#test-window {
    width: 600px;
    height: 400px;
    position: fixed;
    background-color: #000014;
    color: #ffffff;
    padding: 0;
    display: none;
    overflow: hidden;
    user-select: none;
    z-index: 50;
}

.terminal {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.terminal-input {
    width: 100%;
    height: 100%;
    background-color: #000014;
    color: #ffffff;
    resize: none;
    font-family: monospace;
    font-size: 16px;
    padding: 10px;
    box-sizing: border-box;
    outline: none;
    overflow-y: auto;
    white-space: pre;
}