/* PSE Layout - Integrate with Hugo template */
body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #fafafa !important;
    color: #333 !important;
    /* Allow scrolling for footer */
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Dark mode support for PSE page body - greenish */
[data-theme="dark"] body {
    background-color: #0a1a0f !important;
    color: #c8e6c9 !important;
}

/* Hide default header for PSE page */
body > .container > .site-header {
    display: none !important;
}

/* Make the page wrapper full width for PSE */
body > .container,
body > .container > .wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}

#container {
    position: relative !important;
    width: 100% !important;
    height: calc(100vh - 300px) !important; /* Leave room for menu and footer */
    min-height: 400px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Dark mode support for container - greenish */
[data-theme="dark"] #container {
    background-color: #0a1a0f !important;
}

#menu {
    position: relative !important;
    width: 100% !important;
    height: 60px !important;
    text-align: center;
    z-index: 100;
    /* Ensure buttons are accessible on mobile */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    background-color: #fafafa !important;
    border-bottom: 1px solid #e7e7e7 !important;
}

/* Footer is already part of Hugo layout, just ensure it's visible */
.site-footer {
    background-color: #fff !important;
    border-top: 1px solid #e7e7e7 !important;
    padding: 20px 0 !important;
    margin: 0 !important;
}

/* Dark mode support for menu and footer on PSE page - greenish */
[data-theme="dark"] #menu {
    background-color: #0a1a0f !important;
    border-bottom: 1px solid #1b5e20 !important;
}

[data-theme="dark"] .site-footer {
    background-color: #0a1a0f !important;
    border-top: 1px solid #1b5e20 !important;
    color: #81c784 !important;
}

[data-theme="dark"] .site-footer a {
    color: #81c784 !important;
}

[data-theme="dark"] .site-footer a:hover {
    color: #4caf50 !important;
}

.element {
    width: 120px;
    height: 160px;
    box-shadow: 0px 0px 12px rgba(76,175,80,0.5);
    border: 1px solid rgba(76,175,80,0.25);
    font-family: Helvetica, sans-serif;
    text-align: center;
    line-height: normal;
    cursor: default;
    /* Better positioning */
    position: absolute;
    transform-origin: center center;
}

.element:hover {
    box-shadow: 0px 0px 12px rgba(76,175,80,0.75);
    border: 1px solid rgba(76,175,80,0.75);
}

.element .number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 12px;
    color: rgba(76,175,80,0.75);
}

.element .symbol {
    position: absolute;
    top: 40px;
    left: 0px;
    right: 0px;
    font-size: 60px;
    font-weight: bold;
    color: rgba(255,255,255,0.75);
    text-shadow: 0 0 10px rgba(76,175,80,0.95);
}

.element .details {
    position: absolute;
    bottom: 15px;
    left: 0px;
    right: 0px;
    font-size: 12px;
    color: rgba(127,255,255,0.75);
}

/* Buttons styled like navbar links - white text on dark background */
button {
    color: #fff !important;
    background-color: #333 !important;
    outline: 1px solid #333 !important;
    border: 1px solid #fff !important;
    padding: 8px 16px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #4caf50 !important;
    border-color: #4caf50 !important;
    color: #fff !important;
}

button:active {
    background-color: #388e3c !important;
    border-color: #388e3c !important;
    color: #fff !important;
}

/* Active button styling */
button.active-mode {
    background-color: #4caf50 !important;
    border-color: #4caf50 !important;
    color: #fff !important;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    #menu {
        height: auto;
        min-height: 50px;
        padding: 8px;
        gap: 4px;
    }

    button {
        padding: 6px 10px;
        margin: 2px;
        font-size: 11px;
        flex: 1 1 auto;
        min-width: 60px;
    }

    .element {
        /* Scale down elements slightly on mobile */
        transform: scale(0.7);
    }
}

@media (max-width: 480px) {
    button {
        font-size: 10px;
        padding: 5px 8px;
    }

    .element {
        transform: scale(0.6);
    }
}

