/* GENERAL PAGE STYLE */
body {
    background: #0d0d0d;
    color: #e6e6e6;
    font-family: "Georgia", serif;
    margin: 0;
    font-size: 34px;
    line-height: 1.5;
    overflow-x:hidden;
    width: 100%;
}

/* MAIN CONTENT */
.content {
    margin-left: 400px;
    margin-right: 40px;
    padding: 0px;
    flex: 1;
    color:#e6e0e0
}

.content {
    position: relative;
    z-index: 1;
}


/* HEADERS */
h1 {
    font-size: 50px;
    margin-bottom: 12px;
}

h2 {
    margin-top: 42px;
    font-size: 30px;
}

/* EXPANDABLE SECTIONS */
details {
    margin-bottom: 22px;
    cursor: pointer;
}

summary {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

details p {
    margin-top: 12px;
    color: #ccc;
}

/* LINKS */
a {
    color: #e6e6e6;
}

a:hover {
    text-decoration: underline;
}

details { margin-bottom: 42px; }

section {
    margin-bottom: 62px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content {
    flex: 1;
}

footer {
    margin-top: 22px;
    padding-top: 22px;
    padding-bottom: 22px;
    padding-right: 42px; /* <-- add this */
    color: #ffffff;
    font-size: 16px;
    text-align: right;
    border-top: transparent;
}

#clock {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ccc;
    font-size: 16px;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 9999;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 12px 16px;
        flex-direction: row;          /* horizontal instead of vertical */
        overflow-x: auto;             /* scrollable if too wide */
        white-space: nowrap;          /* prevent wrapping */
        gap: 24px;
        border-right: none;
        border-bottom: 1px solid #222;
        /* hide scrollbar but keep functionality */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .sidebar::-webkit-scrollbar {
        display: none;
    }
    .sidebar a {
        display: inline-block;
        font-size: 16px;
        flex-shrink: 0;              /* prevent links from shrinking */
    }
    .content {
        margin-left: 0;
        margin-right: 10px;
        padding: 20px;
        max-width: 90%;
    }
    #clock {
        top: 60px;
        right: 10px;
        font-size: 14px;
        padding: 4px 8px;
        z-index: 9999;
    }
    footer {
        padding-right: 20px;
        text-align: center;
    }
    h1 {
        font-size: 36px;
    }
}

@media (min-width: 1400px) {
    .content {
        margin-right: 100px;
        margin-left: 700px;
        margin-top: 100px;
        max-width: 1100px;
        font-size: larger;
    }
}


#globe-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    opacity: 0.40; /* dim it so text is still readable */
    pointer-events: none; /* add this -- stops it from blocking clicks */
}

#globe-container canvas {
    background: transparent !important;
}

.content a {
  color: #ffffff;
}

.content a:hover {
  color: #ffffff;
  text-decoration: underline;
}
