* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.alias {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}
.auto-video {
    width: 100%;           /* Changed from 500px */
    max-width: 500px;      /* Add max-width to prevent it from getting too large */
    height: auto;
    border-radius: 8px;
    background: transparent;
    align-items: center;
    justify-content: center;
}
body {
    font-family: 'BasicFont', monospace;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    padding: 20px 10px;  /* Reduced horizontal padding */
    min-height: 100vh;
    overflow-x: hidden;  /* Prevent horizontal scroll */
}
.coming-soon {
    font-family: 'FancyFont', monospace;
    font-size: 16px;
    font-weight: bold;
    font-size: 72px;
    text-align: center;
}
.coming-soon-desc {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
}
.container {
    display: grid;
    gap: 20px;
}
.container .wrapper{
    display:flex;
    flex-shrink:1;
}
.content {
    width: 100%;           /* Changed from 30vw */
    max-width: 30vw;       /* Add max-width for larger screens */
    height: 95vh;
}
#content-description {
    margin-top: 0;
    line-height: 1.5;
}
.content-description {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: left;
}
#content-title {
    margin-bottom: 15px;
    margin-top: 0;
}
.content-title {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: left;
}
.description {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: left;
}
.description-list {
    font-size: 16px;
    margin-bottom: 0px;
    text-align: left;
}
.dynamic-content {
    min-width: 0;
    width: 100%;  /* Full width by default */
}
.dynamic-content:first-child {
    width: 100%;  /* Changed from min-content */
    max-width: 500px;  /* Add max-width */
}
.dynamic-content:last-child {
    width: 100%;  /* Full width */
    max-width: 500px;  /* Remove restriction */
}
.footer {
    text-align: center;
    font-size: 12px;
    padding: 5px;
    background-color: #0a0a0a;
    color: white;
    margin-top:auto;
}
.hello {
    font-family: 'FancyFont', monospace;
    font-weight: bold;
    font-size: 3.5em
}
.highlight {
    color: #37ff00;
    font-weight: bold;
}
.image_bodvar {
    width: 100%;                             /* Changed from 200px */
    max-width: none;                        /* Prevent them from getting too large */
    display: block;
    object-fit: cover;
    object-position: center;
}
.image_branches {
    width: 500px;
    height: auto;
    display: block;
    object-fit: cover; 
    object-position: center;
}
.image-container {
    position: relative;
    display: block;                          /* Changed from inline-block */
    width: 100%;
    max-width: 200px; 
    overflow: hidden;    
}
.image-content {
    width: 20vw;                              /* Changed from 30vw */
    display: grid;
    grid-template-columns: 1fr 1fr;          /* Changed from 0fr 0fr - TWO EQUAL COLUMNS */
    gap: 10px;
    align-content: right;
}
.image_icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px auto;
    display: block;
    background-image: url('images/jm_3_icon.PNG');
    background-size: cover;
    background-position: center;
}
.image_icon_mobile {
    display:none;
}
.image-link {
    text-decoration: none;
    display: block;       
    transition: transform 0.2s ease;
}
.image-link:hover {
    transform: scale(1.05);
    cursor: pointer;
}
.image-link:visited,
.image-link:link {
    color: inherit;
}
.image_map {
    width: 145px; 
    height: 82px;
    display: block;
    object-fit: cover;
    object-position: center;
}
.image_map.clickable-image {
    transition: all 0.3s ease;
    cursor: pointer;
    filter: brightness(0.9);
    border: 2px solid transparent;
}
.image_map.clickable-image:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
    box-shadow: 0 0 15px rgba(55, 255, 0, 0.6);
    border-color: #37ff00;
}
.image_map.clickable-image.active {
    border-color: #37ff00;
    box-shadow: 0 0 10px rgba(55, 255, 0, 0.4);
}
.image-text {
    position: absolute;
    bottom: 10px;
    left: 0;                                /* Start from left edge */
    right: 0;                               /* Extend to right edge */
    width: auto;                            /* Full width of container */
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;                     /* Center the text content */
    white-space: nowrap;
    margin: 0 auto;                         /* Additional centering */
    box-sizing: border-box;                 /* Include padding in width calculation */
    
    /* Fallback centering method */
}
.link-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.main-content {
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 0px rgba(0,0,0,0.1);
}
.map-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));  /* More flexible sizing */
    gap: 25px;
    justify-content: start;
    margin-bottom: 30px;
    padding: 0 10px;  /* Add some padding */
}
.mini-container {
    flex:1;
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 1px;
    align-items: start;
    overflow: auto;
}
.mini-container-brawlhalla {
    flex:1;
    display: grid;
    grid-template-columns: 450px 600px; 
    gap: 1px;
    align-items: start;
    overflow: auto;
}
.name {
    font-family: 'CustomNavFont', monospace;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}
.navigation {
    margin: 70px 0;
    text-align: center;
}
.navigation::after {
    content: "";
    display: block;
    clear: both;
}
.nav-link-top {
    font-family: 'CustomNavFont', 'Arial', sans-serif;
    color: #3a9d3a;
    text-decoration: none;
    padding: 5px 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    font-size: 32px;
}
.nav-link-top:hover {
    color: #f3f700;
}
.sidebar {   
    width:auto;
    padding-top:5vw;
    padding-left:10vw;
    padding-right:4vw;
    text-align:center;
}
.sidebar-mobile {
    display: none;
}
.skills {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
}
.video-container {
    margin: 30px 0;
    text-align: center;
    position: relative;
}
@media (max-width: 768px) {
    .auto-video {
        width: 100%;       /* Ensure full width on mobile */
        max-width: none;   /* Remove max-width restriction */
        min-height: 200px !important;
    }
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        overflow: visible; 
    }
    .container .wrapper{
        display: flex;
        flex-shrink: 1;
        overflow: visible;
        flex-direction: column;
    }   
    .content {
        width: 100%;                         /* Full width on mobile */
        max-width: none;
        height: auto;
        overflow: visible;
    }
    #content-description {
        font-size: 14px;
        line-height: 1.4;
        margin-top: 0;
    }
    #content-title {
        font-size: 18px;
        margin-bottom: 10px;
        margin-top: 0;
    }
    .description {
        font-size: 14px;   /* Slightly smaller on mobile */
        margin-bottom: 15px;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .description-list {
        font-size: 14px;                     /* Smaller text */
        margin-bottom: 15px;                 /* Less margin */
        text-align: left;
        text-indent: 1em !important;         /* Smaller indent on mobile */
    }
    .dynamic-content {
        width: 100%;
        max-width: none;
    }
    .dynamic-content:first-child {
        width: 100%;
        max-width: none;
    }
    .dynamic-content:last-child {
        width: 100%;
        max-width: none;
    }
     #gameArea {
        width: 100%;       /* Full width on mobile */
        max-width: none;   /* Remove max-width restriction */
        height: auto;
        min-height: 93vh;
        overflow: visible;
    }
    .hello {
        font-size: 2.5em;  /* Reduced from 3.5em */
    }
    .image_bodvar {
        width: 100%;
        height: auto;
        max-width: none;                    /* Smaller max-width on mobile */
    }
    .image_branches {
        display: none;
    }
    .image-content {
        width: 100%;                         /* Full width on mobile */
        max-width: none;                     /* Remove max-width restriction */
        grid-template-columns: 1fr 1fr 1fr;     /* Keep 2 columns on mobile */
        gap: 8px;                           /* Smaller gap */
    }
    .image_icon_mobile {
        width: 200px;
        height: 200px;
        margin: 0 auto 40px auto;
        display: block;
        background-image: url('images/jm_3_icon.PNG');
        background-size: cover;
        background-position: center;
    }
    .image_map {
        width: 100%;
        height: auto;
        min-height: 60px;  /* Ensure minimum visibility */
        aspect-ratio: 16/9;  /* Maintain aspect ratio */
        object-fit: cover;
        object-position: center;
    }
    .image_map.clickable-image:active {
        transform: scale(0.95);
        filter: brightness(1.2);
        transition: all 0.1s ease;
    }
    .image_map.clickable-image:hover {
        transform: none;
        filter: brightness(0.9);
        box-shadow: none;
        border-color: transparent;
    }
    .image-text {
        font-size: 12px;
        padding: 4px 8px;
        bottom: 6px;
        max-width: 85%;                     /* Slightly narrower on mobile */
        border-radius: 4px;
    }
    .link-wrapper {
        flex-wrap: wrap;
        gap: 5px;
    }
    .main-content {
        padding: 15px;     /* Reduced from 30px */
        overflow-y: auto;
        max-height: 80vh;
    }
    .map-list {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));  /* Smaller on mobile */
        gap: 8px;
        padding: 0 5px;
        margin-bottom: 20px;
    }
    #main-video {
        width: 100%;
        height: auto;
        max-width: none;
    }
    .mini-container, .mini-container-brawlhalla {
        display: flex;                       /* Stack vertically on mobile */
        flex-direction: column;
        gap: 20px;
        overflow-y: auto;
        max-height: none;
    }
    .nav-link-top {
        text-align: center;
        font-size: 24px;
    }
    .sidebar {
        display: none;
    }
    .sidebar-mobile {
        display: block;
        text-align:center;
    }
}
@media (max-width: 376px) {
    #content-description {
        font-size: 13px;
    }
    #content-title {
        font-size: 16px;
    }
    .description {
        font-size: 13px;
    }
    .description-list {
        font-size: 13px;
        text-indent: 0.5em !important;       /* Very small indent */
    }
    .hello {
        font-size: 2em;    /* Further reduce for tiny screens */
    }
    .image-content {
        grid-template-columns: 1fr 1fr;      /* Still 2 columns but smaller */
        gap: 5px;
    }
    .image_map {
        min-height: 50px;
    }
    .image-text {
        font-size: 9px;
        padding: 3px 6px;
        bottom: 4px;
        border-radius: 3px;
    }
    .main-content {
        padding: 10px;     /* Even less padding for very small screens */
    }
    .map-list {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 5px;
        padding: 0;
    }
    .nav-link-top {
        font-size: 20px;   /* Smaller nav text */
    }
}
@font-face {
    font-family: 'CustomNavFont';
    src: url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100;
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'FancyFont';
    src: url('fonts/RougeScript-Regular.ttf') format('truetype');
    font-weight: 100;
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'BasicFont';
    src: url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100;
    font-weight: normal;
    font-style: normal;
}
#gameArea {
    position: relative;
    width: 100%;           /* Changed from 95vw */
    max-width: 95vw;       /* Add max-width */
    height: 93vh;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}
#ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    border-top: 3px;
}
#player {
    position: absolute;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: none;
    background-size: cover;
}
.jumping-object {
    width: 120px;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 50px auto;
    cursor: pointer;
    transition: all 0.3s ease;
    }
.jumping-object.jumping {
    animation: jump 0.6s ease-in-out;
}
@keyframes jump {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-60px) scale(1.1); }
    100% { transform: translateY(0) scale(1); }
}