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

body {
    font-family: 'JetBrains Mono', 'Courier New', 'Monaco', 'Menlo', 'Consolas', monospace;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

#tetris {
    display: block;
}

#text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#text-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

#text-overlay.visible {
    visibility: visible;
}

#text-overlay.fade-in {
    animation: fadeIn 1s ease-in forwards;
}

#text-overlay.fade-out {
    animation: fadeOut 1s ease-out forwards;
}

.logo {
    width: 200px;
    height: 200px;
}

h1 {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: #ffffff;
}

.menu {
    display: flex;
    gap: 3rem;
    margin-top: 1rem;
}

.menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 2rem;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
}

.menu a:hover {
    opacity: 0.6;
    transform: translateY(-2px);
}

.menu a::after {
    content: attr(title);
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu a:hover::after {
    opacity: 1;
}

.restart-btn {
    margin-top: 2rem;
    background: none;
    color: #ffffff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    position: relative;
}

.restart-btn:hover {
    opacity: 0.6;
}

.restart-btn i {
    display: inline-block;
    transition: transform 0.3s ease;
}

.restart-btn:hover i {
    transform: translateY(-2px) rotate(180deg);
}

.restart-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.restart-btn:hover::after {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .logo {
        width: 150px;
        height: 150px;
    }

    h1 {
        font-size: 2rem;
    }

    .menu {
        gap: 2rem;
    }

    .menu a {
        font-size: 1.5rem;
    }
}
