body{
    margin: 0;
    background-image: url(../img/sfondo.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}
#welcome {
    border: solid;
    width: 360px;
    height: 200px;
    box-sizing: border-box;
    flex-direction: column;
    display: flex;
    min-height: 0px;
    padding: 6px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 22px;
    background-color: rgba(254, 254, 254, 0.5);
    border-color: rgba(0, 0, 0, 0.646);
}

.window {
    display: none;
    position: absolute;
    width: 360px;
    height: 200px;
    box-sizing: border-box;
    flex-direction: column;
    min-height: 0px;
    padding: 6px;
    left: 220px;
    top: 120px;
    transform: none;
    border-radius: 22px;
    background-color: rgba(254, 254, 254, 0.5);
    border: solid;
    border-color: rgba(0, 0, 0, 0.646);
    margin: 0;
    user-select: none;
    z-index: 10;
}

#musicWindow {
    left: 220px;
    top: 120px;
    transform: none;
}

.music-window {
    width: min(520px, calc(100vw - 32px));
    height: min(420px, calc(100vh - 96px));
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(229, 247, 255, 0.78), rgba(116, 164, 210, 0.58));
    box-shadow: 0 18px 45px rgba(12, 35, 70, 0.35), inset 0 1px rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
}

.app-window {
    width: min(520px, calc(100vw - 32px));
    height: min(420px, calc(100vh - 96px));
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 246, 226, 0.84), rgba(211, 177, 127, 0.62));
    box-shadow: 0 18px 45px rgba(70, 42, 12, 0.3), inset 0 1px rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
}

.app-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin-top: 10px;
    padding: 4px 16px 18px;
    color: #4b2d16;
    user-select: text;
}

.app-content h1 {
    margin: 8px 0 12px;
    color: #713b17;
    font-size: 2rem;
}

.app-content p {
    line-height: 1.55;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.image-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(70, 42, 12, 0.25);
}

.buttonapp.app-image {
    left: 120px;
}

.buttonapp.app-hobby {
    left: 224px;
}

.header {
    height: 35px;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 22px;
    flex: 0 0 10px;
    min-height: 25px;
    margin: -6px -6px 0px;
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(0, 0, 0, 0.646);
    box-sizing: border-box;
    cursor: grab;
}

.window-title {
    display: block;
    padding: 6px 12px;
    color: rgba(19, 42, 77, 0.9);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.music-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin-top: 10px;
    padding: 4px 16px 18px;
    color: #102b4b;
    user-select: text;
    scrollbar-color: rgba(32, 83, 145, 0.65) rgba(255, 255, 255, 0.28);
}

.music-content h1 {
    margin: 8px 0 12px;
    color: #123d70;
    font-size: 2rem;
}

.music-content p {
    line-height: 1.55;
}

.music-content li {
    margin: 6px 0;
}

.artist-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 14px 0 20px;
}

.artist-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.45);
}

.artist-card img {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(15, 40, 75, 0.3);
}

.artist-card span {
    overflow-wrap: anywhere;
    font-weight: 700;
}

.window:active {
    cursor: grabbing;
}

.welcome h1 {
    margin: 0 0 1px;
}
   
.welcome h2 {
    margin: 0;
}
.topbar {
    display: flex;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 50px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.close {
    cursor: pointer;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 8px;
    top: 4px;
    margin: 0;
    color: rgba(231, 50, 0, 0.799);
    font-size: 20px;
    line-height: 1;
    background-color: rgba(190, 255, 243, 0.644);
    border-radius: 22px;
    padding-right: 4px;
    padding-left: 4px;
}
#desktopApps {
    padding-top: 64px;
    padding-left: 16px;
}

.addCSS {
    background-color: rgba(75, 192, 255, 0.742);
    border-color: rgb(0, 52, 103);
    border-radius: 12px;
}

.buttonapp img.addCSS {
    border: 2px solid rgb(0, 52, 103);
    box-sizing: 32px;
}

.buttonapp {
    background: none;     
    border: none;         
    padding: 0;           
    font: inherit;
    color: inherit;       
    cursor: pointer;
    outline: inherit;
    position: absolute;
    top: 74px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    user-select: none;
    cursor: grab;
    z-index: 1;
}

.buttonapp:active {
    cursor: grabbing;
}
.app{
    width: 64px;
    height: 64px;
    display: block;
    box-sizing: border-box;
    background-color: rgba(254, 254, 254, 0.5);
    padding: 12px;
    border: 2px solid rgba(0, 0, 0, 0.644);
    border-radius: 12px;
    object-fit: contain;
}
.app.selected {
    width: 64px;
    height: 64px;
    display: block;
    box-sizing: border-box;
    background-color: rgba(154, 201, 223, 0.63);
    padding: 12px;
    border-radius: 18px;
    border: 2px solid rgba(43, 82, 255, 0.952);
    object-fit: contain;
}

.text{
    margin: 0;
    position: relative;
    text-align: center;
}
