* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1e1e1e;
    color: #f8f8f8;
    font-family: 'Consolas', 'Courier New', monospace;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    position: relative;
    width: 30%;
    height: 100%;
    padding-top: 50vh
}

.greeting-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 2s ease-in-out 3s forwards;
    background-color: #1e1e1e80;
}

.highlight {
    color: #0cf57e;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
    color: #cccccc;
}

/* Add responsive font sizes */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1rem;
    }
}

#code-container {
    position: fixed;
    width: 100%;
    height: 100%;
    padding-top: 1vh;
}

.code-line {
    position: absolute;
    white-space: nowrap;
    opacity: 0;
    font-size: 14px;
    transform-origin: center;
}

/* Syntax highlighting */
.keyword { color: #569CD6; }
.string { color: #CE9178; }
.comment { color: #6A9955; }
.function { color: #DCDCAA; }
.variable { color: #9CDCFE; }
.number { color: #B5CEA8; }
.operator { color: #D4D4D4; }
.property { color: #9CDCFE; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes flyIn {
    0% {
        transform: translateX(var(--startX)) translateY(var(--startY)) scale(0.8);
        opacity: 0;
    }
    70% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(var(--endX)) translateY(var(--endY)) scale(1);
        opacity: 1;
    }
}

/* Add these styles for the enter button */

.button-container {
    position: absolute; /* Changed to absolute positioning */
    top: calc(50% + 150px); /* Positioned below the greeting message */
    left: 50%;
    transform: translate(-50%, 0);
    width: auto; /* Adjusted width */
    height: auto; /* Adjusted height */
    padding: 5px;
}

.enter-button {
    display: none;
    position: relative;
    z-index: 10;
    background-color: #0cf57e;
    color: black;
    padding: 15px 30px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.enter-button.visible {
    animation: buttonFadeIn 0.5s ease forwards;
}

.enter-button:hover {
    background-color: #17d171c9;
    transform: scale(1.05);
}

@keyframes buttonFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
