:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --header-bg: rgb(240, 240, 240);
    --sidebar-bg: rgb(24, 24, 24);
    --sidebar-text: white;
    --sidebar-item-bg: rgb(50, 50, 50);
    --card-shadow: rgba(0, 0, 0, 0.2);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-color: #e0e0e0;
        --header-bg: #1e1e1e;
        --card-shadow: rgba(0, 0, 0, 0.5);
    }
    .social-icon {
        filter: invert(1);
    }
}

html, body {
    overflow: hidden;
    height: 100%;
    width: 100%;
    padding: 0%;
    margin: 0%;
    font-family: system-ui;
    background-color: var(--bg-color);
    color: var(--text-color);
}

#content {
    display: flex;
    flex-flow: column;
    width: calc(100% - 160px);
    height: 100%;
    transition: width 1s, transform 0.4s ease-out, filter 0.4s ease-out;
    transition-timing-function: ease-in-out;
    transform-origin: left center;
}

#content.preview-peek {
    transform: scale(0.98) translateX(-10px);
    filter: brightness(0.9);
    border-radius: 15px;
    overflow: hidden;
}

.header {
    background-color: var(--header-bg);
    margin: 0%;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 20px;
    font-size: 1em;
}

#sidebar {
    position: fixed;
    height: 100%;
    width: 160px;
    top: 0;
    right: 0;
    background-color: var(--sidebar-bg);
    overflow-x: hidden;
    text-align: center;
    padding-top: 20px;
    color: var(--sidebar-text);
    transition: width 1s;
    transition-timing-function: ease-in-out;
}

.sidebarItem {
    display: inline-block;
    background-color: var(--sidebar-item-bg);
    margin-top: 5px;
    margin-bottom: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1em;
    width: 100%;
    color: transparent;
    text-shadow: 0 0 0 var(--sidebar-text);
    transition: background-color 0.3s ease, border-left 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebarItem:hover {
    background-color: rgb(70, 70, 70);
}

.sidebarItem.active-tab {
    background-color: rgb(100, 100, 100);
    border-left: 4px solid #ff6600;
}

#innerContent {
    padding: 0px;
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.page-section {
    height: 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#gravityBall {
    padding: 0%;
    height: 100%;
    width: 100%;
    display: block;
}

#sidebar.collapseSidebar {
    width: 50px;
}

#sidebar.expandSidebar {
    width: 160px;
}

#content.collapseContent {
    width: calc(100% - 160px);
}

#content.expandContent {
    width: calc(100% - 50px);
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-top: 25px;
}

a {
    text-decoration: none;
}

.project-card {
    width: 300px;
    height: 200px;
    background-color: #777777;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 10px var(--card-shadow);
    transition: transform 0.3s ease;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-card:hover .project-title {
    color: #ff6600;
}

.project-card:hover .project-description {
    color: #fefefe;
}

.project-card:hover .project-image {
    filter: brightness(70%);
}

.project-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

.project-description {
    font-size: 14px;
    color: #eeeeee;
    margin-bottom: 10px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.social-links {
    margin-right: 15px;
}

.clickable {
    cursor: pointer;
    user-select: none;
}

.clickable:focus-visible {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
    border-radius: 4px;
}

.sidebarItem:focus-visible {
    text-shadow: 0 0 0 #ff6600;
}
