/* all vibe-code projects have css inline in 
the single file with them */
/* -----------------------CSS VARIABLES---- */
:root {
  --primary-green: #4CAF50; /* consistent green */
}

/* ------------------------ */
body {
    margin: 20px;
    color: var(--primary-green);
    background-color: black;
    font-family: "Inconsolata", monospace;
    padding-bottom: 200px;
}
a {
    color: var(--primary-green);
    text-decoration: none;   
}
div.page-container {
    z-index: 10;
}
.page-container a {
    border-radius: 5px;
    display: inline-block;
    padding: 10px;
    margin: 10px;  
    box-shadow: 0 3px 12px 0 var(--primary-green);
}
.page-container #carousel-cont a {
    border-style: none;
    border: none;
    padding: 0;
    margin: 0;
}
.page-container {
    font-family: "Inconsolata", monospace; 
}
textarea::placeholder {
    color: var(--primary-green);
    opacity: 1;
}
#math-display {
    margin-top: 20px;
    font-size: 1.5em;
    text-align: center;
}
#math-input {
    margin-top: 20px;
    background-color: black;
    color: var(--primary-green);
    border-color: var(--primary-green);
    height: 100px;
    width: 100%;
    border-radius: 5px;
}
#threejs-container {
    width: 100%;
    height: 400px;
    margin-top: 20px;
}
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    color: var(--primary-green);
    text-align: center;
    padding: 10px;
    font-size: 10px;
}
.page-container {
    width: 96%;
    background-color: rgba(0, 0, 0, 0.767);
    border-width: 1px;
    border-radius: 10px;
    padding: 10px;
}
.background-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.page-container div.animated-selection {
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.767);
    color: var(--primary-green);
    width: fit-content; 
}
.page-nav-menu {
    background-color: var(--primary-green);
    opacity: 80%;
    position: fixed;
    top: 20px;
    right: 4%;
    display: flex;
    justify-content: left;
    border-radius: 12px;
    border-style: solid;
    border-width: 1px;
    border-color: #000000;
}
.page-nav-menu a {
    background-color: #32cb583f;
    color: black;
    margin: 2px;
    padding: 10px;
    border-radius: 10px;
    border-color: black;
    border-width: 1px;
    box-shadow: 3px 3px 3px 3px rgba(0, 0, 0, 0.308);
}
.background-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    pointer-events: auto;
}
.note-display {
    height: fit-content;
    width: 100%;
}
.carousel {
    aspect-ratio: 16 / 9;
    max-height: 35vw;
    width: 100%;
    overflow: hidden;
    position: relative;
    height: 60vw;
    border-radius: 10px;
    background: #00000000;
    touch-action: pan-y; 
}
.carousel-images {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
    justify-content: center;
}
.carousel-img {
    height: 100%;
    justify-content: center;
    object-fit: contain;
    display: none;
}
.carousel-img.active {
    display: block;
}
button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(28, 114, 6, 0.11);
    border: none;
    border-radius: 10px;  
    color: var(--primary-green);
    padding: 10px;
    cursor: pointer;
    z-index: 1;
    font-size: 2em;
    user-select: none;
}
button.prev { 
    left: 10px; 
}
button.next { 
    right: 10px; 
}
.carousel-images a {
    box-shadow: none;
}
.vibe-code.label {
    position: absolute;
    border-radius: 5px;
    right: 10%;
    bottom: 10%;
    background-color: rgba(250, 235, 215, 0.514);
    color: #000000;
    padding: 2px;
    border-width: 1px;
    border-style: solid;
}
img.work-preview-img {
    width: 12rem;   
}
#controls {
    background: rgba(0,0,0,0.6);
    padding: 10px;
    z-index: 10;
}
input {
    width: 50px;
}
.info-link {
    display: flex;
    align-items: center;
}
.info-img {
    width: fit-content;
    height: 10em;
    margin: 2%;
    border-radius: 5px;
}
.page-container.info a {
    margin-left: 10%;
}
#treeForm {
    background-color: #00000052;
    position: absolute;
    width: fit-content;
    padding: 2%;
    border-radius: 5%;
    z-index: 1;
    pointer-events: auto;
}
#ds-form {
    height: fit-content;
}
.array-input {
    width: 200px;
    height: 50px;
    border-radius: 4%;
    color: var(--primary-green);
    background-color: #0000005d;
}
.minimize-btn {
    position: relative;
    top: 4.5%;
    width: fit-content;
    z-index: 2;
    padding: 4px;
    margin-top: 30px;
    box-shadow: 0 0 3px 1px var(--primary-green);
}
.page-back-btn {
    position: relative;
    background-color: #0000005d;
    z-index: 2;
    width: fit-content;
    border-radius: 5px;
    padding: 5px;
    height: 25px;
}
/* Chat Display Container */
#response {
    text-wrap: wrap;
    overflow-y: auto;
    max-height: 60vh;
    padding-bottom: 80px;
}
#response p {
    color: black;
    margin: 0;
}
/* Chat Bubble Styles */
.user-msg,
.bot-msg {
    padding: 8px 12px;
    margin: 6px 0;
    border-radius: 10px;
    max-width: 60%;
    word-wrap: break-word;
}
.user-msg {
    background-color: #4CAF50;
    box-shadow: 1px 3px 5px 1px #4CAF50;
    align-self: flex-end;
    text-align: right;
    margin-left: auto;
    border: 1px solid #cccccc67;
}
.bot-msg {
    background-color: #5d93ffc9;
    box-shadow: -1px 3px 5px 0px #5d93ffc9;
    align-self: flex-start;
    text-align: left;
    margin-right: auto;
    border: 1px solid #ccc;
}
/* Input Area Container */
.a-gent-input {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: #4CAF5046;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
/* Inner Input Row */
#a-gent-input {
    display: flex;
    position: relative;
    width: 100%;
}
/* Textarea Styling */
textarea#msg {
    resize: none;
    overflow-y: hidden;
    flex-grow: 1;
    padding: 14px 60px 14px 14px;
    border-radius: 20px;
    font-size: 1rem;
    background-color: #4CAF5067;
    outline: none;
    color: black;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.4em;
    max-height: 200px;
    font-family: inherit;
}
/* Send Button */
.a-gent-send {
    position: absolute;
    bottom: 12px;
    right: 20px;
    background: #4CAF50;
    color: black;
    padding: 5px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.a-gent-send:hover {
    background: #388E3C;
}

.error-msg {
  background-color: #ffe5e5;
  color: #b30000;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 10px;
  font-weight: 500;
}
 

@media (max-width: 700px) {
    :root {
        --primary-green: #4CAF50;
    }
    .page-container div.animated-selection {
        width: 100%;
    }
    .carousel {
        max-height: 60vw;
    }
    #response {
        max-height: 50vh;
    }
    textarea#msg {
        font-size: 1rem;
        padding: 12px 50px 12px 12px;
    }
    .a-gent-send {
        padding: 5px 14px;
        font-size: 1rem;
    }
}

