* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    user-select: none;
    color: #fff;
    font-family: 'firacode', monospace;
    -ms-overflow-style: none;
    scrollbar-width: none;
    line-height: 1.5em;
    -webkit-text-size-adjust: 100%;
}

*::-webkit-scrollbar {
    display: none;
}

html,
body {
    min-height: 100%;
    background-color: black;
}

body.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: black;
}

main.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 5rem 1.5rem 3rem;
    text-align: center;
}

.navi {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.socialink {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
    font-size: 1.05rem;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a.current {
    color: gray;
}

a.current:hover {
    text-decoration: none;
    cursor: default;
}

.linkicon {
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
}

.pageTitle {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.pageSubtitle,
h3 {
 color: gray;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.subtitle-left,
.subtitle-right,
.subtitle-divider {
    color: gray;
}

.desc {
    font-weight: 400;
    font-size: 1.05rem;
    max-width: 270rem;
    width: 100%;
    line-height: 1.7;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.profile-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(12rem, 1fr));
    gap: 1rem;
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 30rem;
}

.profile-image {
    width: 100%;
}

.profile-image .pfp {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1rem;
    display: block;
}

.profile-text {
    max-width: 36rem;
}

.copyright {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.95);
}

.copyrightLabel {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    color: #fff;
    font-weight: bold;
    text-shadow: #000000 1px 1px 1px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
}

textarea {
    background: inherit;
    border-radius: 5px;
    border: 2px solid white;
}

/* Grid Views */

.gridType {
    padding-top: 10em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    vertical-align: middle;
    background-color: black;
    text-align: center;
    padding-bottom: 5em;
}

.gridTitle, .gridSubtitle {
    width: 100vw;
}

.gridBigPhoto {
    width: calc(75vw + 4em);
    margin: 1em;
    border-radius: 5px;
}

.gridBigPhoto.mobile {
    width: calc(80vw + 1em);
    margin: 0.5em;
}

.gridItem {
    position: relative;
    width: 25vw;
    height: 25vw;
    margin: 1em;
}

.gridItem.mobile {
    width: 40vw;
    height: 40vw;
    margin: 0.5em;
}

.gridItemWide {
    position: relative;
    width: 40vw;
    height: calc(20vw + 4em);
    margin: 1em;
}

.gridItemWide.mobile {
    width: 80vw;
    height: calc(40vw + 8em);
    margin: 0.5em;
}

.gridImage {
    display: block;
    border-radius: 5px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gridImageWide {
    display: block;
    border-radius: 5px;
    width: 40vw;
    height: 20vw;
    object-fit: cover;
}

.gridImageWide.mobile {
    width: 80vw;
    height: 40vw;
}

.gridLabel {
    position: absolute;
    overflow: wrap;
    right: 1em;
    left: 1em;
    bottom: 1em;
    width: fit-content;
    padding: 0.5em 2em 0.5em 2em;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 1em;
    margin: auto;
}

.gridLabel.mobile {
    display: none;
}

.gridDesc {
    display: block;
    padding-top: 1em;
}

@keyframes FadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes FadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Mob Rule */

.mobrule-container {
    width: 100%;
    min-height: calc(100vh - 6rem); /* Accounts for the navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    margin-top: 1rem;
    overflow: hidden;
}

.mobrule-gif {
    display: block;
    width: auto;
    height: auto;

    /* Keep the entire GIF visible */
    max-width: 100%;
    max-height: calc(100vh - 8rem);

    object-fit: contain;
    border-radius: 0;
}

.splitTitle {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto 1.5rem;
  color: gray; /* ensure base color stays */
}

.splitTitle .left,
.splitTitle .right,
.splitTitle .divider {
  color: gray;
}

.splitTitle .left {
  justify-self: end;
  text-align: right;
  padding-right: 1rem;
}

.splitTitle .right {
  justify-self: start;
  text-align: left;
  padding-left: 1rem;
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0.5rem;
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    min-width: 12rem;

    background: rgba(0, 0, 0, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;

    z-index: 100;
}

.dropdown-content a {
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
}