/* Make Best Of card and its content much wider, override default card width */
.bestof-card {
  max-width: 1400px !important;
  width: 98vw;
  margin-left: auto;
  margin-right: auto;
}
.bestof-card iframe {
  max-width: 100%;
  width: 100%;
  min-width: 300px;
}
.page-content .bestof-card {
  max-width: 1400px !important;
  width: 90vw;
}
/* Make Best Of card much wider */
.bestof-card {
  max-width: 1100px;
  width: 98%;
  margin-left: auto;
  margin-right: auto;
}
/* Restrict homepage card width to match other cards */
.homepage-card {
  max-width: 540px;
  width: 100%;
}
/* Limit collage carousel width, don't affect other cards */
.collage-carousel-wrapper {
  max-width: 700px;
  margin: 0 auto;
}
/* Add bottom margin to all cards for footer separation */
.card {
  margin-bottom: 1.5rem;
}
/* Float About image right and wrap text on desktop, stack on mobile */
.about-float-img {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 0.5rem;
  max-width: 260px;
  width: 45%;
  height: auto;
  object-fit: cover;
}
@media (max-width: 768px) {
  .about-float-img {
    float: none;
    display: block;
    margin: 0 auto 1rem auto;
    width: 90%;
    max-width: 340px;
  }
}
/* Add margin-top to promo card for header separation */
#promo .card,
#influence .card,
#music .card {
    margin-top: 2.5rem;
}
@media (min-width: 769px) {
    .nav-elements {
        display: block !important;
        position: static;
        width: auto;
        background: none;
        padding: 0;
    }
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #fcfcfc;
}

.main-app {
    text-align: center;
    max-width: 100%;
    overflow-x: hidden;
    background-position: initial; 
    font-family: "B612 Mono";
}

/* Custom Navbar Styles */
.custom-navbar {
    height: 60px;
    background-color: #fef7e5;
    position: relative;
    z-index: 1000;
}
    z-index: 1000;

.navbar-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    
}
.nav-elements {
    /* Removed align-self: center to allow flexbox to align nav-elements to the right */
    
}
    
z-index: 1000;

.navbar-toggler {
    border: none;
    background: transparent;
    font-size: 2rem;
    z-index: 1000; /* This line is already present, so it can be removed */
    margin-left: auto;
    
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler-icon {
    display: inline-block;
    width: 2em;
    height: 2em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28247, 76, 76, 0.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

@media (max-width: 768px) {
    .nav-elements {
        width: 100%;
        background: #fef7e5;
        padding: 1rem 0;
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 999;
    }
    .nav-links {
        width: 100%;
        padding-left: 0;
    }
    .nav-links li {
        margin: 0.5rem 1.5rem;
    }
    .navbar-container {
        position: relative;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    padding-left: 5px;
    padding-top: 5px;
}

.logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2f234f;
    font-family: "B612 Mono";
    font-weight: 600;
    font-size: 1rem;
}

.logo-container a:hover {
    color: #574c4c;
}

.nav-links {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: auto;
}

.nav-links li:not(:last-child) {
    margin-right: 15px;
}

.nav-links a {
    font-size: 16px;
    font-weight: 400;
    color: #2f234f;
    text-decoration: none;
    padding: 10px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #574c4c;
    font-weight: 500;
}

.nav-links a.active {
    color: #574c4c;
    font-weight: 500;
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 10px;
    width: calc(100% - 20px);
    height: 2px;
    background-color: #574c4c;
}

/* Background Container */
.background-container {
    background-image: url('https://morphic-images.s3.us-east-2.amazonaws.com/30/Athleticon_Gradient_1800_2_95fdea7dc1.gif');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-page-image {
    width: 40%;
    height: 40%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Homepage Layout Styles */
.homepage-layout .card {
    max-width: 1300px;
    width: 1300px;
    min-height: 520px;
    max-height: 650px;
    overflow-y: auto;
    background-color: rgba(255, 255, 255, 0.9);
}

.homepage-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    min-height: 400px;
}

.homepage-image-container {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.homepage-image {
    max-width: 100%;
    width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
}

.homepage-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.typing-text {
    font-family: "B612 Mono", monospace;
    font-size: 2rem;
    font-weight: 700;
    color: #2f234f;
    line-height: 1.2;
    min-height: 2.4rem;
}

.typed-text {
    display: inline-block;
}

.cursor {
    display: inline-block;
    background-color: #574c4c;
    margin-left: 3px;
    width: 3px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Character fade-in animation */
.char {
    opacity: 0;
    animation: fadeIn 0.1s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.homepage-image-mobile {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.welcome-text {
    margin: 0;
    color: #666;
}

/* Page content styles */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* Modal content styles - make boxes narrower */
.page-content .card {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-content .card-body {
    padding: 2rem;
}

.page-content h2 {
    color: #2f234f;
    margin-bottom: 1rem;
    font-family: "B612 Mono";
}

.page-content h1, .page-content h3 {
    color: #2f234f;
    margin-bottom: 1rem;
    font-family: "B612 Mono";
}

.page-content h1 {
    font-size: 1.8rem;
}

.page-content h2 {
    font-size: 1.4rem;
}

.page-content h3 {
    font-size: 1.1rem;
    font-style: italic;
}

.page-content p {
    color: #574c4c;
    line-height: 1.6;
}

/* Promo page specific styles */
.promo-page-list {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 1rem;
}

.promo-page-list li {
    margin-bottom: 0.8rem;
    color: #2f234f;
    line-height: 1.5;
}

.promo-page-list ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.promo-page-list ul li {
    margin-bottom: 0.4rem;
    color: #574c4c;
    font-size: 0.95rem;
}

.promo-page-list a {
    color: #574c4c;
    text-decoration: underline;
    cursor: pointer;
}

.promo-page-list a:hover {
    color: #2f234f;
    font-weight: 500;
}

.welcome {
    color: #2f234f;
    text-align: center;
    margin-bottom: 1rem;
}

.wrap {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
    height: auto;
}

/* Media Queries */
@media (max-width: 768px) {
    .homepage-image-mobile {
        width: 75%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    .page-content .card {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .page-content .card-body {
        padding: 1.5rem;
    }
    
    /* Mobile homepage layout */
    .homepage-content {
        flex-direction: column;
        gap: 2rem;
        min-height: auto;
        text-align: center;
    }
    
    .homepage-layout .card {
        width: 200%;
        max-width: 200%;
    }
    
    .homepage-image {
        width: 280px;
    }
    
    .typing-text {
        font-size: 2.2rem;
        min-height: 2.6rem;
    }
    
    .homepage-text-container {
        align-items: center;
        max-width: 100%;
        width: 300px;
        height: auto;
        border-radius: 0;
        box-shadow: none;
        background: none;
        transition: width 0.3s ease;
@media (max-width: 480px) {
