@font-face {
    font-family: 'Berkeley Mono';
    src: url('fonts/BerkeleyMono-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Berkeley Mono';
    src: url('fonts/BerkeleyMono-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    cursor: none;
}

body, a, button, input, textarea, select {
    cursor: none !important;
}

body {
    font-family: 'Berkeley Mono', 'Courier New', Courier, monospace;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1.6;
    overflow: hidden;
    font-size: 0.875rem;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-gif {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.color-gif {
    z-index: 2;
    mask: url(#reveal-mask);
    -webkit-mask: url(#reveal-mask);
}

.mask-svg {
    position: absolute;
    width: 0;
    height: 0;
}

@media (max-width: 768px) {
    .background-gif {
        width: 100%;
        height: auto;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.content-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
}

h1 {
    font-size: 0.875rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

.subtitle {
    font-size: 0.875rem;
    color: #aaaaaa;
    margin-bottom: 2rem;
}

.links {
    font-size: 0.875rem;
}

.links a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.links a:hover {
    border: 1px solid #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.separator {
    color: #555555;
    margin: 0 0.5rem;
}

@media (max-width: 600px) {
    .content-overlay {
        padding: 1.5rem;
    }
}

.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 9999;
}

.other-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    pointer-events: none;
    z-index: 9998;
    display: none;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.other-trail {
    position: fixed;
    pointer-events: none;
    z-index: 8;
    animation: fadeOut 0.8s 0.7s ease-out forwards;
}

.pixel-trail {
    position: fixed;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    pointer-events: none;
    z-index: 9;
    animation: fadeOut 0.8s 0.7s ease-out forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

@keyframes fadeOutOther {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}


@media (max-width: 768px), (hover: none) {
    html {
        cursor: auto;
    }
    
    body, a, button, input, textarea, select {
        cursor: auto !important;
    }
    
    .cursor {
        display: none;
    }
}