@charset "UTF-8";

* {
    margin:0;
}

:root {
    --body-width:45%;
    --body-max-width:500px;
    --img-height:150px;
    /* --img-max-width:230px; */
    --img-width:100%;
} 

.uimg {
    /* max-width:var(--img-max-width); */
    height:var(--img-height);
}
/* layout definition */
header {
    top: 0;
    width: 100%;
    position:fixed;
    left: 0;
    right: 0;
    height:40px;
    background-color: #fff;
    z-index: 9999;
    font-size: 32px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bolder;
}
nav {
    background-color: #fff;
    z-index: 9999;
}

nav.topnav {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    width: var(--body-width);
    max-width: var(--body-max-width);
    margin: 0 auto;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #ddd;
    border-left: none;
    border-right: none;
    z-index: 9998;
    display: none; /* Hide by default to prevent flash on page load */
}
nav.topnav > div {
    background-color: #FFF;
    width: 100%;
    margin: auto;
}
main {
	margin: auto;
	padding-top: 44px;
	display:block;
	width: clamp(500px, var(--body-width), var(--body-max-width)); /* Prevent expansion when console is open */
	max-width:var(--body-max-width);
	padding-bottom: 90px; /* Increased to account for bottom nav */
}

.bottomnav {
    width:100%;
    height:60px;
    position: fixed;
    bottom:0vh;
    left: 0;
    right: 0;
    z-index: 9997;
}
.bottomnav > div {
	border-top:2px solid black;
	width: clamp(500px, var(--body-width), var(--body-max-width)); /* Prevent expansion when console is open */
	max-width:var(--body-max-width);
	margin:auto;
}
header > div {
	width: clamp(500px, var(--body-width), var(--body-max-width)); /* Prevent expansion when console is open */
	max-width:var(--body-max-width);
	margin: auto;
	border-bottom:3px solid rgba(88, 82, 82, 0.664);
}

/* header flexbox */
.d-header {
    display:flex;
    flex-wrap: nowrap;
}
.d-header div:first-child {
    /* flex-basis: 100%; */
}
.d-header div:last-child {
    flex-basis: content;
}

/* toggle menu and slider button */
#menuToggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    -webkit-user-select: none;
    user-select: none;
    width: 24px;
    height: 24px;
}

#menuToggle input {
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    cursor: pointer;
    opacity: 0; /* hide this */
    z-index: 2; /* and place it over the slider */
    -webkit-touch-callout: none;
}

.slider-icon {
    display: block;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.slider-icon svg {
    width: 100%;
    height: 100%;
}

/* When menu is expanded (checked) - change colors to black */
#menuToggle input:checked + .slider-icon svg rect {
    fill: #000 !important;
}


/* navi flexbox */
#navi {
    display:flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.5em;
}
#navi div {
    height:32px;
    padding-left:0.3em;
    padding-right:0.3em;
    white-space: nowrap;
}
#navi a {
    padding-top:10px;
    text-transform: uppercase;
    color: #34495e;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}

/* <main> definition */

/* attempting to style the ordered list */
.item-name {
    cursor:grab
}

/* User icons styling */
.user-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-icon {
    cursor: pointer;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-icon:hover {
    opacity: 0.7;
}

.user-icon svg {
    width: 24px;
    height: 24px;
}

/* Mobile hamburger menu adjustment */
@media (max-width: 768px) {
    #menuToggle {
        margin-right: 10px;
    }
    
    .user-icons {
        margin-right: 5px;
    }
}
