
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

h1 {
    font-family: 'Patrick Hand', serif;
    font-size: 75px;
    text-align: center;
}

h2 {
    font-family: 'Patrick Hand', serif;
    font-size: 35px;
    text-align: center;
}

.topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.25);
    color: white;
    padding: 0 16px;
}

.topbar p {
    font-family: 'Patrick Hand', Serif;
    margin: 16px 0;
    transition: transform 0.15s ease-out;
}

.welcome {
    margin: 0 16px;
    padding: 16px;
    background-color: white;
    border: solid;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.welcome img {
    width: 100px;
    height: auto;
    flex-shrink: 0;
}

.welcome h2 {
    flex: 1;
}

.desktop {
    display: grid;
    grid-template-columns: repeat(auto-fit, 100px);
    gap: 30px;
    padding: 32px;
    justify-content: center;
    align-items: start;
}

.desktop-app {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: scale 0.2s ease-in-out;
}

.desktop-app:hover {
    scale: 1.1;
}

.desktop-app img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.desktop-app p {
    font-family: 'Patrick Hand';
    color: white;
    text-shadow: 1px 1px 3px rgb(189, 182, 182);
    text-align: center;
    margin-top: 8px;
}

.window {
    position: fixed;
    width: min(700px, calc(100vw - 32px));
    height: min(500px, calc(100vh - 32px));
    background: white;
    border: 1px solid #888;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.window-titlebar {
    height: 40px;
    min-height: 40px;
    background: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    cursor: grab;
    user-select: none;
}

.window-titlebar:active {
    cursor: grabbing;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-titlebar button {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.window iframe {
    width: 100%;
    flex: 1;
    border: none;
    display: block;
}

@media (max-width: 600px) {
    h1 {
        font-size: 55px;
    }

    h2 {
        font-size: 26px;
    }

    .welcome img {
        width: 55px;
    }

    .welcome {
        gap: 8px;
    }

    .desktop {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px;
        padding: 16px;
    }

    .desktop-app {
        width: 100%;
    }

    .desktop-app img {
        width: 55px;
        height: 55px;
    }
}
