/* Reset default margins and ensure box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style h1 elements with a bold, outlined text effect */
h1{
    -webkit-text-fill-color: white;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: black;
    text-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Apply a gradient background to the body */
body {
    background: linear-gradient(to bottom, #06b6d4, #242561);
}

/* Header styling with modern typography and shadow */
header {
    font-family: 'Inter', Tahoma, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    padding: 1.2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

/* Style images within the header */
header > img {
    height: 100px;
    width: auto;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Main grid layout */
main {
    display: grid;
    grid-template-columns: minmax(340px, 400px) minmax(870px, 95%) minmax(222px, 280px);
    min-height: 100vh;
}

/* Main content column with subtle background and padding */
.mainColumn {
    font-family: 'Inter', Tahoma, sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 1rem;
    margin: 1.2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Make the left column sticky */
.leftColSticky{
    position: sticky;
    top: .4rem;
}

/* Style account navigation container */
#acctNav {
    display: flex;
    justify-content: left;
    margin: 0.4rem 0.4rem 0 0.4rem;
}

/* Adjust left column content styling */
#leftColContent  {
    margin-top: 0;
    border-top-left-radius: 0;
}

/* Style avatar image */
#avatar {
    width: 100px;
    height: auto;
}

/* Style forms with a vertical layout */
form {
    display: flex;
    flex-direction: column;
    row-gap: 0.4rem;
}

/* Consistent font size for inputs */
input{
    font-size: 1rem;
}

/* Consistent font size for select elements */
select{
    font-size: 1rem;
}

/* Style error messages */
.errorMessage{
    font-size: 0.9rem;
    color: red;
}

/* Style navigation container */
nav{
    display: flex;
    justify-content: left;
    margin: 0.4rem 0.4rem 0 0.4rem;
}

/* Style navigation tabs with a modern look */
.navTab{
    font-family: 'Inter', Tahoma, sans-serif;
    font-size: 1.1rem;
    line-height: 1.2;
    padding: 0.8rem;
    margin: .8rem;
    margin-bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px 8px 0 0;
    box-shadow: 0px -6px 9px 0px rgba(0, 0, 0, 0.15) inset;
    cursor: pointer;
}

/* Ensure child elements of nav tabs are clickable */
.navTab > *{
    cursor: pointer;
}

/* Style active navigation tabs */
.navTab.active{
    box-shadow: none;
    cursor: default;
}

/* Ensure child elements of active tabs are not clickable */
.navTab.active> *{
    cursor: default;
}

/* Adjust middle column content styling */
#midColContent{
    margin-top: 0;
    border-top-left-radius: 0;  
}

/* Ensure lab cards section takes full width */
#labCards{
    display: block;
    width: 100%;
}

/* Lab cards grid with responsive layout */
.labCardsContainer {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 1.4rem;
    width: 100%;
    margin: 1.2rem auto;
    padding: 0 1rem;
}

/* Lab card link styling */
.labCardLink {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.labCardLink:hover {
    transform: translateY(-6px);
}

/* Lab card styling with modern hover effects */
.labCard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.labCard:hover {
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

/* Lab card image styling */
.labCardImg {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

/* Style lab card text with consistent typography */
.labCardText {
    margin: 0.75rem 0;
    text-align: center;
    color: #1f2937;
    font-family: 'Inter', Tahoma, sans-serif;
}

.labCardText h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.labCardText p {
    font-size: 0.9rem;
    color: #4b5563;
}

/* Lab description styling */
.labDescription {
    text-align: left;
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.5;
}

/* Hover and focus effects for lab card text */
.labCard:hover .labCardText h3,
.labCardLink:focus .labCardText h3 {
    color: #3b82f6;
}


/* Blog post styling with modern card design */
.blogPost {
    display: flex;
    flex-direction: column;
    margin: 1.2rem 0;
    padding: 1.2rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

/* Blog post image styling */
.blogPostImg {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Blog post title styling */
.blogPost h3 {
    font-family: 'Inter', Tahoma, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

/* Blog post text styling */
.blogPost p {
    font-family: 'Inter', Tahoma, sans-serif;
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Timestamp styling */
.timestamp {
    display: block;
    font-family: 'Inter', Tahoma, sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: right;
    margin-top: 0.4rem;
}

/* Style individual comments */
.comment{
    margin: 0.8rem;
    display: flex;
    flex-direction: column;
    border-width: 1px 0 0 0;
    border-style: dashed;
    border-color: #e2e8f0;
    font-family: 'Inter', Tahoma, sans-serif;
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Style comment section forms */
.commentSection{
    display: flex;
    flex-direction: column;
}

/* Style comment section container */
.commentSectionDiv{
    margin-left: 1.6rem;
    margin-right: 1.6rem;
}

/* Style comment input textarea */
.addCommentText{
    font-size: 1rem;
    padding: 0.2rem;
}

/* Style mini avatar images */
.miniAvatar{
    width: 40px;
    height: auto;
}

/* Style buttons with consistent padding */
button {
    align-self: flex-start;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    font-size: initial;
}

/* Add padding to input fields */
input{
    padding: 0.2rem;
}

/* Style videos section */
#tbd {
    padding: 1.2rem; 
}

/* Ensure iframes maintain aspect ratio */
iframe {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
}

/* Make bonus column sticky */
#bonusColumn{
    position:sticky;
    top:1.2rem;
}

/* Style sorter elements with sticky positioning */
.sorter{
    position: sticky;
    top: 2.2rem;
}

/* Position canvas as a full-screen background */
canvas{
      position: fixed; /* Ensures it stays in place even when scrolling */
      top: 0;
      left: 0;
      width: 100%; /* Covers the entire viewport */
      height: 100%;
      z-index: -1; /* Places it behind all other content */
}

/* Style customoji form with a grid layout */
#customojiForm{
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-auto-flow: column;
    font-weight: 400;
    font-style: normal;
}

/* Style left customoji buttons */
.customojiLeftButton{
    align-self: end;
    margin: 0.4rem;
}

/* Style right customoji buttons */
.customojiRightButton{
    align-self: start;
    margin: 0.4rem;
}

/* Stack buttons vertically */
.buttonStack{
    display: flex;
    flex-flow: column;
    justify-content: center;
}

/* Center the customoji submit button */
#customojiSubmit{
    align-self: center;
}

/* Style customoji preview container */
#customojiPreview{
    position: relative;
    aspect-ratio: 1.2;
}

/* Style profile picture container */
#profilePicture{
    position: relative;
    aspect-ratio: 1.2;
}

/* Style mini customoji display */
.miniCustomoji{
    position: relative;
    aspect-ratio: 1.2;
    width: 64px;
}

/* Position hat elements in customoji */
.hat{
    position: absolute;
    bottom: 54%;
    left:28%;
    width: 45%;
    z-index: 1;
}

/* Position face elements in customoji */
.face{
    position: relative;
    width: 59%;
    left: 21%;
    top: 25%;
}

/* Position hand elements in customoji */
.hand{
    position: absolute;
    left: 0;
    width: 37%;
    bottom: 0;
    z-index: 2;
}

/* Position accessory elements in customoji */
.accessory{
    position: absolute;
    width: 33%;
    bottom: 0;
    left: 65%;
    z-index: 3;
}

.location{
    position: absolute;
}

/* Specific positioning adjustments for customoji elements */

img[src="/emoji/hats/womens.svg"]{
    bottom: 40%;
    left: 16%;
  	transform: scaleX(-1);
}

img[src="/emoji/hats/ballcap.svg"]{
  	left: 27%;
    bottom: 46%;
}

img[src="/emoji/hats/gradcap.svg"]{
    bottom: 47%;
}

img[src="/emoji/hands/flex.svg"]{
    left: -2%;
    bottom: 15%;
}

img[src="/emoji/hats/glasses.svg"]{
    bottom: 34%;
}

img[src="/emoji/hats/interrobang.svg"]{
    bottom: 52%;
    left: 24%;
    width: 30%;
}

img[src="/emoji/hats/poop.svg"]{
    bottom: 61%;
    left: 35%;
    width: 30%;
}

img[src="/emoji/hats/sprout.svg"]{
    bottom: 61%;
    left: 35%;
    width: 30%;
}

img[src="/emoji/hats/bow.svg"]{
    bottom: 50%;
    left: 35%;
    width: 30%;
}

img[src="/emoji/accessories/sparkles.svg"]{
    bottom: 53%;
    left: 69%;
    width: 30%
}

img[src="/emoji/accessories/balloon.svg"]{
    bottom: 53%;
}

img[src="/emoji/faces/monkey.svg"]{
    width: 65%;
    left: 18%;
    top: 19%;
}

img[src="/emoji/hats/thought.svg"]{
	width: 27%;
    left: 9%;
    bottom: 61%;
    transform: scaleX(-1);
}

img[src="/emoji/hats/rain.svg"]{
	bottom: 51%;
}

img[src="/emoji/hands/pinch.svg"]{
	transform: scaleX(-1);
}

img[src="/emoji/hands/pointup.svg"]{
	bottom: 10%;
}

img[src="/emoji/hands/pointright.svg"]{
	bottom: -6%;
  	left: 7%
}

/* Footer styling with modern look */
footer {
    font-family: 'Inter', Tahoma, sans-serif;
    font-size: 0.9rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: #4b5563;
}

/* Hidden elements */
[hidden] {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 1440px) {
    main {
        grid-template-columns: minmax(0px, 1440px);
    }

    .mainColumn {
        margin: 1.2rem;
        padding: 1.5rem;
    }

}

@media (max-width: 900px) {
    
    header{
    font-size: 1rem;
  }
  
    main {
        grid-template-columns: minmax(0px, 900px);
    }

    .mainColumn {
        margin: 1.2rem;
        padding: 1.5rem;
    }

    .labCardsContainer {
        grid-template-columns: 1fr;
    }
}