* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #070a12;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: rgb(232, 239, 246);
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    padding: 2rem;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

#greet {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

#search-form input {
    width: 100%;
    padding: 1.3rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    border: 2px solid #334155;
    background-color: #c1cadb;
    color: #061b30;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease;
}

#search-form input:focus {
    border-color: aqua;
}

.app-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
    padding: 2px;
    width: 100%
}

.app-card {
    display: flex;
    flex-direction: column;
    /* Stack icon over the text label */
    align-items: center;
    /* Center align content inside the card */
    justify-content: center;
    background-color: #614b98;
    border: 1px solid #334155;
    border-radius: 12px;
    width: 100px;
    height: 110px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    background-color: #334155;
    border-color: #38bdf8;
}

/* App Icon Image styling */
.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
}

/* App Label Text styling */
.app-name {
    font-size: 0.85rem;
    color: #edf4fd;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Truncates long app names cleanly with ... */
    width: 90%;
}

.widget-screen {
    position: fixed;
    top: 40%;
    right: 1rem;
    transform: translateY(-50%);
    width: 280px;
    height: 500px;
    background-color: rgb(68, 68, 182);
    color:rgb(224, 201, 201);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
    text-align: left;
    z-index: 10;
    overflow: hidden;
}

#widget-image {
    width: 100%;
    height: 70%;
    object-fit: cover;
    display: block;
}

.widget-caption {
    padding: 1.5rem;
}

@media (max-width: 1120px) {
    body {
        overflow: auto;
        padding: 2rem;
        flex-direction: column;
        gap: 2rem;
    }

    .widget-screen {
        position: static;
        transform: none;
        width: min(100%, 500px);
        height: 320px;
    }
}

#clock{
    font-size:2rm;
    font-weight: 400;
    position:relative;
    top:2px;
    padding-bottom:20px;
}

