@import url('https://fonts.googleapis.com/css2?family=Chelsea+Market&display=swap');

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    position: relative;
    background-image: url(background.png); 
    background-size: cover; 
    background-repeat: no-repeat;
    min-height: 100vh; 
    margin: 0;
    font-family: 'Chelsea Market';
}

#background-flag {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    z-index: -1;
    pointer-events: none;
}

#desktop-pet {
    position: fixed;
    width: 150px;
    height: auto;
    left: 120px;
    bottom: -9px;
    z-index: 15;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

#desktop-pet.walking {
    animation: pet-walk 6s ease-in-out infinite alternate;
}

#desktop-pet.stopped {
    animation: none !important;
}

#desktop-pet.pet-dragging,
#desktop-pet-static.pet-dragging {
    cursor: grabbing;
    animation: none !important;
    animation-play-state: paused;
}

#desktop-pet-static {
    position: fixed;
    width: 150px;
    height: auto;
    z-index: 15;
    cursor: grab;
    user-select: none;
    touch-action: none;
    display: none;
}

@keyframes pet-walk {
    from {
        transform: translateX(-20px);
    }
    to {
        transform: translateX(20px);
    }
}

#welcome {
    top: 30%;
    left: 60%;
    text-align: center;
    --window-max-height: 400px;
}

.window {
    position: absolute;
    width: 464px;
    min-width: 464px;
    max-height: var(--window-max-height, calc(100vh - 40px));
    border: 4px solid #3a70b8;
    background: #3a70b8;
    display: flex;
    flex-direction: column;
    padding: 0;
    z-index: 9;
    box-sizing: border-box;
    overflow: hidden;
}

.windowheader {
    width: 100%;
    display: flex;
    align-items: center;
    cursor: grab;
    z-index: 10;
    background: #3a70b8;
    height: 20px;
}

.headertext {
    margin: 0;
    color: white;
    font-size: 18px;
    padding: 0 4px;
}

.windowcontent {
    padding: 24px 24px 20px;
    background: white;
    color: #2b3a4d;
    border-top: 2px solid #3a70b8;
    overflow-y: auto;
    min-height: 0;
    flex: 1 1 auto;
}

.windowcontent img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 18px;
}

.windowcontent p {
    margin: 0;
    line-height: 1.6;
}

.windowcontent ul {
    margin: 18px 0 0;
    padding-left: 20px;
}

.appicon {
    width: 64px;
    height: 64px;
}

#welcomelogo {
    width: 400px;
    height: auto;
}

#bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    justify-content: space-between;
    display: flex;
    align-items: center;
    height: 40px;
    background-color: #d9d9d9;
}

.background-logo-wrapper {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    pointer-events: none;
}

.background-logo {
    width: 700px;
    display: block;
    margin: 0 auto;
}

.background-logo-text {
    margin: -10px;
    color: #fff;
    -webkit-text-stroke: 1.5px black;
    font-size: 34px;
    pointer-events: none;
}

#apps {
    position: absolute;
    top: 57%;
    left: 40%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    z-index: 5;
}

.app {
    text-align: center;
    padding: 16px;
    width: fit-content;
    cursor: pointer;
}

.app p {
    margin: 0;
    color: #fff;
}