/* MacMilling Entertainment Animations */
:root {
    --crt-green: #00ff00;
    --crt-bg: #000000;
    --scanline-opacity: 0.05;
}

@keyframes background-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
    .link-grid {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 400px);
    }
    
    .mm-link {
        flex-direction: row;
        justify-content: center;
        padding: 20px;
    }
    
    .logo {
        width: 95vw;
        height: auto;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .mm-link {
        flex-direction: column;
        padding: 15px;
        font-size: 1.2rem;
    }
    
    footer {
        padding: 10px 15px;
    }
}

@supports not (mix-blend-mode: soft-light) {
    body::before {
        opacity: 0.3;
        background: #000000;
    }
}

@media (hover: none) {
    .mm-link:hover {
        transform: none;
        box-shadow: 0 0 15px var(--crt-green);
    }
}

/* MacMilling Entertainment Direktors Schnitt Animations */
@keyframes rgb-split {
    0% { transform: translate(0); }
    20% { transform: translate(2px, -1px); }
    40% { transform: translate(-1px, 1px); }
    60% { transform: translate(1px, -2px); }
    80% { transform: translate(-2px, 0); }
    100% { transform: translate(0); }
}

/* MacMilling Official Homepage Styling */
body {
    background: #000000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        #000000,
        #1a0f33,
        #001f3f,
        #000000
    );
    background-size: 400% 400%;
    animation: background-animation 25s ease infinite;
    opacity: 0.5;
    z-index: 0;
    mix-blend-mode: soft-light;
    filter: blur(2px);
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,255,0,0.05) 0px,
        rgba(0,255,0,0.05) 1px,
        transparent 2px,
        transparent 3px
    );
    pointer-events: none;
    z-index: 1;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.logo {
    width: 640px;
    height: 384px;
    margin: 20px auto;
    z-index: 2;
    flex-shrink: 0;
	/* border: 1em black groove; */
	box-shadow: 0 4px 8px 0 purple, 0 6px 20px 0 aquamarine;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    align-items: stretch;
    gap: .7rem;
    padding: 1em 0;
    position: relative;
    z-index: 2;
}

.mm-link {
    color: #00ff00;
    text-decoration: none;
    font-size: 1.5rem;
    border: 2px solid aquamarine;
    padding: 25px 30px;
	margin: 0 1.8em auto 1.8em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.7);
    text-align: center;
}

.mm-link:hover {
    background: rgba(0,164,220,0.15);
    box-shadow: 0 0 25px rgba(72,132,136,0.75);
    transform: scale(1.015);
}

.mm-link-icon {
    filter: drop-shadow(0 0 5px rgba(12,36,24,0.15));
	margin: .12em .12em .12em .12em;
	width: 100%;
}

.mm-link-text {
	
}

footer {
    margin-top: auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(143, 58, 130, 0.24);
    z-index: 2;
    border-top: .2em solid #ffd70029;
    position: sticky;
    bottom: 0;
}

footer span {
    font-size: 0.9rem;
    opacity: 0.8;
}

footer img {
    height: 30px;
    margin-right: 20px;
    filter: invert(88%) sepia(21%) saturate(7256%) hue-rotate(70deg);
}