/* By default, hide the D-pad controls */
#mobile-controls {
    display: none;
}

/* Show the controls only on small screens (less than 768px wide) */
@media only screen and (max-width: 767px) {
    #mobile-controls {
        display: flex; /* Show the controls on small screens */
    }

    /* Resize D-pad for smaller screens */
    .d-pad button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    .navbar-toggler:hover,
    .navbar-toggler:focus {
        outline: 2px solid #00f613; /* Neon green outline */
        outline-offset: 2px;
        box-shadow: 0 0 10px #00f613;
        border-color: #00f613;
        background-color: #111; /* Optional: slight background change */
    }

    .nav-item a:hover {
        color: #126bf2;
    }


}

/* Typography adjustments for the Silkscreen font */
.silkscreen-regular {
    font-family: "Silkscreen", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.silkscreen-bold {
    font-family: "Silkscreen", sans-serif;
    font-weight: 700;
    font-style: normal;
}

/* Simplified typing animation for a smoother effect
.type-out {
    overflow: hidden;
    border-right: .15em solid #00f613;
    font-size: 1.6rem;
    margin: 0 auto;
    width: 0;
    animation: typing 2s steps(20, end) forwards, blink .8s infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}
*/

.type-line {
    font-size: 1.2rem;
    overflow: hidden;
    color: #11eb1b;
    font-family: 'Silkscreen', sans-serif;
    display: inline-block;
}

.caret {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #00f613;
    margin-left: 2px;
    animation: blink 0.8s steps(1) infinite;
    vertical-align: bottom;
}


@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0;
    }
}

/* Centering and styling the game canvas section */
.game-canvas-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Center game canvas without specific offsets */
#gameCanvas {
    display: block;
    margin: auto;
    border: 2px solid black;
    background-color: #eee;
}

/* Styling restart button and alignment */
#restartButton {
    display: block;
    margin: 20px auto;
}

.d-pad {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.d-pad-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.d-pad button {
    width: 60px;
    height: 60px;
    font-size: 20px;
}

/* Link and text styling */
a, div, sec {
    font-family: 'Silkscreen', "Indie Flower", sans-serif;
    color: #00f613;
}

p {
    margin: 0;
    padding: 10px;
}

.card {
    box-shadow: 0 4px 8px rgba(0, 255, 0, 0.1); /* Neon green shadow */
}

.highlight {
    color: #0d6efd; /* Bootstrap's default link color */
    /*font-weight: bold; /* Make the text bold */
}

/* Margin adjustment for `.myname` class */
.myname {
    padding-left: 15px;
    padding-right: 15px;
}

/* Image container styling for responsiveness */
.image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

/* Footer styling */
footer {
    background-color: #212529;
    color: #f8f9fa;
}

footer a {
    color: #f8f9fa;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

footer .container {
    padding: 0 15px;
}

footer h2 {
    margin-top: 0;
}
