body {
    font-family: "win98";
    margin: 0;
    overflow: hidden;
}

@font-face {
    font-family: 'win98';
    src: url(assets/windows-regular.ttf);
}

.wallpaper {
    position: absolute;
    inset: 0;
    background: url("assets/nyancat.gif") repeat;
    /*background-size: cover; */
    filter: saturate(2);
    z-index: -1;
}

.window-sections,
.window-info,
.window-login {
    position: absolute;
    margin: 40px auto;
    background-color: #C0C0C0;
    border: 2px solid #ffffff;
    box-shadow: inset -2px -2px #808080,
                inset 2px 2px #ffffff,
                2px 2px #000000;
    overflow: hidden;
}

.welcome {
    position: absolute;
    left: 450px; 
    top: -35px;
    transform: scale(1, 0.5);
}

.window-sections {
    top: 30px;
    left:200px;
    height: calc(100vh - 200px);
    max-height: 400px;
    width: 400px; 
}

#diaryWindow {
    top: 450px; 
    left: 200px;
    max-height: 250px;
}


.window-info {
    top: 30px;
    left: 700px;
    width: 1000px;
    height: calc(100vh - 200px);
    max-height: 700px;
}

.window-login {
    position: relative;
    width: 500px;
}

.window .content {
    padding: 15px;
    height: calc(100% - 30px);
    overflow-y: auto;
}

.title-bar {
    background: linear-gradient(to right, #000088, #067dcb);
    color: white;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-bar h1 {
    font-size: 14px;
    margin: 0;
}

.title-buttons button {
    width: 20px;
    height: 20px;
    margin-left: 2px;
    background-color: #C0C0C0;
    border: 2px solid #ffffff;
    box-shadow: inset -2px -2px #808080,
                inset 2px 2px #ffffff;
    cursor: pointer;
}

.win-button {
    width: 100px;
    height: 40px;
    margin-left: 2px;
    background-color: #C0C0C0;
    border: 2px solid #ffffff;
    box-shadow: inset -2px -2px #808080,
                inset 2px 2px #ffffff;
    cursor: pointer;
}

.section-box {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #E0E0E0;
    border: 2px solid #ffffff;
    box-shadow: inset -2px -2px #808080,
                inset 2px 2px #ffffff;
}

input[type="text"],
input[type="password"] {
    border: 2px inset #808080;
    padding: 5px;
    width: calc(100% - 30px);
    margin-bottom: 10px;
}

.screen {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.screen-content {
    position: absolute;
    inset: 0;
    transform: scale(0.95) perspective(1000px) rotateX(2deg);
    transform-origin: top center;
}

.desktop,
.bezel {
    position: absolute;
    width: 100vw;
    height: 100vh;
}

.bezel {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 20;
    mix-blend-mode: multiply; /* optional */
}

#overlay-black {
    position: absolute;
    background: black;
    z-index: 99;
    opacity: 1;
    transition: opacity 3s ease;
    cursor: pointer;
    width: 100vw;
    height: 100vh;
}
#power {
    position:absolute;
    top:50%;
    left:50%;
    transform: translate(-50%, -50%);
}

#overlay-black.fade-out {
    opacity: 0;
    pointer-events: none;
}

.desktop {
    position: absolute;
    inset: 0;
    z-index: 1;
    filter: saturate(1.5);
    inset: 20px;
}

.desktop-icon {
    position: absolute;
    left: 50px;
    color:white;

}
#explorerIcon {
    top: 80px;
}
#diaryIcon {
    top: 200px;
}

.scanlines {
    overflow: hidden;
    position: relative;
}
.scanlines:before,
.scanlines:after {
    display: block;
    pointer-events: none;
    content: "";
    inset: 0;
    position: absolute;
}
.scanlines:before {
    width: 100%;
    height: 2px;
    z-index: 91;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0.75;
    animation: scanline 6s linear infinite;
}
.scanlines:after {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 70%
    );
    background-size: 100% 4px;
}

@keyframes scanline {
    0% {
        transform: translate3d(0, 200000%, 0);
    }
}
div {
    margin: 0;
    padding: 0;
}
div.scanlines {
    position: absolute;
}
div .jpg {
    width: 100vw;
    height: 100vh;
    border: none;
}


.section-link {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: bold;
}

.section-link:hover {
    background-color: #000080;
    color: white;
    padding: 2px;
}

a {
    color: inherit;
    text-decoration: none;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.hidden {
    display: none;
}