* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a170f;
    color: #e7e5e0;
    font-family: 'Fira Code', monospace;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#splash {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

#dino {
    width: 350px;
    height: 350px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    margin-bottom: 0.1rem;
    animation: bounce 2s infinite;
    padding: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

h1 {
    font-size: 3rem;
    margin-top: 0.1rem;
    margin-bottom: 0.1rem;
    color: #8ec07c;
    text-shadow: 0 0 10px #8ec07c;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #cccccc;
    font-weight: normal;
}

nav ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2rem;
}
@media (max-width: 600px) {
    nav ul {
        flex-wrap: wrap;   /* Only wrap on small screens */
        gap: 1rem;
    }
}

nav li {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #333333;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 150px;
}

nav a:hover {
    border-color: #8ec07c;
    background-color: rgba(127, 176, 105, 0.1);
    box-shadow: 0 0 15px rgba(127, 176, 105, 0.3);
}

.icon img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  filter: brightness(0) invert(1); /* makes black → white */
  opacity: 0.8;
  transition: opacity 0.2s ease-in-out;
}

.icon img:hover {
  opacity: 1;
}


.label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    #dino {
        width: 100px;
        height: 100px;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .icon {
        font-size: 1.5rem;
    }
    
    .label {
        font-size: 0.8rem;
    }
}
