@font-face {
    font-family: "Geist";
    src: url("/fonts/Geist-VariableFont_wght.ttf") format("truetype");
}

:root {
    --primary-color: rgba(255, 255, 255, 0.9);
    --accent-color: rgba(255, 255, 255, 0.7);
    --bg-dark: rgba(10, 10, 10, 0.75);
    --glass-effect: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --icon-bg: rgba(0, 0, 0, 0.7);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes glowEffect {
    0% {
        border-color: var(--glass-border);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    50% {
        border-color: var(--primary-color);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.7);
    }

    100% {
        border-color: var(--glass-border);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
}

* {
    cursor: url("cursor/Oxy-Black-Normal.cur"), auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

.app-icon,
.window-control,
.os-logo {
    cursor: url("cursor/Oxy-Black-Link.cur"), pointer;
}

body {
    font-family: "Coolvetica", "Geist", sans-serif;
    height: 100vh;
    overflow: hidden;
    color: white;
    position: relative;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bgImage {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
}

.desktop {
    animation: fadeIn 1s ease-out;
}

.app-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    max-width: 800px;
}

.app-grid {
    display: flex;
    justify-content: center;
    gap: 35px;
    padding: 20px;
}

.submenu-grid {
    display: flex;
    justify-content: center;
    gap: 35px;
    padding: 20px;
    width: 100%;
    max-width: 800px;
}

.app-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out backwards;
    text-decoration: none;
    color: white;
}

.app-icon:nth-child(1) {
    animation-delay: 0.2s;
}

.app-icon:nth-child(2) {
    animation-delay: 0.4s;
}

.app-icon:nth-child(3) {
    animation-delay: 0.6s;
}

.app-icon:nth-child(4) {
    animation-delay: 0.8s;
}

.icon-box {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.highlight-animation {
    animation: glowEffect 0.8s ease-in-out;
}

.icon-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: var(--icon-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Default icon */
.icon-img {
    background-image: url("4raow.jpg");
}

/* Main menu icons */
#joinus-icon {
    background-image: url("joinus.png");
}

#nephurlignon-icon {
    background-image: url("nephurlignon.jpg");
}

/* FRNTRNRS submenu icons */
#frnt1-icon {
    background-image: url("binance.jpg");
}

#frnt2-icon {
    background-image: url("coinbase.jpg");
}

#frnt3-icon {
    background-image: url("xraow.jpg");
}

#frnt4-icon {
    background-image: url("cupseyy.jpg");
}
#frnt5-icon{
    background-image: url("7figs.jpg");
}

#frnt6-icon {
    background-image: url("50k.jpg");
}

#frnt9-icon {
    background-image: url("polyscan.jpg");
}

.icon-label {
    font-family: "Coolvetica", sans-serif;
    font-size: 16px;
    color: white;
    text-transform: none;
    letter-spacing: 0.5px;
}

.app-icon:hover .icon-box {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.submenu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Background removed to show content without dark overlay */
}

.submenu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.menu-header {
    position: fixed;
    top: 120px;
    left: 10px;
    z-index: 3;
    margin-bottom: 20px;
}

.back-button {
    font-family: "Coolvetica", sans-serif;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100px;
    text-align: center;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    text-transform: none;
    letter-spacing: 0.5px;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Media query for smaller screens */
@media (max-width: 768px) {

    .app-grid,
    .submenu-grid {
        flex-direction: column;
        gap: 25px;
    }
}