* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background-color: #f0f0f0;
    color: #333;
}

header {
    background-color: #f0f0f0;
    display: grid;
    grid-template-columns: 2fr 5fr 2fr;
    align-items: center;
    height: 88px;
    padding: 10px;
}

#header-svg-text {
    height: auto;
    width: 100%;
    max-width:220px;
    min-width: 0px;
}

#header-text-wrapper {
    grid-row: 1;
    grid-column: 2;
    display:flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#header-svg-icon {
    grid-row: 1;
    grid-column: 3;
    height: 70px;
    justify-self: right;
}

/*======================
HAMBURGER AND NAVIGATION
========================*/

#hamburger {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #f0f0f0;
    border: 2px solid rgb(0, 0, 0, 1);
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
    align-items: center;
    z-index: 2001;
    border-radius: 8px;
}

/*the lines inside the button that make the hamburger*/
#hamburger span {
    display: block;
    width: 42px;
    height: 4px;
    padding: 0;
    margin: 0;
    background-color: #333;
    border-radius: 8px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/*==========*/
/*SLIDE MENU*/
/*==========*/

/*
MENU STATE MANAGEMENT
All menu open/close behavior is controlled by toggling
the 'menu-open' class on the body element.
When body has class 'menu-open':
  - slide menu slides in from left
  - overlay appears behind menu
  - page scroll is disabled
  - hamburger animates into an X
JavaScript only needs to add/remove this one class.
*/

#slide-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: #f0f0f0;
    z-index: 2000;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease;
    padding: 4rem 1rem 1rem 1rem;
}

/*
The menu-open class can be toggled on the body element
This activates and deactives the css to open menu
and style to hamburger into an x
The individual elements are selected with
a descendant combinator ID
*/

/*slide out menu when menu-open class is added to body element*/
body.menu-open #slide-menu {
    left: 0;
}

/*changes the display on the overlay from none to block
when menu-open class is added to body element*/
body.menu-open #menu-overlay {
    display: block;
}

/*stops the feed scroll when menu-open class is added
to body element*/
body.menu-open {
    overflow: hidden;
}

/*translates the hamburger into an x
when menu-open class added to body element*/

body.menu-open #hamburger span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

body.menu-open #hamburger span:nth-child(2) {
    opacity: 0;
}

body.menu-open #hamburger span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

#slide-menu ul {
    list-style: none;
}

#slide-menu ul li {
    border-bottom: 1px solid #ddd;
}

#slide-menu ul li a {
    display: block;
    padding: 1rem 0.5rem;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
}

#slide-menu ul li a:hover {
    color: #0066cc;
}

#menu-active {
    background-color: #ddd;
}

#menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

/*=======
PROFILE
=========*/

#profile {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

#profile-banner {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
    background-color: #ccc;
}

#profile-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-top: 0;
    border-radius: 0;
}

#profile-body {
    display: grid;
    grid-template-rows: 124px 1fr;
    grid-template-columns: 120px 1fr;
    padding: 0 1rem 1rem 1rem;
    position: relative;
}

#profile-avatar {
    grid-row: 1;
    grid-column: 1;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border:0px;
    /*border: 3px solid white;
    position: absolute;
    top: -40px;
    left: 1rem;*/
    object-fit: cover;
    margin-top:4px;
}

#profile-info {
    /*padding-top: 48px;*/
    grid-row: 2;
    grid-column: 1/ span 2;
}

#profile-name-handle {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    grid-row:1;
    grid-column: 2;
    padding-left:12px;
}

#profile-display-name {
    font-size: 1.4rem;
    font-weight: bold;
}

#profile-handle {
    font-size: 1.2rem;
    color: #999;
    /*margin-top: 0.1rem;*/
}

#profile-description {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    white-space: normal;
}

#content {
    background-color: white;
    display: grid;

    padding-left: 8px;
    padding-right: 8px;

    width: 100%;
    height: auto;

    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    grid-auto-rows: auto;

    grid-gap: 4px;

    justify-content: center;
    justify-items: center;
    align-content: center;
    align-items: center;
}

.index-card {

    max-width: 100%;
    height: auto;

    min-height: 0;
    min-width: 0;

    object-fit: contain;
}

#copyright-text {
    text-align: center;
}

#copyright-text img {
    width: 300px;
    padding: 4px;
    margin: 4px;
}

/* on wide screens show the menu permanently */
@media (min-width: 768px) {

    #slide-menu {
        left: 0;
        box-shadow: none;
        border-right: 1px solid #ddd;
        grid-row: 2;
        grid-column: 1;
        position: sticky;
    }

    #hamburger {
        display: none;
    }

    #menu-overlay {
        display: none !important;
    }

    body {
        display: grid;
        grid-template-columns: 280px 1fr;
        grid-template-rows: auto 1fr;
        height: 100vh;
        overflow: hidden;
        max-width: 1200px;
        margin: 0 auto;
    }

    header {
        grid-column: 2;
        grid-row: 1;
    }

    main {
        grid-column: 2;
        grid-row: 2;
        /* sits below the header */
        overflow-y: auto;
        /* scrolls within its own lane */
        min-height: 0;
        /* critical — lets the grid item shrink to fit */
        width: 100%;
    }
}

@media (min-width: 1146px) {

    /* Adjust the breakpoint as needed */
    #IndexContent {
        grid-template-columns: repeat(4, minmax(240px, 1fr));
    }
}