h1 {
    font-size: 2rem;
}
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');


body {
    font-family: 'Press Start 2P', monospace;
    margin-left: 20px; /* Increased left margin */
    padding-top: 140px; /* Space for the top bar (its height + padding) */
    text-align: left; /* Ensure all text is left-aligned */
    
    /* Minecraft-themed Gradient Background */
    background: linear-gradient(45deg, 
        #4CAF50,    /* Grass green */
        #8B4513,    /* Dirt brown */
        #696969,    /* Stone gray */
        #2E7D32     /* Dark green */
    );
    color: #FFFFFF; /* White text for better contrast */
    min-height: 100vh;
}

/* Navigation positioned to top right */
nav {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav ul li {
    display: flex;
    align-items: center;
}


nav ul li a {
    text-decoration: none;
    color: #FFFFFF;
    padding: 8px 16px;
    background-color: #4CAF50;
    border: 3px solid #2E7D32;
    border-radius: 0; /* Remove rounded corners for blocky look */
    transition: background-color 0.3s;
    box-shadow: 3px 3px 0px #1B5E20; /* Blocky shadow */
    font-size: 8px; /* Smaller for pixel font */
}

nav ul li a:hover {
    background-color: #386818;
    color: #77ff77;
}

button {
    background-color: #8B4513; /* Dirt brown */
    color: #FFFFFF;
    border: 3px solid #654321;
    padding: 10px 20px;
    border-radius: 0; /* Blocky corners */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 3px 3px 0px #3E2723; /* Blocky shadow */
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
}

/* Top Bar Styling */
.top-bar {
    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 75px; /* Height of the top bar */
    color: #FFFFFF; /* White text */
    padding: 30px 20px; /* Space inside the bar, reduced padding */
    box-shadow: 0 5px 0px #1B5E20; /* Blocky shadow instead of blur */
    font-size: 2rem; /* Font size for the top bar */
    font-family: 'Press Start 2P', monospace;
    text-align: center; /* Centered text */
    background: linear-gradient(to bottom, 
        #4CAF50 0%, 
        #2E7D32 50%, 
        #1B5E20 100%
    ); /* Grass block gradient */
    border-bottom: 4px solid #1B5E20;
}



.hometext {
    text-align: left;
    font-size: 12px; /* Smaller size for pixel font */
    color: #FFFFFF; /* White text for contrast */
    margin-left: 20px; /* Add more space from left edge */
    max-width: 800px; /* Limit width for better readability */
    line-height: 1.6; /* Better spacing for pixel font */
    text-shadow: 2px 2px 0px #000000; /* Retro text shadow */
    margin-bottom: 10px;

    
}

/* Minecraft Logo Styling */
.minecraft-logo {
    width: 400px; /* Set specific width */
    height: auto; /* Maintain aspect ratio */
    margin-left: 20px; /* Align with text */
    margin-top: 20px; /* Add some space above */
    border: 3px solid #2E7D32; /* Minecraft-style border */
    box-shadow: 3px 3px 0px #1B5E20; /* Blocky shadow */
}

/* Content positioning */
body {
    padding-top: 140px; /* Space for the top bar (its height + padding) */
}

/* Block Building Intro */
.intro-blocks {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Intro Overlay Styles */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2E7D32, #1B5E20, #4CAF50);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 3s ease-in-out 2s forwards;
}

.intro-content {
    text-align: center;
    color: white;
    animation: slideUp 1s ease-out;
}

.intro-logo {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.intro-title {
    font-family: 'Press Start 2P', monospace;
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px #000;
    animation: glow 2s ease-in-out infinite alternate;
}

.loading-bar {
    width: 300px;
    height: 20px;
    background-color: #333;
    border: 2px solid #fff;
    margin: 20px auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 0%;
    animation: fillBar 2s ease-in-out forwards;
}

.intro-text {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    margin-top: 20px;
    animation: blink 1s infinite;
}

/* Intro Animations */
@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

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

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    80% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    from {
        text-shadow: 2px 2px 0px #000, 0 0 10px #4CAF50;
    }
    to {
        text-shadow: 2px 2px 0px #000, 0 0 20px #8BC34A, 0 0 30px #4CAF50;
    }
}

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

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

/* Block Building Intro */
.intro-blocks {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.block {
    width: 30px;
    height: 30px;
    margin: 2px;
    background: #8BC34A;
    border: 2px solid #4CAF50;
    animation: buildBlocks 0.5s ease-in-out both;
}

.block:nth-child(1) { animation-delay: 0.1s; }
.block:nth-child(2) { animation-delay: 0.2s; }
.block:nth-child(3) { animation-delay: 0.3s; }
.block:nth-child(4) { animation-delay: 0.4s; }
.block:nth-child(5) { animation-delay: 0.5s; }

@keyframes buildBlocks {
    from {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Home Page Sections */
.hero-section {
    margin: 20px 0 40px 0;
    padding: 20px;
    background: rgba(46, 125, 50, 0.3);
    border: 3px solid #2E7D32;
    box-shadow: 3px 3px 0px #1B5E20;
}

.hero-text {
    font-size: 16px !important;
    color: #8BC34A;
    text-shadow: 2px 2px 0px #000000;
    margin-bottom: 15px;
}

.content-section {
    margin: 30px 0;
    padding: 20px;
    background: rgba(139, 69, 19, 0.2);
    border: 3px solid #8B4513;
    box-shadow: 3px 3px 0px #654321;
}

.content-section h2 {
    color: #FFFFFF;
    font-size: 16px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #000000;
    text-align: center;
}

.cta-section {
    margin: 30px 0;
    padding: 15px;
    background: rgba(105, 105, 105, 0.3);
    border: 3px solid #696969;
    box-shadow: 3px 3px 0px #424242;
    text-align: center;
}

/* Main content wrapper */
.main-content {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.main-content.hidden {
    opacity: 0;
}