
body {
    background-image: url('Images/bg.gif');
    background-size: cover;
    background-position: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

h1, h2 {
    text-align: center;
    color: #ffff00;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}


.window {
    position: absolute;
    width: 450px;
    height: 480px;
    display: none; 
    z-index: 10;
    background-color: #7b1fa2;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    
    resize: both; 
    overflow: hidden;
    border: 6px solid yellow; 
    min-width: 300px;
    min-height: 250px;
}

.TopBar {
    background-color: #ffff00;
    color: #000;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    cursor: move;
    font-weight: bold;
    user-select: none;
}

.window-title {
    font-size: 14px;
}

.box {
    padding: 15px;
    height: calc(100% - 34px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

img.a {
    display: block;
    margin: 0 auto;
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.notes-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

#notesArea {
    width: 100%;
    flex-grow: 1;
    resize: none;
    border-radius: 4px;
    border: 1px solid #ffff00;
    background-color: #310056;
    color: #fff;
    padding: 10px;
    font-family: monospace;
    box-sizing: border-box;
}

.TaskBar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%;  
    height: 50px;
    backdrop-filter: blur(8px); 
    background-color: rgba(74, 20, 140, 0.85);
    position: fixed;
    bottom: 0;
    left: 0;
    border-top: 3px solid #ffff00;
    z-index: 999;
    padding: 0 20px;
    box-sizing: border-box;
}

.taskbar-left #startbutton {
    font-weight: bold;
    cursor: pointer;
    color: #ffff00;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 4px;
    user-select: none;
}
.taskbar-left #startbutton:hover {
    background: rgba(255,255,0,0.2);
}

.taskbar-center {
    display: flex;
    gap: 15px;
}

.app-icon {
    width: 40px;
    height: 40px;
    border: 2px solid #ffff00;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.1s;
}
.app-icon:hover {
    transform: scale(1.1);
}
.app-icon img {
    width: 100%;
    height: 100%;
}

.taskbar-right {
    color: #ffff00;
    font-weight: bold;
}

.Start {
    width: 280px;
    height: 350px;
    position: fixed;
    bottom: 55px;
    left: 10px;
    background-color: rgba(49, 0, 86, 0.95);
    border: 2px solid #ffff00;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: none;
    z-index: 998;
}

.window-controls {
    display: flex;
    gap: 6px;
    position: absolute;
    right: 10px;
    top: 6px;
}

.minimize-btn, .maximize-btn, .close-btn {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    color: white;
    user-select: none;
    background-color: purple;
    transition: filter 0.2s, background-color 0.2s;
}

.minimize-btn:hover, .maximize-btn:hover {
    filter: brightness(0.8);
}
.close-btn:hover {
    background-color: red;
}

.window.maximized {
    width: 100vw !important;
    height: calc(100vh - 50px) !important;
    top: 0 !important;
    left: 0 !important;
    resize: none;
}

.calc-screen {
    background-color: #310056;
    color: #ffff00;
    font-size: 2rem;
    text-align: right;
    padding: 12px;
    border: 2px solid #ffff00;
    border-radius: 4px;
    margin-bottom: 15px;
    font-family: monospace;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    flex-grow: 1; 
}

.calc-btn {
    background-color: purple;
    color: white;
    border: 2px solid #ffff00;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.1s, transform 0.05s;
}

.calc-btn:hover {
    background-color: #9c27b0;
}

.calc-btn:active {
    transform: scale(0.95);
}

.calc-btn.op {
    background-color: #4a148c;
}

.calc-btn.clear {
    background-color: #b71c1c;
}

.calc-btn.equal {
    background-color: #00cd00;
    grid-row: span 2;
    height: 100%;
}