/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-y: scroll;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: transparent;
    transition: background 0.3s ease;
}

body:hover::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

body:hover::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Hide scrollbar for Firefox */
body {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

body:hover {
    scrollbar-color: #888 transparent;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: transform 0.3s ease;
}

header.hidden {
    transform: translateY(-100%);
}

h1 {
    color: #333;
    margin: 0 0 0 40px;
    font-size: 1.5rem;
    flex-grow: 1;
}

.version {
    color: #000000;
    font-size: 0.9rem;
    margin-right: 20px;
}

/* Logo */
.logo {
    height: 40px;
    width: auto;
    margin-left: 20px;
}

/* Main Content */
.container {
    margin-top: 80px;
}

.svg-container {
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.svg-container img {
    display: block;
    /* width: 100%;
    height: auto; */
}
/* Download Button */
.download-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 2px 2px 4px rgba(128, 128, 128, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 50;
    text-decoration: none;
    color: #000000;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: 2px 2px 4px rgba(128, 128, 128, 0.15);
}

/* Download Menu */
.download-menu {
    position: fixed;
    bottom: 30px;
    right: 80px;
    background-color: white;
    border: 1px solid #000000;
    border-radius: 20px 8px 8px 20px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 49;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

.download-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.download-option {
    display: block;
    padding: 10px 20px;
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.download-option:hover {
    background-color: #f0f0f0;
}

.download-option:not(:last-child) {
    border-right: 1px solid #e0e0e0;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Header adjustments */
    header {
        padding: 15px 10px;
    }
    
    h1 {
        font-size: 1.1rem;
        margin: 0 0 0 15px;
    }
    
    .logo {
        height: 30px;
        margin-left: 10px;
    }
    
    .version {
        font-size: 0.8rem;
        margin-right: 10px;
    }
    
    .version img {
        height: 24px !important;
    }
    
    /* Main content */
    .container {
        margin-top: 70px;
    }
    
    /* SVG container - allow horizontal scrolling */
    .svg-container {
        overflow-x: auto;
        overflow-y: auto;
    }
    
    /* Download button */
    .download-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .download-btn img {
        width: 20px;
        height: 20px;
    }
    
    /* Download menu adjustments */
    .download-menu {
        bottom: 20px;
        right: 75px;
    }
    
    .download-option {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 0.9rem;
        margin: 0 0 0 8px;
    }
    
    .logo {
        height: 25px;
        margin-left: 5px;
    }
    
    .version {
        font-size: 0.7rem;
        margin-right: 5px;
    }
    
    .version img {
        height: 20px !important;
    }
    
    /* Smaller download button on very small screens */
    .download-btn {
        width: 40px;
        height: 40px;
    }
    
    .download-btn img {
        width: 18px;
        height: 18px;
    }
    
    .download-menu {
        right: 70px;
    }
}
