/* Background */
body {
    margin: 0;
    padding: 0;
    background: url('https://xmple.com/wallpaper/gradient-blue-linear-black-3840x2160-c2-00bfff-000000-a-45-f-14.svg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

/* Title Styling */
.title {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    color: white;
    text-shadow: 0px 4px 10px rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

/* Search Bar */
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-bar {
    width: 400px;
    padding: 12px;
    font-size: 18px;
    border-radius: 8px;
    border: 2px solid white;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    transition: 0.3s ease-in-out;
}

.search-bar:focus {
    border-color: cyan;
    box-shadow: 0px 0px 15px rgba(0, 255, 255, 0.8);
}

/* Menu */
.menu-container {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
}

.menu-title {
    font-size: 22px;
    font-weight: bold;
    color: white;
    margin-right: 20px;
}

.menu-options a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    margin: 0 10px;
    transition: 0.3s;
}

.menu-options a:hover {
    color: cyan;
    text-shadow: 0px 0px 10px cyan;
}

/* Screens */
.screen {
    display: none;
    width: 100%;
    text-align: center;
    padding-top: 80px;
}

/* Default Home Screen */
.screen.active {
    display: block;
}

/* Container Styling (Apps, Games, Settings) */
.apps-container, .games-container, .settings-container {
    width: 90%;
    max-width: 800px;
    margin: 80px auto;
    max-height: 75vh;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Grid Layout (Apps, Games, Settings) */
.apps-grid, .games-grid, .settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px; /* Reduced gap to make boxes almost touch */
    width: 100%;
    justify-items: center;
}

/* Empty Boxes (Apps, Games, Settings) */
.apps-box, .games-box, .setting-box {
    background: rgba(0, 0, 0, 0.7);
    padding: 80px 0; /* Adjusted padding to make boxes longer */
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);
    width: 100%; /* Make the boxes fill the grid cell */
}

.apps-box:hover, .games-box:hover, .setting-box:hover {
    background: rgba(0, 255, 255, 0.2);
}
