/* Reset en basis */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: black;
    color: #dadada;
    overflow: hidden;
}

/* Background video */
.back-vid {
    position: fixed;      /* fullscreen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;    /* vul scherm netjes */
    z-index: -1;          /* zet video achter alles */
    opacity: 0.7;         /* optioneel dim */
}

/* Startup Logo */
.title {
    position: fixed;
    top: 50%;
    transform: translate(250%, -50%);
    z-index: 10;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.title img.startuplogo {
    width: 450px;
}

/* Warning scherm */
.warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 20;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.warninghead {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* XMB menu */
#menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.xmb-main {
    position: relative;
    z-index: 10;          /* boven video */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

/* XMB Titles (Users, Settings, Games...) */
.xmb-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
}

.xmb-title img {
    width: 80px;
    margin-bottom: 5px;
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.xmb-title.active img {
    transform: scale(1.2);
    opacity: 1;
}

.titletext {
    font-size: 16px;
    color: #fff;
    display: none;
}

.xmb-title.active .titletext {
    display: block;
}

/* Submenu’s */
.xmb-contents {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.submenu {
    display: none; /* standaard verborgen */
    align-items: center;
    font-size: 14px;
    color: #fff;
    transition: opacity 0.2s ease;
}

.submenu img {
    width: 50px;
    margin-right: 5px;
}

/* Alleen actieve submenu zichtbaar */
.submenu.active {
    display: flex;
}

/* Hover effect (optioneel) */
.xmb-title:hover img {
    transform: scale(1.1);
    opacity: 1;
}

/* Clock */
.clock {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 20;          /* boven alles */
    color: #fff;
    font-family: sans-serif;
    font-size: 16px;
}

/* Submenu hidden by default */
.xmb-contents .submenu {
    display: none;
}

/* Active section submenu visible */
.xmb-title.active .xmb-contents .submenu {
    display: block;
}

/* Submenu hidden by default */
.xmb-contents .submenu {
    display: none;
    align-items: center;
    font-size: 14px;
    color: #fff;
}

/* Only show active submenu */
.xmb-title.active .xmb-contents .submenu.active {
    display: flex;
}

/* Optional: highlight active submenu */
.xmb-title.active .xmb-contents .submenu.active {
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 5px;
}