/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', monospace;
    background: linear-gradient(135deg, #4a148c 0%, #1a237e 50%, #006064 100%);
    min-height: 100vh;
    padding: 20px;
    overflow-x: auto;
}

/* Main Container */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(145deg, #f5f5dc 0%, #e8e8d0 50%, #d3d3c0 100%);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);

    padding-top: 10px;
}

/* Game Boy Color Frame - Authentic portrait proportions matching reference */
.gameboy-frame {
    background: linear-gradient(145deg, rgba(251, 167, 40, 0.95) 0%, rgba(232, 148, 10, 0.95) 50%, rgba(214, 126, 2, 0.95) 100%);
    border-radius: 25px 25px 25px 25px;
    padding: 50px 40px 120px 40px;
    box-shadow: 
        inset 0 0 0 4px rgba(255,255,255,0.3),
        inset 0 0 0 8px rgba(251, 167, 40, 0.9),
        inset 0 0 0 12px rgba(232, 148, 10, 0.7),
        0 15px 30px rgba(0,0,0,0.4);
    position: relative;
    width: 280px;
    height: 480px;
    margin: 20px auto;
    backdrop-filter: blur(1px);
}

/* Screen Container - Bezel around splash image */
.screen-container {
    background: #0a0a0a;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    width: fit-content;
    box-shadow: 
        inset 0 0 0 6px #1a1a1a,
        inset 0 0 0 10px #000,
        inset 0 0 30px rgba(0,0,0,0.9);
}

.screen {
    background: linear-gradient(145deg, #c8d6c8 0%, #a8b8a8 50%, #8fa68f 100%);
    border-radius: 2px;
    padding: 20px;
    box-shadow: 
        inset 0 0 0 1px #5a6b5a,
        inset 0 0 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid #3a4a3a;
    width: 180px;
    height: 180px;
    margin: 0 auto;
}

/* Pixel Art Images */
.pixel-art {
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-crisp-edges;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Header */
.header {
    margin-bottom: 20px;
    border-bottom: 2px solid #FBA728;
    padding-bottom: 15px;
}

.game-title-header {
    text-align: center;
    margin-bottom: 15px;
}

.game-title-header .title-text {
    font-size: 20px;
    margin-bottom: 5px;
}

.game-title-header .subtitle {
    font-size: 8px;
    margin-bottom: 0;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: #1b5e20;
    text-decoration: none;
    font-size: 8px;
    padding: 8px 12px;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background: #FBA728;
    color: #1b5e20;
    border-color: #FBA728;
}

/* Sections */
.section {
    display: block;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 5px solid #3e2723;
}

.section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

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

/* Hero Section */
.hero {
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

.game-title {
    margin-bottom: 20px;
}

.title-text {
    font-size: 16px;
    color: #3e2723;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px #FBA728;
    line-height: 1.2;
}

a {
    text-decoration: none;
}

.game-title-header .subtitle {
    font-size: 8px;
    /* color: #2e7d32; */
    margin-bottom: 0;
    margin-top: 20px;
}

.hero-image {
    margin: 20px 0;
}

.hero-image img {
    max-width: 200px;
    height: auto;
    border: 2px solid #1b5e20;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Buttons */
.btn {
    font-family: 'Press Start 2P', monospace;
    font-size: 8px;
    padding: 12px 16px;
    border: 2px solid #3e2723;
    background: #4caf50;
    color: #3e2723;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn:hover {
    background: #3e2723;
    color: #e8f5e8;
    transform: translateY(-2px);
}

.btn-primary {
    background: #FBA728;
    color: #3e2723;
    border-color: #e8940a;
}

.btn-secondary {
    background: transparent;
    color: #3e2723;
    border-color: #3e2723;
}

.btn-gameboy {
    background: #ff5722;
    color: #fff;
    border-color: #d84315;
}

.btn-emulator {
    background: #2196f3;
    color: #fff;
    border-color: #1565c0;
}

/* Game Section */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.screenshot {
    text-align: center;
    /* background: #23252d; */
    padding: 15px;
    /* border: 2px solid #FBA728; */
    border-radius: 4px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

.screenshot img {
    max-width: 100%;
    height: auto;
    border: 1px solid #1b5e20;
    margin-bottom: 10px;
}

.screenshot p {
    font-size: 12px;
    color: #e8940a;
    margin-top: 10px;
    margin-bottom: 10px;
}

.hero-content {
    display: flex;
    flex: 1;
}

.download-section {
    margin-top: 30px;
    text-align: center;
    background: linear-gradient(145deg, #7b1fa2 0%, #6a1b9a 100%);
    padding: 20px;
    border-radius: 4px;
    border: 2px solid #4a148c;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.download-section h3 {
    color: #e8f5e8;
    font-size: 10px;
    margin-bottom: 10px;
}

.download-section p {
    color: #c8e6c9;
    font-size: 8px;
    margin-bottom: 15px;
}

.platform-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Instructions Section */
.manual-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.manual-container-single {
    margin-top: 20px;
}

.manual-viewer {
    text-align: center;
}

.manual-cover {
    text-align: center;
}

h2 {
    font-size: 20px;
}

.pdf-embed {
    width: 100%;
    height: 400px;
    border: 2px solid #1b5e20;
    border-radius: 4px;
}

.pdf-embed-full {
    width: 100%;
    height: 600px;
    border: 2px solid #1b5e20;
    border-radius: 4px;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.page-item {
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #FBA728;
    border-radius: 4px;
    background: linear-gradient(145deg, #2196f3 0%, #1976d2 100%);
    transition: all 0.2s;
}

.page-item:hover {
    background: linear-gradient(145deg, #1976d2 0%, #1565c0 100%);
    border-color: #FBA728;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(251, 167, 40, 0.3);
}

.page-preview {
    font-size: 20px;
    margin-bottom: 5px;
}

.page-item p {
    font-size: 6px;
    color: #e8f5e8;
}

/* Gallery Section */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-item {
    text-align: center;
}

/* Retro Game Boy Style Buttons */
.retro-button {
    display: block;
    background: #4caf50;
    border: 2px solid #3e2723;
    border-radius: 2px;
    padding: 15px 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: 'Press Start 2P', monospace;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.retro-button:hover {
    background: #3e2723;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.retro-button:active {
    transform: translateY(0px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.retro-button-content {
    position: relative;
    z-index: 1;
}

.retro-label {
    font-size: 10px;
    color: #e8f5e8;
    font-weight: bold;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
    margin-bottom: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.retro-sublabel {
    font-size: 8px;
    color: #e8f5e8;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

.retro-button:hover .retro-label,
.retro-button:hover .retro-sublabel {
    color: #e8f5e8;
}

/* Specific button variations */
.box-preview {
    background: linear-gradient(135deg, #FBA728 0%, #e8940a 100%);
}

.box-preview:hover {
    background: linear-gradient(135deg, #e8940a 0%, #d67e02 100%);
}

.box-preview .retro-label,
.box-preview .retro-sublabel {
    color: rgb(232, 245, 232);
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
}

.sticker-preview {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

.sticker-preview:hover {
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
}

.manual-preview {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
}

.manual-preview:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

.manual-preview .retro-label,
.manual-preview .retro-sublabel {
    color: #fff;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.5);
}

/* Footer */
.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #FBA728;
    text-align: center;
}

.footer-content p {
    font-size: 6px;
    color: #2e7d32;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    font-size: 6px;
    color: #1b5e20;
    cursor: pointer;
    padding: 5px 8px;
    border: 1px solid #1b5e20;
    background: transparent;
    transition: all 0.2s;
}

.social-link:hover {
    background: #1b5e20;
    color: #e8f5e8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column; 
    }
    .gameboy {
        height: 343px;
        overflow: hidden;
    }
    .gameboy .speaker {
        display: none;
    }
}

@media (max-width: 480px) {
   
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}


body, .main-container {
    background: rgba(251, 167, 40, 0.2) !important;
}

.main-container {
    box-shadow: none;
    border-radius: 0;
    border: 10px solid #3e2723;
}

.madewith {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #3e2723;
    text-decoration: none;
}

.madewith img {
    display: block;
    margin: auto;
}

.thanks ul {
    list-style-type: square;
    padding-left: 18px;
    font-size: 12px;
}
.thanks ul li {
    margin-top: 8px;
}