:root {
  --button-3d-light: 0, 0%, 100%; /* white */
  --button-3d-dark: 0, 0%, 40%; /* dark gray */
}

html {
    cursor: url("../assets/win98/cursors/arrow.cur"), auto;
    scroll-behavior: smooth;
}

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

a {
    cursor: url("../assets/win98/cursors/pointer.cur"), pointer;
}

body {
    background-color: lightskyblue;
    background-image: url('img/tiled-bg.gif');
    background-repeat: repeat;
    /* font-family: monospace; */
}

/* Centering the wrapper on the page */
.wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-width: 2px;
    border-style: solid;
    border-color: 
        hsl(var(--button-3d-light))  /* top */
        hsl(var(--button-3d-dark))   /* right */
        hsl(var(--button-3d-dark))   /* bottom */
        hsl(var(--button-3d-light)); /* left */
    box-shadow: 4px 4px #0A0A0A;
}

.layout1 {
    display: flex;
    gap: 20px;
    flex-direction: row;
    min-height: 875px;
    align-items: stretch;
}

.layout2 {
    display: flex;
    gap: 20px;
    flex-direction: row;
    align-items: stretch;
}
.content2 {
    flex: 1 1 0%;
}
.sidebar2 {
    flex: 3;
}

.sidebar {
    flex: 1 1 0%;
    min-width: 180px;
    max-width: 320px;
}

.content {
    flex: 3;
    background: teal;
    position: relative;
    padding-bottom: 40px;
    min-width: 0;
    min-height: 400px;
    overflow: hidden;
    display: block;
}

.content.window {
    background: teal;
}

.column {
    padding: 10px;
}

.banner {
  width: 100%;
  text-align: center;
}

.banner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


.icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
    margin-left: 3px;
}
.icon-Small {
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 4px;
    margin-left: 3px;
}

/* Marquee Scroller Webrings */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 100%;
}

.marquee-content {
    display: inline-block;
    width: max-content;
    animation: scroll-marquee 45s linear infinite
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-content img {
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes scroll-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}



/* Window Minimizing */
.window.minimized .window-body,
.window.minimized .status-bar {
    display: none;
}

.closed {
    display: none;
}

/* Add position and cursor for draggable tabs */
.tab {
    position: absolute; /* so we can drag */
    top: 100px;
    left: 100px;
    width: 500px;
}

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



/* -- Update Log -- */
.update-log {
    max-height: 125px;
    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;
}



/* -- About Me -- */
.about-me {
    position: absolute;
    top: 25px;
    left: 20%;
    width: 100%;
    max-width: 525px;
    margin: auto;
    box-sizing: border-box;
    padding: 10px;
}

.about-content {
    display: flex;
    align-items: center; /* Vertically centers the content */
    gap: 20px;
    margin-top: 10px;
    flex-wrap: nowrap; /* Prevent wrapping */
}

.about-text.status-bar-field {
    flex: 1;
    padding-left: 10px;
    padding-right: 10px;
}

.pfp {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border: 2px solid #DFDFDF;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    flex-shrink: 0;
}



/* -- 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%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Prevents image dragging */
.nodrag {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: auto;
}

/* -- flagcounter.me Styling -- */
.visitor {
    width: 100%;
    height: 100%;
    overflow: auto; /* Allow scrolling if the content overflows */
    display: flex;
    justify-content: center; /* Centers content horizontally */
    align-items: center; /* Centers content vertically */
    padding-right: 5px;
    box-sizing: border-box;
}

.visitor img {
    width: 95%;
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Prevent distortion */
}



/* -- Minesweeper -- */
#minesweeper-window {
    width: 100px;
    max-width: 100%;
    min-width: 320px;
}

#minesweeper-window iframe {
    width: 100%;
    border: none;
}



/* -- Sitemap Styling -- */
summary {
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: url("../assets/win98/cursors/pointer.cur"), pointer;
}

summary img {
    width: 16px;
    height: 16px;
}

li img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 3px;
}

ul.tree-view {
    list-style: none;
    padding-left: 1em;
}

ul.tree-view li {
    margin: 4px 0;
}


.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: silver;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 6px;
    border-top: 2px inset hsl(var(--button-3d-dark));
    border-right: 2px inset hsl(var(--button-3d-dark));
    border-left: 2px outset hsl(var(--button-3d-light));
    font-family: sans-serif;
    box-sizing: border-box;
}

.start-button {
    font-family: inherit;
    padding-top: 2px;
    padding-bottom: 2px;
    background: silver;
    border: 2px outset hsl(var(--button-3d-light));
    cursor: url("../assets/win98/cursors/pointer.cur"), pointer;
}

.start-button:active {
    border: 2px inset hsl(var(--button-3d-dark));
}

.taskbar-clock {
    padding: 2px 8px;
    border: 2px solid #DFDFDF;
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    font-size: 14px;
}

[role="tab"] a {
    cursor: url("../assets/win98/cursors/pointer.cur"), pointer;
}

.footer {
    margin-top: 10px;
}


/* Medium Screens (Tablets) */
@media (max-width: 768px) {
    .wrapper {
        max-width: 800px;
    }

    .layout1,
    .layout2 {
        flex-direction: column;
        min-height: 400px;
    }

    .sidebar {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .content {
        min-width: 0;
        min-height: 500px;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pfp {
        margin-bottom: 10px;
    }

}

/* Large Screens (Laptops) */
@media (min-width: 768px) and (max-width: 1024px) {
    .wrapper {
        max-width: 75%;
    }

    .layout1,
    .layout2 {
        flex-direction: row;
    }
}

/* Extra Large Screens (Desktops) */
@media (min-width: 1024px) {
    .wrapper {
        max-width: 75%;
    }

    .layout1,
    .layout2 {
        flex-direction: row;
    }
}