body {
    background-image: url('img/background.gif'); /* 304x234, 20.49 KB */
    background-repeat: repeat;
    background-color: #000;
    color: #fff;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-family: "Courier New", monospace; /* More retro font */
    padding-top: 0;
    margin: 0;
}

/* Global image optimization - improved */
img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated; 
    transition: transform 0.2s ease; /* Smoother image hover effects */
}

img:hover {
    transform: scale(1.05);
}

/* Badge size standardization */
.badge-88x31 {
    width: 88px;
    height: 31px;
    image-rendering: pixelated;
    box-shadow: 2px 2px 3px rgba(0,0,0,0.3); /* Add subtle shadow */
}

/* Navbar with gradient fade edges */
.nav-pills {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.7);
    background-color: rgba(0,0,0,0.4); /* Even more transparent background */
    border: 1px solid rgba(26,26,26,0.4); /* More subtle border */
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    backdrop-filter: blur(1px); /* Subtle blur effect if supported */
}

/* Create gradient overlays at edges */
.nav-pills::before,
.nav-pills::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 70px; /* Even wider gradient area */
    pointer-events: none;
    z-index: 2;
}

.nav-pills::before {
    left: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.2), rgba(0,0,0,0));
}

.nav-pills::after {
    right: 0;
    background: linear-gradient(to left, rgba(0,0,0,0.7), rgba(0,0,0,0.2), rgba(0,0,0,0));
}

.nav-pills > li {
    display: inline-block;
    float: none;
    margin: 0;
    white-space: nowrap;
    position: relative;
}

/* Style navbar items with star-friendly colors */
.nav-pills > li > a {
    border-radius: 0;
    padding: 5px 15px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 31px;
    background-color: transparent;
    margin: 0;
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(0, 255, 0, 0.5), 1px 1px 2px #000;
    border: none;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-pills > li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background-color: #333;
}

.nav-pills > li > a:hover,
.nav-pills > li > a:focus {
    background-color: rgba(0, 255, 0, 0.15);
    color: #ffff00;
    transform: none;
    box-shadow: inset 0 0 15px rgba(0, 255, 0, 0.2);
    z-index: 2;
}

/* Make badge images consistent in navbar */
.nav-pills > li > a img:not(.badge-88x31) {
    height: 16px;
    width: auto;
    margin-right: 5px;
    vertical-align: middle;
    padding: 0;
}

/* Badge in navbar specific sizing */
.nav-pills > li > a .badge-88x31 {
    height: 31px;
    width: auto;
    margin: 0;
    padding: 0;
    box-shadow: none;
}

/* Scrollbar styling for the navigation */
.subnav::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

@media (min-width: 992px) {
    .subnav::after {
        display: none;
    }
}

/* Optimize image sizes based on scan */
.skull-icon { 
    /* Based on skullsmk.gif: 102x99 pixels */
    width: 105px; 
    height: 105px;
}

.welcome-banner {
    /* Based on welcome.gif: 747x80 pixels */
    max-width: 100%;
    height: auto;
    margin: 10px auto;
}

.large-gif {
    /* For larger gifs like bodia.gif (180x180), dancing.gif (178x200) */
    max-width: 180px;
    height: auto;
}

/* Triple image display - fixed sizes based on scan */
.triple-image {
    max-width: 32%;
    max-height: 200px;
    width: auto;
    margin: 0 5px;
    display: inline-block;
    border: none;
}

/* Media queries */
@media (max-width: 767px) {
    .nav-pills > li {
        display: block;
        margin-bottom: 5px;
    }
    
    .subnav {
        height: auto !important;
        overflow: hidden !important; /* Force no scrolling on mobile */
        padding: 8px !important;
    }
    
    .nav-pills > li > a {
        height: auto; /* Allow natural height on mobile */
        padding: 8px;
    }
    
    .nav-pills > li > a img,
    .nav-pills > li > a .badge-88x31 {
        height: 24px; /* Consistent height on mobile */
    }
    
    .badge-container img {
        max-width: 40px;
        height: auto;
    }
    
    .header-images img {
        max-width: 70px;
        margin: 2px;
    }
    
    .large-gif {
        max-width: 150px;
    }
    
    .triple-image {
        max-width: 100px;
    }
}

/* Enhanced subnav */
.subnav {
    text-align: center;
    white-space: nowrap;
    background-color: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    overflow-x: visible;
    position: relative;
    margin: 15px auto 20px !important;
    max-width: 100%;
}

/* Add styles for the overflow indicators (left and right arrows) */
.subnav.has-overflow::before,
.subnav.has-overflow::after {
    content: '«';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    font-size: 18px;
    animation: pulse 2s infinite;
    opacity: 0.9;
    pointer-events: none;
    background: rgba(0,0,0,0.7);
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,255,255,0.5);
    z-index: 10;
}

.subnav.has-overflow::before {
    content: '«';
    left: 3px;
}

.subnav.has-overflow::after {
    content: '»';
    right: 3px;
}

/* Badge container - optimized based on actual badge sizes */
.badge-container img {
    margin: 3px;
    max-height: 50px;
    width: auto;
}

/* Improved content boxes */
.content-box {
    background-color: rgba(0,0,0,0.8);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.2);
    transition: all 0.3s ease;
    position: relative; /* For hover effect */
}

.content-box:hover {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: translateY(-3px); /* Subtle lift effect */
}

.content-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.1) 38%, rgba(255,255,255,0) 40%);
    background-size: 200% 100%;
    background-position: 100% 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.content-box:hover::after {
    opacity: 1;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    100% {
        background-position: -100% 0;
    }
}

/* Improved blink animation */
.blink {
    animation: blinker 1s steps(3) infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Enhanced headers */
h1, h2, h3 {
    font-family: "Comic Sans MS", "Courier New", sans-serif;
    text-shadow: 2px 2px 4px #000, 0 0 5px rgba(0, 255, 255, 0.5);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

h1 {
    color: #ff00ff;
}

h2 {
    color: #00ffff;
}

h3 {
    color: #ffff00;
    position: relative;
    display: inline-block;
}

h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,0,0), rgba(255,255,0,1), rgba(255,255,0,0));
}

/* Updated for smaller screens */
@media (max-width: 480px) {
    .header-images img {
        max-width: 60px;
        margin: 2px;
    }
    
    h1 {
        font-size: 24px !important;
    }
    
    .lead {
        font-size: 14px;
    }
    
    /* Center triple hammer images */
    .triple-hammer {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .triple-hammer img {
        max-width: 30%;
        height: auto;
        margin: 0 1%;
    }
}

/* Falling Star Animation - Fixed */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: #fff;
    border-radius: 50%;
    animation: fall linear;
    box-shadow: 0 0 10px 0 rgba(255, 255, 255, 0.7);
}

@keyframes fall {
    0% {
        transform: translateY(-10px) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) translateX(20px);
        opacity: 0;
    }
}

/* Improved pixel border */
.pixel-border {
    display: inline-block;
    padding: 10px;
    background-color: #000033;
    border: 3px solid #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5), inset 0 0 5px rgba(0, 255, 0, 0.3);
    position: relative;
}

/* Enhanced guestbook styling */
.guestbook-container {
    background-color: #000033;
    border: 2px ridge #00ffff;
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    text-align: left;
    box-shadow: inset 0 0 15px rgba(0, 0, 255, 0.3);
}

.guestbook-container p {
    border-bottom: 1px dotted #444;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.guestbook-container p:last-child {
    border-bottom: none;
}

.guestbook-form {
    border: 1px solid #444;
    width: 90%;
    max-width: 800px;
    margin: 10px auto;
    padding: 15px;
    background-color: #111;
    box-shadow: 0 0 8px rgba(0, 0, 255, 0.2);
}

/* Fix web rings display - based on common 88x31 badge size */
.web-rings {
    max-width: 100%;
    overflow: hidden;
    text-align: center;
}

.web-rings img {
    height: 31px;
    width: auto;
    margin: 5px;
    vertical-align: middle;
}

/* Better footer */
.footer-section {
    margin: 15px auto;
    max-width: 90%;
    padding: 5px;
    position: relative;
}

/* Under construction styling */
.under-construction {
    margin: 20px auto;
    text-align: center;
    position: relative;
}

.under-construction img {
    transition: transform 0.3s ease;
}

.under-construction img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Retro button styling */
.retro-button {
    background: linear-gradient(to bottom, #00ccff, #0066ff);
    color: white;
    border: 2px outset #00aaff;
    font-weight: bold;
    padding: 5px 10px;
    cursor: pointer;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.5);
    font-family: "Comic Sans MS", "Courier New", sans-serif;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.retro-button:hover {
    background: linear-gradient(to bottom, #00eeff, #0088ff);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 4px 4px 7px rgba(0,0,0,0.6);
}

.retro-button:active {
    transform: scale(0.98);
    box-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.retro-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255,255,255,0.2);
    transform: rotate(30deg);
    transition: all 0.3s;
}

.retro-button:hover::after {
    left: 130%;
    transition: all 0.5s;
}

/* Better rainbow text */
.rainbow-text {
    animation: rainbow 3s infinite;
    font-weight: bold;
}

@keyframes rainbow {
    0% { color: #ff0000; }
    14% { color: #ff7f00; }
    28% { color: #ffff00; }
    42% { color: #00ff00; }
    57% { color: #0000ff; }
    71% { color: #4b0082; }
    85% { color: #9400d3; }
    100% { color: #ff0000; }
}

/* Media query refinements for better mobile experience */
@media (max-width: 767px) {
    body {
        padding: 0 5px;
    }
    
    .content-box {
        padding: 10px;
    }
    
    h1 {
        font-size: 24px !important;
    }
    
    h2 {
        font-size: 20px !important;
    }
    
    h3 {
        font-size: 18px !important;
    }
    
    .guestbook-container, .guestbook-form {
        width: 95%;
        padding: 10px;
    }
    
    .pixel-border {
        padding: 8px;
    }
    
    .web-rings img {
        margin: 3px;
    }
    
    .subnav {
        padding: 3px 0;
    }
}

/* Better table styling */
table {
    border-collapse: collapse;
}

table td {
    padding: 5px;
    vertical-align: middle;
}

/* Marquee optimizations */
marquee {
    background-color: rgba(0, 0, 40, 0.5);
    padding: 5px;
    border: 1px solid #444;
    border-radius: 4px;
}

/* Optimize very large images */
.optimize-large {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* For the smallest size badges */
.small-badge {
    width: 24px;
    height: 24px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    /* Already dark, so no changes needed */
}

/* Light mode styles (optional) */
.light-mode {
    background-color: #f0f0f0 !important;
    color: #333 !important;
}

.light-mode .content-box {
    background-color: rgba(240,240,240,0.9) !important;
    border-color: #aaa !important;
    color: #333 !important;
}

.light-mode h1 {
    color: #800080 !important;
}

.light-mode h2 {
    color: #008080 !important;
}

.light-mode h3 {
    color: #808000 !important;
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(to bottom, #333, #111);
    color: #fff;
    border: 2px solid #666;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0,255,255,0.7);
}

.light-mode .theme-toggle {
    background: linear-gradient(to bottom, #ddd, #fff);
    color: #333;
    border-color: #999;
}

/* Improved triple image section */
.triple-container {
    text-align: center;
    margin: 20px auto;
}

@media (max-width: 767px) {
    .triple-image {
        max-width: 100px;
    }
}

/* New hit counter styles */
.hit-counter {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.counter-digit {
    background: linear-gradient(to bottom, #000022, #000044);
    color: #00ff00;
    font-family: "Courier New", monospace;
    font-size: 24px;
    font-weight: bold;
    width: 1.2em;
    height: 1.5em;
    margin: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #008800;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.3), 0 0 5px rgba(0, 255, 0, 0.5);
}

.counter-digit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 255, 0, 0.7);
    box-shadow: 0 0 3px rgba(0, 255, 0, 0.7);
}

/* Page transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
    opacity: 0;
}

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

/* Improved content loading animation */
.content-box {
    animation: contentAppear 0.5s ease-out forwards;
    transform: translateY(20px);
    opacity: 0;
    animation-fill-mode: both;
}

@keyframes contentAppear {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.row > div:nth-child(1) .content-box { animation-delay: 0.1s; }
.row > div:nth-child(2) .content-box { animation-delay: 0.3s; }
.row > div:nth-child(3) .content-box { animation-delay: 0.5s; }

/* Add styles for the overflow indicator */
.subnav.has-overflow::after {
    content: '→';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    font-size: 20px;
    animation: pulse 2s infinite;
    opacity: 0.7;
    pointer-events: none;
    background: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,255,0.5);
}

.jumbotron {
    margin-bottom: 15px;
    padding: 0;
}

/* Add new style for the glowing visitor counter */
@keyframes glow {
    from {
        box-shadow: 0 0 20px #ff00ff, inset 0 0 10px rgba(0, 255, 0, 0.5);
    }
    to {
        box-shadow: 0 0 50px #ff00ff, inset 0 0 25px rgba(0, 255, 0, 0.9);
    }
}

/* Clickjacking tool specific styles */
.header { text-align: center; margin-bottom: 40px; }
.header h1 { font-size: 2.5rem; padding: 10px; display: inline-block; }
.iframe-container { margin-top: 20px; }
iframe { width: 100%; height: 1000px; border: 2px solid #007bff; }
.btn-load { background-color: #007bff; color: #000000; margin-top: 20px; width: auto; margin-left: auto; margin-right: auto; }
.rainbow-text-clickjacking {
    background-image: linear-gradient(to right, red, yellow, #00ffB4, rgb(255, 0, 221));
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.urlInput { color: #ffffff; }
.hidden { display: none; }

/* Visitor counter with glow effect */
.visitor-counter {
    font-family: "Courier New", monospace;
    font-size: 42px;
    font-weight: bold;
    display: inline-block;
    padding: 5px 20px;
    background: linear-gradient(to bottom, #000066, #000033);
    color: #00ff00;
    border: 5px solid #ff00ff;
    border-radius: 10px;
    margin: 15px auto;
    text-align: center;
    animation: glow 1.5s alternate infinite;
    text-shadow: 0 0 10px #00ff00;
} 