@font-face {
    font-family: 'AmstradFont';
    src: url('https://fonts.cdnfonts.com/css/amstrad-cpc464') format('woff');
}

/* Base styling */
body {
    background: repeating-linear-gradient(45deg, #000080, #000080 5px, #0000a0 5px, #0000a0 10px);
    color: #ffffff;
    font-family: monospace;
    margin: 0;
    padding: 0;
    text-align: center;
    position: relative;
    min-height: 100vh;
}

/* Main screen container */
.screen {
    max-width: 90%;
    width: 640px;
    margin: 0 auto;
    border: 20px solid #000040;
    border-radius: 15px;
    padding: 20px;
    background-color: #000080;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* CRT screen effects */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%);
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    animation: glitch 2s infinite;
    z-index: 2;
}

@keyframes glitch {
    0% { top: 10%; opacity: 0; }
    10% { opacity: 0.5; }
    20% { top: 80%; opacity: 0; }
    100% { opacity: 0; }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Responsive title */
.git-helper {
    font-size: min(15vw, 100px);
    color: #ff0000;
    margin: 20px auto;
    text-shadow: 3px 3px 0 #00ffff, 5px 5px 0 #ff00ff, 7px 7px 0 #ffff00;
    font-weight: 900;
    width: 100%;
    line-height: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    position: relative;
    z-index: 5;
}

/* Button container */
.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Call to action buttons */
.cta {
    display: inline-block;
    background-color: #ff0000;
    color: #ffff00;
    padding: 10px 20px;
    text-decoration: none;
    border: 2px solid #ffffff;
    font-weight: bold;
    animation: blink 1s step-end infinite;
    flex-grow: 0;
    min-width: 120px;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.5);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

/* Scrolling text banner */
.scrolling-text {
    overflow: hidden;
    white-space: nowrap;
    background-color: #000040;
    border: 1px solid #00ffff;
    padding: 6px 0;
    margin: 15px auto;
    width: 100%;
    position: relative;
    z-index: 5;
}

.scrolling-text-content {
    display: inline-block;
    color: #ffff00;
    font-family: monospace;
    font-size: 16px;
    animation: scroll-text 20s linear infinite;
}

@keyframes scroll-text {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Terminal window */
.terminal {
    background-color: #000000;
    color: #00ff00;
    padding: 10px;
    font-family: monospace;
    text-align: left;
    margin: 20px auto;
    height: 300px;
    overflow: hidden;
    border: 2px solid #ffffff;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
    cursor: text;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #00ff00;
    animation: blink 1s step-end infinite;
}

/* Command menu */
.menu {
    margin: 20px auto;
    text-align: left;
    padding: 10px;
    border: 2px solid #ffff00;
    background-color: #000040;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    z-index: 5;
}

.menu-title {
    position: absolute;
    top: -10px;
    left: 20px;
    background-color: #000080;
    padding: 0 10px;
    color: #ff00ff;
    font-weight: bold;
}

.menu-item {
    margin: 8px 0;
    color: #00ffff;
    display: flex;
    align-items: center;
}

.menu-item:hover {
    background-color: #0000a0;
    cursor: pointer;
}

.menu-number {
    color: #ffff00;
    font-weight: bold;
    margin-right: 10px;
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.menu-text {
    color: #ffffff;
}

.menu-desc {
    font-size: 12px;
    color: #00ff00;
    margin-left: 40px;
    margin-top: -5px;
    font-style: italic;
}

/* Github buttons */
.github-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px auto;
    width: 100%;
    position: relative;
    z-index: 5;
}

.github-button {
    display: flex;
    align-items: center;
    background-color: #000040;
    color: #00ffff;
    text-decoration: none;
    padding: 8px 12px;
    border: 2px solid #00ffff;
    font-family: monospace;
    transition: all 0.3s;
}

.github-button:hover {
    background-color: #0000a0;
    transform: translateY(-2px);
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.github-icon {
    font-size: 18px;
    font-weight: bold;
    margin-right: 8px;
    color: #ffff00;
}

.github-text {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    margin-top: 30px;
    font-size: 12px;
    color: #00ff00;
    padding: 10px;
    position: relative;
    z-index: 5;
}

/* Mobile keyboard input */
.terminal-input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

.mobile-input-button {
    display: none;
    background-color: #ff0000;
    color: #ffff00;
    border: 2px solid #ffffff;
    padding: 10px 20px;
    margin: 20px auto;
    font-weight: bold;
    font-family: monospace;
    cursor: pointer;
    z-index: 100;
    font-size: 16px;
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.4);
}

/* Show keyboard button for mobile */
@media (max-width: 1024px) {
    .mobile-input-button {
        display: block;
    }
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .screen {
        padding: 15px;
        border-width: 15px;
    }
    
    .git-helper {
        font-size: min(12vw, 60px);
        margin: 15px auto;
        text-shadow: 2px 2px 0 #00ffff, 3px 3px 0 #ff00ff, 4px 4px 0 #ffff00;
    }
    
    .terminal {
        height: 250px;
    }
    
    .menu-number {
        font-size: 18px;
        width: 25px;
    }
    
    .menu-text {
        font-size: 14px;
    }
    
    .menu-desc {
        font-size: 11px;
    }
    
    .scrolling-text-content {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .screen {
        padding: 10px;
        border-width: 10px;
    }
    
    .git-helper {
        font-size: min(14vw, 50px);
        margin: 15px auto;
        text-shadow: 2px 2px 0 #00ffff, 3px 3px 0 #ff00ff, 4px 4px 0 #ffff00;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .cta {
        width: 80%;
        margin: 5px 0;
    }
    
    .terminal {
        height: 250px;
        padding: 8px;
    }
    
    .github-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .github-button {
        width: 80%;
        margin: 5px 0;
        justify-content: center;
    }
    
    .menu {
        padding: 8px;
    }
    
    .menu-number {
        font-size: 16px;
        width: 20px;
    }
    
    .menu-text {
        font-size: 12px;
    }
    
    .menu-desc {
        font-size: 10px;
        margin-left: 30px;
    }
    
    .scrolling-text {
        padding: 4px 0;
    }
    
    .scrolling-text-content {
        font-size: 12px;
    }
    
    .footer {
        font-size: 10px;
    }
}