/* Previous styles remain unchanged until the class changes */
body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: #31f14a;
    font-family: 'Courier New', monospace;
    height: 100vh;
    overflow: hidden;
}

.page {
    position: relative;
    background-image: url('../media/matrix-matrix-code.gif'); /* Replace with your background image */
    height: 100vh;
    width: 100vw;
    background-size: cover; /* Makes the background image cover the screen */
    background-position: center; /* Centers the background image */
    background-repeat: no-repeat; /* Prevents the background from repeating */
    overflow: hidden;
}

.hidden {
    display: none !important;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    gap: 1.5rem;
}

.welcome-text {
    color:white;
    font-size: 3rem;
    text-align: center;
    padding: 55px;
    font-weight: 700; /* Corrected */
    margin: 0 20px;
    min-height: 1em;
    white-space: pre-line;
}

.doors {
    position: fixed;
    top: 77%;

    left: 50%;
    transform: translate(-50%, -50%);
    color: #31f14a;
    user-select: none;
    font-size: 10px;
    line-height: 1.1;
    text-shadow: 0 0 5px #31f14a;
    opacity: 0.8;
    pointer-events: none; /* Ensures no interaction with other elements */
}

.x-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 30px;
    height: 30px;
    z-index: 1000;
    display: none;
}

#landing-page .x-logo {
    display: block;
}

.ametra-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('../media/code-matrix.gif'); /* Replace with your background image */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers the content */
    align-items: center; /* Horizontally centers the content */
    padding: 20px;
    box-sizing: border-box;
}

#ametra-ascii {
    font-size: 2rem;
    text-align: center;
    color: #ffffff; /* Adjust the text color */
    margin-bottom: 20px;
}

#ametra-ascii.shifted {
    left: 25%;
}

.ametra-interaction {
    text-align: center;
    color: #ffffff; /* Adjust the text color */
}

.ametra-interaction::-webkit-scrollbar {
    width: 6px;
}

.ametra-interaction::-webkit-scrollbar-track {
    background: black;
}

.ametra-interaction::-webkit-scrollbar-thumb {
    background-color: #31f14a;
    border-radius: 3px;
}

.ametra-interaction.visible {
    right: 0;
}

.ametra-intro {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 0 0 50px white ;
    opacity: 0;
    white-space: pre-line;
    margin-bottom: 20px;
    max-width: 600px;
}

.ametra-intro.visible {
    opacity: 1;
    animation: fadeIn 1s forwards;
}

.ametra-response {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    text-shadow: 0 0 50px white ;
    white-space: pre-line;
    min-height: 3rem;
    max-width: 600px;
    margin-top: 20px;
}

.user-input-container {

    gap: 1rem;
    opacity: 0;
    position: sticky;
    bottom: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.user-input-container.visible {
    opacity: 1;
    animation: fadeIn 0.5s forwards;
}

.user-input {
    flex-grow: 1;
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    outline: none;
    margin-right: 10px;
}

.user-input:focus {
    box-shadow: 0 0 10px white;
}

.submit-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: rgba(138, 43, 226, 0.1);
    box-shadow: 0 0 15px red;
}

  #decrypt-btn, .playground-btn {
    background-color: white;
    color: black;
    border: 3px 6px round solid #31f14a;
    border-radius: 20px; /* Rounded corners */
    padding: 10px 30px;
    font-size: 0.9rem;
    margin: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    z-index: 100;
    display: inline-block; /* Makes buttons inline to center horizontally */
}

.nav-btn {
    background-color: white;
    color: black;
    border: 3px 6px round solid #31f14a;
    border-radius: 20px; /* Rounded corners */
    padding: 10px 30px;
    font-size: 0.9rem;
    margin: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    z-index: 100;
}
.enter-btn {
    background-color: white;
    color: black;
    border: 3px 6px round solid #31f14a;
    border-radius: 20px; /* Rounded corners */
    padding: 10px 30px;
    font-size: 0.9rem;
    margin: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    z-index: 100;
    display: inline-block; /* Makes buttons inline to center horizontally */
}

.enter-btn {
    opacity: 0;
    display: block;
    font-weight: 700; /* Corrected */
    pointer-events: none;
}

.enter-btn.visible {
    opacity: 1;
    animation: fadeIn 1s forwards;
    pointer-events: auto;
}

.enter-btn:hover, .nav-btn:hover, #decrypt-btn:hover, .playground-btn:hover {
    background-color: white;
    color: black;
    font-weight: 700; /* Corrected */
    box-shadow: 0 0 15px red;
    transform: scale(2.05);
}



.nav-btn {
    position: absolute;
    background-color: white;
    top: 80px;
    color:black;
    left: 45%;
    z-index: 100;
}

.playground-btn {
    position: absolute;
    top: 40px;
    background-color:white;
    color: black;
    right: 45%;
    z-index: 1;
}

#playground-page {
    background-image: url('../media/MIlestone.gif');
    background-size: cover;
    background-position: center;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.crypto-stats {
    margin-top: 1rem;
    left: 1%;
    text-align: center;
    padding: 1.5rem;
    
    border-radius: 10px;

   
    max-width: 400px;
    width: 90%;
    transition: transform 0.3s ease;
    position: relative;
}

.crypto-stats:hover {
    transform: scale(1.02);
}

.crypto-label {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 0 5px white;
}

.price-container {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px white;
    height: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.coin-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #31f14a;
    text-shadow: 0 0 5px #31f14a;
    word-break: break-all;
    padding: 0.5rem;
  
   
    background: rgba(4, 94, 16, 0.1);
    margin-top: 1rem;
    user-select: text;
    min-height: 1.2em;
}

.coin-address:empty:before {
    content: 'Pending';

}

.odometer.odometer-theme-minimal {
    font-family: 'Courier New', monospace;
}

.odometer.odometer-theme-minimal .odometer-digit {
    color: #31f14a;
    text-shadow: 0 0 10px #31f14a;
}

.odometer.odometer-theme-minimal .odometer-digit-spacer {
    color: #31f14a;
}

/* Milestones Styles */
.milestones {
    position: fixed;
    right: 44rem;
    top: 60%;
    transform: translateY(-50%);
    padding: 3rem;
    border: 5px solid white;
    border-radius: 10px;
    background: black;
    box-shadow: 0 0 20px white;
    max-width: 400px;
    width: 20%;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

.milestones h3 {
    color: white;
    text-shadow: 0 0 5px white;
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 0;
    z-index: 1;
}

.milestones-container {
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: black black;
}

.milestones-container::-webkit-scrollbar {
    width: 6px;
}

.milestones-container::-webkit-scrollbar-track {
    background: black;
}

.milestones-container::-webkit-scrollbar-thumb {
    background-color: red;
    border-radius: 3px;
}

.milestone {
    margin-bottom: 1rem;
}

.milestone-label {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-shadow: 0 0 3px red;
}

.milestone-progress {
    width: 100%;
    height: 8px;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid white;
}

.milestone-bar {
    width: 0%;
    height: 100%;
    background: green;
    box-shadow: 0 0 10px white;
    transition: width 0.5s ease;
}

/* Letters Container */
.letters-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Big Letter Classes */
.big-letter {
    color: white;
    font-size: 1.2rem;
    text-shadow: 0 0 5px red;
    text-align: center;
    font-family: 'Courier New', monospace;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0 -0.05rem;
}

/* Rest of the styles remain unchanged */
.story-text {
    max-width: 800px;
    margin: 80px auto 40px;
    padding: 0 20px;
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    text-align: justify;
}

#story-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 40px;
    overflow-y: auto;
    height: 100vh;
}

.decrypt-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 600px;
}

#decrypt-btn {
    margin: 0;
    opacity: 1;
    display: inline-block;
}

.decrypt-progress {
    width: 100%;
    padding: 0 20px;
}

.decrypt-progress .progress-bar {
    width: 0%;
    height: 33px;
    background: white;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px white;
    margin-bottom: 10px;
}

.progress-message {
    text-align: center;
    font-size: 0.9rem;
    color: white;
    min-height: 1.2em;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.progress-container {
    width: 80%;
    max-width: 400px;
    position: relative;
}

.progress-text {
    text-align: center;
    color: WHITE ;
    font-weight:500;
    margin-top: 2px;
    font-size: 20rem;
}

.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #31f14a;
    font-size: 1.2rem;
    animation: bounce 2s infinite;
    text-shadow: 0 0 5px #31f14a;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

@media (max-height: 800px) {
    .doors {
        font-size: 8px;
    }
    
    #ametra-ascii {
        font-size: 12px;
    }
}

@media (max-width: 1200px) {
    #ametra-ascii.shifted {
        left: 30%;
    }
    
    .ametra-interaction {
        width: 45%;
    }
    
    .ametra-intro, .ametra-response {
        font-size: 1rem;
    }
}


/* Center the social media icons inline */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem; /* Adjust spacing between icons */
    width: 100%; /* Ensures the container takes the full width */
    height: 100vh; /* Makes the container take the full height of the viewport */
    position: absolute;
    top: -388px;
    left: 0;
}

/* Styling for each individual icon */
.social-icon {
    display: inline-block;
    text-decoration: none; /* Remove underline from links */
}

/* Styling for the images (icons) */
.icon-image {
    width: 32px; /* Adjust the size as needed */
    height: 32px;
    object-fit: contain; /* Ensures the aspect ratio of the image is maintained */
}


/* Styling for the button container */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 124px; /* Adds spacing between the icons and the button */
}

/* Styling for the button */
.action-button {
    padding: 10px 40px;
    background-color: #31f14b52; /* Green background color */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 200;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Button hover effect */
.action-button:hover {
    background-color: #28d13d; /* Darker green on hover */
}


/* Optional: If the button is blocked from clicking, ensure z-index and positioning are fine */
.button-link {
    position: relative;
    z-index: 1;
}

.action-button {
    position: relative;
    z-index: 2;
}


.socials {
    display: flex;
    gap: 3rem; /* Adds spacing between icons */
}

.socials img {
    width: 40px; /* Adjust size of icons */
    height: 40px; /* Ensure uniform size */
    cursor: pointer; /* Adds a pointer cursor for interactivity */
    transition: transform 0.2s; /* Smooth hover effect */
}

.socials img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
}