@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --mc-gray: #c6c6c6;
    --mc-dark-gray: #3a3a3a;
    --mc-border-light: #ffffff;
    --mc-border-dark: #555555;
    --mc-green: #5cb85c;
    --mc-yellow: #ffff55;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'VT323', monospace;
    color: white;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.overlay {
    background-color: rgba(0, 0, 0, 0.7); /* Slightly darker for better readability */
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navigation Bar */
header {
    background-color: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid var(--mc-border-dark);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.header-logo {
    height: 40px;
    width: auto;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--mc-gray);
    text-decoration: none;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000;
    padding: 5px 10px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

nav a:hover, nav a.active {
    color: var(--mc-yellow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.hero {
    text-align: center;
    margin-bottom: 60px;
}

.main-logo {
    max-width: 400px;
    width: 90%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

h1, h2, h3 {
    text-shadow: 3px 3px 0 #000;
    margin-bottom: 20px;
}

h1 { font-size: 3.5rem; color: var(--mc-yellow); }
h2 { font-size: 2.5rem; border-bottom: 2px solid var(--mc-gray); padding-bottom: 10px; width: 100%; text-align: center; }
h3 { font-size: 2rem; }

p {
    font-size: 1.3rem;
    line-height: 1.6;
    text-shadow: 1px 1px 0 #000;
    max-width: 800px;
    text-align: center;
}

/* Content Sections */
.content-section {
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--mc-border-dark);
    padding: 30px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border: 1px solid var(--mc-gray);
    text-align: center;
}

/* Minecraft Button Style */
.mc-button {
    background-color: #727272;
    border: 2px solid #000;
    border-top-color: #dbdbdb;
    border-left-color: #dbdbdb;
    color: white;
    padding: 12px 24px;
    font-size: 1.4rem;
    font-family: 'VT323', monospace;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    min-width: 180px;
    text-shadow: 2px 2px 0 #000;
    box-shadow: inset -2px -4px 0 0 rgba(0,0,0,0.4);
    transition: background-color 0.1s;
    position: relative;
}

.mc-button:active {
    background-color: #555;
    border-top-color: #000;
    border-left-color: #000;
    border-bottom-color: #dbdbdb;
    border-right-color: #dbdbdb;
    box-shadow: none;
    transform: translateY(2px);
}

.mc-button:hover {
    background-color: #8b8b8b;
}

.mc-button img, .mc-button svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Modal / Popup */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-window {
    background-color: #c6c6c6;
    border: 2px solid #000;
    width: 90%;
    max-width: 500px;
    padding: 4px;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.5);
    position: relative;
}

.modal-content {
    border: 2px solid #555;
    border-right-color: #fff;
    border-bottom-color: #fff;
    padding: 20px;
    text-align: center;
    color: #333;
}

.modal-content h3 {
    color: #333;
    text-shadow: none;
    margin-top: 0;
}

.modal-content p {
    color: #333;
    text-shadow: none;
    font-size: 1.5rem;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #a00;
    color: white;
    border: 2px solid #000;
    width: 30px;
    height: 30px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    border-top: 2px solid var(--mc-border-dark);
    margin-top: auto;
}

footer a {
    color: var(--mc-gray);
    margin: 0 10px;
}

footer a:hover {
    color: var(--mc-yellow);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-logo {
        max-width: 250px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
}
