body {
    overflow-x: hidden;
    font-family: 'font';
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "font";
    src: url("../fonts/font.otf");
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border: none;
    background: linear-gradient(135deg, rgba(0, 21, 36, 0.8), rgba(0, 65, 108, 0.8));
    z-index: -100;
}

.custom-tooltip {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    display: block;
    width: auto;
    height: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#apps {
    position: absolute;
    width: 80vw;
    max-width: 1000px;
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 40px 60px;
    left: 50%;
    top: 15vh;
    transform: translateX(-50%);
    padding: 30px;
}

.app {
    width: 100%;
    height: 150px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(97, 187, 255, 0.1), rgba(0, 145, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.app:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 145, 255, 0.2);
}

.app:hover::before {
    opacity: 1;
}

.applogo {
    max-width: 80px;
    max-height: 80px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    margin-bottom: 15px;
}

.app-name {
    font-size: 18px;
    color: white;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.app:hover .app-name {
    color: #61bbff;
}

.app:hover .applogo {
    transform: scale(1.1);
}

.app::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: white;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app:hover::after {
    opacity: 1;
}

.app.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.app {
    cursor: grab;
}

.app-container-title {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.app-container-title h1 {
    font-size: 36px;
    color: white;
    margin: 0;
    text-shadow: 0 0 15px rgba(0, 153, 255, 0.7);
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #ffffff, #61bbff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
