@font-face {
    font-family: "W95FA";
    src:
        url("assets/fonts/w95fa.woff2") format("woff2"),
        url("assets/fonts/w95fa.woff") format("woff"),
        url("assets/fonts/W95FA.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: "W95FA", sans-serif;
    background-color: #008080;
}

#desktop {
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url("assets/house_wallpaper.jpg");
    background-size: cover;
    background-position: center;
    padding: 20px;
    box-sizing: border-box;
}

.desktop-icon {
    width: 80px;
    margin: 10px;
    text-align: center;
    cursor: pointer;
    position: absolute;
}

.desktop-icon img {
    width: 50px;
    height: 50px;
}

.desktop-icon p {
    color: white;
    text-shadow: 1px 1px 2px black;
    margin-top: 5px;
    font-size: 14px;
}

.start-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #c0c0c0;
    border-top: 2px solid #ffffff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    padding: 0 5px;
    box-sizing: border-box;
    z-index: 9999;
}

#start-button {
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    font-family: "W95FA", sans-serif;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    padding: 2px 10px;
}
#start-button:active {
    border-style: inset;
}
#start-button img {
    width: 24px;
    margin-right: 5px;
}

/* --- My Computer Window Styles --- */
.window {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    min-height: 200px;
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    z-index: 100;
}
.window.open {
    display: flex;
    flex-direction: column;
}
.menu-bar {
    background-color: #c0c0c0;
    padding: 8px 6px;
    display: flex;
    flex-shrink: 0;
}

.menu-bar span {
    margin-right: 12px;
    font-size: 14px;
}

.status-bar {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    bottom: 0;
}
.inner-status-bar {
    display: flex;
    background-color: #c0c0c0;
    padding: 2px 4px;
    font-size: 14px;
}
.object_count {
    flex: 0 0 60%;
    margin-top: 2px;
    margin-right: 2px;
    padding: 4px 4px;
    border-left: 1px solid #808080;
    border-top: 1px solid #808080;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}
.expand {
    flex: 1;
    margin-top: 2px;
    padding: 4px 4px;
    border-left: 1px solid #808080;
    border-top: 1px solid #808080;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;

    background-image: url("assets/resize_handle.gif");
    background-repeat: no-repeat;
    background-position: 100% 100%;
    cursor: nwse-resize;
}

.title-bar {
    background-color: #000080;
    color: white;
    padding: 5px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    flex-shrink: 0;
}

.close-button {
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    font-weight: bold;
    width: 20px;
    height: auto;
    line-height: 16px;
    text-align: center;
    padding: 0;
}
.close-button:active {
    border-style: inset;
}

.content {
    margin: 0px 4px;

    box-sizing: border-box;
    border-left: 1px solid #808080;
    border-top: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    padding: 0;

    display: flex;
    flex-wrap: wrap;
    flex-grow: 1; /* This is the magic property! It tells the content to expand. */
    height: 0; /* Necessary for flex-grow to work correctly in all cases. */
    overflow: auto;
    align-content: flex-start;
}
.inner-content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    padding: 10px 4px;
    background-color: #ffffff;

    box-sizing: border-box;
    border-left: 1px solid #000000;
    border-top: 1px solid #000000;
    border-right: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
}

.window-icon {
    width: 70px;
    text-align: center;
    margin: 10px;
    cursor: pointer;
}
.window-icon img {
    width: 40px;
}
.window-icon p {
    font-size: 12px;
    margin-top: 5px;
    word-wrap: break-word;
}

.notepad-content {
    background-color: white;
    margin: 3px;
    min-height: 300px;
    font-size: 14px;
    white-space: pre-wrap;
    overflow-y: auto;
}

.lead-capture-content {
    display: block;
    text-align: center;
}
.lead-capture-content h3 {
    margin-top: 0;
}

/* --- UPDATED RULE --- */
#lead-capture-form input {
    font-family: "W95FA", sans-serif; /* Ensures typed text uses the correct font */
    width: 80%;
    padding: 8px;
    margin-bottom: 10px;
}

/* --- NEW RULE --- */
#lead-capture-form input::placeholder {
    font-family: "W95FA", sans-serif; /* Sets the placeholder font */
    color: #888; /* Classic gray placeholder color */
    opacity: 1; /* Ensures consistency across browsers */
}

#lead-capture-form button {
    padding: 10px 20px;
    font-family: "W95FA", sans-serif;
    font-size: 16px;
}

.purchase-content {
    display: block;
    text-align: center;
    padding: 20px 30px;
}

.purchase-content h3 {
    margin-top: 10px;
    font-size: 20px;
}

.purchase-content p {
    margin-bottom: 25px;
}

#purchase-button {
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    padding: 12px 25px;
    font-family: "W95FA", sans-serif;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

#purchase-button:active {
    border-style: inset;
}

.video-content {
    padding: 3px;
    background-color: black;
}

#clock {
    margin-left: auto; /* Pushes the clock to the far right */
    padding: 0 10px;
    height: 70%;
    border: 2px inset #ffffff;
    background-color: #c0c0c0;
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* Custom Error Modal Styling */
#error-modal-window {
    width: 350px;
    min-height: auto; /* Let the content define the height */
}

.error-modal-content {
    display: flex;
    align-items: center;
    padding: 20px;
}

.error-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
}

.error-ok-button-container {
    text-align: center;
    padding-bottom: 15px;
}

#error-ok-button {
    width: 80px;
    padding: 5px;
    font-family: "W95FA", sans-serif;
    font-size: 14px;
}

@media (max-width: 600px) {
    .desktop-icon {
        width: 70px;
    }
    .window {
        width: 95vw;
        max-height: 80vh;
        top: 45%;
    }
    .content {
        max-height: calc(80vh - 50px);
        overflow-y: auto;
    }
}
