* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #9f9f9f 100%);
    height: 100vh;
    overflow: hidden;
}

/* TOP BAR */
#topbar {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 8px 20px;
    z-index: 1000;
}

#topbar p {
    margin: 0;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
}

#timeElement {
    font-weight: 500;
    font-size: 14px;
}


.window {
    position: absolute;
    top: calc(50% - 200px);
    left: calc(50% - 250px);
    width: 500px;
    min-width: 300px;
    border: solid 1px rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.windowheader {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: grab;
}

.windowheader:active {
    cursor: grabbing;
}

.headertext {
    margin: 0;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.closebutton {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #EC6B5E;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.closebutton:hover {
    background-color: #d65a4e;
    transform: scale(1.1);
}

.windowcontent {
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
}

.windowcontent h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 24px;
}

.windowcontent h3 {
    margin-top: 20px;
    margin-bottom: 8px;
    font-size: 16px;
    color: #a5b4fc;
}

.windowcontent p {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 14px;
}

.windowcontent a {
    color: #4CAF50;
    text-decoration: none;
    transition: opacity 0.2s;
}

.windowcontent a:hover {
    opacity: 0.8;
    text-decoration: underline;
}


.windowcontent::-webkit-scrollbar {
    width: 8px;
}

.windowcontent::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.windowcontent::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.windowcontent::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


#dock {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.dock-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    user-select: none;
}

.dock-icon:hover {
    transform: scale(1.2) translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
}

.dock-icon:active {
    transform: scale(0.95);
}

.dock-separator {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 4px;
}

/*calc buttons not clicking so adding this*/
#calc .windowcontent div {
    cursor: pointer;
    user-select: none;
    transition: all 0.1s;
}
/*changes on hovering over buttons*/
#calc .windowcontent div:hover{
    transform: scale(0.95);
    opacity: 0.8;
}

/*how it changes when being clicked*/
#calc .windowcontent div:active{
    transform: scale(0.9);
}

/*new button stuff the previous ones werent working*/
#calculator button{
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

#calculator button:hover{
    background: rgba(255, 255, 255, 0.2);
}

/*window size was being weird so adding this*/
#calculator .windowcontent{
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#calculator #calc-display{
    height: 70px;
    flex-shrink: 0; /*display shud not shrink now*/
}

#calculator .windowcontent>div:last-child{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex-grow: 1;
}

#calculator button{
    width: 100%;
    height: 65px;
    font-size: 20px;
    padding: 0;
}

#calculator{ /*there shud be no scrolly thingy now*/
    max-height: none;
    overflow: visible;
}

#calculator .windowcontent{
    max-height: none;
    overflow: visible;
}

.color-swatch{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.2s;
}

.color-swatch:hover{
    transform: scale(1.15);
    border-color: white;
}