html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: Helvetica, Noto Sans, sans-serif;
    background-image: url(./Morocco.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
}

#welcomeopen {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(0, 255, 221, 0.893);
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}

#pixelopen {
    position: absolute;
    top: 15px;
    left: 120px;
    padding: 6px 14px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(98, 16, 221, 0.893);
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
}

#window {
    border: 4mm ridge rgba(0, 255, 221, 0.893);
    width: 475px;
    box-sizing: border-box;
    position: absolute;
    background-color: #ffffff;
    padding: 0;
}

#pixel-window {
    border: 0.5rem solid rgba(98, 16, 221, 0.893);
    width: 540px;
    box-sizing: border-box;
    position: absolute;
    background-color: #ffffff;
    padding: 0;
    display: block;
}

#windowheader {
    height: 30px;
    background-color: rgba(0, 255, 221, 0.2);
    border-bottom: 2px solid rgba(0, 255, 221, 0.893);
    cursor: grab;
    user-select: none;
    width: 100%;
    display: flex;
    align-items: center;
}

#pixel-windowheader {
    height: 30px;
    background-color: rgba(105, 17, 213, 0.2);
    border-bottom: 2px solid rgba(70, 14, 175, 0.893);
    cursor: grab;
    user-select: none;
    width: 100%;
    display: flex;
    align-items: center;
}

#windowheader:active, #pixel-windowheader:active {
    cursor: grabbing;
}

.closebutton {
    width: 14px;
    height: 14px;
    cursor: pointer;
    background-color: #EC6B5E;
    border-radius: 50%;
    border: solid 1px rgba(0, 0, 0, 0.25);
    margin-left: 8px;
}

.window-content {
    padding: 20px;
}

.window-content h1 {
    margin-top: 0;
}

a {
    text-decoration: none;
    color: #0066cc;
}

a img {
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

div {
    margin-bottom: 5px;
}

.pfp {
    width: 80px;     
    height: 80px;           
    border-radius: 50%;    
    object-fit: cover;      
    border: 4px solid rgba(0, 255, 221, 0.893); 
    margin-bottom: 15px;    
}

.controls-panel {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 6px;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.picker-group {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

#colorPicker {
    cursor: pointer;
    border: 1px solid #ccc;
    background: none;
    width: 40px;
    height: 28px;
    padding: 0;
    border-radius: 4px;
}

#eraserBtn, #saveProjectBtn, #clearCanvasBtn, #loadProjectSelect {
    padding: 6px 8px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-family: Helvetica, sans-serif;
    white-space: nowrap;
    flex-grow: 1;
    flex-shrink: 1;
}

#eraserBtn.active {
    background-color: rgba(98, 16, 221, 0.2);
    border-color: rgba(98, 16, 221, 0.893);
}

#clearCanvasBtn:hover, #saveProjectBtn:hover, #loadProjectSelect:hover {
    background-color: #eaeaea;
}

#canvasGrid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: repeat(16, 1fr);
    gap: 1px;
    background-color: #ddd;
    width: 340px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    border: 1px solid #ccc;
}

.pixel-tile {
    background-color: #ffffff;
    cursor: pointer;
    user-select: none;
    margin: 0;
}
