@import url(base.css);

/* BACKGROUND */
.background {
    background-image: url('../assets/img/bg2.png');
    background-repeat: no-repeat; /* Prevents the image from tiling */
    background-size: cover; /* Stretches to cover the entire space */
    background-position: center; /* Centers the image within the container */
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: -1;
}

/* TOP BAR */
.header {
    background: var(--dark00);
    border-bottom: 2px solid var(--light00);
    height: fit-content;
    padding: 0.5vw;
}

/*Top bar titles*/
#titles {
    display: inline-flex;
    flex-direction: column; /* stack vertically */
    width: fit-content;
}

#titles:hover {
    font-style: italic;
    color: var(--magenta)
}

#header-title{
    font-family: VCRosdNEUE;
    font-size: 2.5vw;
    display: inline-block;
    height: 2.5vw;
    width: fit-content;
}

#header-subtitle{
    font-family: VCRosdNEUE;
    font-size: 1vw;
    display: inline-block;
    width: fit-content;
    height: 1vw;

}

/* MAIN LAYOUT */
.layout {
    display: flex;
    height: 10vw;
}

/* SIDEBARS */
.sidebar {
    width: 20%;
    background-color: transparent;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

/* MIDDLE CONTENT */
.middle-content {
    flex-grow: 1;
    padding: 1vw;
}

/* IFRAME */
.content {
    border: none;
    background: inherit;
    height: 75vh;
    width: 100%;
    display: block;
}

/* WINDOWS */
.window-border{
    padding: 0.5vw;
    margin-bottom: 1vw;
    background-color: var(--dark00);
}
.window-border, .window-title, .window-close{
    border: 0.15vw outset var(--light01);
}
.window-top-bar{
    display: flex;
}
.window-title, .window-close{
    display: flex;
    flex-direction: column;
    font-family: VCR OSD MONO;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}
.window-title{
    flex-grow: 1;
    margin-right: 0.5vw;
    font-size: 1.5vw;
    color: var(--light01);
}
.window-close{
    display: flex;
    flex-direction: column;
    background-color: var(--light01);
    justify-content: center;
    align-items: center;
    color: var(--dark00);
    font-size: 1.5vw;
    user-select: none;  
    width:1.7vw;
    aspect-ratio : 1 / 1;
    padding: 0.3vw;
    border: 0.3vw outset var(--light01);

}
.window-close:hover{
    cursor: pointer;
    background-color: var(--red);
    border: 0.3vw outset var(--red);
    color: var(--light01);
}
.window-close:active{
    cursor: pointer;
    background-color: var(--red);
    border: 0.3vw inset var(--red);
    color: var(--light01);
}
.window-content{
    font-family: Pixellari;
    padding: 1vw;
    padding-right: 1vw;
    padding-left: 0.1vw;
}
.window-content a{
    display: flex;
    justify-content: space-between;
    width: 95%;
}

.window-content li {
    color: var(--light01);
    text-decoration: none;
    display: flex;
}

.window-content li:hover {
    color: var(--red);
}

.window-content li::before {
    content: "";
    width: 7%;
}

.window-content li:hover::before {
    content: "> ";
    margin-right: 0;
    color: var(--red);
}

.window-content.closed {
  display: none;
}

/* CONTENT WINDOW */
.middle-content .window-border{
    padding: 0px;
    margin-bottom: 1vw;
    background-color: var(--dark01);
}
.middle-content .window-top-bar{
    margin: 0.5vw;
    margin-bottom: 0px;
}
.middle-content .window-content{
    padding: 0px;
}

/* Typing animation */
.typing {
    display: inline-block;
    line-height: 1;
    position: relative;
    white-space: nowrap;
    padding-right: 5px;
}

.typing::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 0;
    height: 0.8em; /* matches text height */
    width: 2px;
    background: currentColor;
    border-right: 2px solid ;
    opacity: 0;
}

.typing.active::after {
    opacity: 1;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}