* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: auto;
    overflow: auto;
    background: url('assets/blue-wp.jpg') center/cover no-repeat fixed;
    /* background: rgb(76, 222, 248); */
    font-family: 'Arial', sans-serif;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 139, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    display: none;
}

.navbar-brand {
    font-size: 24px;
    color: #FF69B4;
    font-family: 'Fredoka One', cursive;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}

.navbar-links {
    display: flex;
    font-family: 'Fredoka One', cursive;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-links li {
    margin: 0 15px;
}

.navbar-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
}

.navbar-links a:hover {
    color: #FF69B4;
}

.buy-button {
    background: transparent;
    color: #FF69B4;
    border: 2px solid #FF69B4;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    font-family: 'Fredoka One', cursive;
}

.buy-button:hover {
    background: #FF69B4;
    color: #000;
    box-shadow: 0 0 15px #FF69B4, 0 0 30px #FF69B4;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

#canvas-container canvas {
    pointer-events: auto;
}

.cloud-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px; 
    z-index: 10;
    pointer-events: none;
    background-image: url('assets/clouds.png');
    background-repeat: repeat-x;
    background-position: 0 bottom;
    background-size: 500px 100%; 
    animation: cloud-drift 4s linear infinite;
}

@keyframes cloud-drift {
    from {
        background-position: 0 bottom;
    }
    to {
        background-position: -500px bottom; 
    }
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; 
    /* margin-top: -150px;
    padding-top: 200px; */
    overflow: hidden;
    /* background: rgba(0, 0, 0, 0.2); */
    z-index: 1;
}

.info-section {
    position: relative;
    min-height: 100vh;
    padding: 160px 50px 100px;
    color: #fff;
    text-align: center;
    overflow: hidden; 
    z-index: 1; 
}

.info-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.05);
    z-index: -1;
}

.legend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 250px !important;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.legend-row.reverse {
    flex-direction: row-reverse;
}

.legend-row img {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 105, 180, 0.6));
}

.text-block {
    flex: 1;
    max-width: 600px;
}

.text-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);         
    -webkit-backdrop-filter: blur(12px);  
    border: 2px solid rgba(255, 105, 180, 0.3); 
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.text-card:hover {
    border-color: rgba(255, 105, 180, 0.8);
    transform: translateY(-5px);
}

.info-section h2 {
    font-size: 4em;
    margin-bottom: 160px;
    color: #FF69B4;
    text-shadow: 3px 3px 0px #fff;
    font-family: 'Fredoka One', cursive;
    animation: pulse-glow 4s ease-in-out infinite;
}

.text-card h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #FF69B4;
    text-shadow: 1px 1px 0px #fff;
    font-family: 'Fredoka One', cursive;
}

.text-card p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #000000;
    font-family: sans-serif;
}

.ape-section {
    min-height: 100vh;
    padding: 160px 50px 100px;
    font-family: 'Fredoka One', cursive;
    background-size: cover;
    /* background-color: rgba(0, 0, 0, 0.2); */
    color: #fff;
    text-align: center;
}

.ape-section h2 {
    font-size: 4em;
    margin-bottom: 120px;
    color: #FF69B4;
    text-shadow: 3px 3px 0px #fff;
    font-family: 'Fredoka One', cursive;
    animation: pulse-glow 4s ease-in-out infinite;
}

.project-item {
    text-align: center;
    margin-top: 80px;
}

.project-item img {
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.project-desc {
    font-size: 1.1em;
    margin: 50px 0;
    color: #ccc;
}

footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #012e38; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; 
}

footer img {
    width: 50px;       
    height: auto;
    border-radius: 80%; 
    border: 2px solid #333; 
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5); 
}

footer div {
    font-family: 'Fredoka One', cursive;
    font-size: 30px;   
    color: #FF69B4;
    text-shadow: 2px 2px 0px #fff;
    animation: pulse-glow 4s ease-in-out infinite;
    letter-spacing: 2px;
}

footer p {
    color: #bcbcbc;       
    font-size: 0.75rem;
    font-family: 'Press Start 2P', sans-serif; 
    margin: 0;
    opacity: 0.7;
    line-height: 1.6;
}

.text-block {
    flex: 1;
    max-width: 50%;
    text-align: left;
}

.main-kirby-name {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 90px;
    color: #FF69B4;
    text-shadow: 3px 3px 0px #fff;
    font-family: 'Fredoka One', cursive;
    z-index: 10;
    animation: pulse-glow 4s ease-in-out infinite;
}

.celestial-object {
    position: absolute !important;
    width: 100px !important;
    height: 100px !important;
    cursor: pointer;
    z-index: 100; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.celestial-object:hover {
    transform: scale(1.2); 
}

.celestial-object:nth-of-type(odd) .icon-3d {
    animation-delay: 0s;
}
.celestial-object:nth-of-type(even) .icon-3d {
    animation-delay: 2s;
}

.icon-3d {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none; 
    animation: pulse-glow 4s ease-in-out infinite;
}

.celestial-object[data-position="top-left"] {
    top: 12%;
    left: 18%;
}

.celestial-object[data-position="top-right"] {
    top: 18%;
    right: 22%;
}

.celestial-object[data-position="middle-left"] {
    top: 58%;
    left: 8%;
    transform: translateY(-50%);
}

.celestial-object[data-position="middle-right"] {
    top: 44%;
    right: 7%;
    transform: translateY(-50%);
}

.celestial-object[data-position="bottom-left"] {
    bottom: 12%;
    left: 26%;
}

.celestial-object[data-position="bottom-right"] {
    bottom: 10%;
    right: 18%;
}

#tooltip {
    position: fixed;
    padding: 12px 20px;
    background: rgba(20, 30, 50, 0.95);
    color: #a0c0ff;
    border: 1px solid rgba(100, 150, 255, 0.5);
    border-radius: 8px;
    font-size: 14px;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5),
                0 0 10px rgba(100, 150, 255, 0.3);
    backdrop-filter: blur(10px);
}

#tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.thumbnail-section {
    position: relative;
    width: 100%;
    min-height: 115vh; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    padding-top: 10vh; 
    overflow: hidden;
    z-index: 2;
}
.thumbnail-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;    
    width: 100%;
    height: 100%;
    background: url("assets/dreamland-bg.png") no-repeat center center;
    background-size: cover; 
    filter: blur(8px); 
    transform: scale(1.1); 
    z-index: 0; 
}
.thumbnail-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px; 
    background: linear-gradient(to bottom, transparent, #8eeaff); 
    pointer-events: none;
    z-index: 2;
}

.background-text {
    position: absolute;
    top: 25%; 
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg); 
    font-size: 12vw;
    color: #ffffff;
    white-space: nowrap;
    z-index: 1; 
    font-family: 'Fredoka One', cursive;
    text-shadow: 
        0px 0px 30px rgba(0, 255, 255, 0.6), 
        5px 5px 0px #000; 
}

.character-overlay {
    position: absolute;
    bottom: 28%; 
    left: 15%; 
    width: 50vh; 
    z-index: 2; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

.health-bar {
    position: absolute;
    bottom: 46%;
    right: 15%;
    z-index: 3;
    display: flex;
    flex-direction: column;  
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border: 4px solid white;
    border-radius: 50px;
    padding: 8px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.bar-container, .ca-container {
    width: 400px;
    max-width: 100%;
    height: 40px; 
    border-radius: 50px;
    box-sizing: border-box; 
}

.bar-container {
    background: transparent;
    overflow: hidden; 
    position: relative;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.bar-container.fade-out {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.bar-fill {
    width: 0%; 
    height: 100%;
    background: linear-gradient(90deg, #ff69b4, #ff1493); 
    border-radius: 50px;
    border: 2px solid #ffadd6;
    transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.ca-container {
    display: none; 
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #FF69B4; 
    align-items: center;
    justify-content: space-between; 
    padding: 0 20px; 
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: transform 0.2s, background 0.2s;
}

.ca-container.visible {
    display: flex; 
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.ca-container:hover {
    transform: scale(1.05);
    background: rgba(255, 105, 180, 0.2);
}

.ca-container:active {
    transform: scale(0.95);
}


.ca-label {
    color: #FF69B4;
    font-weight: bold;
    font-family: 'Fredoka One', cursive; 
}

.ca-text {
    color: #fff;
    font-family: monospace;
    font-size: 14px;
}

.copy-btn {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.copy-btn img {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.copy-feedback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FF69B4; 
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.ca-container.copied .copy-feedback {
    opacity: 1;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.social-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; 
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px; 
    pointer-events: none; 
}

.social-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    border: 3px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(-20px) scale(0.5);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.social-icon img {
    width: auto;
    height: auto;
    max-width: 65%;
    max-height: 65%;
    object-fit: contain;
}

.health-bar.finished .social-links {
    pointer-events: all;
}

.health-bar.finished .social-icon {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.health-bar.finished .social-icon:nth-child(2) {
    transition-delay: 0.1s;
}

.social-icon:hover {
    transform: scale(1.1) translateY(-5px) !important;
    background: #fff9c4; 
}

.health-bar.active .social-links {
    pointer-events: all;
}

.health-bar.active .social-icon {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.health-bar.active .social-icon:nth-child(2) {
    transition-delay: 0.1s;
}

.name-tag {
    position: absolute;
    top: -40px; 
    left: 0;
    white-space: nowrap;
    font-family: 'Fredoka One', cursive, sans-serif; 
    font-size: 1.2rem; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    color: #ffffff;
    -webkit-text-stroke: 2.5px black; 
    paint-order: stroke fill; 
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.5)); 
    z-index: 4;
}

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

@media (max-width: 1920px) {
    .celestial-object {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 1366px) {
    .celestial-object {
        width: 45px;
        height: 45px;
    }
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#loading-image {
    /* width: 70px;
    height: 70px; */
    animation: sway 2s ease-in-out infinite;
    /* margin-bottom: 10px; */
}

#kirby-name {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 90px;
    color: #FF69B4;
    text-shadow: 3px 3px 0px #fff;
    font-family: 'Fredoka One', cursive;
}

#loading-bar-container {
    width: 200px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

#loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    width: 0%;
    animation: fill 2s linear forwards;
}

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 300px; 
    /* flex-wrap: wrap;  */
    max-width: 1000px;
    margin: 0 auto;
}

.nostalgia-text {
    max-width: 500px;
    text-align: left;
}

.nostalgia-text h3 {
    font-size: 2.5rem;  
    line-height: 1.5;
    color: #fff;
    margin-bottom: 50px;
    text-shadow: 3px 3px 0px #3c1466; /* Deep purple shadow */
    transform: rotate(-5deg); /* Slight fun tilt */
}

.nostalgia-text p {
    font-size: 1rem;
    color: #ccc;
    font-family: 'Fredoka One', cursive; 
    margin-top: 15px;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-left: 3px solid #ff69b4;
}

.gameboy-body {
    background-color: #c8c6c6;
    width: 90%;
    max-width: 400px;
    border-radius: 20px 20px 50px 20px;
    padding: 40px 20px 60px 20px;
    box-shadow: 
        -10px 10px 20px rgba(0,0,0,0.5), 
        inset 5px 5px 10px rgba(255,255,255,0.8), 
        inset -5px -5px 10px rgba(0,0,0,0.2); 
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screen-bezel {
    background-color: #5c5e6b; 
    width: 100%;
    padding: 20px 20px 5px 20px; 
    border-radius: 15px 15px 40px 15px;
    box-sizing: border-box;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.5);
    margin-bottom: 40px;
    position: relative;
}

.screen-glass {
    background-color: #8bac0f; 
    border: 4px solid #333;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.5);
    width: 100%;
    height: 220px; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover; 
    image-rendering: pixelated; 
}

.battery-led {
    position: absolute;
    top: 40%;
    left: 15px;
    width: 10px;
    height: 10px;
    background-color: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff0000;
    animation: pulse 2s infinite;
}

.battery-text {
    position: absolute;
    top: 40%;
    left: 32px;
    font-size: 0.5rem;
    color: #888;
    transform: translateY(-1px);
}

.controls-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.d-pad {
    width: 90px;
    height: 90px;
    position: relative;
}
.d-pad div {
    background-color: #333;
    position: absolute;
    border-radius: 4px;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.3);
}
.dp-h { width: 100%; height: 30px; top: 30px; left: 0; }
.dp-v { width: 30px; height: 100%; top: 0; left: 30px; }
.d-pad:before {
    content: '';
    position: absolute;
    top: 35px; left: 35px;
    width: 20px; height: 20px;
    background: #2a2a2a;
    border-radius: 50%;
    z-index: 2;
}

.action-buttons {
    display: flex;
    gap: 15px;
    transform: rotate(-15deg);
    margin-bottom: 10px;
}

.btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ab-btn {
    width: 45px;
    height: 45px;
    background-color: #A90E38; 
    border-radius: 50%;
    border: none;
    box-shadow: 
        inset -2px -2px 5px rgba(0,0,0,0.3),
        inset 2px 2px 5px rgba(255,255,255,0.4),
        3px 3px 0px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.ab-btn:active {
    transform: translate(3px, 3px);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.6);
}

.btn-label {
    color: #3c1466;
    font-size: 0.6rem;
    margin-top: 8px;
    font-weight: bold;
}

.utility-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.pill-btn {
    width: 60px;
    height: 15px;
    background-color: #999;
    border-radius: 10px;
    transform: rotate(-25deg);
    border: none;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    cursor: pointer;
    position: relative;
}

.pill-btn:active {
    transform: rotate(-25deg) translate(2px, 2px);
    box-shadow: none;
}

.pill-label {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.5rem;
    color: #3c1466;
    transform: rotate(25deg); 
}

#retro-dialog {
    visibility: hidden;
    width: 90%;
    max-width: 380px;
    background-color: #ff69b4; /* Black background */
    color: #fff;
    border: 4px solid #fff; /* White pixel border */
    box-shadow: 0 0 0 4px #ff69b4; /* Double border effect */
    text-align: center;
    padding: 15px;
    position: fixed;
    z-index: 10;
    bottom: 220px;
    font-family: 'Fredoka One', cursive;
    font-size: 0.7rem;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

#retro-dialog.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(-10px);
}

.arrow-icon {
    font-size: 2em; 
    margin-top: 10px; 
    color: #ff69b4;
}

@keyframes pulse {
    0% { background-color: #ff0000; box-shadow: 0 0 5px #ff0000; }
    50% { background-color: #800000; box-shadow: 0 0 2px #800000; }
    100% { background-color: #ff0000; box-shadow: 0 0 5px #ff0000; }
}
@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 30px; opacity: 1;} }
@keyframes fadeout { from {bottom: 30px; opacity: 1;} to {bottom: 0; opacity: 0;} }

@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
}

@keyframes fill {
    to {
        width: 100%;
    }
}

@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(218, 165, 32, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1));
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(218, 165, 32, 0.5));
    }
}

.slide-from-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-from-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.active-anim {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
}

@media (max-width: 768px) {
    /* #loading-image {
        height: 50px;
    } */

    .navbar {
        padding: 10px 15px;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .navbar-links {
        display: none;
    }

    .buy-button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .thumbnail-section {
        background-attachment: fixed;
        height: 100vh;
    }

    .background-text {
        margin-top: 40px;
        margin-left: 15px; 
        font-size: 11vw; 
        width: 100%;
    }

    .character-overlay {
        left: 55%;
        top: 18% !important; 
        width: 50vw; 
        max-width: 350px;
        margin-left: -35vw; 
    }

    .health-bar {
        right: auto; 
        left: 50%;   
        transform: translateX(-50%);
        bottom: 50% !important; 
        width: 85vw; 
        box-sizing: border-box;
    }

    .bar-container, .ca-container {
        width: 100%; 
    }

    .ca-text {
        font-size: 12px; 
    }
    
    .name-tag {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .social-links {
        margin-top: 10px;
        gap: 10px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }

    .cloud-divider {
        height: 120px; 
    }

    .celestial-object {
        width: 40px !important;
        height: 40px !important;
    }

    .hero-section {
        padding-top: 50px;
    }

    .main-kirby-name {
        top: 120px;
        font-size: 2.5em;
    }

    .legend-row {
        flex-direction: column;
        gap: 30px !important;
    }

    .legend-row.reverse {
        flex-direction: column;
    }
    
    .text-card {
        padding: 25px;
        font-size: 12px;
        width: 100% !important;
        left: 30% !important;
        text-align: center;
    }

    .text-block {
        text-align: center;
    }

    .info-section {
        padding: 80px 12px 60px;
    }

    .info-section h2 {
        font-size: 2.5em;
    }

    .info-section h3 {
        font-size: 1.5em;
    }

    .legend-row img {
        width: 200px;
    }

    .ape-section {
        padding: 80px 12px 60px;
    }

    .ape-section h2 {
        font-size: 2.5em;
    }

    .content-wrapper {
        flex-direction: column-reverse; 
        gap: 30px;
    }
    .nostalgia-text {
        text-align: center;
        max-width: 90%;
    }
    .nostalgia-text h3 {
        transform: rotate(0deg);
    }
    .arrow-icon {
        display: none;
    }

    footer {
        padding: 15px;
        font-size: 0.8em;
    }

    #loading-image {
        width: 180px;
        height: auto;
    }

    #kirby-name {
        font-size: 40px;
    }

    #tooltip {
        padding: 8px 15px;
        font-size: 12px;
        max-width: calc(100vw - 20px);
        word-wrap: break-word !important;
    }
}

@media screen and (max-width: 380px) {
    .background-text { top: 12%; }
    .character-overlay { top: 30%; }
    .health-bar { bottom: 15%; }
}