 body { margin: 0; padding: 0; background-color: #000; font-family: Arial, sans-serif; }
        ul { list-style: none; }
        a { text-decoration: none; }
        .slider { position: relative; width: 100%; height: 300px; }
        .cursor {
            width: 20px;
            height: 20px;
            border: 2px solid #00ff00;
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 9999;
        }
        .avatar{
            position: relative;
            width: var(--size);
            height: var(--size); /* for older browsers */
            aspect-ratio: 1;
        }
        .avatar-img {
            clip-path: path(var(--img-clip));
        }
    
        .avatar-img::before{
            content: '';
            position: absolute;
            display: blocl;
            inset: 50% 0 0 0;
            z-index: -1;
            border-radius: 20px;
            background-color: var(--bg-clr); /* fallback if image not defined as custom property */
            background-image: var(--bg-img);
            background-size: cover;
            background-position: center;
            filter: blur(var(--bg-blur));
            transition: filter 300ms ease-in-out;
        }
        .avatar-img > img{
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: scale 300ms, filter 300ms;
            transform-origin: bottom;
            scale: var(--img-scale, .9);
            filter: var(--img-shadow);  
        }
    
        .avatar > p{
            font-size: .9rem;
            color: var(--name-txt-clr);
            position: absolute;
            bottom: .5rem;
            right: 0;
            translate: 0 var(--name-y,-50px);
            opacity: var(--name-opacity,0);
            z-index: -1;
            transition-name: translate, opacity;
            transition-delay: 150ms;
            transition-duration: 300ms;
            transition-timing-function: cubic-bezier(0.47, 1.64, 0.41, 0.8), ease-in-out;
        }
  
        /* all hover effects as custom properties */
        .avatar:hover{
            --img-scale: 1.1;
            --img-shadow: drop-shadow(10px 15px 4px rgba(0 0 0 / 0.5));
            --name-y: 0;
            --name-opacity: 1;
            --bg-blur: var(--bg-blur-hover);
        }

        .box { 
            width: 275px; 
            height: 610px; 
            border-color: #002800;
            background-color: rgba(0, 20, 0, 0.8);
            border-radius: 10px; 
            box-shadow: 0 0 20px #0f0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            box-sizing: border-box;
            margin: 20px 10px; 

            &-footer {
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                width: 100%;
                border-top: 0.063rem solid #292929;
                display: flex;
                justify-content: space-between;
                padding: 0.7em 1.25em 0.5em 1.5em;
                background: #151419;
                border-bottom-left-radius: 2.25rem;
                border-bottom-right-radius: 2.25rem;
            }
        }

        .box:hover { background-color:rgb(251, 251, 251); transform-style: preserve-3d; transform: scale(1.02); transition: all ease .3s; }
        .box:hover .marvel { color: #C0292B; transition: all ease .5s; }

        .button {
            background-color: #00ff00;
                border: none;
            }
        .button:hover {
            background-color: #45a049;
        }

        .chatbot__overview {
            display: flex;
            flex-flow: row nowrap;
            align-content: space-between;
            min-height: 80vh;
            max-height: 80vh;
            margin: 0 auto;
            padding: 1em;
            padding-bottom: 0;
        }
  
        .chatlist {
            font-family: inherit;
            font-size: 1em;
            display: flex;
            flex-flow: column nowrap;
            align-items: flex-end;
            overflow-x: hidden;
            width: 80%;
            max-width: 35em;
            max-height: 75vh;
            margin: 0 auto;
        }
        .chatlist .userInput, .chatlist .bot__output {
            padding: 0.85em;
            margin: 0.5em;
            max-width: 100%;
            background-color: #fff;
            color: #000;
            border-radius: 5px;
            border-bottom: 1px solid #777;
        }
        .chatlist .userInput {
            text-transform: lowercase;
            box-shadow: 1px 1px 2px #666;
            border-top: 4px solidrgb(9, 9, 9);
            opacity: 1;
            will-change: auto;
            animation-name: animateBubble;
            animation-duration: 400ms;
            animation-iteration-count: 1;
            animation-play-state: running;
            animation-fill-mode: forwards;
        }
        .chatlist .bot__output {
            align-self: flex-start;
            box-shadow: -1px 1px 2px #666;
            border-top: 4px solid #27ae60;
            will-change: auto;
            height: auto;
            opacity: 0;
            animation-name: animateBubble;
            animation-duration: 400ms;
            animation-iteration-count: 1;
            animation-play-state: paused;
            animation-fill-mode: forwards;
        }
        .chatlist .bot__output:last-child {
            display: none;
        }
        .chatlist .bot__command {
            color:rgb(10, 10, 10);
            color: #27ae60;
            font-weight: 600;
            padding: 0.1em;
        }
        .chatlist .bot__output:nth-child(1) {
            animation-delay: 600ms;
            animation-play-state: running;
        }
        .chatlist .bot__output:nth-child(2) {
            animation-delay: 1200ms;
            animation-play-state: running;
        }
        .chatlist .bot__output:nth-child(3) {
            animation-delay: 1800ms;
            animation-play-state: running;
        }
        .chatlist .bot__output--standard:last-child {
            display: block;
        }
        .chatlist .bot__output--failed {
            display: block !important;
        }
        .chatlist .bot__output--second-sentence {
            display: block;
        }
        .chatlist .bot__outputImage {
            max-width: 16em;
            height: 12em;
        }

        #chatform {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: 35em;
        margin: 0 auto;
        padding-top: 1em;
        font-size: 1em;
        font-family: Helvetica;
        color: black;
        
    }

    .chatbox-area {
        margin: 0 auto;
        position: relative;
        bottom: 0;
        height: auto;
        width: 100%;
    }
    .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }

    .close:hover {
        color: black;
    }
  
    .details { display: flex; flex-direction: column; align-items: center; width: 300px; }
    .details p { font-family: calibri; font-weight: bold; color: #6A6A74; text-align: center; margin-top: 20px; }
    

    .logo {
        color: #00ff00;
        font-size: 1.5rem;
        font-weight: bold;
    }
    .logo { height: 60px; }

    .marvel { color: #32323E; font-weight: bold; letter-spacing: 2px; font-family: Bebas Kai; font-size: 25px; }
    .model { height: 250px; max-height: 100%; max-width: 100%; }
    .modal, .modal-david, .modal-penny {
    z-index: 1000;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    overflow: auto;
  }
  .modal(David) {
    z-index: 1000;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    overflow: auto;
  }

  .modal-content {
   
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    z-index: 1001;
  }

  .slider:hover .nav__list, {
        display: flex;
        list-style-type: none;
        margin: 0;
        padding: 0;
        }
    .nav__list li {
        margin: 0 15px;
        }
    .nav__list a {
        color: ;
        text-decoration: none;
    }
    .nav__list a:hover {
        text-decoration: underline; 
    }
    
    .nav-links {
        display: flex;
        gap: 2rem;
    }

    .nav-links a {
        color: #ffffff;
        text-decoration: none;
        transition: color 0.3s;
    }

    .nav-links a:hover {
        color: #00ff00;
    }

@media(max-width: 720px) {
    .box { width: 94%; height: 500px; }
    .model { height: 250px; }
    .details p { font-size: 14px; width: 250px; } 
}

@media(max-height: 600px) {
    .container { height: 90%; }
}

@keyframes animateBubble {
    0% {
      transform: translateY(-20%);
      opacity: 0;
    }
    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
@media screen and (max-width: 29em) {
    #chatform {
      width: 60%;
    }
}
  
  textarea[name=chatbox] {
    resize: none;
    border: 2px solid #27ae60;
    border-right: 0;
    width: 100%;
    background-color: transparent;
    color: #fff;
    caret-color: white;
    user-select: text;
    -webkit-text-fill-color: black;
    height: 3em;
    margin: 0;
    padding: 0.75em;
    border-radius: 8px 0px 0px 8px;
    font-family: inherit;
    font-size: 1em;
  }
  textarea[name=chatbox]:focus {
    outline: none;
    border: 2px solid #4bd786;
  }
  ::-webkit-input-placeholder {
    /* WebKit, Blink, Edge */
    color: #fff;
  }
  
  :-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: #fff;
    opacity: 1;
  }
  
  ::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #fff;
    opacity: 1;
  }
  
  input[type=submit] {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    width: 55%;
    margin: 0;
    background-color: #27ae60;
    color: #fff;
    border: 2px solid #27ae60;
    border-left: 0;
    border-radius: 0 8px 8px 0;
    font-family: inherit;
    font-size: 1em;
    transition: 200ms all ease-in;
  }
  input[type=submit]:hover {
    background-color: #4bd786;
    border-color: #4bd786;
    color: #fff;
  }
  
  .input__nested-list {
    list-style: disc;
    list-style-position: inside;
    padding: 0.5em;
  }
  .input__nested-list:first-child {
    padding-top: 1em;
  }
  
  .input__nested-link {
    color: #2ecc71;
    text-decoration: none;
    border-bottom: 1px solid #2ecc71;
  }
  
  ::-webkit-scrollbar {
    width: 0.65em;
    /* for vertical scrollbars */
    height: 0.65em;
    /* for horizontal scrollbars */
  }
  
  ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
  }
  
  ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
  }