/* Global Styles */
body {
    margin: 0;
    padding: 0;
    background-color: #008080; /* Classic Windows teal */
    font-family: "MS Sans Serif", "Pixelated MS Sans Serif", Arial, sans-serif;
    color: #000080;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    opacity: 0.3; /* 70% transparent = 30% opaque */
    z-index: -1;
    pointer-events: none;
}


/* Content container */
.container {
    max-width: 800px;
    width: 95%;
    margin: 20px auto;
    background-color: #add8e6; /* Light blue */
    border: 2px solid #000080;
    border-radius: 0;
    box-shadow: 5px 5px 0 #000080;
    padding: 5px;
    box-sizing: border-box;
}


/* Windows 98 Window styles */
.window {
    background-color: #c0c0c0;
    border: 2px outset #ffffff;
    box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #dfdfdf, inset -2px -2px grey, inset 2px 2px #fff;
    margin-bottom: 0;
}


.window-title {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    font-weight: bold;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.window-title-text {
    margin-left: 3px;
}


.window-buttons {
    display: flex;
}


.window-button {
    width: 16px;
    height: 14px;
    background-color: #c0c0c0;
    border: 1px outset white;
    margin-left: 2px;
    font-size: 9px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}


.window-content {
    padding: 10px;
    background-color: #ece9d8;
    border: 2px inset #fff;
    margin: 2px;
}


/* Navigation Bar */
.navbar {
    display: flex;
    background-color: #c0c0c0;
    border-top: 1px solid #ece9d8;
    border-left: 1px solid #ece9d8;
    border-right: 1px solid #5a5a5a;
    border-bottom: 1px solid #5a5a5a;
    padding: 3px;
    justify-content: space-between;
    flex-wrap: wrap;
}


.nav-button {
    background-color: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #5a5a5a;
    border-bottom: 1px solid #5a5a5a;
    padding: 4px 10px;
    margin: 2px;
    cursor: pointer;
    text-decoration: none;
    color: #000080;
    font-size: 12px;
    display: inline-block;
}


.nav-button:active {
    border-top: 1px solid #5a5a5a;
    border-left: 1px solid #5a5a5a;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}


/* Status bar */
.status-bar {
    display: flex;
    background-color: #c0c0c0;
    border-top: 1px solid #5a5a5a;
    border-left: 1px solid #5a5a5a;
    border-right: 1px solid #ece9d8;
    border-bottom: 1px solid #ece9d8;
    padding: 2px 5px;
    font-size: 12px;
    margin-top: 3px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.status-bar img {
    width: auto;
    height: auto;
    max-width: 88px;
    max-height: 31px;
    aspect-ratio: 88 / 31;
    object-fit: contain;
}

@media (max-width: 600px) {
    .status-bar img {
        max-width: calc(88px * 0.75);
        max-height: calc(31px * 0.75);
    }
}

@media (max-width: 400px) {
    .status-bar img {
        max-width: calc(88px * 0.5);
        max-height: calc(31px * 0.5);
    }
}


/* Taskbar */
.taskbar {
    background-color: #c0c0c0;
    border-top: 1px solid #808080;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 28px;
    margin-top: auto;
    width: 100%;
    position: relative;
}


.start-button {
    display: flex;
    align-items: center;
    background-color: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #5a5a5a;
    border-bottom: 1px solid #5a5a5a;
    padding: 1px 5px;
    height: 22px;
    cursor: pointer;
}


.start-button:active {
    border-top: 1px solid #5a5a5a;
    border-left: 1px solid #5a5a5a;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}


.start-button-text {
    margin-left: 3px;
    font-weight: bold;
}


.taskbar-time {
    background-color: #c0c0c0;
    border-top: 1px solid #5a5a5a;
    border-left: 1px solid #5a5a5a;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    padding: 1px 5px;
    height: 22px;
    font-size: 11px;
    display: flex;
    align-items: center;
}

.taskbar-footer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: #000080;
    text-align: center;
    pointer-events: none;
}


/* Desktop Icons */
.desktop-icons {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 10px;
    gap: 15px;
}


.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75px;
    cursor: pointer;
    padding: 5px;
}


.desktop-icon:hover {
    background-color: rgba(173, 216, 230, 0.5);
}


.icon-image {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
    background-color: #4682b4;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    border: 1px solid #000080;
}


.icon-text {
    text-align: center;
    color: white;
    font-size: 12px;
    text-shadow: 1px 1px 1px #000080;
}


/* Ocean-themed elements */
.ocean-divider {
    height: 12px;
    background: repeating-linear-gradient(
        45deg,
        #4682b4,
        #4682b4 10px,
        #5f9fbf 10px,
        #5f9fbf 20px
    );
    margin: 10px 0;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #000080;
}


.fish-animation {
    position: relative;
    height: 50px;
    overflow: hidden;
    margin: 10px 0;
    background-color: #add8e6;
    border: 1px inset #fff;
}


.fish {
    position: absolute;
    font-size: 20px;
    animation: swim 15s linear infinite;
    top: 15px;
}


@keyframes swim {
    0% { left: -30px; }
    100% { left: 100%; }
}


.bubbles {
    position: absolute;
    font-size: 14px;
    animation: rise 8s linear infinite;
    left: 30px;
    bottom: -20px;
}


@keyframes rise {
    0% { bottom: -20px; opacity: 0.8; }
    100% { bottom: 50px; opacity: 0; }
}


/* Content Sections */
.content-section {
    margin-bottom: 15px;
}


.content-section h3 {
    margin-top: 0;
    color: #000080;
    border-bottom: 1px solid #4682b4;
    padding-bottom: 3px;
}


.content-section p {
    margin: 5px 0;
    line-height: 1.4;
}


/* Ocean gallery */
.gallery {
    column-count: 3;
    column-gap: 10px;
    margin-top: 10px;
}

@media (max-width: 800px) {
    .gallery {
        column-count: 2;
    }
}

@media (max-width: 500px) {
    .gallery {
        column-count: 1;
    }
}

.gallery-item {
    display: inline-block;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 10px;
    break-inside: avoid;
}


/* Guestbook form */
.guestbook-form {
    margin-top: 10px;
}


.form-row {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
}


.form-row label {
    width: 100px;
    display: inline-block;
}


.form-row input, .form-row textarea {
    font-family: "MS Sans Serif", Arial, sans-serif;
    border: 2px inset #fff;
    background-color: white;
    padding: 2px;
    flex: 1;
    min-width: 200px;
}


.form-row textarea {
    height: 80px;
}


.submit-button {
    background-color: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
    border-right: 1px solid #5a5a5a;
    border-bottom: 1px solid #5a5a5a;
    padding: 4px 10px;
    cursor: pointer;
    margin-top: 5px;
}


.submit-button:active {
    border-top: 1px solid #5a5a5a;
    border-left: 1px solid #5a5a5a;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
}


/* ASCII art */
.ascii-art {
    font-family: monospace;
    white-space: pre;
    font-size: 12px;
    color: #000080;
    line-height: 1.2;
    margin: 10px 0;
    overflow-x: auto;
}


/* Media queries for responsiveness */
@media (max-width: 600px) {
    .container {
        width: 95%;
        margin: 10px auto;
    }
    
    .gallery-item {
        width: calc(50% - 10px);
    }
    
    .desktop-icons {
        justify-content: center;
    }
    
    .navbar {
        justify-content: center;
    }
}


/* Content tabs system */
.tab-content {
    display: none;
}


.tab-content.active {
    display: block;
}


/* "Under construction" gif simulation */
.under-construction {
    display: inline-block;
    background-color: #FFD700;
    color: black;
    padding: 3px 10px;
    font-weight: bold;
    border: 1px solid black;
    margin: 10px 0;
    animation: blink 1s infinite;
}


@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}


/* Hit counter */
.hit-counter {
    display: inline-block;
    background-color: #000;
    color: #0f0;
    padding: 2px 5px;
    font-family: "Courier New", monospace;
    border: 1px inset #fff;
    margin: 5px 0;
}


/* Visitor marquee */
.visitor-marquee {
    background-color: #000080;
    color: white;
    padding: 2px 0;
    overflow: hidden;
    margin: 5px 0;
    position: relative;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 25s linear infinite;
    white-space: nowrap;
}

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


/* Footer */
.footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #000080;
    border-top: 1px solid #4682b4;
    padding-top: 5px;
}

.button88 {
    padding-left:5px;
    padding-right:5px;
}

.gallery-img {
    display: block;
    width: 100%;
    height: auto;
    border: 5px solid #000080;
    box-sizing: border-box;
}