/* Terms of Service Specific Styles */
.terms-container {
    background-color: #fff;
    border: 2px solid #000;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 2px 2px 0 0 #000;
    max-height: 500px;
    overflow-y: auto;
}

.terms-content {
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #000;
}

.terms-content h1 {
    font-size: 18px;
    color: #000080;
    margin-bottom: 15px;
    border-bottom: 2px solid #000080;
    padding-bottom: 5px;
}

.terms-content h2 {
    font-size: 16px;
    color: #000080;
    margin: 20px 0 10px 0;
    border-bottom: 1px solid #c0c0c0;
    padding-bottom: 3px;
}

.terms-content h3 {
    font-size: 14px;
    color: #000000;
    margin: 15px 0 8px 0;
}

.terms-content p {
    margin-bottom: 12px;
    text-align: justify;
}

.terms-content ul, .terms-content ol {
    margin: 10px 0 10px 20px;
}

.terms-content li {
    margin-bottom: 8px;
}

.terms-content strong {
    color: #000080;
}

.terms-content em {
    font-style: italic;
    color: #333;
}

.terms-content a {
    color: #0000FF;
    text-decoration: underline;
}

.terms-content a:hover {
    color: #FF0000;
}

/* Scrollbar styling for terms container */
.terms-container::-webkit-scrollbar {
    width: 12px;
}

.terms-container::-webkit-scrollbar-track {
    background: #c0c0c0;
    border: 1px solid #000;
}

.terms-container::-webkit-scrollbar-thumb {
    background: #000080;
    border: 1px solid #000;
}

.terms-container::-webkit-scrollbar-thumb:hover {
    background: #0000a0;
}

/* Window Styles */
.window {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 920px;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 5px 3px 3px;
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    font-weight: bold;
    user-select: none;
    cursor: move;
    -webkit-app-region: drag;
}

.title-bar-text {
    margin-left: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 90s Windows 95/98 Styles */
/* Using system font stack for better compatibility and performance */
@font-face {
    font-family: 'MS Sans Serif';
    src: local('MS Sans Serif'), local('Microsoft Sans Serif'), local('Segoe UI'), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: normal;
    font-style: normal;
}

:root {
    --background: #008080;
    --window-bg: #c0c0c0;
    --title-bar: #000080;
    --title-text: #ffffff;
    --button-highlight: #ffffff;
    --button-face: #c0c0c0;
    --button-shadow: #808080;
    --button-darkshadow: #000000;
    --button-text: #000000;
    --field-bg: #ffffff;
    --field-text: #000000;
    --highlight: #000080;
    --highlight-text: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    background-color: var(--background);
    color: var(--button-text);
    overflow-x: hidden;
    font-size: 12px;
    margin: 0;
    padding: 0;
}

.desktop {
    min-height: 100%;
    width: 100%;
    position: relative;
    background: var(--background) url('../img/mai-logo.png') center/200px 100px no-repeat;
    padding-bottom: 28px; /* Space for taskbar */
    overflow: visible;
}

/* Toolbar Styles */
.toolbar {
    display: flex;
    background: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #808080;
    padding: 4px 2px;
    align-items: center;
    flex-wrap: wrap;
}

.toolbar-button {
    background: none;
    border: none;
    padding: 2px 4px;
    margin: 0;
    min-width: 50px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    color: #000;
}

.toolbar-button:hover {
    background: #000080;
    color: white;
}

.toolbar-button:active {
    background: #c0c0c0;
    color: #000;
}

/* Mobile responsive toolbar-button */
@media (max-width: 768px) {
    .toolbar-button {
        height: 24px !important;
        min-width: 30px !important;
        padding: 1px 2px !important;
        font-size: 8px !important;
    }
}

.toolbar-icon {
    font-size: 20px;
    margin-bottom: 2px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toolbar-text {
    font-size: 10px;
}

/* Icon Navigation Bar Styles */
.icon-nav {
    display: flex;
    flex-direction: column;
    background: #c0c0c0;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #000;
    padding: 4px 0;
    position: relative;
    z-index: 10;
    box-shadow: inset 0 -1px 0 #808080;
    overflow: hidden;
}

.icon-nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Adjust based on your needs */
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}
/* Desktop Navigation Layout */
.desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-left,
.nav-right {
    display: flex;
    flex: 1;
    gap: 4px;
}

.nav-left {
    justify-content: flex-end;
    padding-right: 20px;
}

.nav-right {
    justify-content: flex-start;
    padding-left: 20px;
}

.nav-center {
    flex-shrink: 0;
    padding: 0 20px;
}

.nav-center .title-text {
    font-size: 1.2em;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

.nav-center .title-text:hover {
    color: #000080;
}

.icon-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 6px 8px;
    cursor: pointer !important;
    user-select: none;
    border: 1px solid transparent;
    background: none;
    text-align: center;
    flex-shrink: 0;
    white-space: nowrap;
    height: 64px;
    box-sizing: border-box;
    color: #000;
    text-decoration: none;
    pointer-events: auto !important;
}

a.icon-nav-item:hover {
    background-color: #000080;
    color: white;
}

/* Mobile styles - keep your existing mobile-title-container as is */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-title-container {
        display: block;
    }
}

/* Add a scrollable container for small screens */
@media (max-width: 1200px) {
    .icon-nav {
        justify-content: flex-start;
    }
    
    .icon-nav-container {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px; /* Space for scrollbar */
    }
    
    .icon-nav-container::-webkit-scrollbar {
        height: 4px;
    }
    
    .icon-nav-container::-webkit-scrollbar-thumb {
        background: #000080;
        border-radius: 2px;
    }
    
    .icon-nav-container::-webkit-scrollbar-track {
        background: #c0c0c0;
    }
    
    /* Hide scrollbar in IE and Edge */
    .icon-nav-container {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

.icon-nav-item:hover {
    background-color: #000080;
    color: white;
}

.icon-nav-item:active {
    background-color: #c0c0c0;
    color: #000;
    border: 1px dotted #000;
}

.icon-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #c0c0c0;
    border: 1px solid #fff #808080 #808080 #fff;
    box-shadow: -1px -1px 0 1px #000, 1px 1px 0 1px #808080;
    padding: 4px;
}

.icon-nav-item:hover .icon-nav-icon {
    background-color: #000080;
    color: white;
}

.icon-nav-label {
    font-size: 11px;
    text-align: center;
    word-break: break-word;
    line-height: 1.1;
    margin-top: 2px;
}

/* Window Content Styles */
.window-content {
    background-color: #c0c0c0;
    padding: 16px;
    height: calc(100% - 30px);
    overflow-y: auto;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.welcome-container {
    max-width: 920px;
    margin: 0 auto;
    background-color: #c0c0c0;
    border: 2px solid #fff;
    box-shadow: -2px -2px 0 0 #000, 2px 2px 0 0 #808080;
    padding: 20px;
    position: relative;
}

.welcome-header {
    background-color: #000080;
    color: white;
    padding: 8px;
    margin: -20px -20px 20px -20px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid #000;
}

.welcome-message {
    font-family: 'Comic Sans MS', 'MS Sans Serif', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    text-align: center;
    margin: 20px 0;
}

.welcome-message p {
    margin: 15px 0;
}

.welcome-message .link {
    color: #0000FF;
    text-decoration: underline;
    cursor: pointer;
}

.welcome-message .link:hover {
    color: #FF0000;
    text-decoration: none;
}

.welcome-footer {
    margin-top: 40px;
    text-align: right;
    position: relative;
    padding-right: 20px;
}

.welcome-footer .corner {
    position: absolute;
    bottom: 0;
    left: 0;
}

.hit-counter {
    display: inline-block;
    background: #000;
    color: #0F0;
    font-family: 'Courier New', monospace;
    padding: 2px 8px;
    border: 2px solid #fff;
    box-shadow: -1px -1px 0 0 #808080, 1px 1px 0 0 #000;
}

/* Marquee styles */
marquee {
    background: #000080;
    padding: 4px 0;
}

/* miigEngine Container Styles */
.welcome-miigEngine-Container {
    max-width: 920px;
    margin: 30px auto 0;
    background-color: #c0c0c0;
    border: 2px solid #fff;
    box-shadow: -2px -2px 0 0 #000, 2px 2px 0 0 #808080;
    padding: 20px;
    position: relative;
}

.welcome-miigEngine-header {
    background-color: #000080;
    color: white;
    padding: 8px;
    margin: -20px -20px 20px -20px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid #000;
}

.welcome-miigEngine-message {
    font-family: 'Comic Sans MS', 'MS Sans Serif', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    text-align: center;
    margin: 20px 0;
}

.welcome-miigEngine-message p {
    margin: 10px 0;
    line-height: 1.4;
}

.welcome-miigEngine-footer {
    margin-top: 20px;
    text-align: right;
    position: relative;
    padding-right: 20px;
}

/* PIPEDA Accordion Styles */
.pipeda-accordion {
    width: 100%;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}

.accordion-btn {
    background-color: #c0c0c0;
    color: #000;
    cursor: pointer;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    border: 2px solid #fff;
    border-right-color: #333;
    border-bottom-color: #333;
    outline: none;
    font-size: 14px;
    font-weight: bold;
    margin: 5px 0;
    transition: 0.2s;
    position: relative;
    box-shadow: -1px -1px 0 1px #000, 1px 1px 0 1px #808080;
}

.accordion-btn:after {
    content: '▼';
    float: right;
    margin-left: 5px;
    font-size: 12px;
}

.accordion-btn.active:after {
    content: '▲';
}

.accordion-btn:hover {
    background-color: #000080;
    color: white;
}

.accordion-btn:active {
    background-color: #c0c0c0;
    color: #000;
    border: 2px solid #333;
    border-right-color: #fff;
    border-bottom-color: #fff;
    box-shadow: 1px 1px 0 1px #000, -1px -1px 0 1px #808080;
}

.accordion-panel {
    padding: 0 18px;
    background-color: #c0c0c0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    margin-bottom: 5px;
    border-left: 2px solid #333;
    border-right: 2px solid #fff;
}

.requirement, .compliance {
    margin: 15px 0;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #000;
    box-shadow: -1px -1px 0 1px #808080, 1px 1px 0 1px #fff;
}

.requirement p, .compliance ul {
    margin: 8px 0 8px 20px;
    line-height: 1.4;
}

.compliance ul {
    padding-left: 20px;
}

.compliance li {
    margin-bottom: 5px;
    position: relative;
    padding-left: 15px;
}

.compliance li:before {
    position: absolute;
    left: 0;
    color: #000080;
    font-weight: bold;
}

/* Contact Container Styles */
.welcome-contact-Container {
    max-width: 920px;
    margin: 30px auto 0;
    background-color: #c0c0c0;
    border: 2px solid #fff;
    box-shadow: -2px -2px 0 0 #000, 2px 2px 0 0 #808080;
    padding: 20px;
    position: relative;
}

.welcome-contact-header {
    background-color: #000080;
    color: white;
    padding: 8px;
    margin: -20px -20px 20px -20px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid #000;
}

.welcome-contact-message {
    font-family: 'Comic Sans MS', 'MS Sans Serif', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    text-align: left;
    margin: 20px 0;
}

/* 90s Form Styles */
.contact-form {
    margin: 20px 0;
    padding: 15px;
    background: #c0c0c0;
    border: 2px solid #fff;
    box-shadow: inset -1px -1px 0 1px #808080, inset 1px 1px 0 1px #000;
}

.form-group {
    margin-bottom: 15px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Tall input fields */
.form-input {
    width: 100%;
    height: 46px; /* Increased height */
    padding: 12px 14px; /* More vertical padding */
    margin-bottom: 12px;
    border: 2px solid #000;
    background: #fff;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 16px; /* Slightly larger font */
    box-sizing: border-box;
    box-shadow: inset -1px -1px 0 1px #808080, inset 1px 1px 0 1px #fff;
    line-height: 1.4; /* Better line height */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    position: relative;
}

/* Reset select to original size */
.form-select {
    width: 100%;
    height: 36px !important;
    padding: 8px 30px 8px 10px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
}

.form-textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 2px solid #000;
    background: #fff;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    box-shadow: inset -1px -1px 0 1px #808080, inset 1px 1px 0 1px #fff;
    min-height: 100px;
    resize: vertical;
}

.form-select {
    width: 100%;
    height: 36px; /* Increased height */
    padding: 8px 30px 8px 10px; /* Increased padding */
    margin-bottom: 10px;
    border: 2px solid #000;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 8px center;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 14px;
    line-height: 1.2; /* Better line height */
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 250px;
    background-color: white;
    border: 2px solid #000;
    box-shadow: inset -1px -1px 0 1px #808080, inset 1px 1px 0 1px #fff;
    padding-right: 30px;
    cursor: pointer; /* Change cursor to pointer */
    transition: all 0.2s; /* Smooth transition for hover effect */
}

/* Style the dropdown options */
.form-select option {
    padding: 8px 10px; /* Increased padding for options */
    min-height: 30px; /* Minimum height for options */
    line-height: 1.5; /* Better line spacing */
    background: white;
    color: black;
}

/* Hover state for better feedback */
.form-select:hover {
    background-color: #f0f0f0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: 2px solid #000080;
    outline-offset: -2px;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    user-select: none;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #000;
    box-shadow: inset -1px -1px 0 1px #808080;
}

.checkbox-label:hover input ~ .checkmark {
    background-color: #e0e0e0;
}

.checkbox-label input:checked ~ .checkmark {
    background-color: #000080;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-button {
    padding: 6px 20px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 14px;
    font-weight: bold;
    background: #c0c0c0;
    border: 2px solid #fff;
    box-shadow: -2px -2px 0 0 #000, 2px 2px 0 0 #808080;
    cursor: pointer;
    position: relative;
}

.form-button:active {
    box-shadow: inset -1px -1px 0 1px #808080, inset 1px 1px 0 1px #000;
    top: 1px;
    left: 1px;
}

.form-button[type="submit"] {
    background: #000080;
    color: white;
}

.contact-info {
    margin-top: 30px;
    padding: 15px;
    background: #e0e0e0;
    border: 2px solid #fff;
    box-shadow: inset -1px -1px 0 1px #808080, inset 1px 1px 0 1px #000;
}

.contact-info p {
    margin: 10px 0;
    line-height: 1.5;
}

.hit-counter {
    margin-top: 20px;
    text-align: center;
    padding: 10px;
    background: #c0c0c0;
    border: 2px solid #fff;
    box-shadow: inset -1px -1px 0 1px #808080, inset 1px 1px 0 1px #000;
    display: inline-block;
}

/* Data Sovereignty Container Styles */
.welcome-dataSovereignty-Container {
    max-width: 920px;
    margin: 30px auto 0;
    background-color: #c0c0c0;
    border: 2px solid #fff;
    box-shadow: -2px -2px 0 0 #000, 2px 2px 0 0 #808080;
    padding: 20px;
    position: relative;
}

.welcome-dataSovereignty-header {
    background-color: #000080;
    color: white;
    padding: 8px;
    margin: -20px -20px 20px -20px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid #000;
}

.welcome-dataSovereignty-message {
    font-family: 'Comic Sans MS', 'MS Sans Serif', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    text-align: left;
    margin: 20px 0;
}

.welcome-dataSovereignty-message p {
    margin: 10px 0;
    line-height: 1.4;
}

/* Policies Container Styles */
.welcome-policies-Container {
    max-width: 920px;
    margin: 30px auto 0;
    background-color: #c0c0c0;
    border: 2px solid #fff;
    box-shadow: -2px -2px 0 0 #000, 2px 2px 0 0 #808080;
    padding: 20px;
    position: relative;
}

.welcome-policies-header {
    background-color: #000080;
    color: white;
    padding: 8px;
    margin: -20px -20px 20px -20px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid #000;
}

.welcome-policies-message {
    font-family: 'Comic Sans MS', 'MS Sans Serif', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    text-align: left;
    margin: 20px 0;
}

.welcome-policies-message p {
    margin: 10px 0;
    line-height: 1.4;
}

.welcome-policies-message ul {
    margin: 10px 0 10px 20px;
    padding-left: 20px;
}

.welcome-policies-message li {
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Policies Accordion Styles */
.policies-accordion {
    margin: 20px 0;
    width: 100%;
}

.accordion-btn {
    background-color: #c0c0c0;
    color: #000;
    cursor: pointer;
    padding: 12px 15px;
    width: 100%;
    text-align: left;
    border: 2px solid #fff;
    border-bottom-color: #000;
    border-right-color: #000;
    outline: none;
    font-size: 16px;
    font-weight: bold;
    font-family: 'MS Sans Serif', sans-serif;
    margin: 5px 0;
    position: relative;
    box-shadow: -1px -1px 0 0 #808080;
}

.accordion-btn:active {
    border: 2px solid #000;
    border-bottom-color: #fff;
    border-right-color: #fff;
    box-shadow: -1px -1px 0 0 #c0c0c0;
}

.accordion-btn:after {
    content: '▼';
    font-size: 12px;
    color: #000;
    float: right;
    margin-left: 5px;
}

.accordion-btn.active:after {
    content: '▲';
}


.accordion-panel.active {
    /* max-height is set dynamically by JavaScript */
    padding: 10px 18px;
    border: 2px solid #000;
    border-top: none;
    background-color: #fff;
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.1);
    border-left-color: #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
}

.policy-content {
    padding: 15px;
}

.policy-content h4 {
    color: #000080;
    margin-top: 0;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
}

.policy-content h5 {
    color: #000080;
    margin: 15px 0 5px;
}

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

.policies-disclaimer {
    margin-top: 20px;
    padding: 10px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    font-size: 14px;
}

/* Call-to-action buttons */
.cta-button {
    padding: 12px 24px;
    margin: 0 10px;
    font-size: 16px;
    font-weight: bold;
    background-color: #e67e22;
    color: white;
    border: 2px solid #7d4e0f;
    border-top-color: #ffb74d;
    border-right-color: #7d4e0f;
    border-bottom-color: #ffb74d;
    border-left-color: #7d4e0f;
    box-shadow: inset 1px 1px 0 0 #7d4e0f, inset -1px -1px 0 0 #ffd699;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
}

.cta-button:hover {
    background-color: #f39c12;
    border-top-color: #ffb74d;
    border-right-color: #7d4e0f;
    border-bottom-color: #ffb74d;
    border-left-color: #7d4e0f;
}

.cta-button:active {
    background-color: #d35400;
    border-top-color: #7d4e0f;
    border-left-color: #7d4e0f;
    border-right-color: #ffb74d;
    border-bottom-color: #ffb74d;
    box-shadow: inset 1px 1px 0 0 #7d4e0f, inset -1px -1px 0 0 #ffd699;
}

/* Button container */
.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* Floating button styles */
.floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 10px 20px;
    background-color: #e67e22;  /* Darker orange */
    border: none;
    outline: 1px solid #000;
    border-top: 2px solid #ffb74d;  /* Lighter highlight */
    border-left: 2px solid #ffb74d;  /* Lighter highlight */
    border-right: 2px solid #7d4e0f;  /* Darker shadow */
    border-bottom: 2px solid #7d4e0f;  /* Darker shadow */
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: -1px -1px 0 0 #ffd699, 1px 1px 0 0 #7d4e0f;
    z-index: 1000;
    color: #000;
    text-shadow: none;
}

.floating-button:active {
    border-top: 2px solid #7d4e0f;
    border-left: 2px solid #7d4e0f;
    border-right: 2px solid #ffb74d;
    border-bottom: 2px solid #ffb74d;
    box-shadow: inset 1px 1px 0 0 #7d4e0f, inset -1px -1px 0 0 #ffd699;
    outline: 1px solid #000;
    padding: 11px 19px 9px 21px; /* Adjust padding to compensate for border change */
    background-color: #d35400;  /* Even darker when pressed */
}

/* Modal content styles - Updated */
.modal-content::-webkit-scrollbar {
    width: 12px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-left: 1px solid #c0c0c0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #e67e22;
    border: 1px solid #7d4e0f;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #d35400;
}

.modal-content {
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #000;
}

.modal-content p {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.4;
}

.modal-content ul {
    margin: 8px 0 5px 10px;
    padding-left: 15px;
}

.modal-content li {
    margin-bottom: 5px;
    line-height: 1.3;
    position: relative;
    list-style-type: none;
    padding-left: 20px;
    font-size: 14px;
}

.modal-content li:before {
    content: "•";
    color: #e67e22;
    font-weight: bold;
    font-size: 16px;
    position: absolute;
    left: 0;
    top: -1px;
}

.modal-content b {
    color: #000080;
    display: block;
    margin: 12px 0 8px 0;
    font-size: 15px;
    font-weight: bold;
}

/* Specific section styles */
#factsContent > p:first-child,
#factsContent > p:nth-child(2),
#factsContent > p:nth-last-child(3) {
    font-size: 14px;
    line-height: 1.4;
    margin: 10px 0;
}

#factsContent > p:last-child {
    font-size: 12px;
    color: #666;
    margin-top: 15px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #c0c0c0;
    padding: 20px;
    border: 2px solid #fff;
    border-right-color: #000;
    border-bottom-color: #000;
    width: 80%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: -1px -1px 0 1px #000, 1px 1px 0 1px #808080;
    scrollbar-width: 12px;
    scrollbar-color: #e67e22 #f1f1f1;
}

/* Mobile responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
        max-height: 85vh;
        margin: 10px;
    }
}

/* Webkit scrollbar styles */
.modal-content::-webkit-scrollbar {
    width: 12px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-left: 1px solid #c0c0c0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #e67e22;
    border: 1px solid #7d4e0f;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #d35400;
}

.close {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #0000ff;
}

/* Note box styling for Data Deletion section */
.note-box {
    margin: 15px 0;
    padding: 10px 15px;
    background-color: #ffffcc;
    border: 2px solid #000;
    border-left-color: #fff;
    border-top-color: #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    box-shadow: -1px -1px 0 0 #c0c0c0, 1px 1px 0 0 #000;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.welcome-dataSovereignty-message ul {
    margin: 10px 0 10px 30px;
    padding: 0;
}

.welcome-dataSovereignty-message li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.welcome-dataSovereignty-message li:before {
    position: absolute;
    left: 0;
    color: #000080;
    font-weight: bold;
}

.welcome-dataSovereignty-footer {
    margin-top: 20px;
    text-align: right;
    position: relative;
    padding-right: 20px;
}

/* PIPEDA Container Styles */
.welcome-pipeda-Container {
    max-width: 920px;
    margin: 30px auto 0;
    background-color: #c0c0c0;
    border: 2px solid #fff;
    box-shadow: -2px -2px 0 0 #000, 2px 2px 0 0 #808080;
    padding: 20px;
    position: relative;
}

.welcome-pipeda-header {
    background-color: #000080;
    color: white;
    padding: 8px;
    margin: -20px -20px 20px -20px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    border-bottom: 2px solid #000;
}

.welcome-pipeda-message {
    font-family: 'Comic Sans MS', 'MS Sans Serif', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    text-align: center;
    margin: 20px 0;
}

.welcome-pipeda-message p {
    margin: 10px 0;
    line-height: 1.4;
}

.welcome-pipeda-footer {
    margin-top: 20px;
    text-align: right;
    position: relative;
    padding-right: 20px;
}

/* Title Text Styles */
.title-text-container {
    display: flex;
    align-items: center;
    margin: 0 20px;
    padding: 0 20px;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

.title-text-container:hover {
    text-decoration: none;
}

.title-text {
    font-family: 'Arial Black', 'Arial Bold', Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: #000080;
    text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff;
    white-space: nowrap;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 10px;
    background: linear-gradient(135deg, #c0c0c0 0%, #e0e0e0 50%, #c0c0c0 100%);
    border: 2px solid #fff;
    box-shadow: 1px 1px 0 1px #000, -1px -1px 0 1px #808080, 1px -1px 0 1px #000, -1px 1px 0 1px #000;
    transform: perspective(100px) rotateX(2deg);
    transition: all 0.2s ease;
}

.title-text:hover {
    background: linear-gradient(135deg, #000080 0%, #1a1aff 50%, #000080 100%);
    color: white;
    text-shadow: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .title-text {
        font-size: 16px;
        padding: 3px 6px;
    }
    
    .icon-nav-item {
        min-width: 60px;
        margin: 0 4px;
        padding: 4px 2px;
    }
    
    .icon-nav-icon {
        font-size: 20px !important;
    }
    
    .icon-nav-label {
        font-size: 10px !important;
    }
    
    }

/* Address Bar Styles */
.address-bar {
    display: flex;
    align-items: center;
    background: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #808080;
    padding: 4px 6px;
    font-size: 12px;
}

.address-label {
    margin-right: 8px;
    white-space: nowrap;
}

.address-input-container {
    display: flex;
    flex: 1;
    height: 22px;
}

.address-input {
    flex: 1;
    background: white;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    padding: 2px 4px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 12px;
    color: #000;
    outline: none;
}

.address-dropdown {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #fff #808080 #808080 #fff;
    margin-left: 2px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    line-height: 1;
    box-sizing: border-box;
    flex-shrink: 0;
}

.address-dropdown:active {
    border-color: #808080 #fff #fff #808080;
}

/* Removed separators as per request */

/* Desktop Icons - Forced Horizontal Layout */
.desktop-icons {
    white-space: nowrap !important;
    padding: 16px !important;
    font-size: 0 !important; /* Remove any spacing between inline-block elements */
    width: 100% !important;
    overflow-x: auto !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

.desktop-icons::-webkit-scrollbar {
    display: none !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.desktop-icons::-webkit-scrollbar {
    display: none;
}

.desktop-icon {
    display: inline-block !important;
    width: 80px !important;
    text-align: center !important;
    vertical-align: top !important;
    padding: 8px 4px !important;
    margin: 0 !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    user-select: none !important;
    text-decoration: none !important;
    color: inherit !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
}

.desktop-icon:hover {
    background-color: rgba(0, 0, 128, 0.1);
}

.desktop-icon:active {
    background-color: rgba(0, 0, 128, 0.2);
}

.desktop-icon.selected {
    background-color: #000080;
    color: white;
}

.desktop-icon-img {
    width: 32px !important;
    height: 32px !important;
    margin: 0 auto 4px !important;
    font-size: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #c0c0c0 !important;
    border: 2px solid !important;
    border-color: #fff #808080 #808080 #fff !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

.desktop-icon-text {
    font-size: 11px;
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
    margin-top: 2px;
    text-shadow: 1px 1px 0 #fff;
}

/* Window Body */
.window-body {
    padding: 0;
    margin: 0;
    flex: 1;
    overflow: auto;
}

/* Menu Bar Styles */
.window {
    position: relative;
    display: flex;
    flex-direction: column;
}

.menu-bar {
    display: flex;
    background: #c0c0c0;
    border-top: 1px solid #fff;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #808080;
    padding: 2px 4px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.menu-item {
    position: relative;
    padding: 3px 8px;
    margin: 0 2px;
    font-size: 13px;
    cursor: default;
    user-select: none;
}

.menu-item:hover .menu-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000080;
    z-index: -1;
}

.menu-item:hover {
    color: white;
    cursor: pointer;
}

.menu-item u {
    text-decoration: none;
    border-bottom: 1px solid;
    padding-bottom: 1px;
}

/* Window Styles */
.window {
    background: var(--window-bg);
    border: 2px solid;
    border-color: var(--button-highlight) var(--button-darkshadow) var(--button-darkshadow) var(--button-highlight);
    z-index: 10; /* Windows should be above desktop icons */
    box-shadow: 1px 1px 0 0 var(--button-shadow) inset,
                -1px -1px 0 0 var(--button-face) inset;
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: 920px;
    height: 600px;
    flex-direction: column;
    min-width: 300px;
    min-height: 200px;
    max-width: 90vw;
    max-height: 90vh;
    resize: both;
    overflow: auto;
    /* Ensure the window is centered in all scenarios */
    box-sizing: border-box;
    visibility: visible !important;
}

.title-bar {
    background: var(--title-bar);
    color: var(--title-text);
    padding: 2px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    font-weight: bold;
    cursor: move;
    user-select: none;
}

.title-bar-text {
    padding: 2px 0;
}

.title-bar-controls {
    display: flex;
}

.title-bar-controls button {
    width: 16px;
    height: 14px;
    background-color: var(--button-face);
    border: 1px solid;
    border-color: var(--button-highlight) var(--button-shadow) var(--button-shadow) var(--button-highlight);
    margin-left: 2px;
    padding: 0;
    cursor: pointer;
    position: relative;
    -webkit-app-region: no-drag;
}

.title-bar-controls button:active {
    border-color: var(--button-shadow) var(--button-highlight) var(--button-highlight) var(--button-shadow);
}

.title-bar-controls button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 1px;
    background: var(--button-text);
}

.title-bar-controls button[aria-label="Maximize"]::before {
    width: 8px;
    height: 1px;
    box-shadow: 0 -2px 0 var(--button-text);
}

.title-bar-controls button[aria-label="Move"]::before {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid var(--button-text);
    background: none;
}

.title-bar-controls button[aria-label="Move"]:active {
    background-color: #1084d0;
}

.title-bar-controls button[aria-label="Close"]::before {
    width: 8px;
    height: 1px;
    transform: translate(-50%, -50%) rotate(45deg);
}

.title-bar-controls button[aria-label="Close"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 8px;
    height: 1px;
    background: var(--button-text);
}

.window-body {
    padding: 8px;
    flex-grow: 1;
    overflow: auto;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--button-highlight);
    margin-bottom: 8px;
}

.tab-button {
    background: var(--button-face);
    border: 2px solid;
    border-color: var(--button-highlight) var(--button-shadow) var(--button-highlight) var(--button-highlight);
    border-bottom: none;
    padding: 4px 12px;
    margin-right: 4px;
    cursor: pointer;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 12px;
    outline: none;
}

.tab-button:hover {
    background: #e0e0e0;
}

.tab-button.active {
    background: var(--highlight);
    color: var(--highlight-text);
    position: relative;
    top: 2px;
    border-bottom: 2px solid var(--highlight);
    margin-bottom: -2px;
}

.tab-content {
    padding: 8px 0;
}

/* Form Elements */
.field-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.field-row label {
    min-width: 80px;
    margin-right: 8px;
}

.win-textbox, .win-textarea {
    background: var(--field-bg);
    border: 2px solid;
    border-color: var(--button-shadow) var(--button-highlight) var(--button-highlight) var(--button-shadow);
    padding: 2px 4px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 12px;
}

.win-textarea {
    width: 100%;
    resize: vertical;
}

.win-button {
    background: var(--button-face);
    border: 2px solid;
    border-color: var(--button-highlight) var(--button-shadow) var(--button-shadow) var(--button-highlight);
    padding: 2px 8px;
    min-width: 75px;
    cursor: pointer;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 12px;
}

.win-button:active {
    border-color: var(--button-shadow) var(--button-highlight) var(--button-highlight) var(--button-shadow);
}

/* Start Menu */
.start-menu {
    position: absolute;
    bottom: 28px;
    left: 2px;
    width: 200px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: -1px -1px 0 0 #000000;
    z-index: 1001;
    display: none;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}

.start-menu-left {
    float: left;
    width: 30px;
    height: 100%;
    background: #000080;
    padding: 4px 0;
}

.start-menu-header {
    color: white;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    padding: 8px 2px;
    white-space: nowrap;
    letter-spacing: 1px;
    line-height: 1.2;
}

.start-menu-right {
    margin-left: 30px;
    padding: 4px 0;
}

.start-menu-item {
    padding: 4px 8px 4px 24px;
    cursor: pointer;
    font-size: 12px;
    border: 1px solid transparent;
    margin: 1px 2px;
    position: relative;
}

.start-menu-item:before {
    content: '▶';
    position: absolute;
    left: 8px;
    color: #808080;
    font-size: 10px;
}

.start-menu-item:hover {
    background-color: #000080;
    color: white;
}

.start-menu-item:active {
    background-color: #000080;
    color: white;
    border: 1px dotted #ffffff;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    /* Ensure taskbar and its children are clickable */
    pointer-events: auto !important;
    right: 0;
    height: 28px;
    background: var(--button-face);
    border-top: 2px solid var(--button-highlight);
    display: flex;
    align-items: center;
    padding: 0 4px;
    z-index: 1000;
}

/* Keep taskbar normal size on mobile */

.start-button {
    display: flex;
    align-items: center;
    padding: 2px 8px;
    /* Ensure start button is clickable */
    pointer-events: auto !important;
    background: var(--button-face);
    border: 2px solid;
    border-color: var(--button-highlight) var(--button-shadow) var(--button-shadow) var(--button-highlight);
    font-weight: bold;
    cursor: pointer;
}

.start-button:active {
    border-color: var(--button-shadow) var(--button-highlight) var(--button-highlight) var(--button-shadow);
}

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

.clock {
    background: var(--button-face);
    border: 2px solid;
    border-color: var(--button-shadow) var(--button-highlight) var(--button-highlight) var(--button-shadow);
    padding: 2px 8px;
    font-size: 11px;
    margin-left: auto;
}

/* Desktop Icons */
.desktop-icon {
    position: absolute;
    width: 80px;
    text-align: center;
    padding: 4px;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 2px;
    z-index: 1; /* Icons should be behind windows */
}

.desktop-icon:hover {
    background-color: rgba(0, 0, 128, 0.3);
}

.desktop-icon:active {
    background-color: rgba(0, 0, 128, 0.4);
}

.desktop-icon.selected {
    background-color: rgba(0, 0, 128, 0.5);
    border: 1px dotted #000080;
}

.desktop-icon-image {
    width: 32px;
    height: 32px;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.desktop-icon svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(1px 1px 0px rgba(255, 255, 255, 0.5));
}

.desktop-icon span {
    display: block;
    color: white;
    text-shadow: 1px 1px 1px #000;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 4px;
    margin-top: 2px;
    border: 1px solid transparent;
    border-radius: 2px;
}

.desktop-icon.selected span {
    background-color: #000080;
    color: white;
    border: 1px solid #fff;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: var(--button-face);
    border: 2px solid var(--button-highlight);
}

::-webkit-scrollbar-thumb {
    background: var(--button-face);
    border: 2px solid;
    border-color: var(--button-highlight) var(--button-shadow) var(--button-shadow) var(--button-highlight);
}

::-webkit-scrollbar-button {
    background: var(--button-face);
    border: 2px solid;
    border-color: var(--button-highlight) var(--button-shadow) var(--button-shadow) var(--button-highlight);
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-button:vertical:start:decrement {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4"><polygon points="0,4 4,0 8,4" fill="black"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

::-webkit-scrollbar-button:vertical:end:increment {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4"><polygon points="0,0 8,0 4,4" fill="black"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsive Design */
@media (max-width: 600px) {
    .window {
        width: 100% !important;
        height: 100% !important;
        left: 50% !important;
        top: 10% !important;
        transform: translate(-50%, 0) !important;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        margin-bottom: 4px;
    }
    
    /* Key Features mobile layout fixes - highest specificity */
    .welcome-dataSovereignty-message div[style*="display: flex"],
    .welcome-dataSovereignty-message div[style*="display: flex;"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        margin: 10px 0 !important;
        display: flex !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .welcome-dataSovereignty-message div[style*="display: flex"] img,
    .welcome-dataSovereignty-message div[style*="display: flex;"] img {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        margin: 0 auto 15px auto !important;
        flex-shrink: 0 !important;
        border: 2px solid #000 !important;
        box-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
        cursor: pointer !important;
    }
    
    .welcome-dataSovereignty-message div[style*="display: flex"] > div,
    .welcome-dataSovereignty-message div[style*="display: flex;"] > div {
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
    }
    
    .welcome-dataSovereignty-message h3 {
        text-align: center !important;
        margin-bottom: 15px !important;
    }
    
    .welcome-dataSovereignty-message ul {
        text-align: left !important;
        margin: 10px auto !important;
        max-width: 90% !important;
    }
    
    /* Target specific Key Features sections with highest specificity */
    #miigwech-products-section .welcome-dataSovereignty-message div[style*="display: flex"],
    #miigwech-products-section .welcome-dataSovereignty-message div[style*="display: flex;"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        display: flex !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    #miigwech-products-section .welcome-dataSovereignty-message div[style*="display: flex"] img,
    #miigwech-products-section .welcome-dataSovereignty-message div[style*="display: flex;"] img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 auto 15px auto !important;
    }
    
    /* Specific fix for the Rust Cloud CLI API Screenshots image */
    img[alt*="Rust Cloud CLI API Screenshots"] {
        max-width: 90% !important;
        width: 90% !important;
        height: auto !important;
    }
    
    img[src*="Rust-Cloud-CLI-API-Screenshots"] {
        max-width: 90% !important;
        width: 90% !important;
        height: auto !important;
    }
    
    /* Force container to respect viewport */
    .welcome-dataSovereignty-message {
        padding: 0 10px !important;
    }
    
    /* Aggressive fix for image containers - create proper mobile wrapper */
    .welcome-dataSovereignty-message div[style*="display: flex"] {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .welcome-dataSovereignty-message div[style*="display: flex"] img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Most specific targeting for the Rust Cloud image */
    img[src*="Rust-Cloud-CLI-API-Screenshots - REDACTED.png"] {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Create a mobile wrapper for any image with max-width: 500px */
    img[style*="max-width: 500px"] {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    /* Key Features tablet layout - more specific selectors */
    .welcome-dataSovereignty-message div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        margin: 10px 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .welcome-dataSovereignty-message div[style*="display: flex"] img {
        max-width: 80% !important;
        height: auto !important;
        margin: 0 auto !important;
        flex-shrink: 0 !important;
        border: 2px solid #000 !important;
        box-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
    }
    
    .welcome-dataSovereignty-message div[style*="display: flex"] > div {
        width: 100% !important;
        text-align: center !important;
        padding: 0 10px !important;
        margin: 0 !important;
    }
    
    /* Target specific Key Features sections for tablets */
    #miigwech-products-section .welcome-dataSovereignty-message div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    #miigwech-products-section .welcome-dataSovereignty-message div[style*="display: flex"] img {
        max-width: 80% !important;
        width: 80% !important;
        height: auto !important;
        margin: 0 auto 20px auto !important;
    }
    
    /* Specific fix for the Rust Cloud CLI API Screenshots image on tablets */
    img[alt*="Rust Cloud CLI API Screenshots"] {
        max-width: 80% !important;
        width: 80% !important;
        height: auto !important;
    }
    
    img[src*="Rust-Cloud-CLI-API-Screenshots"] {
        max-width: 80% !important;
        width: 80% !important;
        height: auto !important;
    }
    
    /* Force container to respect viewport on tablets */
    .welcome-dataSovereignty-message {
        padding: 0 15px !important;
    }
    
    /* Aggressive fix for image containers on tablets */
    .welcome-dataSovereignty-message div[style*="display: flex"] {
        overflow: hidden !important;
    }
    
    .welcome-dataSovereignty-message div[style*="display: flex"] img {
        object-fit: contain !important;
    }
    
    /* Most specific targeting for the Rust Cloud image on tablets */
    img[src*="Rust-Cloud-CLI-API-Screenshots - REDACTED.png"] {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Create a mobile wrapper for any image with max-width: 500px on tablets */
    img[style*="max-width: 500px"] {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* General mobile improvements for all containers */
    .welcome-container,
    .welcome-miigEngine-Container,
    .welcome-pipeda-Container,
    .welcome-dataSovereignty-Container,
    .welcome-contact-Container,
    .welcome-policies-Container {
        max-width: 95% !important;
        margin: 20px auto !important;
        padding: 15px !important;
    }
    
    .welcome-message,
    .welcome-miigEngine-message,
    .welcome-pipeda-message,
    .welcome-dataSovereignty-message,
    .welcome-contact-message,
    .welcome-policies-message {
        font-size: 14px !important;
        text-align: left !important;
    }
    
    .welcome-message p,
    .welcome-miigEngine-message p,
    .welcome-pipeda-message p,
    .welcome-dataSovereignty-message p,
    .welcome-contact-message p,
    .welcome-policies-message p {
        font-size: 14px !important;
        margin: 8px 0 !important;
    }
    
    /* Headers mobile adjustments */
    .welcome-header,
    .welcome-miigEngine-header,
    .welcome-pipeda-header,
    .welcome-dataSovereignty-header,
    .welcome-contact-header,
    .welcome-policies-header {
        font-size: 16px !important;
        padding: 6px !important;
        margin: -15px -15px 15px -15px !important;
    }
    
    /* Accordion mobile improvements */
    .accordion-btn {
        font-size: 14px !important;
        padding: 12px 10px !important;
    }
    
    .accordion-panel {
        padding: 0 10px !important;
    }
    
    /* Form mobile improvements */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    .form-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .form-button {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
    }
    
    /* Mobile-friendly Turnstile widget */
    .turnstile-container {
        margin: 15px 0 15px 7px !important;
        text-align: left !important;
    }
    
    .cf-turnstile {
        width: 100% !important;
        max-width: 300px !important;
        transform: scale(0.9) !important;
        transform-origin: center !important;
        display: inline-block !important;
    }
    
    @media (max-width: 480px) {
        .turnstile-container {
            margin: 15px 0 15px -15px !important;
        }
        .cf-turnstile {
            transform: scale(0.8) !important;
            max-width: 280px !important;
        }
    }
    
    @media (max-width: 380px) {
        .turnstile-container {
            max-width: 20% !important;
            margin: 15px 0 15px 10px !important;
        }
        .cf-turnstile {
            transform: scale(0.7) !important;
            max-width: 260px !important;
        }
    }
}

/* Mobile image replacement for Rust Cloud CLI - show green screenshot */
@media (max-width: 600px) {
    img[src*="Rust-Cloud-CLI-API-Screenshots - REDACTED.png"] {
        display: none !important;
    }
    
    img[src*="RUST CLOUD - screenshot green.png"] {
        display: block !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border: 2px solid #000 !important;
        box-shadow: 2px 2px 4px rgba(0,0,0,0.3) !important;
        margin: 0 auto 15px auto !important;
    }
    
    .mobile-cli-textarea {
        display: none !important;
    }
    
    /* Mobile Title */
.mobile-title-container {
    display: none; /* Hidden by default, shown on mobile */
    text-align: center;
    padding: 10px 0;
    background: #c0c0c0;
    border-bottom: 1px solid #000;
}

.mobile-title-container .title-text {
    color: #000080;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    padding: 4px 12px;
    background: #c0c0c0;
    border: 1px solid #000;
    box-shadow: 
        inset -1px -1px 0 0 #808080,
        inset 1px 1px 0 0 #ffffff;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    flex-wrap: wrap;
    background: #c0c0c0;
    padding: 4px 0;
    border-bottom: 1px solid #000;
}

/* Mobile styles */
@media (max-width: 767px) {
    .mobile-title-container {
        display: block; /* Show on mobile */
    }
    
    .desktop-nav {
        display: none; /* Hide on mobile */
    }
        /* Mobile title adjustments */
        .mobile-title-container {
            padding: 12px 0;
        }
        
        .mobile-title-container .title-text {
            font-size: 18px;
            padding: 6px 20px;
        }
        
        /* Hide desktop navigation on mobile */
        .desktop-nav {
            display: none !important;
        }
    }
    
    /* Mobile menu styles are now handled above */
    .icon-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 4px !important;
        min-height: 60px !important;
        visibility: visible !important;
    }
    
    .title-text-container {
        grid-column: 1 / -1 !important;
        text-align: center !important;
        margin: 0 0 8px 0 !important;
        order: -1 !important;
    }
    
    .title-text {
        font-size: 14px !important;
        font-weight: bold !important;
        color: #000080 !important;
        text-decoration: none !important;
    }
    
    @media (max-width: 480px) {
        .icon-nav {
            grid-template-columns: repeat(2, 1fr) !important;
        }
        
        .icon-nav-item {
            min-height: 55px !important;
            padding: 6px 2px !important;
        }
        
        .icon-nav-icon {
            font-size: 18px !important;
        }
        
        .icon-nav-label {
            font-size: 9px !important;
        }
        
        .title-text {
            font-size: 12px !important;
        }
    }
    
    @media (max-width: 380px) {
        .icon-nav {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 2px !important;
        }
        
        .icon-nav-item {
            min-height: 50px !important;
            padding: 4px 1px !important;
        }
        
        .icon-nav-icon {
            font-size: 16px !important;
        }
        
        .icon-nav-label {
            font-size: 8px !important;
        }
    }
}
    
        
    
/* Text Modal Styles */
.text-modal {
    position: fixed;
    z-index: 9999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.text-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 2px solid #000;
    width: 90%;
    max-width: 800px;
    max-height: 90%;
    overflow: auto;
}

.text-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
}

.text-modal-header h3 {
    color: #000;
    margin: 0;
    font-family: Arial, sans-serif;
}

.close-modal {
    color: #000;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 7%;
}

.text-modal-body {
    max-height: 60vh;
    overflow: auto;
}

.text-modal-body pre {
    color: #000;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.2;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    background: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    max-width: 100%;
    box-sizing: border-box;
}

/* Taskbar Separator */
.taskbar-separator {
    padding: 0 8px;
    color: var(--button-text);
    font-weight: bold;
    font-size: 12px;
    user-select: none;
    display: flex;
    align-items: center;
}

/* Taskbar Tiles */
.taskbar-tile {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--button-face);
    border: 1px solid;
    border-color: var(--button-highlight) var(--button-shadow) var(--button-shadow) var(--button-highlight);
    cursor: pointer;
    font-size: 11px;
    font-family: 'MS Sans Serif', sans-serif;
    min-width: 140px;
    transition: all 0.1s ease;
}

.taskbar-tile.clock {
    display: flex;
    align-items: center;
    padding: 2px 8px;
    background: var(--button-face);
    border: 1px solid;
    border-color: var(--button-highlight) var(--button-shadow) var(--button-shadow) var(--button-highlight);
    font-size: 11px;
    font-weight: bold;
    color: var(--button-text);
    margin-left: auto;
    /* Ensure clock is clickable */
    pointer-events: auto !important;
}

.taskbar-tile:hover {
    background: var(--button-highlight);
    border-color: var(--button-shadow) var(--button-highlight) var(--button-highlight) var(--button-shadow);
}

.taskbar-tile:active {
    background: var(--button-face);
    border-color: var(--button-shadow) var(--button-highlight) var(--button-highlight) var(--button-shadow);
}

.taskbar-tile.active {
    background: var(--button-highlight);
    border-color: var(--button-shadow) var(--button-highlight) var(--button-highlight) var(--button-shadow);
    font-weight: bold;
}

.taskbar-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.taskbar-tile-icon svg {
    fill: var(--button-text);
}

.taskbar-tile-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
}