body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #ffffff;
    flex-direction: column;
    background-image:url('image/arkaplan1.png'); 
    background-size: cover; 
    background-position:center; 
    flex-direction: column;
}

@media only screen and (max-width: 500px) {
    body {
      display: flex;
      flex-direction: column;
    }
    
    #sag-el, #sol-el{
        display: none;
    }

    #chatbot-container {
        margin-top: -30px;
    }
    /* Chatbot-container boyutu ve hizası */
    #chatbox {
      width: 100%;
      height: 100vh; /* Tüm ekranı kapla */
      display: flex;
      justify-content: center;
    }
  }


#sag-el {
    position: fixed; 
    right: 0; 
    top: 55%; 
    transform: translateY(-50%); 
    width: 44%; 
    height: auto; 
    transition: transform 0.3s ease; 
    transform-origin: center; 
}

#sag-el.bigger {
    transform: translateY(-50%) scale(1.2); 
}

#sol-el {
    position: fixed;
    left: 0;
    top: 51%;
    transform: translateY(-50%);
    width: 50%; 
    height: auto; 
    transition: transform 0.3s ease; 
    transform-origin: center; 
}

#sol-el.bigger {
    transform: translateY(-50%) scale(1.2); 
}

#label-sol {
    position: fixed; 
    top: 7%; 
    left: 1%; 
    color: white; 
    font-size: 50px;
    font-weight: bolder; 
    background-color: transparent; 
    display: none; 
    z-index: 10; 
    transition: opacity 0.5s ease;
    font-family: "Press Start 2P", system-ui;
    text-shadow: 0 0 20px #ffffff;
}

#label-sag {
    position: fixed; 
    top: 5%; 
    left: 78%; 
    color: white; 
    font-size: 70px;
    font-weight: 1000; 
    background-color: transparent; 
    padding: 5px; 
    display: none; 
    z-index: 10; 
    transition: opacity 0.5s ease;
    font-family: "Berkshire Swash", serif;
    font-style: normal;
    text-shadow: 0 0 20px #ffffff;
}


#chatbox {
    width: 400px;
    height: 550px;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    border-radius: 20px;
    margin: 0px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
}

#chatbot-container {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s;
    z-index: 2;
}

.rotate-card {
    transform: rotateY(360deg); 
}

#logo-container {
    text-align: center;
    margin: -7px; 
    z-index: 1;
}

#robit {
    width: 90px;
    cursor: pointer;
    transition: transform 0.2s;
}
#robit:hover {
    transform: scale(1.1); 
}

#logo {
    width: 250px; 
    margin-bottom: 0; 
}

#messages {
    flex: 1;    
    margin-bottom: 10px;
    padding: 5px;
    overflow-y: auto;
    -ms-overflow-style: none;
    flex-direction: column;
}

#messages::before {
    content: ''; 
    position: absolute;
    top: 10px; 
    bottom: 10px; 
    left: 0;
    right: 0;
    background: transparent; 
    z-index: 1; 
    pointer-events: none; 
}

#messages::-webkit-scrollbar {
    width: 7px; 
    height: 10px;
}
#messages::-webkit-scrollbar-track {
    background: transparent; 
    margin: 200px 0;
}

#messages::-webkit-scrollbar-thumb {
    background-color: rgb(7,0 , 0,0.2); 
    border-radius: 10px; 
}

#messages::-webkit-scrollbar-thumb:hover {
    background: #696969; 
}

#inputContainer {
    display: flex;
    width: 100%;
    position: relative;
    background-color: transparent;
    border: 0px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    border-radius: 20px;
}

#userInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    border-radius: 20px 0 0 20px;
    color: #ffffff;
    margin-right: 76px;
    resize: none;
    border-right: none;
}

#sendButton {
    background-color: #77afe8;
    color: white;
    border: none;
    padding: 5px 15px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 0 20px 20px 0;
    position: absolute;
    right: 0;
    height: 99.5%;
    top: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px;
    margin-top: 5px;
}

#sendButton:hover {
    background-color: #0056b3;
}

button {
    width: 265px;
    color: #14097c;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-weight: bold;
}

.user-message, .bot-message {
    padding: 7px;
    margin: 7px 3px;
    border-radius: 10px;
    display: inline-block; 
    clear: both; 
    font-weight: bold;
}

.user-message {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    text-align: right;
    float: right;
    color: #ffffff;
}

.bot-message {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    text-align: left; 
    float: left; 

}

#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1000;
    backdrop-filter: blur(7px); 
    -webkit-backdrop-filter: blur(10px);
}

.popup-content {
    width: 400px;
    height: 550px;
    background-color: rgba(0, 0, 0, 0.1);
    border: 5px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    border-radius: 20px;
    margin: 0 auto;
    padding: 11px;
    display: flex;
    flex-direction: column;
    position: relative;
    color: white;
    top: 55%;
    transform: translateY(-50%);
    font-weight: bolder;
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
}


.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}

#UnlemPopup{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1000;
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
}

.UnlemPopup-content {
    width: 400px;
    height: 550px;
    background-color: rgba(0, 0, 0, 0.1);
    border: 5px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    border-radius: 20px;
    margin: 0 auto;
    padding: 11px;
    display: flex;
    flex-direction: column;
    position: relative;
    color: white;
    top: 55%;
    transform: translateY(-50%);
    font-weight: bolder;
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
}

#baslik {
    text-align: center;
    color: white;
    font-weight: 1000;
    margin-top: 10px;
}

#not {
    margin-top: -15px;
    text-align: start;
    color: black;
    padding-left: 40px;
    font-size: x-small;
    font-weight: 1000;
    font-family: "Italianno", cursive;
}

#unlem-kutu {
    border: 3px solid rgba(255, 255, 255, .2);
    border-radius: 20%;
    width: 60px;
    height: 60px;
    position: absolute;
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform 0.4s;
    z-index: 1;
    left: 42%;
    margin-top: 50px;
}

#unlem-kutu:hover {
    transform: scale(1.2); 
}

#unlem {
    color: rgba(255, 255, 255, .4);
    text-align: center;
    margin-top: 12px;
    margin-left: 1px;
}

#hakkında-not{
    font-size: x-small;
    font-weight: bolder;
    
    margin-top: 10px; 
    font-family: "Italianno", cursive;
    color: black;
}