body {
    margin: 0;
    min-height: 100vh;
    transition: background 1s ease;
    overflow: hidden;
    overflow-x: hidden; /* Explicitly prevent horizontal scrolling */
    width: 100%;
    max-width: 100vw; /* Ensure body doesn't exceed viewport width */
    position: relative;
}

/* Loading screen styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: white;
    font-family: Arial, sans-serif;
    transition: opacity 1s ease;
}

.loading-spinner {
    width: 250px;
    height: 250px;
    border: 40px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

/* Stars Styles */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 3s ease;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
}

.star-tiny {
    width: 1px;
    height: 1px;
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

.star-small {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.7);
}

.star-medium {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 3px white;
}

.star-large {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 4px white;
    animation: twinkle 4s infinite alternate;
}

.star-bright {
    width: 3px;
    height: 3px;
    box-shadow: 0 0 6px white;
    animation: twinkle 3s infinite alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* Sun and Moon Styles */
.celestial {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    transition: all 1s ease;
}

.sun {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #FFEB3B 0%, #FFF176 50%, #FFFDE7 100%);
    box-shadow: 0 0 50px #FFEB3B, 0 0 100px #FFF59D;
    animation: glow 8s infinite alternate;
    filter: blur(4px);
}

.moon {
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #F5F5F5 50%, #E0E0E0 100%);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.7), 0 0 80px rgba(255, 255, 255, 0.4);
    filter: blur(1px);
}

.moon::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 10px;
    height: 10px;
    background: rgba(200, 200, 200, 0.2);
    border-radius: 50%;
    box-shadow: 10px 5px 0 rgba(200, 200, 200, 0.2),
                -10px 15px 0 rgba(200, 200, 200, 0.2);
}

@keyframes glow {
    0% {
        box-shadow: 0 0 50px #FFEB3B, 0 0 100px #FFF59D;
    }
    100% {
        box-shadow: 0 0 60px #FFEB3B, 0 0 120px #FFF59D;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 20px;
    letter-spacing: 2px;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Ensure all fixed and absolute positioned elements respect viewport */
.cloud, .celestial, .star, .stars-container {
    pointer-events: none; /* Prevent these elements from capturing mouse events */
}

/* Cloud container for overflow control */
.cloud-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
}

/* Fix cloud positioning to stay within viewport */
.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 100px;
    filter: blur(3px);
    will-change: transform;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    z-index: 5;
    overflow: visible; /* Allow cloud puffs to overflow the cloud itself */
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 100%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.cloud::before {
    width: var(--before-size);
    height: var(--before-size);
    top: var(--before-top);
    left: var(--before-left);
}

.cloud::after {
    width: var(--after-size);
    height: var(--after-size);
    top: var(--after-top);
    left: var(--after-left);
}

.cloud-puff {
    position: absolute;
    background: white;
    width: var(--puff-size);
    height: var(--puff-size);
    top: var(--puff-top);
    left: var(--puff-left);
    border-radius: 100%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Additional puffs for better cloud shape */
.cloud-puff-large {
    position: absolute;
    background: white;
    width: calc(var(--puff-size) * 1.2);
    height: calc(var(--puff-size) * 1.2);
    top: calc(var(--puff-top) - 10px);
    left: calc(var(--puff-left) + 5px);
    border-radius: 100%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.cloud-puff-small {
    position: absolute;
    background: white;
    width: calc(var(--puff-size) * 0.7);
    height: calc(var(--puff-size) * 0.7);
    bottom: calc(var(--puff-bottom, 0px));
    left: calc(var(--puff-left) - 10px);
    border-radius: 100%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/* Add grass at the bottom */
.grass {
    display: none; /* Hide grass completely */
    /*
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35px; 
    background-color: #2e8b2e; 
    z-index: 4;
    overflow: hidden;
    filter: blur(1.5px);
    box-shadow: 0 -5px 10px rgba(46, 139, 46, 0.3);
    */
}

/* Add texture to grass using pseudo-elements for the blades */
.grass::before, .grass::after {
    display: none; /* Hide grass elements */
    content: '';
}

/*
.grass::before {
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 20px;
    filter: blur(1px);
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 5%,
        #2e8b2e 5%,
        #2e8b2e 10%,
        transparent 10%,
        transparent 15%,
        #2e8b2e 15%,
        #2e8b2e 20%,
        transparent 20%,
        transparent 25%,
        #2e8b2e 25%,
        #2e8b2e 30%,
        transparent 30%,
        transparent 35%,
        #2e8b2e 35%,
        #2e8b2e 40%,
        transparent 40%,
        transparent 45%,
        #2e8b2e 45%,
        #2e8b2e 50%,
        transparent 50%,
        transparent 55%,
        #2e8b2e 55%,
        #2e8b2e 60%,
        transparent 60%,
        transparent 65%,
        #2e8b2e 65%,
        #2e8b2e 70%,
        transparent 70%,
        transparent 75%,
        #2e8b2e 75%,
        #2e8b2e 80%,
        transparent 80%,
        transparent 85%,
        #2e8b2e 85%,
        #2e8b2e 90%,
        transparent 90%,
        transparent 95%,
        #2e8b2e 95%,
        #2e8b2e 100%
    );
}

.grass::after {
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 15px;
    filter: blur(2.8px);
    background: linear-gradient(
        90deg,
        #2e8b2e 0%,
        #2e8b2e 5%,
        transparent 5%,
        transparent 10%,
        #2e8b2e 10%,
        #2e8b2e 15%,
        transparent 15%,
        transparent 20%,
        #2e8b2e 20%,
        #2e8b2e 25%,
        transparent 25%,
        transparent 30%,
        #2e8b2e 30%,
        #2e8b2e 35%,
        transparent 35%,
        transparent 40%,
        #2e8b2e 40%,
        #2e8b2e 45%,
        transparent 45%,
        transparent 50%,
        #2e8b2e 50%,
        #2e8b2e 55%,
        transparent 55%,
        transparent 60%,
        #2e8b2e 60%,
        #2e8b2e 65%,
        transparent 65%,
        transparent 70%,
        #2e8b2e 70%,
        #2e8b2e 75%,
        transparent 75%,
        transparent 80%,
        #2e8b2e 80%,
        #2e8b2e 85%,
        transparent 85%,
        transparent 90%,
        #2e8b2e 90%,
        #2e8b2e 95%,
        transparent 95%,
        transparent 100%
    );
}
*/

/* Attribution styles */
.attribution {
    position: fixed;
    bottom: 20px; /* Increased to sit above the taller grass */
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
    z-index: 10;
    opacity: 0; /* Initially hidden */
    transition: opacity 1s ease; /* Smooth fade-in */
    padding: 10px;
}

/* Dog placeholder styles */
.dog-placeholder {
    display: none;
    position: fixed;
    bottom: 35px; /* Sits directly on the grass */
    left: 15%; /* Position from the left */
    width: 60px;
    height: 40px;
    background-color: #fffba7; /* Brown color for the dog */
    border-radius: 10px 10px 0 0; /* Rounded top corners for the body */
    z-index: 9; /* In front of grass, behind UI elements */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: subtle-bounce 2s infinite ease-in-out; /* Simple bouncing animation */
    opacity: 0; /* Initially hidden */
    transition: opacity 1s ease; /* Fade in with other elements */
}

/* Add dog head */
.dog-placeholder::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 35px;
    width: 25px;
    height: 25px;
    background-color: #fffba7;
    border-radius: 50% 50% 50% 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Add dog tail */
.dog-placeholder::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: -10px;
    width: 25px;
    height: 8px;
    background-color: #fffba7;
    border-radius: 0 4px 4px 0;
    transform-origin: left center;
    animation: wag-tail 1s infinite ease-in-out alternate;
}

/* Dog ear - using a separate element */
.dog-ear {
    position: absolute;
    top: -22px;
    left: 42px;
    width: 12px;
    height: 15px;
    background-color: #fffba7;
    border-radius: 50% 50% 0 0;
    transform: rotate(15deg);
}

/* Subtle bounce animation */
@keyframes subtle-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* Tail wagging animation */
@keyframes wag-tail {
    0% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(10deg);
    }
}

/* Avatar Styles */
.avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.avatar img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Sidebar heading styles */
.sidebar-content h1 {
    color: white;
    text-align: center;
    font-size: 1.8rem;
    margin-top: 5px;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    font-family: Arial, sans-serif;
}

.sidebar-content h2 {
    color: white;
    text-align: center;
    font-size: 1rem;
    font-weight: normal;
    margin-top: 0;
    margin-bottom: 25px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    font-family: Arial, sans-serif;
}

/* Sidebar Styles */
.side {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.33);
    z-index: 200;
    transition: transform 0.3s ease, opacity 0.8s ease;
    backdrop-filter: blur(5px);
    opacity: 0; /* Initially hidden */
}

/* Show sidebar when clouds are loaded */
.side.visible {
    opacity: 1;
}

.sidebar-toggle {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 101;
}

.sidebar-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar-content {
    padding: 50px 20px;
    height: 100%;
    overflow-y: auto;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.social-link i {
    font-size: 24px;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.social-link span {
    font-family: Arial, sans-serif;
    font-size: 16px;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .side {
        transform: translateX(-250px);
    }
    
    .sidebar-toggle {
        display: block;
        left: 20px;
        right: auto;
    }
    
    .sidebar-open .side {
        transform: translateX(0);
    }
    
    .sidebar-open .sidebar-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .sidebar-open .sidebar-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .sidebar-open .sidebar-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Content and Main Layout */
.content {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    max-width: 100vw;
}

.main {
    width: 100%;
    height: 100vh;
    position: relative;
    z-index: 150;
    padding: 20px;
    box-sizing: border-box;
    color: white;
    font-family: Arial, sans-serif;
}

.main-content {
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    height: 70vh; /* Fixed height - 70% of viewport height */
    overflow-y: auto; /* Add vertical scrollbar when needed */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent; /* For Firefox */
    background-color: rgba(0, 0, 0, 0.33);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    max-width: 800px;
    display: none; /* Initially hide all sections */
}

/* Make main content visible when active */
.main-content.active {
    display: block !important;
}

.main-content::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.main-content::-webkit-scrollbar-track {
    background: transparent; /* Track background */
}

.main-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3); /* Scrollbar color */
    border-radius: 4px; /* Rounded corners */
}

.main h1 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* Media query for desktop - adjust main content to accommodate sidebar */
@media (min-width: 769px) {
    .main {
        padding-left: 270px; /* 250px sidebar width + 20px padding */
        display: flex;
        flex-direction: column;
        align-items: center; /* Center content horizontally */
        width: calc(100% - 270px); /* Adjust width to account for sidebar */
    }
    
    .main-content {
        margin: 0 auto; /* Center with auto margins */
    }
    
    .main-nav {
        width: 100%;
        max-width: 800px; /* Match content width */
    }
}

/* Media query for mobile devices - make main take full width */
@media (max-width: 768px) {
    .main {
        padding-left: 20px;
        transition: padding-left 0.3s ease;
    }
    
    .sidebar-open .main {
        filter: blur(3px);
    }
}

/* Main Navigation */
.main-nav {
    margin-bottom: 30px;
    width: 100%; /* Ensure full width */
    opacity: 0;
    transition: opacity 0.8s ease;
    position: relative; /* Enable z-index */
    z-index: 150; /* Lower than mobile header */
}

.visible .main-nav {
    opacity: 1;
}

.main-nav ul {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
    background-color: rgba(0, 0, 0, 0.33);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    overflow: hidden;
    max-width: 800px;
    width: 100%; /* Ensure full width */
}

.main-nav li {
    flex: 1;
    text-align: center;
}

.main-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    font-family: Arial, sans-serif;
    transition: background-color 0.3s ease;
}

.main-nav li.active a {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: bold;
}

.main-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Project Cards */
.project-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.project-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: white;
    font-size: 1.5rem;
}

.project-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Media query updates for mobile */
@media (max-width: 768px) {
    .main-nav ul {
        width: 100%;
    }
}

/* Publication Styles */
.publication {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.publication:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.publication h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: white;
    font-size: 1.5rem;
}

.pub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.pub-meta p {
    margin: 0;
    font-size: 0.9rem;
}

.authors {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.venue {
    color: rgba(255, 255, 255, 0.8);
    font-weight: bold;
}

.abstract {
    margin-bottom: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.pub-link {
    display: inline-block;
    color: #87CEEB;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.pub-link:hover {
    color: white;
}

.pub-link i {
    margin-right: 5px;
}

/* Mobile header styles */
.mobile-header {
    display: none; /* Hidden by default */
    background-color: rgba(0, 0, 0, 0.33);
    backdrop-filter: blur(5px);
    padding: 10px 15px;
    text-align: center;
    width: 100%;
    z-index: 180; /* Increase z-index to be higher than navbar */
    opacity: 0;
    transition: opacity 0.8s ease;
    flex-direction: column;
    position: fixed; /* Keep fixed position */
    top: 0; /* Position at top */
    left: 0;
    box-sizing: border-box;
}

.mobile-header.visible {
    opacity: 1;
}

.mobile-header .avatar {
    margin-bottom: 10px;
}

.mobile-header .avatar img {
    width: 80px;
    height: 80px;
}

.mobile-header-text {
    text-align: center;
}

.mobile-header h1 {
    color: white;
    text-align: center;
    font-size: 1.5rem;
    margin: 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    font-family: Arial, sans-serif;
}

.mobile-header h2 {
    color: white;
    text-align: center;
    font-size: 0.9rem;
    font-weight: normal;
    margin: 5px 0 10px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    font-family: Arial, sans-serif;
}

@media (max-width: 768px) {
    .mobile-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 180;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.33);
        backdrop-filter: blur(5px);
        box-sizing: border-box;
        padding: 10px 0 0 0;
        min-height: unset;
        max-height: 218px;
    }
    .mobile-header .avatar {
        margin-bottom: 4px;
    }
    .mobile-header .avatar img {
        width: 60px;
        height: 60px;
    }
    .mobile-header h1 {
        font-size: 1.15rem;
        margin: 2px 0 0 0;
        font-weight: 600;
        text-align: center;
    }
    .mobile-header-text {
        margin: 0;
        padding-bottom: 10px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .mobile-header-text h2 {
        font-size: 0.85rem;
        margin: 2px 0 0 0;
        font-weight: 400;
        text-align: center;
    }
    .mobile-social-wrapper {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2px;
    }
    .mobile-social-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 4px 0 0 0;
        padding: 6px 13px;
        background: rgba(0,0,0,0.12);
        color: #fff;
        border: none;
        border-radius: 5px;
        font-size: 0.95rem;
        cursor: pointer;
        transition: background 0.2s;
        box-shadow: 0 1px 4px rgba(0,0,0,0.07);
        position: relative;
        z-index: 1001;
    }
    .mobile-social-toggle i {
        margin-right: 6px;
    }
    .mobile-social-toggle:active,
    .mobile-social-toggle:focus {
        background: rgba(0,0,0,0.18);
        outline: none;
    }
    .mobile-social-dropdown {
        display: none;
        position: absolute;
        left: 0;
        width: 96%;
        margin-left: 2%;
        background: rgba(30,30,30,0.75);
        box-shadow: 0 2px 10px rgba(0,0,0,0.10);
        z-index: 9999;
        padding: 10px 0 6px 0;
        border-radius: 7px;
        animation: dropdownIn 0.22s;
        top: 100%;
    }
    .mobile-social-dropdown.open {
        display: block;
    }
    .mobile-social-dropdown .social-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        display: flex;
    }
    .mobile-social-dropdown .social-link {
        font-size: 1rem;
        padding: 6px 0;
        width: 92%;
        justify-content: flex-start;
        border-radius: 5px;
        background: none;
        color: #eaeaea;
        font-weight: 400;
        transition: background 0.18s, color 0.18s;
    }
    .mobile-social-dropdown .social-link:hover {
        background: rgba(255,255,255,0.06);
        color: #87CEEB;
    }
    @keyframes dropdownIn {
        from { opacity: 0; transform: translateY(-6px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .side .social-links { display: none; }
    .main-content h1 {
        font-size: 2rem;
        padding: 12px;
    }
    .loading-spinner {
        width: 150px;
        height: 150px;
        border-width: 20px;
    }
    .main-content {        
        height: 59.5vh;
        margin-top: 200px;   
    }
}

/* Add media queries for more specific control */
@media (max-width: 768px) {
    .main-content h1 {
        font-size: 2rem; /* Smaller font on mobile */
        padding: 12px;
    }
    
    .loading-spinner {
        width: 150px;
        height: 150px;
        border-width: 20px;
    }
    
    .main-content {
        padding-bottom: 10vh;
    }

    .main-nav ul {
        border-radius: 0;
        background-color: rgba(0, 0, 0, 0.00);
    }
}

.emoji {
    font-size: 1.65rem;
    margin-right: 5px;
}

.intro {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.wave {
    animation: wave 2s infinite;
    animation-delay: 1s;
    animation-direction: alternate;
    font-size: 2rem;
    display: inline-block;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(50deg); }
    100% { transform: rotate(0deg); }
}

.main-content p a {
    color: gold;
    text-decoration: none;
}

.main-content p a:hover {
    color: rgb(255, 166, 0);
}

.bounce {
    animation: bounce 2s infinite;
    animation-delay: 1s;
    animation-direction: alternate;
    display: inline-block;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

/* Search box styles */
.search-container {
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
    position: relative;
    margin-bottom: 10px;
    color: white;
    background-color: rgba(255, 255, 255, 0.00);
}

#site-search {
    padding: 6px 32px 6px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
    color: white;
    background-color: rgba(255, 255, 255, 0.00);
    min-width: 160px;
}
#site-search:focus {
    border: 1.5px solid #1E90FF;
}
.search-icon {
    position: absolute;
    right: 10px;
    color: #aaa;
    pointer-events: none;
    font-size: 1rem;
}

/* Highlighted search result */
mark {
    background: #ffe066;
    color: #222;
    border-radius: 3px;
    padding: 0 2px;
}
