body {
    background-color: #e5b7c7;
    color: #5a3a3a;
    font-family: "Courier New", monospace;
    text-align: left;
    padding: 20px;
}

.terminal {
    max-width: 800px;
    margin: 50px auto;
    border-radius: 10px;
    padding: 0px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(248, 232, 232, 0.8);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.terminal-header {
    background-color: #d49aa3;
    padding: 5px;
    border-radius: 10px 10px 0 0;
    text-align: center;
    font-weight: bold;
    margin: 0;
    color: #5a3a3a;
}

/* Terminal Body */
.terminal-body {
    position: relative;
    padding: 40px;
    height: 300px;
    max-height: 400px;
    width: 100%;
    max-width: 750px;
    /*overflow: hidden;
    background: none;*/
    overflow-y: scroll;
    z-index: 1;
}

/* ASCII Art */
.ascii-art {
    font-family: monospace;
    color: #5a3a3a; 
    margin-bottom: 20px;
    white-space: pre;
}

/* File Structure Styling */
.file-structure {
    font-size: 14px;
    color: #5a3a3a;
    margin-top: 10px;
    display: none;
}

.terminal-body::after {
    content: "";
    position: absolute;
    bottom: 40px;
    right: 20px;
    width: 250px;
    height: 250px;
    background-size: contain;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
    background: none;
}

/* Terminal Text */
/* .terminal-body p {
    color: #333;
    font-size: 16px;
    margin: 5px 0;
} */

/* Terminal Commands */
.command {
    font-weight: normal;
    color: #222;
}

/* Bold Only for Typed Command */
.typed-command {
    font-weight: bold;
}

.response {
    color: #555;
}

.response.about-text {
    max-width: calc(100% - 200px); /* Ensure text stays within the terminal body, leaving space for the character */
    max-height: calc(100% - 75px); /* Leave space at the bottom for the character */
    overflow-wrap: break-word; /* Ensure long words break properly */
    overflow-y: scroll; /* Add scrolling if the text exceeds the defined height */
    margin: 0; /* Remove any extra margins */
    padding-right: 20px; /* Add some padding for better readability */
}

.response.about-text::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.response.about-text::-webkit-scrollbar-thumb {
    background-color: #d49aa3; /* Color of the scrollbar thumb */
    border-radius: 4px; /* Rounded corners for the scrollbar thumb */
}

.response.about-text::-webkit-scrollbar-track {
    background-color: #f8e8e8; /* Color of the scrollbar track */
}

/* For Firefox */
.response.about-text {
    scrollbar-width: thin; /* Makes the scrollbar thinner */
    scrollbar-color: #d49aa3 #f8e8e8; /* Thumb color and track color */
}

.response.contact-form {
    margin-top: 20px;
    max-width: calc(100% - 200px); /* Ensure text stays within the terminal body, leaving space for the character */
    max-height: calc(100% - 75px); /* Leave space at the bottom for the character */
    overflow-wrap: break-word; /* Ensure long words break properly */
    overflow-y: scroll; /* Add scrolling if the text exceeds the defined height */
    margin: 0; /* Remove any extra margins */
    padding-right: 20px; /* Add some padding for better readability */
}

.response.contact-form input, .contact-form textarea {
    width: calc(100% - 200px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: "Courier New", monospace;
    background-color: #f8e8e8;
    color: #5a3a3a;
}

.response.contact-form button {
    background-color: #d49aa3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Courier New", monospace;
}

.response.contact-form button:hover {
    background-color: #c0788f;
}

.response.contact-form::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

.response.contact-form::-webkit-scrollbar-thumb {
    background-color: #d49aa3; /* Color of the scrollbar thumb */
    border-radius: 4px; /* Rounded corners for the scrollbar thumb */
}

.response.contact-form::-webkit-scrollbar-track {
    background-color: #f8e8e8; /* Color of the scrollbar track */
}

/* For Firefox */
.response.contact-form {
    scrollbar-width: thin; /* Makes the scrollbar thinner */
    scrollbar-color: #d49aa3 #f8e8e8; /* Thumb color and track color */
}

/* Typing animation */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Blinking cursor effect */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Typing effect container */
.typing {
    display: inline-flex;;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    min-width: 12ch;
}

/* Cursor effect */
.blinking-cursor {
    display: inline-block;
    margin-left: 5px;
    animation: blink 0.8s infinite;
}

/* Hide blinking cursor from the first line after typing is done */
.typed-command .blinking-cursor {
    display: none;
}

/* Initially hide the output */
.output {
    display: none;
    color: #333;
    font-size: 16px;
    margin-top: 5px;
}

/* Normal weight for Mac:~ User$ (new line) */
.command {
    font-weight: normal;
    color: #222;
}

/* Make only the typed command bold */
.typed-command {
    font-weight: bold;
}

/* Make clickable links look like terminal text */
.terminal-link {
    color: #5a3a3a;
    text-decoration: none;
}

.terminal-link:hover {
    text-decoration: underline;
}