
.dark {
  --background: #212121;
  --textcolor:  #cbcbcb;
  --textcolor2:  #b4b4b4;
  --link:       #fff;
  --linkhover:  #f9f9f9;
  --maincolor:  #fff;
  --mp-background: #212121;
  --mp-background-hover: #2F2F2F;
  --mp-light-ececec: #ececec;
  --mp-light-676767: #676767;
  --footer-text: #929292;
  --user-text: #3D3D3D;
  --user-text-background: #E0E0E0;
}


.light {
  --background: #fff;
  --textcolor:  #0d0d0d;
  --textcolor2:  #232323;
  --link:       #000;
  --linkhover:  #000;
  --maincolor:  #000;
  --mp-background: #FAFAFA;
  --mp-background-hover: #F2F2F2;
  --mp-light-ececec: #000;
  --mp-light-676767: #7F7F7F;
  --footer-text: #5d5d5d;
  --user-text: #e8e8e8;
  --user-text-background: #0d0d0d;
}
    

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* Sayfa yüksekliğini %100 olarak ayarlıyoruz */
}



body {
    font-family: 'Montserrat', sans-serif;
       background-color: var(--background);
      color: var(--textcolor);
    display: flex;
    flex-direction: column;
    /* Dikey hizalama için */
    justify-content: center;
    /* Dikeyde ortalamak için */
    align-items: center;
    /* Yatayda ortalamak için */
}

.navbar {
    position: absolute;
    /* Konumu sabitlemek için */
    top: 0;
    /* Ekranın altına yapıştır */
    display: flex;
    align-items: center;
    height: 8vh;
    width: 100%;
    background-color: var(--background);
    border-bottom: 3px solid var(--maincolor);
}

.themecolour {
    width: 25%;
    /* Sol kısım */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.themecolour-svg {
    position: absolute;
    left: 20px;
     cursor: pointer;
}


.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    display: inline-block;
    position: relative;
}

.brand-name .letter {
    display: inline-block;
    opacity: 0;
    animation: showLetter 0.5s forwards;
    margin-right: 0.2rem;
}

.brand-name .letter:nth-child(1) {
    animation-delay: 0.1s;
}

.brand-name .letter:nth-child(2) {
    animation-delay: 0.2s;
}

.brand-name .letter:nth-child(3) {
    animation-delay: 0.3s;
}

.brand-name .letter:nth-child(4) {
    animation-delay: 0.4s;
}

.brand-name .letter:nth-child(5) {
    animation-delay: 0.5s;
}

.brand-name .letter:nth-child(6) {
    animation-delay: 0.6s;
}

.brand-name .letter:nth-child(7) {
    animation-delay: 0.7s;
}

@keyframes showLetter {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-name {
    width: 50%;
    /* Ortada ALFVİTA yazısı */
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
}

.translate-btn {
    width: 25%;
    /* Sağ kısım */
    position: relative;
    text-align: center;
    z-index: 10;
}

.flags {
    position: absolute;
    right: 3px;
    /* Sağdan 3px mesafe */
    transform: translateY(-50%);
    /* Vertikal ortalama */
    width: 150px;
}

.custom-select {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    width: 100px;
    cursor: pointer;

}

.custom-select .flag-icon-selected {
    margin-right: 10px;
}

.custom-options {
    display: none;
    position: absolute;
    width: 123px;
    border: 1px solid var(--maincolor);
    border-radius: 5px;
    background-color: var(--background);
    z-index: 10;
    top: 100%;
    left: 0;
}

.custom-option {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: var(--background);
    z-index: 10;
}

.custom-option:hover {
    background-color: var(--mp-background-hover);
}

.custom-option .flag-icon {
    margin-right: 10px;
}

.show-options {
    display: block;
}

h1 {

    color: var(--textcolor);
    font-size: 2rem;
    text-align: center;
    transition: opacity 0.3s ease;
}

.mp_button-container {
    margin-top: 20px;
}

.mp_button-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.mp_button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid var(--maincolor);
    border-radius: 50px;
    background-color: var(--mp-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mp_button:hover {
    background-color: var(--mp-background-hover);
}

.icon {
    flex-shrink: 0;
}

.mp_button span {
    font-size: 14px;
    color: var(--textcolor2);
}

.mp_button:hover span {
    color: var(--linkhover);
}

.message-container {
    width: 100%;
    max-width: 600px;
    padding: 5px;
    position: absolute;
    /* Konumu sabitlemek için */
    bottom: 0;
    /* Ekranın altına yapıştır */
    margin-bottom: 2vh;
    /* Alt boşluk */
}

.message-input {
    display: flex;
    flex-direction: column;
}

.input-wrapper {

    display: flex;
    align-items: center;
    background-color: var(--mp-background-hover);
    border: 2px solid var(--maincolor);
    /* Varsayılan renk */
    border-radius: 26px;
    padding: 5px 10px;
    transition: border-color 0.3s ease;
}

.input-wrapper textarea {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    outline: none;
    padding: 5px 10px;
    font-size: 16px;
    color: var(--textcolor);
}

.input-wrapper textarea::placeholder {
    color: var(--textcolor2);
}

.input-wrapper button {
    background-color: var(--mp-light-ececec);
    color: var(--maincolor);
    border: none;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 5px;
    transition: background-color 0.3s;
}

.input-wrapper button svg {
    fill: var(--background);
    transition: fill 0.3s ease;
}

.input-wrapper button:disabled {
    background-color: var(--mp-light-676767);
    cursor: not-allowed;
}

.input-wrapper button:hover:not(:disabled) {
    background-color: var(--mp-light-ececec);
}

.input-wrapper button span {
    font-family: 'Material Icons Round';
    font-size: 24px;
    color: var(--maincolor);
    /* Varsayılan ikon rengi */
    transition: color 0.3s;
}

.input-wrapper button:disabled span {
    color: var(--mp-background-hover);
}

.footer-text {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--footer-text);
    font-size: 0.8rem;
    padding: 0.2rem 0;
    font-weight: 600;
}















.chat-section {
    padding-top: 9vh;
    padding-bottom: 80px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    width: 75%;
}

.chat-box {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.message {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.message.user {
    justify-content: flex-end;
}

.message.assistant {
    align-items: flex-start; 
    justify-content: flex-start;
}

.message.user .text {
    background-color: var(--user-text);
    color: var(--user-text-background);
    border-bottom-right-radius: 0;
}

.message.assistant .text {
    color: var(--maincolor);
    border-bottom-left-radius: 0;
}


.text {
    max-width: 80%;
    /* Increased width for better readability */
    padding: 14px 20px;
    /* Increased padding */
    border-radius: 15px;
    /* More rounded corners */
    position: relative;
    font-size: 1em;
    line-height: 1.6;
    /* Increased line height */
    word-wrap: break-word;
    /* Handle long words */
}

.text a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    border-bottom: 2px solid var(--link);
    transition: color var(--transition-speed), border-bottom var(--transition-speed);
}

.text a:hover,
.text a:focus {
    color: var(--linkhover);
    border-bottom: 2px solid var(--linkhover);
    outline: none;
}

.text ol,
.text ul,
.text li {
    padding-left: 10px; /* Sol taraftan 2 piksel kaydır */
}


.hidden {
    display: none;
}












/* 8. Loader */
.typing .dot {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: var(--color-text);
    color: var(--maincolor);
    border-radius: 50%;
    bottom:3px;
    display: inline-block;
    font-weight: bold;
    position: relative; /* Yukarı kaldırmak için */
    animation: typingAnimation 1.5s infinite ease-in-out;
}
.typing .dot:nth-child(1) {
    animation-delay: 0s;
}

.typing .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0% { transform: translateY(5px); opacity: 0.3; } /* 5px yukarı başlar */
    50% { transform: translateY(-5px); opacity: 1; } /* 5px aşağı iner */
    100% { transform: translateY(5px); opacity: 0.3; } /* Tekrar yukarı çıkar */
}








.text a[href^="tel:"] {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: bold;
}

.text a[href^="tel:"]:hover,
.text a[href^="tel:"]:focus {
    color: var(--color-button-hover);
    text-decoration: underline;
    outline: none;
}

/* 10. Responsive Design */
@media (max-width: 1024px) {

    .chat-section {

        width: 90%;
    }

    #loader-text {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {

    .navbar {
        height: 8vh;
        border-bottom: 1px solid var(--maincolor);
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .brand-name .letter {
        margin-right: 0.1rem;
    }

    .flags {
        width: 60px;
        right: 8px;
        /* Arka plan genişliği 60px */
    }

    .custom-select {
        width: 40px;
    }

    .custom-select .flag-icon {
        width: 30px;
        /* Bayrak ikonunun genişliği 30px */
        margin-right: 4px;
        height: auto;
        /* Orantılı yükseklik için */
    }

    #selectedCountry {
        display: none;
        /* Ülke ismini gizler */
    }

    .custom-options {
        width: 130px;
        /* Açılan seçeneklerin genişliği 130px */
        left: -78px;
    }

    .footer-text {
        font-size: 0.5rem;
        padding: 0.2rem 0;
    }

    .mp_button span {
        font-size: 12px;
    }

    h1 {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 1.5rem;
    }

    .input-wrapper textarea::placeholder {
        font-size: 12px;
        padding-top: 2px;
    }

    .mp_button {
        padding: 5px 10px;
    }

    .chat-section {
        width: 100%;
    }

    .user {
        margin-left: 10%;
    }

    .assistant {
        margin-right: 10%;
    }
    
    
.text ol,
.text ul,
.text li {
    padding-left: 5px; /* Sol taraftan 2 piksel kaydır */
}


    #loader-text {
        font-size: 0.85em;
    }
}

@media (max-width: 610px) {
    .message-container {
        width: 95%;
    }
}

@media (max-width: 480px) {


    #loader-text {
        font-size: 0.8em;
    }
}