/* --- Global & Font Setup --- */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body {
    background-color: #4A7A7A;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAAXNSR0IArs4c6QAAABJJREFUGFdjZEAD/c+ABYAkHAFy7e2+jgAAAABJRU5ErkJggg==");
    background-repeat: repeat;
    font-family: 'Geneva', 'VT323', sans-serif;
    font-size: 16px;
    margin: 0;
    overflow: hidden;
    color: #000;
    user-select: none;
}

/* --- Menu Bar --- */
#menu-bar {
    background: #ccc;
    border-bottom: 2px solid #000;
    width: 100%;
    height: 30px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.menu-left, .menu-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.menu-item {
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    cursor: default;
}

.menu-item:hover {
    background-color: #000;
    color: #fff;
}

.menu-item:hover .apple-menu img {
    filter: invert(1);
}

.apple-menu img {
    height: 16px;
    width: 16px;
    margin-top: -2px;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ccc;
    border: 2px solid #000;
    list-style: none;
    padding: 2px;
    margin: 0;
    min-width: 200px;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.4);
}

.menu-item:hover .dropdown {
    display: block;
}

.dropdown li a {
    display: block;
    padding: 4px 15px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown li:hover {
    background-color: #000;
}
.dropdown li:hover a {
    color: #fff;
}
.dropdown li.divider {
    height: 1px;
    background-color: #888;
    margin: 4px 0;
    padding: 0;
}
.dropdown li.divider:hover {
    background-color: #888;
}

#clock {
    font-size: 14px;
    padding-right: 10px;
}


/* --- Window Styling --- */
.window {
    position: absolute;
    background: #ccc;
    border: 2px solid #000;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.3);
    min-width: 450px;
    min-height: 200px;
    z-index: 10;
}

.window.active {
    z-index: 100;
}

.window.hidden {
    display: none;
}

#home-window { top: 60px; left: 80px; }
#services-window { top: 100px; left: 150px; width: 600px; }
#bio-window { top: 140px; left: 220px; width: 500px; }
#contact-window { top: 180px; left: 290px; }

.title-bar {
    background-image: repeating-linear-gradient(180deg, #bdbdbd, #bdbdbd 1px, #cecece 1px, #cecece 2px);
    height: 24px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    cursor: move;
    border-bottom: 2px solid #000;
    position: relative;
}

.title-text {
    font-weight: bold;
    margin: 0;
    padding: 0;
    text-align: center;
    flex-grow: 1;
}

.title-bar-buttons {
    display: flex;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.title-bar-buttons .button {
    width: 14px;
    height: 14px;
    border: 1px solid #000;
    margin-right: 5px;
    box-sizing: border-box;
    background: #ccc;
}
.title-bar-buttons .button.close {
    cursor: pointer;
}
.title-bar-buttons .button.close:hover {
    background: #aaa;
}


.window-content {
    padding: 10px 15px;
}
.window-content h1, .window-content h2, .window-content h3 {
    margin-top: 0;
}
.window-content hr {
    border: none;
    border-top: 2px solid #888;
    margin: 15px 0;
}

.simple-text {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}


/* --- Service Page Specific --- */
.service-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.service-item .icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    flex-shrink: 0;
}


/* --- Contact Form --- */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea {
    width: 95%;
    padding: 8px;
    border: 2px inset #999;
    background: #fff;
    font-family: 'Geneva', 'VT323', sans-serif;
    font-size: 16px;
}

.form-actions {
    text-align: right;
}

button {
    background-color: #ccc;
    border-style: outset;
    border-color: #dfdfdf #666 #666 #dfdfdf;
    border-width: 2px;
    padding: 5px 20px;
    font-family: 'Geneva', 'VT323', sans-serif;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

button:active {
    border-style: inset;
}