/* Whole page aesthetics */
html {
    cursor: url("../assets/win98/cursors/arrow.cur"), auto;
    scroll-behavior: smooth;
    height: 100%; /* allow embedded page to use full height when framed */
}

button {
    cursor: url("../assets/win98/cursors/arrow.cur"), auto;
}

/* Reset default body spacing when this page is embedded */
body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
}

/* prevent internal scrolling in embedded context; scaling will be applied if needed */
html, body {
    overflow: hidden;
}


/* Drag cursor on the title-bar */
.title-bar {
    cursor: url("assets/win98/cursors/drag.cur"), move;
}




/* Window 99 Content Homescreen*/
.content {
    background-color: teal;
    position: relative;
    /* Use full available height so when embedded it fills the object/iframe */
    height: 100%;
    min-height: 300px; /* fallback for small viewports */
    overflow: hidden;
    display: block;
    border: 2px solid #000;
}

/* allow content to be scaled down to fit the embed when necessary */
.content {
    transform-origin: top left;
}

/* Homescreen Icons (Grid Styling) */
.icons {
    width: 50px;
    height: 50px;
    /* background-color: lightblue; */
    /* border: 2px solid #3498db; */
    text-align: center;
    line-height: 15px;
    cursor: move;
    position: absolute;
}
.icon-name {
    text-decoration: none;
    color: white;
    margin-top: -10px;
    user-select: none;
    text-align: center;   
}

/* Debugging Grid */
.grid-cell {
    position: absolute;
    border: 1px dashed #ccc;
    pointer-events: none;
}

/* Selected icon styling (single-click) */
.icons.selected {
    background: #000080; /* deep blue */
    color: white;
    border-color: #000; /* pressed look */
}

.icons.selected .icon-name {
    color: #fff;
    background: transparent;
}

.icons .icon-name img {
    display: block;
    margin: 4px auto 2px auto;
}

/* Selection box styles */
.selection-box {
    position: absolute;
    border: 1px dashed #99c1f1;
    background: rgba(153, 193, 241, 0.3);
    pointer-events: none;
    /* z-index: 1000; */
    z-index: 5;
}




/* -- Resume -- */
.resume {
    position: absolute;
    top: 25%;
    left: 10%;
    margin: auto;
    box-sizing: border-box;
    width: 40%;
}

.resume-content {
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.scaled-resume {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* -- Update Log -- */
.update-log {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}


/* -- Contacts -- */
.contacts {
    position: absolute;
    top: 200px;
    width: 100%;
    max-width: 500px;
    margin: auto;
    box-sizing: border-box;
}
/* Contact Page Body */
.contacts-body {
    color: #333;
    /* font-family: 'Courier New', Courier, monospace; */
}

/* Flexbox container for picture and text */
.contacts-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contacts-content.status-bar-field {
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
}

/* Profile Picture */
.contact-pfp {
    width: 100px; 
    height: 100px;
    margin-right: 20px;
    border: 2px solid #DFDFDF;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
}

/* Contact Info Text */
.contact-text {
    max-width: 400px;
}

.contact-text p {
    font-size: 12px;
    line-height: 1.5;
}

/* Contact Links Section */
.contact-links {
    margin-top: 20px;
}

.contact-links ul {
    list-style: none;
    padding-left: 0;
}

.contact-links li {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.contact-links li img {
    width: 20px;
    height: 20px;
    margin-right: 7px;
}

.link-grid .button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 8px;
    cursor: url("../assets/win98/cursors/pointer.cur"), pointer;
}

/* Styling for contact icons */
.contact-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
}

/* Contact link hover effect */
.contact-link {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    align-items: center;
    justify-content: center;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 10px 20px; /* row gap, column gap */
    margin-top: 10px;
}


/* Windows 98-style resize handle */
.ui-resizable-se {
    width: 15px;
    height: 15px;
    right: 1px;
    bottom: 1px;
    background: silver;
    border-top: 1px solid #dfdfdf;
    border-left: 1px solid #dfdfdf;
    border-bottom: 1px solid #808080;
    border-right: 1px solid #808080;
    cursor: se-resize;
    /* cursor: url("assets/win98/cursors/drag.cur"), se-resize; */
    box-sizing: border-box;
}

.ui-resizable-se::after {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(135deg,
        transparent,
        transparent 2px,
        #808080 2px,
        #808080 3px
    );
}



.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: silver;
    display: flex;
    align-items: center;
    padding: 2px 4px;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    /* font-family: "Microsoft Sans Serif", sans-serif; */
    font-family: "Pixelated MS Sans Serif",Arial;
    box-sizing: border-box;
    z-index: 9999;
}

.start-button {
    font-family: inherit;
    height: 26px;
    padding: 2px 4px;
    background: silver;
    border: 2px outset #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    min-width: 60px;
    cursor: url("assets/win98/cursors/pointer.cur"), pointer;
}

.start-button img {
    width: 16px;
    height: 16px;
}

.start-button:active {
    border: 2px inset #808080;
    padding: 3px 3px 1px 5px;
}

.taskbar-entries {
    flex: 1;
    display: flex;
    gap: 2px;
    margin: 0 4px;
    height: 26px;
    overflow: hidden;
}

.taskbar-entry {
    background: silver;
    border: 2px outset #fff;
    padding: 2px 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    /* min-width: 50px; */
    max-width: 200px;
    font-size: 12px;
    cursor: url("assets/win98/cursors/pointer.cur"), pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskbar-entry.active {
    border: 2px inset #808080;
    padding: 3px 3px 1px 5px;
}

.taskbar-entry img {
    width: 16px;
    height: 16px;
    min-width: 16px;
}

.taskbar-clock {
    padding: 2px 8px;
    border: 2px solid #DFDFDF;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    font-size: 14px;
    min-width: 76px;
    text-align: center;
}