@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
:root {
    font-family: 'Montserrat', 'serif';
}

html, body {
     height: 100%;
     font-family: 'Montserrat', 'serif';
     --bs-body-bg: #faf9ee;
   }

   body {
     display: flex;
     flex-direction: column;
   }

   main {
     flex: 1 0 auto; /* allows main content to grow and push footer down */
   }
   footer {
      bottom: 0;
      left: 0;
      width: 100%;
      z-index: 1030; /* keep it on top of other content */
    }
    .user-prompt {
        margin-bottom: 30px
    }
   .tile-container {
      margin-top:30px;
      display: flex;
      flex-wrap: nowrap;
      gap: 10px;
      flex-direction: column;
   }
   .history {
    overflow: auto;
    max-height: 400px;
    display:flex;
    flex-direction:column;
   }
   .tile {
           display: flex;
           align-items: center;
           justify-content: center;
           border-radius: 15px;
           cursor: pointer;
           margin:15px;
           padding:15px;

       }
       .user {
           background-color: #D7E3FC;
       }
       .assistant {
           background-color: #D1E8D1;
       }
       .tile:hover {
           background-color: lightgrey;
       }
     .blur-overlay {
      position: fixed;
      width: 100%;
      height: 100%;
      backdrop-filter: blur(10px); /* Blur effect */
      background-color: rgba(0, 0, 0, 0.3); /* Slight dark overlay */
      z-index: 1050; /* Above everything else (like modals) */
      display: none;
      align-items: center;
      justify-content: center;
      visibility: none;
    }

    .overlay-content {
      padding: 2rem;
      border-radius: 1rem;
      box-shadow: 0 0 20px rgba(0,0,0,0.2);
      max-width: 500px;
      text-align: left;
      max-height: 80vh;
      overflow-y: auto;
    }
    li {
      margin-top:10px;
      margin-bottom:10px;
    }
    .spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #3498db;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
        margin: 20px auto;
    }
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    .blur-background {
        filter: blur(5px);
    }
    .email_form {
        display: flex;
        margin: 20px auto;
        flex-direction: column;
    }
.btn-black {
    background-color: #6D122D;
    border-color: #000000;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    --bs-btn-disabled-bg: #6D122D;
}
.btn-white {
    background-color: #FFFFFF;
    border-color: #000000;
    color: #000000;
    transition: all 0.3s ease;
    position: relative;
}

.btn-black:hover,
.btn-black:focus {
    background-color: #333333;
    border-color: #333333;
    color: #ffffff;
}
.btn-extra-rounded {
    border-radius: 2rem !important; /* More rounded than btn-pill */
}
.btn:hover:not(.loading) {
    background: #6D122D;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}
.btn.loading .btn-text {
    opacity: 0;
}
.dots-spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn.loading .dots-spinner {
    display: flex;
    gap: 1px;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: white;
    animation: pulse 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

@keyframes pulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
.custom-navbar {
    background-color: #6D122D;
    --bs-bg-opacity: 1;
}
.btn-custom {
    background-color: #6D122D;
}

.nav-link {
    --bs-navbar-active-color: white;
}
.clickable-div {
    background-color: white;
    color: black;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: 500;
}
.test {
    background-color: #6D122D; !important;
}


