body {
    font-family: roboto, sans-serif;
    background-image: url(cloudy.svg);
    background-size: cover; 
    backdrop-filter: blur(1px); 
    margin: 0px; 
    padding: 0px;
    overflow: hidden;
}

html {
    overflow: hidden;
}

#topBar {
    position: absolute;
    display: flex;
    backdrop-filter: blur(1px);
    background-color: rgba(158, 158, 158, 0.23);
    color: #fff; 
    justify-content: space-around;
    width: 100%;
    font-size: 0.9em;
    z-index: 9999;
    margin: 0px 0;
    padding:0px;
    top: 0px;
    left: 0px;
    right: 0px;
}

.topBarElements {
    border-radius: 19px;
    background-color: rgba(227, 227, 227, 0.1);
    backdrop-filter: blur(1px); 
    padding: 4px 23px;
}

#welcome {
    position: fixed;
    top: 15%;
    left: 25%;
    width: 1000px;
    border-radius: 19px;
    background-image: url('mars.png');
    margin: 0px;
    color: white;
    pointer-events: auto;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: left;
    background-color: rgba(22, 22, 22, 0.425);
    height: 35px;
    border-radius: 19px 19px 0 0;
    padding: 0 12px;
}

.selected {
    border: 2px solid #fff;
    padding: 4px;
}

.appTitle {
    font-size: 1.5em;;
    font-family: monospace;
    background-color: #4e4e4eee;
    border-radius: 19px;
    padding: 10px;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
}

.window {
    position: fixed;
    width: 400px;
    border-radius: 19px;
    background-color: rgba(22, 22, 22, 0.425);
    color: white;
}

p {
    line-height: 1.4;
}

.windowContent {
    padding: 50px;
}

#welcome, #notes, #projects, #videos {
    padding-top: 35px;
    overflow: hidden;
}

#notes .windowContent {
    padding: 16px;
}   

.notesNav {
    display: flex;
    justify-content: space-between;   /*centers the arrows horizontally */
    align-items: center;        /* keeps them aligned vertically */
    gap: 12px;                  /* spacing between arrows */
    width: 100%;                /* ensures the flexbox spans full window width */
    margin-top: 12px;
    width: 100%;
}   

.notesNav button {
    background-color: #5399ef;
    color: white;
    border: none;
    padding: 4px 7px;
    border-radius: 12px;
    font-size: 1.2em;
    cursor: pointer;
    transition: 0.5s;
}

.notesNav button:hover {
    background-color: #3768a3ad;
}

#projects a {
    background-color: #5399ef;
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    transition: 0.7s;
}

#projects a:hover {
    background-color: #3768a3ad;
    text-decoration: underline;
}

#videoGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.videoThumb {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
    background-color: #222;
}

.videoThumb:hover {
    transform: scale(1.05);
    z-index: 2;
}

.videoThumb img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.videoThumb p {
    font-size: 0.8em;
    padding: 6px 8px;
    margin: 0;
}

#playerFrame iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 12px;
}

#backToGrid {
    background-color: #5399ef;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 10px;
}